@nebula.js/sn-table 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +15 -16
- package/dist/sn-table.js +17 -18
- package/dist/sn-table.systemjs.js +15 -16
- package/package.json +12 -12
- package/sn-table-ext/dist/sn-table.js +17 -18
- package/sn-table-ext/sn-table.qext +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v3.
|
|
2
|
+
* @nebula.js/sn-table v3.4.0
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use strict";var t,n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,P,I,D,M,L,O,T,k,_,q,N,F,z,j;return{setters:[function(e){t=e.useTheme,n=e.useMemo,r=e.onContextMenu,o=e.useOptions,i=e.useState,a=e.usePromise,l=e.useEffect,s=e.onTakeSnapshot,u=e.useImperativeHandle,c=e.useElement,d=e.useStaleLayout,p=e.useApp,f=e.useModel,m=e.useInteractionState,h=e.useTranslator,g=e.useSelections,b=e.useKeyboard,v=e.useRect,y=e.useEmbed},function(e){x=e.useMemo,S=e.useState,E=e.default,C=e.useEffect,w=e.useContext,R=e.createElement,A=e,P=e.Children,I=e.isValidElement,D=e.cloneElement,M=e.useReducer,L=e.createContext,O=e.useRef,T=e.useCallback,k=e.forwardRef,_=e.memo,q=e.useLayoutEffect,N=e.PureComponent,F=e.useImperativeHandle},function(e){z=e.default,j=e}],execute:function(){function $(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function H(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function B(){}e("default",(function(e){return{qae:SL(),ext:po(e),component(){var t;const n=c(),i=hL(n),a=d(),l=p(),s=f(),u=m(),x=h(),S=g(),E=b(),{freeResize:C}=o(),w=v(),R=null!=a&&null!==(t=a.snapshotData)&&void 0!==t&&t.content&&!C?{...w,...a.snapshotData.content.size}:w,A=IL(a),P=y(),I=He(n,DL,ML),D=e.flags.isEnabled("CLIENT_IM_5716_TABLE_COL_WIDTH"),M=e.flags.isEnabled("CLIENT_IM_5715_LINKS"),L=gL(a.qHyperCube,s,D),O=mo(a.qHyperCube,s),T=yL(I,a);null==r||r(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(".sn-table-cell");r&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{fo(r)}})})),PL({layout:a,viewService:A,model:s,rootElement:n,contentRect:w}),vL({isNewHeadCellMenuEnabled:D,isLinksEnabled:M,app:l,layout:a,model:s,rect:R,theme:I,keyboard:E,translator:x,interactions:u,selectionsAPI:S,changeSortOrder:L,rootElement:n,embed:P,reactRoot:i,applyColumnWidths:O,isFontLoaded:T,viewService:A}),mL({isNewHeadCellMenuEnabled:D,isLinksEnabled:M,app:l,model:s,rootElement:n,layout:a,interactions:u,translator:x,selectionsAPI:S,theme:I,changeSortOrder:L,keyboard:E,rect:R,embed:P,reactRoot:i,applyColumnWidths:O,isFontLoaded:T,viewService:A})}}}));var W=.7,V=1/W,G="\\s*([+-]?\\d+)\\s*",U="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Y="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",K=/^#([0-9a-f]{3,8})$/,X=new RegExp(`^rgb\\(${G},${G},${G}\\)$`),J=new RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`),Z=new RegExp(`^rgba\\(${G},${G},${G},${U}\\)$`),Q=new RegExp(`^rgba\\(${Y},${Y},${Y},${U}\\)$`),ee=new RegExp(`^hsl\\(${U},${Y},${Y}\\)$`),te=new RegExp(`^hsla\\(${U},${Y},${Y},${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 re(){return this.rgb().formatHex()}function oe(){return this.rgb().formatRgb()}function ie(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=K.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ae(t):3===n?new ce(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?le(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?le(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=X.exec(e))?new ce(t[1],t[2],t[3],1):(t=J.exec(e))?new ce(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Z.exec(e))?le(t[1],t[2],t[3],t[4]):(t=Q.exec(e))?le(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ee.exec(e))?ge(t[1],t[2]/100,t[3]/100,1):(t=te.exec(e))?ge(t[1],t[2]/100,t[3]/100,t[4]):ne.hasOwnProperty(e)?ae(ne[e]):"transparent"===e?new ce(NaN,NaN,NaN,0):null}function ae(e){return new ce(e>>16&255,e>>8&255,255&e,1)}function le(e,t,n,r){return r<=0&&(e=t=n=NaN),new ce(e,t,n,r)}function se(e){return e instanceof B||(e=ie(e)),e?new ce((e=e.rgb()).r,e.g,e.b,e.opacity):new ce}function ue(e,t,n,r){return 1===arguments.length?se(e):new ce(e,t,n,null==r?1:r)}function ce(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function de(){return`#${he(this.r)}${he(this.g)}${he(this.b)}`}function pe(){const e=fe(this.opacity);return`${1===e?"rgb(":"rgba("}${me(this.r)}, ${me(this.g)}, ${me(this.b)}${1===e?")":`, ${e})`}`}function fe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function me(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function he(e){return((e=me(e))<16?"0":"")+e.toString(16)}function ge(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ve(e,t,n,r)}function be(e){if(e instanceof ve)return new ve(e.h,e.s,e.l,e.opacity);if(e instanceof B||(e=ie(e)),!e)return new ve;if(e instanceof ve)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 ve(a,l,s,e.opacity)}function ve(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ye(e){return(e=(e||0)%360)<0?e+360:e}function xe(e){return Math.max(0,Math.min(1,e||0))}function Se(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}$(B,ie,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:re,formatHex:re,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return be(this).formatHsl()},formatRgb:oe,toString:oe}),$(ce,ue,H(B,{brighter(e){return e=null==e?V:Math.pow(V,e),new ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?W:Math.pow(W,e),new ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ce(me(this.r),me(this.g),me(this.b),fe(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:de,formatHex:de,formatHex8:function(){return`#${he(this.r)}${he(this.g)}${he(this.b)}${he(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:pe,toString:pe})),$(ve,(function(e,t,n,r){return 1===arguments.length?be(e):new ve(e,t,n,null==r?1:r)}),H(B,{brighter(e){return e=null==e?V:Math.pow(V,e),new ve(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?W:Math.pow(W,e),new ve(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 ce(Se(e>=240?e-240:e+120,o,r),Se(e,o,r),Se(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ve(ye(this.h),xe(this.s),xe(this.l),fe(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=fe(this.opacity);return`${1===e?"hsl(":"hsla("}${ye(this.h)}, ${100*xe(this.s)}%, ${100*xe(this.l)}%${1===e?")":`, ${e})`}`}}));const Ee=Math.PI/180,Ce=180/Math.PI,we=.96422,Re=1,Ae=.82521,Pe=4/29,Ie=6/29,De=3*Ie*Ie,Me=Ie*Ie*Ie;function Le(e){if(e instanceof Oe)return new Oe(e.l,e.a,e.b,e.opacity);if(e instanceof Fe)return ze(e);e instanceof ce||(e=se(e));var t,n,r=qe(e.r),o=qe(e.g),i=qe(e.b),a=Te((.2225045*r+.7168786*o+.0606169*i)/Re);return r===o&&o===i?t=n=a:(t=Te((.4360747*r+.3850649*o+.1430804*i)/we),n=Te((.0139322*r+.0971045*o+.7141733*i)/Ae)),new Oe(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Oe(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Te(e){return e>Me?Math.pow(e,1/3):e/De+Pe}function ke(e){return e>Ie?e*e*e:De*(e-Pe)}function _e(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function qe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ne(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Fe)return new Fe(e.h,e.c,e.l,e.opacity);if(e instanceof Oe||(e=Le(e)),0===e.a&&0===e.b)return new Fe(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ce;return new Fe(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Fe(e,t,n,null==r?1:r)}function Fe(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ze(e){if(isNaN(e.h))return new Oe(e.l,0,0,e.opacity);var t=e.h*Ee;return new Oe(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}$(Oe,(function(e,t,n,r){return 1===arguments.length?Le(e):new Oe(e,t,n,null==r?1:r)}),H(B,{brighter(e){return new Oe(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Oe(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 ce(_e(3.1338561*(t=we*ke(t))-1.6168667*(e=Re*ke(e))-.4906146*(n=Ae*ke(n))),_e(-.9787684*t+1.9161415*e+.033454*n),_e(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),$(Fe,Ne,H(B,{brighter(e){return new Fe(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Fe(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ze(this).rgb()}}));const je=e=>{if(e){const t=ue(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},$e=(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===ue(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:je(d?l:c),isTransparent:d}},He=(e,r,o)=>{const i=t();return n((()=>({...i,background:$e(i,e,r,o)})),[i.name(),e,r,o])};var Be=Object.prototype.hasOwnProperty,We=Object.prototype.toString,Ve=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,Ue=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===We.call(e)},Ye=function(e){if(!e||"[object Object]"!==We.call(e))return!1;var t,n=Be.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Be.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Be.call(e,t)},Ke=function(e,t){Ve&&"__proto__"===t.name?Ve(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Xe=function(e,t){if("__proto__"===t){if(!Be.call(e,t))return;if(Ge)return Ge(e,t).value}return e[t]};function Je(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ze(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Qe(){}!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=Xe(l,n),l!==(o=Xe(t,n))&&(c&&o&&(Ye(o)||(i=Ue(o)))?(i?(i=!1,a=r&&Ue(r)?r:[]):a=r&&Ye(r)?r:{},Ke(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Ke(l,{name:n,newValue:o}));return l}));var et=1/.7,tt="\\s*([+-]?\\d+)\\s*",nt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ot=/^#([0-9a-f]{3,8})$/,it=new RegExp(`^rgb\\(${tt},${tt},${tt}\\)$`),at=new RegExp(`^rgb\\(${rt},${rt},${rt}\\)$`),lt=new RegExp(`^rgba\\(${tt},${tt},${tt},${nt}\\)$`),st=new RegExp(`^rgba\\(${rt},${rt},${rt},${nt}\\)$`),ut=new RegExp(`^hsl\\(${nt},${rt},${rt}\\)$`),ct=new RegExp(`^hsla\\(${nt},${rt},${rt},${nt}\\)$`),dt={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 pt(){return this.rgb().formatHex()}function ft(){return this.rgb().formatRgb()}function mt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ot.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ht(t):3===n?new yt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?gt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?gt(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=it.exec(e))?new yt(t[1],t[2],t[3],1):(t=at.exec(e))?new yt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=lt.exec(e))?gt(t[1],t[2],t[3],t[4]):(t=st.exec(e))?gt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ut.exec(e))?Rt(t[1],t[2]/100,t[3]/100,1):(t=ct.exec(e))?Rt(t[1],t[2]/100,t[3]/100,t[4]):dt.hasOwnProperty(e)?ht(dt[e]):"transparent"===e?new yt(NaN,NaN,NaN,0):null}function ht(e){return new yt(e>>16&255,e>>8&255,255&e,1)}function gt(e,t,n,r){return r<=0&&(e=t=n=NaN),new yt(e,t,n,r)}function bt(e){return e instanceof Qe||(e=mt(e)),e?new yt((e=e.rgb()).r,e.g,e.b,e.opacity):new yt}function vt(e,t,n,r){return 1===arguments.length?bt(e):new yt(e,t,n,null==r?1:r)}function yt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function xt(){return`#${wt(this.r)}${wt(this.g)}${wt(this.b)}`}function St(){const e=Et(this.opacity);return`${1===e?"rgb(":"rgba("}${Ct(this.r)}, ${Ct(this.g)}, ${Ct(this.b)}${1===e?")":`, ${e})`}`}function Et(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ct(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function wt(e){return((e=Ct(e))<16?"0":"")+e.toString(16)}function Rt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Pt(e,t,n,r)}function At(e){if(e instanceof Pt)return new Pt(e.h,e.s,e.l,e.opacity);if(e instanceof Qe||(e=mt(e)),!e)return new Pt;if(e instanceof Pt)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 Pt(a,l,s,e.opacity)}function Pt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function It(e){return(e=(e||0)%360)<0?e+360:e}function Dt(e){return Math.max(0,Math.min(1,e||0))}function Mt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Je(Qe,mt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:pt,formatHex:pt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return At(this).formatHsl()},formatRgb:ft,toString:ft}),Je(yt,vt,Ze(Qe,{brighter(e){return e=null==e?et:Math.pow(et,e),new yt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new yt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yt(Ct(this.r),Ct(this.g),Ct(this.b),Et(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:xt,formatHex:xt,formatHex8:function(){return`#${wt(this.r)}${wt(this.g)}${wt(this.b)}${wt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:St,toString:St})),Je(Pt,(function(e,t,n,r){return 1===arguments.length?At(e):new Pt(e,t,n,null==r?1:r)}),Ze(Qe,{brighter(e){return e=null==e?et:Math.pow(et,e),new Pt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Pt(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 yt(Mt(e>=240?e-240:e+120,o,r),Mt(e,o,r),Mt(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Pt(It(this.h),Dt(this.s),Dt(this.l),Et(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=Et(this.opacity);return`${1===e?"hsl(":"hsla("}${It(this.h)}, ${100*Dt(this.s)}%, ${100*Dt(this.l)}%${1===e?")":`, ${e})`}`}}));const Lt=Math.PI/180,Ot=180/Math.PI,Tt=4/29,kt=6/29,_t=3*kt*kt;function qt(e){if(e instanceof Nt)return new Nt(e.l,e.a,e.b,e.opacity);if(e instanceof Ht)return Bt(e);e instanceof yt||(e=bt(e));var t,n,r=$t(e.r),o=$t(e.g),i=$t(e.b),a=Ft((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Ft((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Ft((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Nt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Nt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ft(e){return e>.008856451679035631?Math.pow(e,1/3):e/_t+Tt}function zt(e){return e>kt?e*e*e:_t*(e-Tt)}function jt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function $t(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ht(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Bt(e){if(isNaN(e.h))return new Nt(e.l,0,0,e.opacity);var t=e.h*Lt;return new Nt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Je(Nt,(function(e,t,n,r){return 1===arguments.length?qt(e):new Nt(e,t,n,null==r?1:r)}),Ze(Qe,{brighter(e){return new Nt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Nt(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 yt(jt(3.1338561*(t=.96422*zt(t))-1.6168667*(e=1*zt(e))-.4906146*(n=.82521*zt(n))),jt(-.9787684*t+1.9161415*e+.033454*n),jt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Je(Ht,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ht)return new Ht(e.h,e.c,e.l,e.opacity);if(e instanceof Nt||(e=qt(e)),0===e.a&&0===e.b)return new Ht(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ot;return new Ht(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ht(e,t,n,null==r?1:r)}),Ze(Qe,{brighter(e){return new Ht(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ht(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Bt(this).rgb()}}));var Wt,Vt=e=>()=>e;function Gt(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Vt(isNaN(e)?t:e)}function Ut(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 Yt(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 Kt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Jt)):void 0===t&&(t=Xt);for(var n,r,o,i,a,l=new en(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 en(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Qt)}function Xt(e){return e.children}function Jt(e){return Array.isArray(e)?e[1]:null}function Zt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Qt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function en(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?Gt: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):Vt(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=vt(e)).r,(t=vt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Gt(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),en.prototype=Kt.prototype={constructor:en,count:function(){return this.eachAfter(Yt)},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 Kt(this).eachBefore(Zt)},[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)}},Wt=function(e){
|
|
7
|
+
System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use strict";var t,r,n,o,i,a,s,l,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,I,D,L,P,M,_,T,k,O,q,N,F,z,j;return{setters:[function(e){t=e.useTheme,r=e.useMemo,n=e.onContextMenu,o=e.useOptions,i=e.useState,a=e.usePromise,s=e.useEffect,l=e.onTakeSnapshot,u=e.useImperativeHandle,c=e.useElement,d=e.useStaleLayout,p=e.useApp,f=e.useModel,m=e.useInteractionState,h=e.useTranslator,g=e.useSelections,b=e.useKeyboard,v=e.useRect,y=e.useEmbed},function(e){x=e.useMemo,S=e.useState,E=e.default,C=e.useEffect,w=e.useContext,R=e.createElement,A=e,I=e.Children,D=e.isValidElement,L=e.cloneElement,P=e.useReducer,M=e.createContext,_=e.useRef,T=e.useCallback,k=e.forwardRef,O=e.memo,q=e.useLayoutEffect,N=e.PureComponent,F=e.useImperativeHandle},function(e){z=e.default,j=e}],execute:function(){function $(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function B(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function H(){}e("default",(function(e){return{qae:XL(),ext:Eo(e),component(){var t;const r=c(),i=WL(r),a=d(),s=p(),l=f(),u=m(),x=h(),S=g(),E=b(),{freeResize:C}=o(),w=v(),R=null!=a&&null!==(t=a.snapshotData)&&void 0!==t&&t.content&&!C?{...w,...a.snapshotData.content.size}:w,A=nP(a),I=y(),D=Be(r,oP,iP),L=GL(a.qHyperCube,l),P=Co(a.qHyperCube,l),M=YL(D,a);null==n||n(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(".sn-table-cell");n&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{fr(n)}})})),rP({layout:a,viewService:A,model:l,rootElement:r,contentRect:w}),UL({app:s,layout:a,model:l,rect:R,theme:D,keyboard:E,translator:x,interactions:u,selectionsAPI:S,changeSortOrder:L,rootElement:r,embed:I,reactRoot:i,applyColumnWidths:P,isFontLoaded:M,viewService:A,env:e}),HL({app:s,model:l,rootElement:r,layout:a,interactions:u,translator:x,selectionsAPI:S,theme:D,changeSortOrder:L,keyboard:E,rect:R,embed:I,reactRoot:i,applyColumnWidths:P,isFontLoaded:M,viewService:A,env:e})}}}));var W=.7,G=1/W,V="\\s*([+-]?\\d+)\\s*",U="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Y="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",K=/^#([0-9a-f]{3,8})$/,X=new RegExp(`^rgb\\(${V},${V},${V}\\)$`),J=new RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`),Z=new RegExp(`^rgba\\(${V},${V},${V},${U}\\)$`),Q=new RegExp(`^rgba\\(${Y},${Y},${Y},${U}\\)$`),ee=new RegExp(`^hsl\\(${U},${Y},${Y}\\)$`),te=new RegExp(`^hsla\\(${U},${Y},${Y},${U}\\)$`),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 ne(){return this.rgb().formatHex()}function oe(){return this.rgb().formatRgb()}function ie(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=K.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?ae(t):3===r?new ce(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=X.exec(e))?new ce(t[1],t[2],t[3],1):(t=J.exec(e))?new ce(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Z.exec(e))?se(t[1],t[2],t[3],t[4]):(t=Q.exec(e))?se(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ee.exec(e))?ge(t[1],t[2]/100,t[3]/100,1):(t=te.exec(e))?ge(t[1],t[2]/100,t[3]/100,t[4]):re.hasOwnProperty(e)?ae(re[e]):"transparent"===e?new ce(NaN,NaN,NaN,0):null}function ae(e){return new ce(e>>16&255,e>>8&255,255&e,1)}function se(e,t,r,n){return n<=0&&(e=t=r=NaN),new ce(e,t,r,n)}function le(e){return e instanceof H||(e=ie(e)),e?new ce((e=e.rgb()).r,e.g,e.b,e.opacity):new ce}function ue(e,t,r,n){return 1===arguments.length?le(e):new ce(e,t,r,null==n?1:n)}function ce(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function de(){return`#${he(this.r)}${he(this.g)}${he(this.b)}`}function pe(){const e=fe(this.opacity);return`${1===e?"rgb(":"rgba("}${me(this.r)}, ${me(this.g)}, ${me(this.b)}${1===e?")":`, ${e})`}`}function fe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function me(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function he(e){return((e=me(e))<16?"0":"")+e.toString(16)}function ge(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ve(e,t,r,n)}function be(e){if(e instanceof ve)return new ve(e.h,e.s,e.l,e.opacity);if(e instanceof H||(e=ie(e)),!e)return new ve;if(e instanceof ve)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new ve(a,s,l,e.opacity)}function ve(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ye(e){return(e=(e||0)%360)<0?e+360:e}function xe(e){return Math.max(0,Math.min(1,e||0))}function Se(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}$(H,ie,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ne,formatHex:ne,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return be(this).formatHsl()},formatRgb:oe,toString:oe}),$(ce,ue,B(H,{brighter(e){return e=null==e?G:Math.pow(G,e),new ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?W:Math.pow(W,e),new ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ce(me(this.r),me(this.g),me(this.b),fe(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:de,formatHex:de,formatHex8:function(){return`#${he(this.r)}${he(this.g)}${he(this.b)}${he(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:pe,toString:pe})),$(ve,(function(e,t,r,n){return 1===arguments.length?be(e):new ve(e,t,r,null==n?1:n)}),B(H,{brighter(e){return e=null==e?G:Math.pow(G,e),new ve(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?W:Math.pow(W,e),new ve(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 ce(Se(e>=240?e-240:e+120,o,n),Se(e,o,n),Se(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ve(ye(this.h),xe(this.s),xe(this.l),fe(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=fe(this.opacity);return`${1===e?"hsl(":"hsla("}${ye(this.h)}, ${100*xe(this.s)}%, ${100*xe(this.l)}%${1===e?")":`, ${e})`}`}}));const Ee=Math.PI/180,Ce=180/Math.PI,we=.96422,Re=1,Ae=.82521,Ie=4/29,De=6/29,Le=3*De*De,Pe=De*De*De;function Me(e){if(e instanceof _e)return new _e(e.l,e.a,e.b,e.opacity);if(e instanceof Fe)return ze(e);e instanceof ce||(e=le(e));var t,r,n=qe(e.r),o=qe(e.g),i=qe(e.b),a=Te((.2225045*n+.7168786*o+.0606169*i)/Re);return n===o&&o===i?t=r=a:(t=Te((.4360747*n+.3850649*o+.1430804*i)/we),r=Te((.0139322*n+.0971045*o+.7141733*i)/Ae)),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 Te(e){return e>Pe?Math.pow(e,1/3):e/Le+Ie}function ke(e){return e>De?e*e*e:Le*(e-Ie)}function Oe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function qe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ne(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Fe)return new Fe(e.h,e.c,e.l,e.opacity);if(e instanceof _e||(e=Me(e)),0===e.a&&0===e.b)return new Fe(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ce;return new Fe(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Fe(e,t,r,null==n?1:n)}function Fe(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ze(e){if(isNaN(e.h))return new _e(e.l,0,0,e.opacity);var t=e.h*Ee;return new _e(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}$(_e,(function(e,t,r,n){return 1===arguments.length?Me(e):new _e(e,t,r,null==n?1:n)}),B(H,{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 ce(Oe(3.1338561*(t=we*ke(t))-1.6168667*(e=Re*ke(e))-.4906146*(r=Ae*ke(r))),Oe(-.9787684*t+1.9161415*e+.033454*r),Oe(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),$(Fe,Ne,B(H,{brighter(e){return new Fe(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Fe(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ze(this).rgb()}}));const je=e=>{if(e){const t=ue(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},$e=(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"),s=a&&window.getComputedStyle(a).backgroundColor,l=null==r?void 0:r(e),u=null==n?void 0:n(e),c=l||i||u,d=(e=>!!e&&0===ue(e).opacity)(c);return{tableColorFromTheme:l||"inherit",color:c,isDark:je(d?s:c),isTransparent:d}},Be=(e,n,o)=>{const i=t();return r((()=>({...i,background:$e(i,e,n,o)})),[i.name(),e,n,o])};var He=Object.prototype.hasOwnProperty,We=Object.prototype.toString,Ge=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,Ue=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===We.call(e)},Ye=function(e){if(!e||"[object Object]"!==We.call(e))return!1;var t,r=He.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&He.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||He.call(e,t)},Ke=function(e,t){Ge&&"__proto__"===t.name?Ge(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Xe=function(e,t){if("__proto__"===t){if(!He.call(e,t))return;if(Ve)return Ve(e,t).value}return e[t]};function Je(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ze(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Qe(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(r in t)n=Xe(s,r),s!==(o=Xe(t,r))&&(c&&o&&(Ye(o)||(i=Ue(o)))?(i?(i=!1,a=n&&Ue(n)?n:[]):a=n&&Ye(n)?n:{},Ke(s,{name:r,newValue:e(c,a,o)})):void 0!==o&&Ke(s,{name:r,newValue:o}));return s}));var et=1/.7,tt="\\s*([+-]?\\d+)\\s*",rt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ot=/^#([0-9a-f]{3,8})$/,it=new RegExp(`^rgb\\(${tt},${tt},${tt}\\)$`),at=new RegExp(`^rgb\\(${nt},${nt},${nt}\\)$`),st=new RegExp(`^rgba\\(${tt},${tt},${tt},${rt}\\)$`),lt=new RegExp(`^rgba\\(${nt},${nt},${nt},${rt}\\)$`),ut=new RegExp(`^hsl\\(${rt},${nt},${nt}\\)$`),ct=new RegExp(`^hsla\\(${rt},${nt},${nt},${rt}\\)$`),dt={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 pt(){return this.rgb().formatHex()}function ft(){return this.rgb().formatRgb()}function mt(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ot.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?ht(t):3===r?new yt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?gt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?gt(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=it.exec(e))?new yt(t[1],t[2],t[3],1):(t=at.exec(e))?new yt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=st.exec(e))?gt(t[1],t[2],t[3],t[4]):(t=lt.exec(e))?gt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ut.exec(e))?Rt(t[1],t[2]/100,t[3]/100,1):(t=ct.exec(e))?Rt(t[1],t[2]/100,t[3]/100,t[4]):dt.hasOwnProperty(e)?ht(dt[e]):"transparent"===e?new yt(NaN,NaN,NaN,0):null}function ht(e){return new yt(e>>16&255,e>>8&255,255&e,1)}function gt(e,t,r,n){return n<=0&&(e=t=r=NaN),new yt(e,t,r,n)}function bt(e){return e instanceof Qe||(e=mt(e)),e?new yt((e=e.rgb()).r,e.g,e.b,e.opacity):new yt}function vt(e,t,r,n){return 1===arguments.length?bt(e):new yt(e,t,r,null==n?1:n)}function yt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function xt(){return`#${wt(this.r)}${wt(this.g)}${wt(this.b)}`}function St(){const e=Et(this.opacity);return`${1===e?"rgb(":"rgba("}${Ct(this.r)}, ${Ct(this.g)}, ${Ct(this.b)}${1===e?")":`, ${e})`}`}function Et(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ct(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function wt(e){return((e=Ct(e))<16?"0":"")+e.toString(16)}function Rt(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new It(e,t,r,n)}function At(e){if(e instanceof It)return new It(e.h,e.s,e.l,e.opacity);if(e instanceof Qe||(e=mt(e)),!e)return new It;if(e instanceof It)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new It(a,s,l,e.opacity)}function It(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Dt(e){return(e=(e||0)%360)<0?e+360:e}function Lt(e){return Math.max(0,Math.min(1,e||0))}function Pt(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Je(Qe,mt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:pt,formatHex:pt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return At(this).formatHsl()},formatRgb:ft,toString:ft}),Je(yt,vt,Ze(Qe,{brighter(e){return e=null==e?et:Math.pow(et,e),new yt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new yt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yt(Ct(this.r),Ct(this.g),Ct(this.b),Et(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:xt,formatHex:xt,formatHex8:function(){return`#${wt(this.r)}${wt(this.g)}${wt(this.b)}${wt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:St,toString:St})),Je(It,(function(e,t,r,n){return 1===arguments.length?At(e):new It(e,t,r,null==n?1:n)}),Ze(Qe,{brighter(e){return e=null==e?et:Math.pow(et,e),new It(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new It(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 yt(Pt(e>=240?e-240:e+120,o,n),Pt(e,o,n),Pt(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new It(Dt(this.h),Lt(this.s),Lt(this.l),Et(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=Et(this.opacity);return`${1===e?"hsl(":"hsla("}${Dt(this.h)}, ${100*Lt(this.s)}%, ${100*Lt(this.l)}%${1===e?")":`, ${e})`}`}}));const Mt=Math.PI/180,_t=180/Math.PI,Tt=4/29,kt=6/29,Ot=3*kt*kt;function qt(e){if(e instanceof Nt)return new Nt(e.l,e.a,e.b,e.opacity);if(e instanceof Bt)return Ht(e);e instanceof yt||(e=bt(e));var t,r,n=$t(e.r),o=$t(e.g),i=$t(e.b),a=Ft((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Ft((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Ft((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Nt(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Nt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Ft(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ot+Tt}function zt(e){return e>kt?e*e*e:Ot*(e-Tt)}function jt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function $t(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Bt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Ht(e){if(isNaN(e.h))return new Nt(e.l,0,0,e.opacity);var t=e.h*Mt;return new Nt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Je(Nt,(function(e,t,r,n){return 1===arguments.length?qt(e):new Nt(e,t,r,null==n?1:n)}),Ze(Qe,{brighter(e){return new Nt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Nt(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 yt(jt(3.1338561*(t=.96422*zt(t))-1.6168667*(e=1*zt(e))-.4906146*(r=.82521*zt(r))),jt(-.9787684*t+1.9161415*e+.033454*r),jt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Je(Bt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Bt)return new Bt(e.h,e.c,e.l,e.opacity);if(e instanceof Nt||(e=qt(e)),0===e.a&&0===e.b)return new Bt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*_t;return new Bt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Bt(e,t,r,null==n?1:n)}),Ze(Qe,{brighter(e){return new Bt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Bt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ht(this).rgb()}}));var Wt,Gt=e=>()=>e;function Vt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Gt(isNaN(e)?t:e)}function Ut(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 Yt(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 Kt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Jt)):void 0===t&&(t=Xt);for(var r,n,o,i,a,s=new er(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new er(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Qt)}function Xt(e){return e.children}function Jt(e){return Array.isArray(e)?e[1]:null}function Zt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Qt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function er(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var r=function(e){return 1==(e=+e)?Vt:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Gt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=vt(e)).r,(t=vt(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Vt(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),er.prototype=Kt.prototype={constructor:er,count:function(){return this.eachAfter(Yt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Kt(this).eachBefore(Zt)},[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)}},Wt=function(e){
|
|
8
8
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
9
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},Wt({exports:{}});const tn=3;function nn(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 rn({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=tn}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=x((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=Ut(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=Ut((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=nn(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}function on(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function an(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var ln,sn=z;function un(e,t){const[n,r]=S(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}ln=sn.createRoot,sn.hydrateRoot;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})=>(x((()=>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);var pn=Object.prototype.hasOwnProperty,fn=Object.prototype.toString,mn=Object.defineProperty,hn=Object.getOwnPropertyDescriptor,gn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===fn.call(e)},bn=function(e){if(!e||"[object Object]"!==fn.call(e))return!1;var t,n=pn.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&pn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||pn.call(e,t)},vn=function(e,t){mn&&"__proto__"===t.name?mn(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},yn=function(e,t){if("__proto__"===t){if(!pn.call(e,t))return;if(hn)return hn(e,t).value}return e[t]};function xn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Sn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function En(){}!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=yn(l,n),l!==(o=yn(t,n))&&(c&&o&&(bn(o)||(i=gn(o)))?(i?(i=!1,a=r&&gn(r)?r:[]):a=r&&bn(r)?r:{},vn(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&vn(l,{name:n,newValue:o}));return l}));var Cn=1/.7,wn="\\s*([+-]?\\d+)\\s*",Rn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",An="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pn=/^#([0-9a-f]{3,8})$/,In=new RegExp(`^rgb\\(${wn},${wn},${wn}\\)$`),Dn=new RegExp(`^rgb\\(${An},${An},${An}\\)$`),Mn=new RegExp(`^rgba\\(${wn},${wn},${wn},${Rn}\\)$`),Ln=new RegExp(`^rgba\\(${An},${An},${An},${Rn}\\)$`),On=new RegExp(`^hsl\\(${Rn},${An},${An}\\)$`),Tn=new RegExp(`^hsla\\(${Rn},${An},${An},${Rn}\\)$`),kn={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 _n(){return this.rgb().formatHex()}function qn(){return this.rgb().formatRgb()}function Nn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Pn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Fn(t):3===n?new Hn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?zn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?zn(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=In.exec(e))?new Hn(t[1],t[2],t[3],1):(t=Dn.exec(e))?new Hn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Mn.exec(e))?zn(t[1],t[2],t[3],t[4]):(t=Ln.exec(e))?zn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=On.exec(e))?Yn(t[1],t[2]/100,t[3]/100,1):(t=Tn.exec(e))?Yn(t[1],t[2]/100,t[3]/100,t[4]):kn.hasOwnProperty(e)?Fn(kn[e]):"transparent"===e?new Hn(NaN,NaN,NaN,0):null}function Fn(e){return new Hn(e>>16&255,e>>8&255,255&e,1)}function zn(e,t,n,r){return r<=0&&(e=t=n=NaN),new Hn(e,t,n,r)}function jn(e){return e instanceof En||(e=Nn(e)),e?new Hn((e=e.rgb()).r,e.g,e.b,e.opacity):new Hn}function $n(e,t,n,r){return 1===arguments.length?jn(e):new Hn(e,t,n,null==r?1:r)}function Hn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Bn(){return`#${Un(this.r)}${Un(this.g)}${Un(this.b)}`}function Wn(){const e=Vn(this.opacity);return`${1===e?"rgb(":"rgba("}${Gn(this.r)}, ${Gn(this.g)}, ${Gn(this.b)}${1===e?")":`, ${e})`}`}function Vn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Gn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Un(e){return((e=Gn(e))<16?"0":"")+e.toString(16)}function Yn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Xn(e,t,n,r)}function Kn(e){if(e instanceof Xn)return new Xn(e.h,e.s,e.l,e.opacity);if(e instanceof En||(e=Nn(e)),!e)return new Xn;if(e instanceof Xn)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 Xn(a,l,s,e.opacity)}function Xn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Jn(e){return(e=(e||0)%360)<0?e+360:e}function Zn(e){return Math.max(0,Math.min(1,e||0))}function Qn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}xn(En,Nn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_n,formatHex:_n,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Kn(this).formatHsl()},formatRgb:qn,toString:qn}),xn(Hn,$n,Sn(En,{brighter(e){return e=null==e?Cn:Math.pow(Cn,e),new Hn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Hn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Hn(Gn(this.r),Gn(this.g),Gn(this.b),Vn(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:Bn,formatHex:Bn,formatHex8:function(){return`#${Un(this.r)}${Un(this.g)}${Un(this.b)}${Un(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Wn,toString:Wn})),xn(Xn,(function(e,t,n,r){return 1===arguments.length?Kn(e):new Xn(e,t,n,null==r?1:r)}),Sn(En,{brighter(e){return e=null==e?Cn:Math.pow(Cn,e),new Xn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Xn(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 Hn(Qn(e>=240?e-240:e+120,o,r),Qn(e,o,r),Qn(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Xn(Jn(this.h),Zn(this.s),Zn(this.l),Vn(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=Vn(this.opacity);return`${1===e?"hsl(":"hsla("}${Jn(this.h)}, ${100*Zn(this.s)}%, ${100*Zn(this.l)}%${1===e?")":`, ${e})`}`}}));const er=Math.PI/180,tr=180/Math.PI,nr=4/29,rr=6/29,or=3*rr*rr;function ir(e){if(e instanceof ar)return new ar(e.l,e.a,e.b,e.opacity);if(e instanceof dr)return pr(e);e instanceof Hn||(e=jn(e));var t,n,r=cr(e.r),o=cr(e.g),i=cr(e.b),a=lr((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=lr((.4360747*r+.3850649*o+.1430804*i)/.96422),n=lr((.0139322*r+.0971045*o+.7141733*i)/.82521)),new ar(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ar(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function lr(e){return e>.008856451679035631?Math.pow(e,1/3):e/or+nr}function sr(e){return e>rr?e*e*e:or*(e-nr)}function ur(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function cr(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function dr(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function pr(e){if(isNaN(e.h))return new ar(e.l,0,0,e.opacity);var t=e.h*er;return new ar(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}xn(ar,(function(e,t,n,r){return 1===arguments.length?ir(e):new ar(e,t,n,null==r?1:r)}),Sn(En,{brighter(e){return new ar(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ar(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 Hn(ur(3.1338561*(t=.96422*sr(t))-1.6168667*(e=1*sr(e))-.4906146*(n=.82521*sr(n))),ur(-.9787684*t+1.9161415*e+.033454*n),ur(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),xn(dr,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof dr)return new dr(e.h,e.c,e.l,e.opacity);if(e instanceof ar||(e=ir(e)),0===e.a&&0===e.b)return new dr(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*tr;return new dr(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new dr(e,t,n,null==r?1:r)}),Sn(En,{brighter(e){return new dr(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new dr(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return pr(this).rgb()}}));var fr=e=>()=>e;function mr(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):fr(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?mr: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):fr(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=$n(e)).r,(t=$n(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=mr(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 hr,gr=["__proto__","constructor"];function br(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!gr.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 vr(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 yr(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Sr)):void 0===t&&(t=xr);for(var n,r,o,i,a,l=new wr(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 wr(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Cr)}function xr(e){return e.children}function Sr(e){return Array.isArray(e)?e[1]:null}function Er(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Cr(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function wr(e){this.data=e,this.depth=this.height=0,this.parent=null}wr.prototype=yr.prototype={constructor:wr,count:function(){return this.eachAfter(vr)},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 yr(this).eachBefore(Er)},[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)}},hr=function(e){
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),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))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(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}},Wt({exports:{}});const tr=3;function rr(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function nr({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=tr}=null!=o?o:{},{estimateWidth:a,measureText:s,estimateLineCount:l}=x((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=Ut(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=Ut((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=rr(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}function or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ir(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var ar,sr=z;function lr(e,t){const[r,n]=S(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}ar=sr.createRoot,sr.hydrateRoot;var ur={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 cr=({translator:e})=>(x((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(ur).forEach((t=>{e.add(ur[t])}))}}(e)),[e]),e),dr=document.createElement("textarea");function pr(e){dr.value=e,document.body.appendChild(dr),dr.select(),dr.setSelectionRange(0,dr.value.length),document.execCommand("copy"),document.body.removeChild(dr)}dr.style.position="absolute",dr.style.left="-9999px",dr.setAttribute("readonly","");const fr=e=>{var t,r;const n=null===(t=e.querySelector(".sn-table-cell-text"))||void 0===t?void 0:t.textContent;n&&(null!==(r=navigator.clipboard)&&void 0!==r&&r.writeText?navigator.clipboard.writeText(n).catch((()=>pr(n))):pr(n))};var mr=Object.prototype.hasOwnProperty,hr=Object.prototype.toString,gr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,vr=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===hr.call(e)},yr=function(e){if(!e||"[object Object]"!==hr.call(e))return!1;var t,r=mr.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&mr.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||mr.call(e,t)},xr=function(e,t){gr&&"__proto__"===t.name?gr(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Sr=function(e,t){if("__proto__"===t){if(!mr.call(e,t))return;if(br)return br(e,t).value}return e[t]};function Er(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Cr(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function wr(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(r in t)n=Sr(s,r),s!==(o=Sr(t,r))&&(c&&o&&(yr(o)||(i=vr(o)))?(i?(i=!1,a=n&&vr(n)?n:[]):a=n&&yr(n)?n:{},xr(s,{name:r,newValue:e(c,a,o)})):void 0!==o&&xr(s,{name:r,newValue:o}));return s}));var Rr=1/.7,Ar="\\s*([+-]?\\d+)\\s*",Ir="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Lr=/^#([0-9a-f]{3,8})$/,Pr=new RegExp(`^rgb\\(${Ar},${Ar},${Ar}\\)$`),Mr=new RegExp(`^rgb\\(${Dr},${Dr},${Dr}\\)$`),_r=new RegExp(`^rgba\\(${Ar},${Ar},${Ar},${Ir}\\)$`),Tr=new RegExp(`^rgba\\(${Dr},${Dr},${Dr},${Ir}\\)$`),kr=new RegExp(`^hsl\\(${Ir},${Dr},${Dr}\\)$`),Or=new RegExp(`^hsla\\(${Ir},${Dr},${Dr},${Ir}\\)$`),qr={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 Nr(){return this.rgb().formatHex()}function Fr(){return this.rgb().formatRgb()}function zr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Lr.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?jr(t):3===r?new Wr(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?$r(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?$r(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=Pr.exec(e))?new Wr(t[1],t[2],t[3],1):(t=Mr.exec(e))?new Wr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_r.exec(e))?$r(t[1],t[2],t[3],t[4]):(t=Tr.exec(e))?$r(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=kr.exec(e))?Xr(t[1],t[2]/100,t[3]/100,1):(t=Or.exec(e))?Xr(t[1],t[2]/100,t[3]/100,t[4]):qr.hasOwnProperty(e)?jr(qr[e]):"transparent"===e?new Wr(NaN,NaN,NaN,0):null}function jr(e){return new Wr(e>>16&255,e>>8&255,255&e,1)}function $r(e,t,r,n){return n<=0&&(e=t=r=NaN),new Wr(e,t,r,n)}function Br(e){return e instanceof wr||(e=zr(e)),e?new Wr((e=e.rgb()).r,e.g,e.b,e.opacity):new Wr}function Hr(e,t,r,n){return 1===arguments.length?Br(e):new Wr(e,t,r,null==n?1:n)}function Wr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Gr(){return`#${Kr(this.r)}${Kr(this.g)}${Kr(this.b)}`}function Vr(){const e=Ur(this.opacity);return`${1===e?"rgb(":"rgba("}${Yr(this.r)}, ${Yr(this.g)}, ${Yr(this.b)}${1===e?")":`, ${e})`}`}function Ur(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Kr(e){return((e=Yr(e))<16?"0":"")+e.toString(16)}function Xr(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Zr(e,t,r,n)}function Jr(e){if(e instanceof Zr)return new Zr(e.h,e.s,e.l,e.opacity);if(e instanceof wr||(e=zr(e)),!e)return new Zr;if(e instanceof Zr)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Zr(a,s,l,e.opacity)}function Zr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Qr(e){return(e=(e||0)%360)<0?e+360:e}function en(e){return Math.max(0,Math.min(1,e||0))}function tn(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Er(wr,zr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Nr,formatHex:Nr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Jr(this).formatHsl()},formatRgb:Fr,toString:Fr}),Er(Wr,Hr,Cr(wr,{brighter(e){return e=null==e?Rr:Math.pow(Rr,e),new Wr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Wr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Wr(Yr(this.r),Yr(this.g),Yr(this.b),Ur(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:Gr,formatHex:Gr,formatHex8:function(){return`#${Kr(this.r)}${Kr(this.g)}${Kr(this.b)}${Kr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Vr,toString:Vr})),Er(Zr,(function(e,t,r,n){return 1===arguments.length?Jr(e):new Zr(e,t,r,null==n?1:n)}),Cr(wr,{brighter(e){return e=null==e?Rr:Math.pow(Rr,e),new Zr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Zr(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 Wr(tn(e>=240?e-240:e+120,o,n),tn(e,o,n),tn(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Zr(Qr(this.h),en(this.s),en(this.l),Ur(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=Ur(this.opacity);return`${1===e?"hsl(":"hsla("}${Qr(this.h)}, ${100*en(this.s)}%, ${100*en(this.l)}%${1===e?")":`, ${e})`}`}}));const rn=Math.PI/180,nn=180/Math.PI,on=4/29,an=6/29,sn=3*an*an;function ln(e){if(e instanceof un)return new un(e.l,e.a,e.b,e.opacity);if(e instanceof mn)return hn(e);e instanceof Wr||(e=Br(e));var t,r,n=fn(e.r),o=fn(e.g),i=fn(e.b),a=cn((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=cn((.4360747*n+.3850649*o+.1430804*i)/.96422),r=cn((.0139322*n+.0971045*o+.7141733*i)/.82521)),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>.008856451679035631?Math.pow(e,1/3):e/sn+on}function dn(e){return e>an?e*e*e:sn*(e-on)}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){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function hn(e){if(isNaN(e.h))return new un(e.l,0,0,e.opacity);var t=e.h*rn;return new un(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Er(un,(function(e,t,r,n){return 1===arguments.length?ln(e):new un(e,t,r,null==n?1:n)}),Cr(wr,{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 Wr(pn(3.1338561*(t=.96422*dn(t))-1.6168667*(e=1*dn(e))-.4906146*(r=.82521*dn(r))),pn(-.9787684*t+1.9161415*e+.033454*r),pn(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Er(mn,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof mn)return new mn(e.h,e.c,e.l,e.opacity);if(e instanceof un||(e=ln(e)),0===e.a&&0===e.b)return new mn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*nn;return new mn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new mn(e,t,r,null==n?1:n)}),Cr(wr,{brighter(e){return new mn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new mn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return hn(this).rgb()}}));var gn=e=>()=>e;function bn(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):gn(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?bn: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):gn(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Hr(e)).r,(t=Hr(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=bn(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 vn="center",yn="bottom";[{key:"NoDataExist",alignment:vn,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:vn,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:vn,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:vn},{key:"DataRangeIncludingZero",alignment:yn},{key:"LimitedData",alignment:yn},{key:"NegativeOrZeroValues",alignment:yn}].reduce((function(e,t){return e[t.key]=t,e}),{});var xn,Sn=["__proto__","constructor"];function En(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Sn.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function Cn(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 wn(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=An)):void 0===t&&(t=Rn);for(var r,n,o,i,a,s=new Ln(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new Ln(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Dn)}function Rn(e){return e.children}function An(e){return Array.isArray(e)?e[1]:null}function In(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Dn(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ln(e){this.data=e,this.depth=this.height=0,this.parent=null}Ln.prototype=wn.prototype={constructor:Ln,count:function(){return this.eachAfter(Cn)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return wn(this).eachBefore(In)},[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)}},xn=function(e){
|
|
10
10
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
11
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},hr({exports:{}});var Rr={exports:{}};self,Rr.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:()=>Le});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),A={},P=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function D(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function L(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=D(e[n||t])?i:e[t],e=e[n||t]}})),e}function O(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){O(e[r],t[r])||(n=!1)})),n);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!O(e[r],t[r]))return!1;return!0}return e===t}A.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);O(i,a)||M(t,o)||(D(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(A.generate(a,i,l)):P(i)&&P(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&D(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(O(t,o))return r;if(!D(t[0])&&D(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(A.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){D(t[o])&&!M(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},A.apply=function(e,t){t.forEach((function(t){var n,r,o=L(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!M(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=L(e,t.from);P(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,k=function(e,n,r){if(!e)return Promise.resolve();var o=T.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===_)return n[r]}function N(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===_)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=q(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=q(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var V="timeSeriesDecomposition";function G(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===V)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===V)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(V))return!1;var i=G(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){Pe.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&n(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=Pe;function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var Me={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Le={modifiers:Me,apply:Te,applyModifiers:ke,cleanUpMeasure:_e,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Me[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Me[e]&&Me[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Oe={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Oe[n.id]=Oe[n.id]||{isFirstTime:!0};var u=Oe[n.id].isFirstTime;if(Oe[n.id].isFirstTime=!1,r&&"object"===De(r))return ke({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Oe[n.id].lastReloadTime;if(Oe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return 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:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var o=Qe(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===De(e)&&!e.disabled){if(n++,"object"!==De(Me[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=Me[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),ke({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===De(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function ke(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!qe({measures:n,properties:r}))return n.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===De(e)&&!e.disabled){if(l++,"object"!==De(Me[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)");Me[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:Me[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 Me[r.type].updateModifier&&Me[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Me[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),Be(n)):_e(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Me[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:n,layout:r})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Me[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||Me[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!Me[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,n=e.properties,r=e.layout;return!Ve(t)&&Ue({modifiers:je(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==De(e)||e.disabled||!Me[e.type])&&(void 0===o[e.type]&&(o[e.type]=Me[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):k(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Me[e.type]&&Me[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ue({modifiers:r,properties:e})){var i=Ve(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>He});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var A=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const D=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},M=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},L=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},O=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},_=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,A),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,A),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},B=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const V={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?O():w,A=s.defaultMeasure,P=void 0===A?T():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:P}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),M("qMaxStackedCells",b,v),M("qNoOfLeftDims",b,v),L("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),L("qMode",b,v,"S"),L("qReductionMode",b,v,"N"),L("qSortbyYValue",b,v),L("qIndentMode",b,v),L("qShowTotalsAbove",b,v),D(g,t,r),h.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:I}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var 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}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=V.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=V.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Ie="measures",De="qDef.conditionalColoring";const Me={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:Pe,arrayName:Ie,itemPath:De})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:De,arrayName:Ie,quarantineName:Pe})}};var Le="qHyperCubeDef.qMeasures",Oe="measures",Te="qHyperCubeDef.qDimensions",ke="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:je,arrayName:Oe,itemPath:ze}),we({properties:e,arrayPath:Te,quarantineName:je,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Le,quarantineName:je,arrayName:Oe,itemPath:ze}),Re({properties:e,arrayPath:Te,quarantineName:je,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:_e,quarantineName:je,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:je,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})}},He={hypercube:V,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Me,conditionalShow:$e}})(),r.default})();var Ar=on(Rr.exports);const Pr="12px",Ir="nebula-table-utils-head-menu-button";let Dr=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 Mr="nebula-table-utils-column-adjuster",Lr=`${Mr}-border`;let Or=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}({}),Tr=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const kr="qHyperCubeDef.qDimensions",_r="dimensions",qr="qDef.representation",Nr="tableRepresentation",Fr=(e,t,n)=>{const r=e.length+t.length,o=((null==n?void 0:n.length)===r?n:Array.from(Array(r).keys())).map((n=>((e,t,n)=>{var r;const o=t.length,i=e<o?t[e]:n[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(r=a.pixels)&&void 0!==r?r:Or.PixelsDefault:-1})(n,e,t)));return o},zr=({propertyTree:e,hyperCubePath:t})=>{const n=Ar.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:r,qDimensions:o,qMeasures:i}}=n.properties,a=Fr(o,i,r);return br(n,"properties.qHyperCubeDef",{...n.properties.qHyperCubeDef,columnWidths:a}),Ar.quarantineProperty(n.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),Ar.quarantineProperty(n.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),Ar.quarantineProperty(n.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{Ar.quarantineArrayProp({properties:e,arrayPath:kr,itemPath:qr,arrayName:_r,quarantineName:Nr})})(n.properties),n};const jr=(e,t,n,r)=>{let o=t;r&&(o=t-r);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){const e=n[t];i.qDef.columnWidth=-1===e?{type:Tr.FitToContent}:{type:Tr.Pixels,pixels:e}}return i},$r=({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o,viewDataMode:i})=>{const a=Ar.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:r,extension:n});Ar.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{Ar.unquarantineArrayProp({properties:e,arrayPath:kr,itemPath:qr,arrayName:_r,quarantineName:Nr})})(a.qProperty);const{qHyperCubeDef:{qDimensions:l,qMeasures:s,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,n,r)=>{const o=e.length,i=o+t.length,a=(null==n?void 0:n.length)===i?n:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>jr(e,t,r))),measures:a.filter((e=>e>=o)).map((e=>jr(t,e,r,o)))}})(l,s,u,c);return Array.isArray(c)&&c.length>0&&(br(a,"qProperty.qHyperCubeDef.qDimensions",d),br(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(br(a,"qProperty.totals.show",!1),br(a,"qProperty.usePagination",!0)),Ar.conditionalShow.unquarantine(a.qProperty),a};var Hr={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function Br(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Wr(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}function Vr(e){return e>0?0:1}function Gr(e){return e.translator.get("Visualizations.Descriptions.Column")}function Ur(e){return{measures:{min:Vr,max:1e3,description:()=>Gr(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;Br(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties;Wr(o,(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r)}},dimensions:{min:Vr,max:1e3,description:()=>Gr(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return Br(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;Wr(o,r)}}}}var Yr={};!function(e){(()=>{var t={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(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](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:()=>Le});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),A={},P=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function D(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function L(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=D(e[n||t])?i:e[t],e=e[n||t]}})),e}function O(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){O(e[r],t[r])||(n=!1)})),n);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!O(e[r],t[r]))return!1;return!0}return e===t}A.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);O(i,a)||M(t,o)||(D(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(A.generate(a,i,l)):P(i)&&P(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&D(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(O(t,o))return r;if(!D(t[0])&&D(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(A.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){D(t[o])&&!M(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},A.apply=function(e,t){t.forEach((function(t){var n,r,o=L(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!M(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=L(e,t.from);P(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,k=function(e,n,r){if(!e)return Promise.resolve();var o=T.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===_)return n[r]}function N(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===_)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=q(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=q(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var V="timeSeriesDecomposition";function G(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===V)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===V)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(V))return!1;var i=G(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){Pe.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&n(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=Pe;function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var Me={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Le={modifiers:Me,apply:Te,applyModifiers:ke,cleanUpMeasure:_e,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Me[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Me[e]&&Me[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Oe={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Oe[n.id]=Oe[n.id]||{isFirstTime:!0};var u=Oe[n.id].isFirstTime;if(Oe[n.id].isFirstTime=!1,r&&"object"===De(r))return ke({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Oe[n.id].lastReloadTime;if(Oe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.model,o=e.lastReloadTime;return i(r,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return 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:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var o=Qe(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===De(e)&&!e.disabled){if(n++,"object"!==De(Me[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=Me[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),ke({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===De(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function ke(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!qe({measures:n,properties:r}))return n.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===De(e)&&!e.disabled){if(l++,"object"!==De(Me[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)");Me[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:Me[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 Me[r.type].updateModifier&&Me[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Me[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),Be(n)):_e(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Me[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:n,layout:r})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Me[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||Me[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!Me[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,n=e.properties,r=e.layout;return!Ve(t)&&Ue({modifiers:je(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==De(e)||e.disabled||!Me[e.type])&&(void 0===o[e.type]&&(o[e.type]=Me[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):k(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Me[e.type]&&Me[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ue({modifiers:r,properties:e})){var i=Ve(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),e.default=o.default,Object.defineProperty(e,"__esModule",{value:!0})})()}(Yr);var Kr=on(Yr);const Xr={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},Jr={representationType:{ref:"qDef.representation.type",type:"string",component:"dropdown",translation:"Object.Table.Representation",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}],defaultValue:"text"},representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}},Zr=e=>{var t,n,r,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!Kr.hasActiveModifiers({measures:[e],properties:t.properties})||Kr.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(r=e.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"totals"))}},Qr={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Tr.Auto,translation:"Common.Auto"},{value:Tr.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Tr.Pixels,translation:"Object.Table.Column.Pixels"},{value:Tr.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Tr.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Tr.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(Or.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Tr.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(Or.PercentageMax,e.qDef.columnWidth.percentage))}}},eo={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellColoring:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1}]},...Xr,...Qr},to={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},no=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:Zr(e)}),ro=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:to},presentation:{type:"items",translation:"properties.presentation",items:{...eo,...e.flags.isEnabled("CLIENT_IM_5715_LINKS")?Jr:void 0}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:no(e)},presentation:{type:"items",translation:"properties.presentation",items:eo}}}}}),oo={type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},hoverEffectSection:{translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]},io=e=>{var t,n;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals"))}},ao={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},lo=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[oo,io(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...ao}}),so={uses:"sorting"},uo={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},co=e=>({type:"items",component:"accordion",items:{data:ro(e),sorting:so,addOns:uo,settings:lo(e)}});function po(e){return{definition:co(e),exploration:Hr,data:Ur(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0},importProperties(e,t,n,r){const o={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return $r({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o})},exportProperties:(e,t)=>zr({propertyTree:e,hyperCubePath:t})}}const fo=async e=>{var t;const n=null===(t=e.querySelector(".sn-table-cell-text"))||void 0===t?void 0:t.textContent;try{n&&await navigator.clipboard.writeText(String(n))}catch(e){console.log(e)}};const mo=(e,t)=>n((()=>((e,t)=>(n,{isDim:r,colIdx:o})=>{const i=r?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,l=e[r?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,s=l?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...l,...n})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(n)};null==t||t.applyPatches([s],!0)})(e,t)),[e,t]);let ho;const go=new Uint8Array(16);function bo(){if(!ho&&(ho="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ho))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ho(go)}const vo=[];for(let e=0;e<256;++e)vo.push((e+256).toString(16).slice(1));var yo={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function xo(e,t,n){if(yo.randomUUID&&!t&&!e)return yo.randomUUID();const r=(e=e||{}).random||(e.rng||bo)();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 vo[e[t+0]]+vo[e[t+1]]+vo[e[t+2]]+vo[e[t+3]]+"-"+vo[e[t+4]]+vo[e[t+5]]+"-"+vo[e[t+6]]+vo[e[t+7]]+"-"+vo[e[t+8]]+vo[e[t+9]]+"-"+vo[e[t+10]]+vo[e[t+11]]+vo[e[t+12]]+vo[e[t+13]]+vo[e[t+14]]+vo[e[t+15]]}(r)}const So=({qLibraryId:e,cId:t})=>{var n,r,o,i;return null!==(n=null!=e?e:t)&&void 0!==n?n:null!==(r=null===(o=crypto)||void 0===o||null===(i=o.randomUUID)||void 0===i?void 0:i.call(o))&&void 0!==r?r:xo()};function Eo(e){return Eo="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},Eo(e)}function Co(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function Ro(e,t,n){return t&&wo(e.prototype,t),n&&wo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ao(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Io(e,t)}function Po(e){return Po=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Po(e)}function Io(e,t){return Io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Io(e,t)}function Do(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Mo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Po(e);if(t){var o=Po(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Do(this,n)}}function Lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var To={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:ko(e),value:ko(t),useEqualSign:n}}(n,o,i))}})),t}};function ko(e){try{return decodeURIComponent(e)}catch(t){return e}}function _o(e){if(!(this instanceof _o))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return To.fromSearchString(t.search)}}})}function qo(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}_o.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},_o.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=qo((t=e[r]).key),t.value?n+="=".concat(qo(t.value)):n+=t.useEqualSign?"=":"";return n};var No,Fo=function(){function e(t){Co(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return Ro(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),zo=function(){function e(){Co(this,e)}return Ro(e,[{key:"decode",value:function(e){for(var t,n="",r=new Fo(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),jo=function(e){return e>=0&&e<=1114111},$o=function(e){return e.match(/[\s]/)},Ho=function(e){Ao(n,e);var t=Mo(n);function n(){return Co(this,n),t.apply(this,arguments)}return Ro(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!$o(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return jo(a)?String.fromCharCode(a):"�"}}]),n}(zo),Bo=function(){function e(t,n){Co(this,e),this._key=t,this._value=n}return Ro(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),Wo=function(){function e(){Co(this,e)}return Ro(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return Bo.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return Bo.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||Bo.newInstanceIfNeeded(e,t,this._value)}}]),e}(),Vo=function(){function e(){Co(this,e),this.clear()}return Ro(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new Wo);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),Go=function(){var e,t,n,r=[],o=[],i=new Vo;for(e in r["""]="34",r["&"]="38",r["<"]="60",r[">"]="62",r[" "]="160",r["¡"]="161",r["¢"]="162",r["£"]="163",r["¤"]="164",r["¥"]="165",r["¦"]="166",r["§"]="167",r["¨"]="168",r["©"]="169",r["ª"]="170",r["«"]="171",r["¬"]="172",r["­"]="173",r["®"]="174",r["¯"]="175",r["°"]="176",r["±"]="177",r["²"]="178",r["³"]="179",r["´"]="180",r["µ"]="181",r["¶"]="182",r["·"]="183",r["¸"]="184",r["¹"]="185",r["º"]="186",r["»"]="187",r["¼"]="188",r["½"]="189",r["¾"]="190",r["¿"]="191",r["À"]="192",r["Á"]="193",r["Â"]="194",r["Ã"]="195",r["Ä"]="196",r["Å"]="197",r["Æ"]="198",r["Ç"]="199",r["È"]="200",r["É"]="201",r["Ê"]="202",r["Ë"]="203",r["Ì"]="204",r["Í"]="205",r["Î"]="206",r["Ï"]="207",r["Ð"]="208",r["Ñ"]="209",r["Ò"]="210",r["Ó"]="211",r["Ô"]="212",r["Õ"]="213",r["Ö"]="214",r["×"]="215",r["Ø"]="216",r["Ù"]="217",r["Ú"]="218",r["Û"]="219",r["Ü"]="220",r["Ý"]="221",r["Þ"]="222",r["ß"]="223",r["à"]="224",r["á"]="225",r["â"]="226",r["ã"]="227",r["ä"]="228",r["å"]="229",r["æ"]="230",r["ç"]="231",r["è"]="232",r["é"]="233",r["ê"]="234",r["ë"]="235",r["ì"]="236",r["í"]="237",r["î"]="238",r["ï"]="239",r["ð"]="240",r["ñ"]="241",r["ò"]="242",r["ó"]="243",r["ô"]="244",r["õ"]="245",r["ö"]="246",r["÷"]="247",r["ø"]="248",r["ù"]="249",r["ú"]="250",r["û"]="251",r["ü"]="252",r["ý"]="253",r["þ"]="254",r["ÿ"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["¬in"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),Uo=function(e){Ao(n,e);var t=Mo(n);function n(){return Co(this,n),t.apply(this,arguments)}return Ro(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,Go.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=Go.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&jo(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&jo(r)?String.fromCharCode(r):null}}]),n}(zo),Yo=function(e){Ao(n,e);var t=Mo(n);function n(){return Co(this,n),t.apply(this,arguments)}return Ro(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),jo(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(zo),Ko=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(No=document.createElement("div"));var Xo=Array.prototype.indexOf,Jo=[",",".","_"," "],Zo={default:[",",".","-","_"," "]},Qo={width:["%"],height:["%"]},ei={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},ti={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":ei.image,"background-color":ei.color,"border-color":ei.color,"border-image":ei.image,color:ei.color,icon:ei.image,"list-style-image":ei.image,"outline-color":ei.color},ni={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function ri(e,t,n){var r;if(t){if(Xo)return Xo.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function oi(e){if(null==e)return"";var t,n=document.createTextNode(e);return No.appendChild(n),t=No.innerHTML,No.removeChild(n),t}function ii(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=li(e).toLowerCase(),t=li(t),ri(e,ni.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<ni.attr_val;i++)if(t.toLowerCase().match(ni.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=Qo[e])||(r=Zo.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&ri(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function ai(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=li(e).toLowerCase(),t=li(t),ri(e,ni.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<ni.css_val.length;r++)if(t.toLowerCase().indexOf(ni.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=ti[e])||(o=ei.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&ri(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function li(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new Uo,new Yo,new Ho];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var si=[],ui=0;ui<255;ui++)si[ui]=ui>=48&&ui<=57||ui>=65&&ui<=90||ui>=97&&ui<=122?null:ui.toString(16);var ci=function(e){return oi(e.unsafe)},di=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=ai(t,n[t],!0),i+=ai(t,n[t],!0),o[t]=r[t]);return e.map?o:i},pi=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=ii(i,t[i],!0),o+=ii(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function fi(e,t){throw new Error(t)}var mi={canonicalize:li,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===Eo(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?ci(e):"css"===e.context?(null!=e.map&&"object"!==Eo(e.map)&&fi(this,"Invalid parameter type"),di(e)):"attr"===e.context?(null!=e.map&&"object"!==Eo(e.map)&&fi(this,"Invalid parameter type"),pi(e)):void fi(this,"Invalid parameter type")},encodeForAttr:ii,encodeForAttr2:function(e){return ii("nonsens",e,!0)},encodeForCSS:ai,encodeForHref:function(e){li(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new _o(e),n=_o.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+_o.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=Jo),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),ri(o,t)>=0||null==si[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:oi,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=li(t).toLowerCase():fi(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=Lo(null!==(t=Ko.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const hi=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},gi=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}};let bi=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),vi=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const yi=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&mi.isSafeDataURL(t)?{type:bi.Image,url:t,text:e,imageSize:n,resolvedImagePosition:gi(r)}:{type:bi.Text,url:void 0,text:e},xi=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===vi.Attribute||null==n?void 0:n.urlLabel},Si=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:bi.Link,url:mi.encodeForHref(t),text:e}}catch(t){return{type:bi.Text,url:void 0,text:e}}},Ei=(e,t,n,r,o,i)=>{switch((e=>{switch(null==e?void 0:e.type){case"url":return bi.Link;case"image":return bi.Image;default:return bi.Text}})(t)){case bi.Image:return((e,t,n,r)=>{const{imageSize:o,imagePosition:i,imageSetting:a,imageLabel:l}=null!=t?t:{};if("url"===a){var s;const t=e.qText,r=null===(s=hi(null!=n?n:-1,e))||void 0===s?void 0:s.qText;return yi({text:t,url:r,imageSize:o,imagePosition:i})}if("label"===a){var u,c;const t=e.qText;if(-1===r||void 0===r)return yi({text:l||t||"",url:t,imageSize:o,imagePosition:i});const n=null!==(u=null===(c=hi(r,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return yi({text:n,url:t,imageSize:o,imagePosition:i})}return{type:bi.Text,url:void 0,text:e.qText}})(e,t,o,i);case bi.Link:return((e,t,n,r)=>{const{urlPosition:o}=null!=t?t:{};if(o===vi.Attribute){const r=xi(n,e,t),o=e.qText||r||"";return Si({text:o,url:r})}if(o===vi.Dimension){const n=xi(r,e,t)||e.qText;return Si({text:n,url:e.qText})}return{type:bi.Text,url:void 0,text:e.qText}})(e,t,n,r);default:return{type:bi.Text,url:void 0,text:e.qText}}},Ci=e=>!Number.isNaN(+e),wi=e=>!(!e.qNum&&0!==e.qNum||!Ci(e.qNum)),Ri=1e4;function Ai(e,t){return[...t].reverse().find((t=>t*e<=Ri))||Math.floor(Ri/e)}function Pi(e,t){var n,r;if(null!==(n=t.viewState)&&void 0!==n&&n.skipTotals)return{atTop:!1,atBottom:!1};const[o,i,a,l,s]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(r=e.totals)||void 0===r?void 0:r.show,e.totals.position];if(a&&(o&&i||!l&&!o)){if(l||"top"===s)return{atTop:!0,atBottom:!1};if(!l&&"bottom"===s)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function Ii(e,t,n,r){var o,i,a;return t?0===n&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[r])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function Di(e,t){const n=e.qHyperCube.qGrandTotalRow[t];return Ci(n.qNum)}function Mi(e,t,n){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}}const Li=(e,t)=>"auto"!==t?t:wi(e)?"right":"left";const Oi=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:n,qMeasureInfo:r}}=e,o=n.length+r.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:l}=((e,t,n)=>{const r=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<r,{qError:s}=l?t[e]:n[e-r],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-r-a,!u})),visibleColumnIndexes:o}})(i,n,r);return a.map(((t,n)=>function(e,t,n,r){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,l=o.length,s=t<l,u=s?o[t]:i[t-l],c=t===a[0];let d,p,f=0,m="",h=!1,g=-1;if(s){const e=u;f=e.qGroupPos,m=e.qGroupFieldDefs[f],h=e.qLocked,g=r,({qDimensionType:d,representation:p}=e)}const{qFallbackTitle:b,textAlign:v,qAttrExprInfo:y,qSortIndicator:x,qReverseSort:S,qApprMaxGlyphCount:E,columnWidth:C,qLibraryId:w}=u;return{isDim:s,isLocked:h,fieldId:m,colIdx:t,qLibraryId:w,pageColIdx:n,qApprMaxGlyphCount:E,qReverseSort:S,columnWidth:C,selectionColIdx:g,isActivelySorted:c,id:So(u),label:b,qAttrExprInfoIDs:y.map((e=>e.id)),sortDirection:x&&"N"!==x?x:"A",totalInfo:Ii(e,s,n,r),...!s&&{isTotalNumeric:Di(e,r)},...Mi(v,d,s),representation:p}}(e,t,n,l[t])))};const Ti=(e,t)=>{var n;return!!(e.snapshotData||null!==(n=t.viewState)&&void 0!==n&&n.visibleHeight)},ki=(e,t)=>{var n;return void 0!==(null===(n=t.viewState)||void 0===n?void 0:n.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Ti(e,t)};var _i={exports:{}},qi={},Ni=E,Fi=Symbol.for("react.element"),zi=Symbol.for("react.fragment"),ji=Object.prototype.hasOwnProperty,$i=Ni.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hi={key:!0,ref:!0,__self:!0,__source:!0};function Bi(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)ji.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:Fi,type:e,key:i,ref:a,props:o,_owner:$i.current}}qi.Fragment=zi,qi.jsx=Bi,qi.jsxs=Bi,_i.exports=qi;var Wi=_i.exports;function Vi(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Gi=Object.freeze({__proto__:null,default:Vi}),Ui="$$material";function Yi(){return Yi=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},Yi.apply(this,arguments)}function Ki(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Xi=function(){return Xi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xi.apply(this,arguments)};function Ji(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Zi=on((function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),Qi="-ms-",ea="-moz-",ta="-webkit-",na="comm",ra="rule",oa="decl",ia="@media",aa="@import",la="@supports",sa="@keyframes",ua="@layer",ca=Math.abs,da=String.fromCharCode,pa=Object.assign;function fa(e){return e.trim()}function ma(e,t){return(e=t.exec(e))?e[0]:e}function ha(e,t,n){return e.replace(t,n)}function ga(e,t,n){return e.indexOf(t,n)}function ba(e,t){return 0|e.charCodeAt(t)}function va(e,t,n){return e.slice(t,n)}function ya(e){return e.length}function xa(e){return e.length}function Sa(e,t){return t.push(e),e}function Ea(e,t){return e.filter((function(e){return!ma(e,t)}))}var Ca=1,wa=1,Ra=0,Aa=0,Pa=0,Ia="";function Da(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ca,column:wa,length:a,return:"",siblings:l}}function Ma(e,t){return pa(Da("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function La(e){for(;e.root;)e=Ma(e.root,{children:[e]});Sa(e,e.siblings)}function Oa(){return Pa=Aa>0?ba(Ia,--Aa):0,wa--,10===Pa&&(wa=1,Ca--),Pa}function Ta(){return Pa=Aa<Ra?ba(Ia,Aa++):0,wa++,10===Pa&&(wa=1,Ca++),Pa}function ka(){return ba(Ia,Aa)}function _a(){return Aa}function qa(e,t){return va(Ia,e,t)}function Na(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 Fa(e){return fa(qa(Aa-1,$a(91===e?e+2:40===e?e+1:e)))}function za(e){for(;(Pa=ka())&&Pa<33;)Ta();return Na(e)>2||Na(Pa)>3?"":" "}function ja(e,t){for(;--t&&Ta()&&!(Pa<48||Pa>102||Pa>57&&Pa<65||Pa>70&&Pa<97););return qa(e,_a()+(t<6&&32==ka()&&32==Ta()))}function $a(e){for(;Ta();)switch(Pa){case e:return Aa;case 34:case 39:34!==e&&39!==e&&$a(Pa);break;case 40:41===e&&$a(e);break;case 92:Ta()}return Aa}function Ha(e,t){for(;Ta()&&e+Pa!==57&&(e+Pa!==84||47!==ka()););return"/*"+qa(t,Aa-1)+"*"+da(47===e?e:Ta())}function Ba(e){for(;!Na(ka());)Ta();return qa(e,Aa)}function Wa(e){return function(e){return Ia="",e}(Va("",null,null,null,[""],e=function(e){return Ca=wa=1,Ra=ya(Ia=e),Aa=0,[]}(e),0,[0],e))}function Va(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=v,v=Ta()){case 40:if(108!=m&&58==ba(C,d-1)){-1!=ga(C+=ha(Fa(v),"&","&\f"),"&\f",ca(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Fa(v);break;case 9:case 10:case 13:case 32:C+=za(m);break;case 92:C+=ja(_a()-1,7);continue;case 47:switch(ka()){case 42:case 47:Sa(Ua(Ha(Ta(),_a()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=ya(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=ha(C,/\f/g,"")),f>0&&ya(C)-d&&Sa(f>32?Ya(C+";",r,n,d-1,s):Ya(ha(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Sa(E=Ga(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)Va(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===ba(C,3)?100:p){case 100:case 108:case 109:case 115:Va(e,E,E,r&&Sa(Ga(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:Va(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+ya(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Oa())continue;switch(C+=da(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(ya(C)-1)*b,b=1;break;case 64:45===ka()&&(C+=Fa(Ta())),p=ka(),c=d=ya(y=C+=Ba(_a())),v++;break;case 45:45===m&&2==ya(C)&&(h=0)}}return i}function Ga(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=xa(f),h=0,g=0,b=0;h<r;++h)for(var v=0,y=va(e,p+1,p=ca(g=a[h])),x=e;v<m;++v)(x=fa(g>0?f[v]+" "+y:ha(y,/&\f/g,f[v])))&&(s[b++]=x);return Da(e,t,n,0===o?ra:l,s,u,c,d)}function Ua(e,t,n,r){return Da(e,t,n,na,da(Pa),va(e,2,-2),0,r)}function Ya(e,t,n,r,o){return Da(e,t,n,oa,va(e,0,r),va(e,r+1,-1),r,o)}function Ka(e,t,n){switch(function(e,t){return 45^ba(e,0)?(((t<<2^ba(e,0))<<2^ba(e,1))<<2^ba(e,2))<<2^ba(e,3):0}(e,t)){case 5103:return ta+"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 ta+e+e;case 4789:return ea+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ta+e+ea+e+Qi+e+e;case 5936:switch(ba(e,t+11)){case 114:return ta+e+Qi+ha(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ta+e+Qi+ha(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ta+e+Qi+ha(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ta+e+Qi+e+e;case 6165:return ta+e+Qi+"flex-"+e+e;case 5187:return ta+e+ha(e,/(\w+).+(:[^]+)/,ta+"box-$1$2"+Qi+"flex-$1$2")+e;case 5443:return ta+e+Qi+"flex-item-"+ha(e,/flex-|-self/g,"")+(ma(e,/flex-|baseline/)?"":Qi+"grid-row-"+ha(e,/flex-|-self/g,""))+e;case 4675:return ta+e+Qi+"flex-line-pack"+ha(e,/align-content|flex-|-self/g,"")+e;case 5548:return ta+e+Qi+ha(e,"shrink","negative")+e;case 5292:return ta+e+Qi+ha(e,"basis","preferred-size")+e;case 6060:return ta+"box-"+ha(e,"-grow","")+ta+e+Qi+ha(e,"grow","positive")+e;case 4554:return ta+ha(e,/([^-])(transform)/g,"$1"+ta+"$2")+e;case 6187:return ha(ha(ha(e,/(zoom-|grab)/,ta+"$1"),/(image-set)/,ta+"$1"),e,"")+e;case 5495:case 3959:return ha(e,/(image-set\([^]*)/,ta+"$1$`$1");case 4968:return ha(ha(e,/(.+:)(flex-)?(.*)/,ta+"box-pack:$3"+Qi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ta+e+e;case 4200:if(!ma(e,/flex-|baseline/))return Qi+"grid-column-align"+va(e,t)+e;break;case 2592:case 3360:return Qi+ha(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,ma(e.props,/grid-\w+-end/)}))?~ga(e+(n=n[t].value),"span",0)?e:Qi+ha(e,"-start","")+e+Qi+"grid-row-span:"+(~ga(n,"span",0)?ma(n,/\d+/):+ma(n,/\d+/)-+ma(e,/\d+/))+";":Qi+ha(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return ma(e.props,/grid-\w+-start/)}))?e:Qi+ha(ha(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ha(e,/(.+)-inline(.+)/,ta+"$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(ya(e)-1-t>6)switch(ba(e,t+1)){case 109:if(45!==ba(e,t+4))break;case 102:return ha(e,/(.+:)(.+)-([^]+)/,"$1"+ta+"$2-$3$1"+ea+(108==ba(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ga(e,"stretch",0)?Ka(ha(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ha(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Qi+n+":"+r+l+(o?Qi+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===ba(e,t+6))return ha(e,":",":"+ta)+e;break;case 6444:switch(ba(e,45===ba(e,14)?18:11)){case 120:return ha(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ta+(45===ba(e,14)?"inline-":"")+"box$3$1"+ta+"$2$3$1"+Qi+"$2box$3")+e;case 100:return ha(e,":",":"+Qi)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ha(e,"scroll-","scroll-snap-")+e}return e}function Xa(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ja(e,t,n,r){switch(e.type){case ua:if(e.children.length)break;case aa:case oa:return e.return=e.return||e.value;case na:return"";case sa:return e.return=e.value+"{"+Xa(e.children,r)+"}";case ra:if(!ya(e.value=e.props.join(",")))return""}return ya(n=Xa(e.children,r))?e.return=e.value+"{"+n+"}":""}function Za(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case oa:return void(e.return=Ka(e.value,e.length,n));case sa:return Xa([Ma(e,{value:ha(e.value,"@","@"+ta)})],r);case ra:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(ma(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":La(Ma(e,{props:[ha(t,/:(read-\w+)/,":"+ea+"$1")]})),La(Ma(e,{props:[t]})),pa(e,{props:Ea(n,r)});break;case"::placeholder":La(Ma(e,{props:[ha(t,/:(plac\w+)/,":"+ta+"input-$1")]})),La(Ma(e,{props:[ha(t,/:(plac\w+)/,":"+ea+"$1")]})),La(Ma(e,{props:[ha(t,/:(plac\w+)/,Qi+"input-$1")]})),La(Ma(e,{props:[t]})),pa(e,{props:Ea(n,r)})}return""}))}}var Qa={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},el="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",tl="active",nl="data-styled-version",rl="6.1.8",ol="/*!sc*/\n",il="undefined"!=typeof window&&"HTMLElement"in window,al=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)),ll={},sl=Object.freeze([]),ul=Object.freeze({});function cl(e,t,n){return void 0===n&&(n=ul),e.theme!==n.theme&&e.theme||t||n.theme}var dl=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"]),pl=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,fl=/(^-|-$)/g;function ml(e){return e.replace(pl,"-").replace(fl,"")}var hl=/(a)(d)/gi,gl=52,bl=function(e){return String.fromCharCode(e+(e>25?39:97))};function vl(e){var t,n="";for(t=Math.abs(e);t>gl;t=t/gl|0)n=bl(t%gl)+n;return(bl(t%gl)+n).replace(hl,"$1-$2")}var yl,xl=5381,Sl=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},El=function(e){return Sl(xl,e)};function Cl(e){return vl(El(e)>>>0)}function wl(e){return"string"==typeof e&&!0}var Rl="function"==typeof Symbol&&Symbol.for,Al=Rl?Symbol.for("react.memo"):60115,Pl=Rl?Symbol.for("react.forward_ref"):60112,Il={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Dl={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ml={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ll=((yl={})[Pl]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yl[Al]=Ml,yl);function Ol(e){return("type"in(t=e)&&t.type.$$typeof)===Al?Ml:"$$typeof"in e?Ll[e.$$typeof]:Il;var t}var Tl=Object.defineProperty,kl=Object.getOwnPropertyNames,_l=Object.getOwnPropertySymbols,ql=Object.getOwnPropertyDescriptor,Nl=Object.getPrototypeOf,Fl=Object.prototype;function zl(e,t,n){if("string"!=typeof t){if(Fl){var r=Nl(t);r&&r!==Fl&&zl(e,r,n)}var o=kl(t);_l&&(o=o.concat(_l(t)));for(var i=Ol(e),a=Ol(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Dl||n&&n[s]||a&&s in a||i&&s in i)){var u=ql(t,s);try{Tl(e,s,u)}catch(e){}}}}return e}function jl(e){return"function"==typeof e}function $l(e){return"object"==typeof e&&"styledComponentId"in e}function Hl(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Bl(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Wl(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Vl(e,t,n){if(void 0===n&&(n=!1),!n&&!Wl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Vl(e[r],t[r]);else if(Wl(t))for(var r in t)e[r]=Vl(e[r],t[r]);return e}function Gl(e,t){Object.defineProperty(e,"toString",{value:t})}function Ul(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Yl=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Ul(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(ol);return t},e}(),Kl=new Map,Xl=new Map,Jl=1,Zl=function(e){if(Kl.has(e))return Kl.get(e);for(;Xl.has(Jl);)Jl++;var t=Jl++;return Kl.set(e,t),Xl.set(t,e),t},Ql=function(e,t){Jl=t+1,Kl.set(e,t),Xl.set(t,e)},es="style[".concat(el,"][").concat(nl,'="').concat(rl,'"]'),ts=new RegExp("^".concat(el,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ns=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},rs=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(ol),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(ts);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Ql(c,u),ns(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var os=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(el,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(el,tl),r.setAttribute(nl,rl);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},is=function(){function e(e){this.element=os(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Ul(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}(),as=function(){function e(e){this.element=os(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ls=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}(),ss=il,us={isServer:!il,useCSSOMInjection:!al},cs=function(){function e(e,t,n){void 0===e&&(e=ul),void 0===t&&(t={});var r=this;this.options=Xi(Xi({},us),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&il&&ss&&(ss=!1,function(e){for(var t=document.querySelectorAll(es),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(el)!==tl&&(rs(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Gl(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Xl.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var l="".concat(el,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(ol)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Zl(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Xi(Xi({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new ls(n):t?new is(n):new as(n)}(this.options),new Yl(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(Zl(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Zl(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Zl(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ds=/&/g,ps=/^\s*\/\/.*$/gm;function fs(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=fs(e.children,t)),e}))}function ms(e){var t,n,r,o=void 0===e?ul:e,i=o.options,a=void 0===i?ul:i,l=o.plugins,s=void 0===l?sl:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===ra&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ds,n).replace(r,u))})),a.prefix&&c.push(Za),c.push(Ja);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(ps,""),u=Wa(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=fs(u,a.namespace));var d,p=[];return Xa(u,function(e){var t=xa(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||Ul(15),Sl(e,t.name)}),xl).toString():"",d}var hs=new cs,gs=ms(),bs=E.createContext({shouldForwardProp:void 0,styleSheet:hs,stylis:gs});bs.Consumer;var vs=E.createContext(void 0);function ys(){return w(bs)}function xs(e){var t=S(e.stylisPlugins),n=t[0],r=t[1],o=ys().styleSheet,i=x((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=x((function(){return ms({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);C((function(){Zi(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var l=x((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return E.createElement(bs.Provider,{value:l},E.createElement(vs.Provider,{value:a},e.children))}var Ss=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=gs);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Gl(this,(function(){throw Ul(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=gs),this.name+e.hash},e}(),Es=function(e){return e>="A"&&e<="Z"};function Cs(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Es(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var ws=function(e){return null==e||!1===e||""===e},Rs=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!ws(i)&&(Array.isArray(i)&&i.isCss||jl(i)?r.push("".concat(Cs(o),":"),i,";"):Wl(i)?r.push.apply(r,Ji(Ji(["".concat(o," {")],Rs(i),!1),["}"],!1)):r.push("".concat(Cs(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Qa||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function As(e,t,n,r){return ws(e)?[]:$l(e)?[".".concat(e.styledComponentId)]:jl(e)?!jl(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:As(e(t),t,n,r):e instanceof Ss?n?(e.inject(n,r),[e.getName(r)]):[e]:Wl(e)?Rs(e):Array.isArray(e)?Array.prototype.concat.apply(sl,e.map((function(e){return As(e,t,n,r)}))):[e.toString()];var o}function Ps(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(jl(n)&&!$l(n))return!1}return!0}var Is=El(rl),Ds=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ps(e),this.componentId=t,this.baseHash=Sl(Is,t),this.baseStyle=n,cs.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Hl(r,this.staticRulesId);else{var o=Bl(As(this.rules,e,t,n)),i=vl(Sl(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=Hl(r,i),this.staticRulesId=i}else{for(var l=Sl(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=Bl(As(c,e,t,n));l=Sl(l,d+u),s+=d}}if(s){var p=vl(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=Hl(r,p)}}return r},e}(),Ms=E.createContext(void 0);Ms.Consumer;var Ls={};new Set;function Os(e,t,n){var r=$l(e),o=e,i=!wl(e),a=t.attrs,l=void 0===a?sl:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":ml(e);Ls[n]=(Ls[n]||0)+1;var r="".concat(n,"-").concat(Cl(rl+n+Ls[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return wl(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(ml(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new Ds(n,p,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=E.useContext(Ms),c=ys(),d=e.shouldForwardProp||c.shouldForwardProp,p=cl(t,u,i)||ul,f=function(e,t,n){for(var r,o=Xi(Xi({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=jl(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?Hl(o[l],a[l]):"style"===l?Xi(Xi({},o[l]),a[l]):a[l]}return t.className&&(o.className=Hl(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var n=ys();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),v=Hl(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[wl(m)&&!dl.has(m)?"class":"className"]=v,h.ref=n,R(m,h)}(y,e,t)}v.displayName=d;var y=E.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?Hl(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Vl(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Gl(y,(function(){return".".concat(y.styledComponentId)})),i&&zl(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Ts(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ks=function(e){return Object.assign(e,{isCss:!0})};function _s(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(jl(e)||Wl(e))return ks(As(Ts(sl,Ji([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?As(r):ks(As(Ts(r,t)))}function qs(e,t,n){if(void 0===n&&(n=ul),!t)throw Ul(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,_s.apply(void 0,Ji([r],o,!1)))};return r.attrs=function(r){return qs(e,t,Xi(Xi({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return qs(e,t,Xi(Xi({},n),r))},r}var Ns=function(e){return qs(Os,e)},Fs=Ns;dl.forEach((function(e){Fs[e]=Ns(e)}));var zs=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ps(e),cs.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Bl(As(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&cs.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function js(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=_s.apply(void 0,Ji([e],t,!1)),o="sc-global-".concat(Cl(JSON.stringify(r))),i=new zs(r,o),a=function(e){var t=ys(),n=E.useContext(Ms),r=E.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,ll,n,o);else{var l=Xi(Xi({},t),{theme:cl(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return E.memo(a)}function $s(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Bl(_s.apply(void 0,Ji([e],t,!1))),o=Cl(r);return new Ss(o,r)}var Hs={exports:{}};function Bs(){}function Ws(){}Ws.resetWarningCache=Bs;Hs.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ws,resetWarningCache:Bs};return n.PropTypes=n,n}();var Vs=on(Hs.exports);function Gs(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}Gs.propTypes={children:Vs.node,injectFirst:Vs.bool};const Us=js((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var Ys=Us;
|
|
11
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),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))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(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}},xn({exports:{}});var Pn={exports:{}};self,Pn.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)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,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=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(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)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,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=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>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 s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function 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,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const 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 s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix: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(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper: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),A={},I=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function L(e){return void 0===e}function P(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]=L(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(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){_(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!_(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);_(i,a)||P(t,o)||(L(a)?n.push({op:"add",path:s,value:i}):D(i)&&D(a)?n=n.concat(A.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&L(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(_(t,o))return n;if(!L(t[0])&&L(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!P(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return 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&&!P(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);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,k=function(e,r,n){if(!e)return Promise.resolve();var o=T.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 O="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===O)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===O)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,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var 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:s,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(O))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var j="movingAverage";function $(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 B(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 H={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,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;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:l,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:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},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(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var G="timeSeriesDecomposition";function V(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 U(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 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,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,Y),""===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(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,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(G))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension: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,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,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(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=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,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!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:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.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){Ie.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,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const De=Ie;function Le(e){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Le(e)}var Pe={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Pe,apply:Te,applyModifiers:ke,cleanUpMeasure:Oe,destroy:function(e){e&&_e[e.id]&&_e[e.id].masterItemSubscriber&&(_e[e.id].masterItemSubscriber&&_e[e.id].masterItemSubscriber.unsubscribe(),delete _e[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Pe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Pe[e]&&Pe[e].isApplicable({properties:r,layout:n})}))},measureBase: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=je(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var _e={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;_e[r.id]=_e[r.id]||{isFirstTime:!0};var u=_e[r.id].isFirstTime;if(_e[r.id].isFirstTime=!1,n&&"object"===Le(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(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[r.id].lastReloadTime;if(_e[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 Ue({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({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"===Le(e)&&!e.disabled){if(r++,"object"!==Le(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&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:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(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 Oe(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function ke(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Oe(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(r)||De.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(s++,"object"!==Le(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Pe[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Pe[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Pe[n.type].updateModifier&&Pe[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Pe[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||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}),He(r)):Oe(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!Pe[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:r,layout:n})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Pe[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Pe[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(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 He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!Pe[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!Ge(t)&&Ue({modifiers:je(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!Pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=Pe[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):k(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&Pe[e.type]&&Pe[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=je(t);if(Ue({modifiers:n,properties:e})){var i=Ge(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[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:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(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 s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=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 s=i.getValue(e,"qLayoutExclude.quarantine");s[r]||(s[r]={}),s[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 A=Math.pow(2,53)-1;function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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 L=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},P=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},_=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=w(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=w(s.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},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},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},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return I(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 I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return 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=[],s.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},H=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 G={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:l}),h({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,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=l.defaultDimension,R=void 0===w?_():w,A=l.defaultMeasure,I=void 0===A?T():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),P("qMaxStackedCells",b,v),P("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),L(g,t,n),h.qProperty=g;var D=i.getValue(c||{},"support.modifiers");return H({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 U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!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],s=t.length;if(U(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||s,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 se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},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=G.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),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)&&le(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||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,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(s,r.properties.measureAxes[t[0].axis])):E()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},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}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function 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,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",De="measures",Le="qDef.conditionalColoring";const Pe={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:De,itemPath:Le})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Le,arrayName:De,quarantineName:Ie})}};var Me="qHyperCubeDef.qMeasures",_e="measures",Te="qHyperCubeDef.qDimensions",ke="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Me,quarantineName:je,arrayName:_e,itemPath:ze}),we({properties:e,arrayPath:Te,quarantineName:je,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:je,arrayName:_e,itemPath:ze}),Re({properties:e,arrayPath:Te,quarantineName:je,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:G,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Pe,conditionalShow:$e}})(),n.default})();var Mn=or(Pn.exports);const _n="12px",Tn="nebula-table-utils-head-menu-button",kn="nebula-table-utils-head-menu-wrapper";let On=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 qn="nebula-table-utils-column-adjuster",Nn=`${qn}-border`;let Fn=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),zn=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const jn="qHyperCubeDef.qDimensions",$n="dimensions",Bn="qDef.representation",Hn="tableRepresentation",Wn=(e,t,r)=>{const n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{var n;const o=t.length,i=e<o?t[e]:r[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(n=a.pixels)&&void 0!==n?n:Fn.PixelsDefault:-1})(r,e,t)));return o},Gn=({propertyTree:e,hyperCubePath:t})=>{const r=Mn.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=Wn(o,i,n);return En(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),Mn.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),Mn.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),Mn.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{Mn.quarantineArrayProp({properties:e,arrayPath:jn,itemPath:Bn,arrayName:$n,quarantineName:Hn})})(r.properties),r};const Vn=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];i.qDef.columnWidth=-1===e?{type:zn.FitToContent}:{type:zn.Pixels,pixels:e}}return i},Un=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{const a=Mn.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});Mn.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{Mn.unquarantineArrayProp({properties:e,arrayPath:jn,itemPath:Bn,arrayName:$n,quarantineName:Hn})})(a.qProperty);const{qHyperCubeDef:{qDimensions:s,qMeasures:l,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=(null==r?void 0:r.length)===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>Vn(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>Vn(t,e,n,o)))}})(s,l,u,c);return Array.isArray(c)&&c.length>0&&(En(a,"qProperty.qHyperCubeDef.qDimensions",d),En(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(En(a,"qProperty.totals.show",!1),En(a,"qProperty.usePagination",!0)),Mn.conditionalShow.unquarantine(a.qProperty),a};var Yn={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function Kn(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function Xn(e,t){let 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}function Jn(e){return e>0?0:1}function Zn(e){return e.translator.get("Visualizations.Descriptions.Column")}function Qn(e){return{measures:{min:Jn,max:1e3,description:()=>Zn(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;Kn(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;Xn(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:Jn,max:1e3,description:()=>Zn(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return Kn(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;Xn(o,n)}}}}var eo={};!function(e){(()=>{var t={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,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=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](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 s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function 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,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const 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 s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix: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(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper: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),A={},I=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function L(e){return void 0===e}function P(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]=L(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(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){_(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!_(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);_(i,a)||P(t,o)||(L(a)?n.push({op:"add",path:s,value:i}):D(i)&&D(a)?n=n.concat(A.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&L(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(_(t,o))return n;if(!L(t[0])&&L(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!P(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return 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&&!P(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);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,k=function(e,r,n){if(!e)return Promise.resolve();var o=T.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 O="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===O)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===O)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,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var 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:s,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(O))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var j="movingAverage";function $(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 B(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 H={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,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;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:l,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:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},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(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var G="timeSeriesDecomposition";function V(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 U(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 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,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,Y),""===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(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,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(G))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension: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,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,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(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=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,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!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:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.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){Ie.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,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const De=Ie;function Le(e){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Le(e)}var Pe={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Pe,apply:Te,applyModifiers:ke,cleanUpMeasure:Oe,destroy:function(e){e&&_e[e.id]&&_e[e.id].masterItemSubscriber&&(_e[e.id].masterItemSubscriber&&_e[e.id].masterItemSubscriber.unsubscribe(),delete _e[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Pe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Pe[e]&&Pe[e].isApplicable({properties:r,layout:n})}))},measureBase: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=je(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var _e={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;_e[r.id]=_e[r.id]||{isFirstTime:!0};var u=_e[r.id].isFirstTime;if(_e[r.id].isFirstTime=!1,n&&"object"===Le(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(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[r.id].lastReloadTime;if(_e[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.model,o=e.lastReloadTime;return i(n,"app.layout.qLastReloadTime")!==o&&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 Ue({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({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"===Le(e)&&!e.disabled){if(r++,"object"!==Le(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&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:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(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 Oe(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function ke(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Oe(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(r)||De.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(s++,"object"!==Le(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Pe[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Pe[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Pe[n.type].updateModifier&&Pe[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Pe[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||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}),He(r)):Oe(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!Pe[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:r,layout:n})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Pe[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Pe[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(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 He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!Pe[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!Ge(t)&&Ue({modifiers:je(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!Pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=Pe[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):k(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&Pe[e.type]&&Pe[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=je(t);if(Ue({modifiers:n,properties:e})){var i=Ge(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),e.default=o.default,Object.defineProperty(e,"__esModule",{value:!0})})()}(eo);var to=or(eo);const ro=(e,t)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",options(){const r=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&r.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),r}}},no=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},oo=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},io=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5715_LINKS"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=n&&null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:ro(a,i),...no(i),...oo(a)}},ao=e=>{var t,r;const{flags:n,anything:o}=e,i=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:i?{uses:"measureRepresentationItems.representationType",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0}},so={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},lo=e=>{var t,r,n,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!to.hasActiveModifiers({measures:[e],properties:t.properties})||to.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(n=e.anything)&&void 0!==n&&null!==(n=n.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))}},uo={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:zn.Auto,translation:"Common.Auto"},{value:zn.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:zn.Pixels,translation:"Object.Table.Column.Pixels"},{value:zn.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:zn.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===zn.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(Fn.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===zn.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(Fn.PercentageMax,e.qDef.columnWidth.percentage))}}},co={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellColoring:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]},...so,...uo},po={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},fo=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:lo(e)}),mo=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:po},presentation:{type:"items",translation:"properties.presentation",items:{...co,...io(e)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:fo(e)},presentation:{type:"items",translation:"properties.presentation",items:{...co,...ao(e)}}}}}}),ho=e=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},rowHeightSection:{show:()=>e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),component:"panel-section",translation:"ThemeStyleEditor.style.rowHeight",items:{rowHeightItem:{component:"items",ref:"components",key:"theme",items:{rowHeightWrapper:{ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,change(e){""!==e.content.rowHeight&&null!==e.content.rowHeight&&void 0!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):e.content.rowHeight=void 0}}}}}},hoverEffectSection:{translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]}),go=e=>{var t,r;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals"))}},bo={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},vo=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[ho(e),go(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...bo}}),yo={uses:"sorting"},xo={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},So=e=>({type:"items",component:"accordion",items:{data:mo(e),sorting:yo,addOns:xo,settings:vo(e)}});function Eo(e){return{definition:So(e),exploration:Yn,data:Qn(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0},importProperties(e,t,r,n){const o={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return Un({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o})},exportProperties:(e,t)=>Gn({propertyTree:e,hyperCubePath:t})}}const Co=(e,t)=>r((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{const i=n?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=e[n?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...r})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([l],!0)})(e,t)),[e,t]),wo=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{});let Ro;const Ao=new Uint8Array(16);function Io(){if(!Ro&&(Ro="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ro))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ro(Ao)}const Do=[];for(let e=0;e<256;++e)Do.push((e+256).toString(16).slice(1));var Lo={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Po(e,t,r){if(Lo.randomUUID&&!t&&!e)return Lo.randomUUID();const n=(e=e||{}).random||(e.rng||Io)();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 Do[e[t+0]]+Do[e[t+1]]+Do[e[t+2]]+Do[e[t+3]]+"-"+Do[e[t+4]]+Do[e[t+5]]+"-"+Do[e[t+6]]+Do[e[t+7]]+"-"+Do[e[t+8]]+Do[e[t+9]]+"-"+Do[e[t+10]]+Do[e[t+11]]+Do[e[t+12]]+Do[e[t+13]]+Do[e[t+14]]+Do[e[t+15]]}(n)}const Mo=()=>{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:Po()},_o=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:Mo()};function To(e){return To="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},To(e)}function ko(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function qo(e,t,r){return t&&Oo(e.prototype,t),r&&Oo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function No(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zo(e,t)}function Fo(e){return Fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fo(e)}function zo(e,t){return zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zo(e,t)}function jo(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function $o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Fo(e);if(t){var o=Fo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return jo(this,r)}}function Bo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ho(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ho(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ho(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}var Wo={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:Go(e),value:Go(t),useEqualSign:r}}(r,o,i))}})),t}};function Go(e){try{return decodeURIComponent(e)}catch(t){return e}}function Vo(e){if(!(this instanceof Vo))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return Wo.fromSearchString(t.search)}}})}function Uo(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}Vo.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},Vo.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=Uo((t=e[n]).key),t.value?r+="=".concat(Uo(t.value)):r+=t.useEqualSign?"=":"";return r};var Yo,Ko=function(){function e(t){ko(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return qo(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),Xo=function(){function e(){ko(this,e)}return qo(e,[{key:"decode",value:function(e){for(var t,r="",n=new Ko(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),Jo=function(e){return e>=0&&e<=1114111},Zo=function(e){return e.match(/[\s]/)},Qo=function(e){No(r,e);var t=$o(r);function r(){return ko(this,r),t.apply(this,arguments)}return qo(r,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!Zo(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return Jo(a)?String.fromCharCode(a):"�"}}]),r}(Xo),ei=function(){function e(t,r){ko(this,e),this._key=t,this._value=r}return qo(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}]),e}(),ti=function(){function e(){ko(this,e)}return qo(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return ei.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return ei.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||ei.newInstanceIfNeeded(e,t,this._value)}}]),e}(),ri=function(){function e(){ko(this,e),this.clear()}return qo(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new ti);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),ni=function(){var e,t,r,n=[],o=[],i=new ri;for(e in n["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["¬in"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),oi=function(e){No(r,e);var t=$o(r);function r(){return ko(this,r),t.apply(this,arguments)}return qo(r,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,ni.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=ni.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&Jo(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&Jo(n)?String.fromCharCode(n):null}}]),r}(Xo),ii=function(e){No(r,e);var t=$o(r);function r(){return ko(this,r),t.apply(this,arguments)}return qo(r,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),Jo(o))?String.fromCharCode(o):(e.reset(),null)}}]),r}(Xo),ai=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(Yo=document.createElement("div"));var si=Array.prototype.indexOf,li=[",",".","_"," "],ui={default:[",",".","-","_"," "]},ci={width:["%"],height:["%"]},di={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},pi={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":di.image,"background-color":di.color,"border-color":di.color,"border-image":di.image,color:di.color,icon:di.image,"list-style-image":di.image,"outline-color":di.color},fi={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function mi(e,t,r){var n;if(t){if(si)return si.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function hi(e){if(null==e)return"";var t,r=document.createTextNode(e);return Yo.appendChild(r),t=Yo.innerHTML,Yo.removeChild(r),t}function gi(e,t,r){var n,o,i,a,s,l,u,c,d;if(e=vi(e).toLowerCase(),t=vi(t),mi(e,fi.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<fi.attr_val;i++)if(t.toLowerCase().match(fi.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=ci[e])||(n=ui.default),o="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&mi(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function bi(e,t,r){var n,o,i,a,s,l,u,c,d,p;if(e=vi(e).toLowerCase(),t=vi(t),mi(e,fi.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<fi.css_val.length;n++)if(t.toLowerCase().indexOf(fi.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=pi[e])||(o=di.default),i="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&mi(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function vi(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var s=[new oi,new ii,new Qo];!a;){n=r;for(var l=0;l<s.length;l++)(i=s[l].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var yi=[],xi=0;xi<255;xi++)yi[xi]=xi>=48&&xi<=57||xi>=65&&xi<=90||xi>=97&&xi<=122?null:xi.toString(16);var Si=function(e){return hi(e.unsafe)},Ei=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=bi(t,r[t],!0),i+=bi(t,r[t],!0),o[t]=n[t]);return e.map?o:i},Ci=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=gi(i,t[i],!0),o+=gi(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function wi(e,t){throw new Error(t)}var Ri={canonicalize:vi,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===To(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?Si(e):"css"===e.context?(null!=e.map&&"object"!==To(e.map)&&wi(this,"Invalid parameter type"),Ei(e)):"attr"===e.context?(null!=e.map&&"object"!==To(e.map)&&wi(this,"Invalid parameter type"),Ci(e)):void wi(this,"Invalid parameter type")},encodeForAttr:gi,encodeForAttr2:function(e){return gi("nonsens",e,!0)},encodeForCSS:bi,encodeForHref:function(e){vi(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new Vo(e),r=Vo.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+Vo.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,s;for(t||(t=li),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),mi(o,t)>=0||null==yi[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),s+="\\u".concat(a).concat(n.toUpperCase())));return s},encodeForHTML:hi,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=vi(t).toLowerCase():wi(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,s=function(e){var t,r=Bo(null!==(t=ai.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),l=s.mimeType,u=s.encoding,c=s.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(l,u,c);return"image/svg+xml"===l?d<=o:d<=a}};const Ai=(e,t)=>{var r;const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==n||null===(r=n.qValues)||void 0===r?void 0:r[e]},Ii=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}};let Di=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),Li=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const Pi=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&Ri.isSafeDataURL(t)?{type:Di.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Ii(n)}:{type:Di.Text,url:void 0,text:e},Mi=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===Li.Attribute||null==r?void 0:r.urlLabel},_i=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:Di.Link,url:Ri.encodeForHref(t),text:e}}catch(t){return{type:Di.Text,url:void 0,text:e}}},Ti=(e,t,r,n)=>{var o,i;const a=(e=>{switch(null==e?void 0:e.type){case"url":return Di.Link;case"image":return Di.Image;default:return Di.Text}})(t);return a!==Di.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=n.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===Di.Link&&n.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,r)=>{const{urlPosition:n}=null!=t?t:{};if(n===Li.Attribute){var o;const n=Mi(null!==(o=r.url)&&void 0!==o?o:-1,e,t),i=e.qText||n||"";return _i({text:i,url:n})}if(n===Li.Dimension){var i;const n=Mi(null!==(i=r.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return _i({text:n,url:e.qText})}return{type:Di.Text,url:void 0,text:e.qText}})(e,t,r):{type:Di.Text,url:void 0,text:e.qText}:((e,t,r)=>{const{imageSize:n,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var s,l;const t=e.qText,i=null===(s=Ai(null!==(l=r.imageUrl)&&void 0!==l?l:-1,e))||void 0===s?void 0:s.qText;return Pi({text:t,url:i,imageSize:n,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===r.imageLabel)return Pi({text:a||t||"",url:t,imageSize:n,imagePosition:o});const i=null!==(u=null===(c=Ai(null!==(d=r.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return Pi({text:i,url:t,imageSize:n,imagePosition:o})}return{type:Di.Text,url:void 0,text:e.qText}})(e,t,r)},ki=e=>!Number.isNaN(+e),Oi=e=>!(!e.qNum&&0!==e.qNum||!ki(e.qNum)),qi=1e4;function Ni(e,t){return[...t].reverse().find((t=>t*e<=qi))||Math.floor(qi/e)}function Fi(e,t){var r,n;if(null!==(r=t.viewState)&&void 0!==r&&r.skipTotals)return{atTop:!1,atBottom:!1};const[o,i,a,s,l]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(n=e.totals)||void 0===n?void 0:n.show,e.totals.position];if(a&&(o&&i||!s&&!o)){if(s||"top"===l)return{atTop:!0,atBottom:!1};if(!s&&"bottom"===l)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function zi(e,t,r,n){var o,i,a;return t?0===r&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[n])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function ji(e,t){const r=e.qHyperCube.qGrandTotalRow[t];return ki(null==r?void 0:r.qNum)}function $i(e,t,r){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}}const Bi=(e,t)=>"auto"!==t?t:Oi(e)?"right":"left";const Hi=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:r,qMeasureInfo:n}}=e,o=r.length+n.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:s}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const s=e<n,{qError:l}=s?t[e]:r[e-n],u=7005===(null==l?void 0:l.qErrorCode);return u?s?i++:a++:o[e]=s?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(i,r,n);return a.map(((t,r)=>function(e,t,r,n){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,s=o.length,l=t<s,u=l?o[t]:i[t-s],c=t===a[0];let d,p=0,f="",m=!1,h=-1;const{representation:g}=u;if(l){const e=u;p=e.qGroupPos,f=e.qGroupFieldDefs[p],m=e.qLocked,h=n,({qDimensionType:d}=e)}const{qFallbackTitle:b,textAlign:v,qAttrExprInfo:y,qSortIndicator:x,qReverseSort:S,qApprMaxGlyphCount:E,columnWidth:C,qLibraryId:w}=u;return{isDim:l,isLocked:m,fieldId:f,colIdx:t,qLibraryId:w,pageColIdx:r,qApprMaxGlyphCount:E,qReverseSort:S,columnWidth:C,selectionColIdx:h,isActivelySorted:c,id:_o(u),label:b,qAttrExprInfoIDs:y.map((e=>e.id)),qAttrExprInfoIndex:wo(u),sortDirection:x&&"N"!==x?x:"A",totalInfo:zi(e,l,r,n),...!l&&{isTotalNumeric:ji(e,n)},...$i(v,d,l),representation:g}}(e,t,r,s[t])))};const Wi=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},Gi=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Wi(e,t)};var Vi={exports:{}},Ui={},Yi=E,Ki=Symbol.for("react.element"),Xi=Symbol.for("react.fragment"),Ji=Object.prototype.hasOwnProperty,Zi=Yi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Qi={key:!0,ref:!0,__self:!0,__source:!0};function ea(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)Ji.call(t,n)&&!Qi.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:Ki,type:e,key:i,ref:a,props:o,_owner:Zi.current}}Ui.Fragment=Xi,Ui.jsx=ea,Ui.jsxs=ea,Vi.exports=Ui;var ta=Vi.exports;function ra(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 na=Object.freeze({__proto__:null,default:ra}),oa="$$material";function ia(){return ia=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},ia.apply(this,arguments)}function aa(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 sa=function(){return sa=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},sa.apply(this,arguments)};function la(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 ua=or((function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=r?r.call(n,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),ca="-ms-",da="-moz-",pa="-webkit-",fa="comm",ma="rule",ha="decl",ga="@import",ba="@keyframes",va="@layer",ya=Math.abs,xa=String.fromCharCode,Sa=Object.assign;function Ea(e){return e.trim()}function Ca(e,t){return(e=t.exec(e))?e[0]:e}function wa(e,t,r){return e.replace(t,r)}function Ra(e,t,r){return e.indexOf(t,r)}function Aa(e,t){return 0|e.charCodeAt(t)}function Ia(e,t,r){return e.slice(t,r)}function Da(e){return e.length}function La(e){return e.length}function Pa(e,t){return t.push(e),e}function Ma(e,t){return e.filter((function(e){return!Ca(e,t)}))}var _a=1,Ta=1,ka=0,Oa=0,qa=0,Na="";function Fa(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:_a,column:Ta,length:a,return:"",siblings:s}}function za(e,t){return Sa(Fa("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ja(e){for(;e.root;)e=za(e.root,{children:[e]});Pa(e,e.siblings)}function $a(){return qa=Oa<ka?Aa(Na,Oa++):0,Ta++,10===qa&&(Ta=1,_a++),qa}function Ba(){return Aa(Na,Oa)}function Ha(){return Oa}function Wa(e,t){return Ia(Na,e,t)}function Ga(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 Va(e){return Ea(Wa(Oa-1,Ka(91===e?e+2:40===e?e+1:e)))}function Ua(e){for(;(qa=Ba())&&qa<33;)$a();return Ga(e)>2||Ga(qa)>3?"":" "}function Ya(e,t){for(;--t&&$a()&&!(qa<48||qa>102||qa>57&&qa<65||qa>70&&qa<97););return Wa(e,Ha()+(t<6&&32==Ba()&&32==$a()))}function Ka(e){for(;$a();)switch(qa){case e:return Oa;case 34:case 39:34!==e&&39!==e&&Ka(qa);break;case 40:41===e&&Ka(e);break;case 92:$a()}return Oa}function Xa(e,t){for(;$a()&&e+qa!==57&&(e+qa!==84||47!==Ba()););return"/*"+Wa(t,Oa-1)+"*"+xa(47===e?e:$a())}function Ja(e){for(;!Ga(Ba());)$a();return Wa(e,Oa)}function Za(e){return function(e){return Na="",e}(Qa("",null,null,null,[""],e=function(e){return _a=Ta=1,ka=Da(Na=e),Oa=0,[]}(e),0,[0],e))}function Qa(e,t,r,n,o,i,a,s,l){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=$a()){case 40:if(108!=m&&58==Aa(C,d-1)){-1!=Ra(C+=wa(Va(v),"&","&\f"),"&\f",ya(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Va(v);break;case 9:case 10:case 13:case 32:C+=Ua(m);break;case 92:C+=Ya(Ha()-1,7);continue;case 47:switch(Ba()){case 42:case 47:Pa(ts(Xa($a(),Ha()),t,r,l),l);break;default:C+="/"}break;case 123*h:s[u++]=Da(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=wa(C,/\f/g,"")),f>0&&Da(C)-d&&Pa(f>32?rs(C+";",n,r,d-1,l):rs(wa(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(Pa(E=es(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)Qa(C,t,E,E,x,i,d,s,S);else switch(99===p&&110===Aa(C,3)?100:p){case 100:case 108:case 109:case 115:Qa(e,E,E,n&&Pa(es(e,E,E,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:Qa(C,E,E,E,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+Da(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(qa=Oa>0?Aa(Na,--Oa):0,Ta--,10===qa&&(Ta=1,_a--),qa))continue;switch(C+=xa(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Da(C)-1)*b,b=1;break;case 64:45===Ba()&&(C+=Va($a())),p=Ba(),c=d=Da(y=C+=Ja(Ha())),v++;break;case 45:45===m&&2==Da(C)&&(h=0)}}return i}function es(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],m=La(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=Ia(e,p+1,p=ya(g=a[h])),x=e;v<m;++v)(x=Ea(g>0?f[v]+" "+y:wa(y,/&\f/g,f[v])))&&(l[b++]=x);return Fa(e,t,r,0===o?ma:s,l,u,c,d)}function ts(e,t,r,n){return Fa(e,t,r,fa,xa(qa),Ia(e,2,-2),0,n)}function rs(e,t,r,n,o){return Fa(e,t,r,ha,Ia(e,0,n),Ia(e,n+1,-1),n,o)}function ns(e,t,r){switch(function(e,t){return 45^Aa(e,0)?(((t<<2^Aa(e,0))<<2^Aa(e,1))<<2^Aa(e,2))<<2^Aa(e,3):0}(e,t)){case 5103:return pa+"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 pa+e+e;case 4789:return da+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pa+e+da+e+ca+e+e;case 5936:switch(Aa(e,t+11)){case 114:return pa+e+ca+wa(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pa+e+ca+wa(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pa+e+ca+wa(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return pa+e+ca+e+e;case 6165:return pa+e+ca+"flex-"+e+e;case 5187:return pa+e+wa(e,/(\w+).+(:[^]+)/,pa+"box-$1$2"+ca+"flex-$1$2")+e;case 5443:return pa+e+ca+"flex-item-"+wa(e,/flex-|-self/g,"")+(Ca(e,/flex-|baseline/)?"":ca+"grid-row-"+wa(e,/flex-|-self/g,""))+e;case 4675:return pa+e+ca+"flex-line-pack"+wa(e,/align-content|flex-|-self/g,"")+e;case 5548:return pa+e+ca+wa(e,"shrink","negative")+e;case 5292:return pa+e+ca+wa(e,"basis","preferred-size")+e;case 6060:return pa+"box-"+wa(e,"-grow","")+pa+e+ca+wa(e,"grow","positive")+e;case 4554:return pa+wa(e,/([^-])(transform)/g,"$1"+pa+"$2")+e;case 6187:return wa(wa(wa(e,/(zoom-|grab)/,pa+"$1"),/(image-set)/,pa+"$1"),e,"")+e;case 5495:case 3959:return wa(e,/(image-set\([^]*)/,pa+"$1$`$1");case 4968:return wa(wa(e,/(.+:)(flex-)?(.*)/,pa+"box-pack:$3"+ca+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pa+e+e;case 4200:if(!Ca(e,/flex-|baseline/))return ca+"grid-column-align"+Ia(e,t)+e;break;case 2592:case 3360:return ca+wa(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Ca(e.props,/grid-\w+-end/)}))?~Ra(e+(r=r[t].value),"span",0)?e:ca+wa(e,"-start","")+e+ca+"grid-row-span:"+(~Ra(r,"span",0)?Ca(r,/\d+/):+Ca(r,/\d+/)-+Ca(e,/\d+/))+";":ca+wa(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Ca(e.props,/grid-\w+-start/)}))?e:ca+wa(wa(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return wa(e,/(.+)-inline(.+)/,pa+"$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(Da(e)-1-t>6)switch(Aa(e,t+1)){case 109:if(45!==Aa(e,t+4))break;case 102:return wa(e,/(.+:)(.+)-([^]+)/,"$1"+pa+"$2-$3$1"+da+(108==Aa(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ra(e,"stretch",0)?ns(wa(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return wa(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return ca+r+":"+n+s+(o?ca+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===Aa(e,t+6))return wa(e,":",":"+pa)+e;break;case 6444:switch(Aa(e,45===Aa(e,14)?18:11)){case 120:return wa(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+pa+(45===Aa(e,14)?"inline-":"")+"box$3$1"+pa+"$2$3$1"+ca+"$2box$3")+e;case 100:return wa(e,":",":"+ca)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return wa(e,"scroll-","scroll-snap-")+e}return e}function os(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function is(e,t,r,n){switch(e.type){case va:if(e.children.length)break;case ga:case ha:return e.return=e.return||e.value;case fa:return"";case ba:return e.return=e.value+"{"+os(e.children,n)+"}";case ma:if(!Da(e.value=e.props.join(",")))return""}return Da(r=os(e.children,n))?e.return=e.value+"{"+r+"}":""}function as(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ha:return void(e.return=ns(e.value,e.length,r));case ba:return os([za(e,{value:wa(e.value,"@","@"+pa)})],n);case ma:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Ca(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ja(za(e,{props:[wa(t,/:(read-\w+)/,":"+da+"$1")]})),ja(za(e,{props:[t]})),Sa(e,{props:Ma(r,n)});break;case"::placeholder":ja(za(e,{props:[wa(t,/:(plac\w+)/,":"+pa+"input-$1")]})),ja(za(e,{props:[wa(t,/:(plac\w+)/,":"+da+"$1")]})),ja(za(e,{props:[wa(t,/:(plac\w+)/,ca+"input-$1")]})),ja(za(e,{props:[t]})),Sa(e,{props:Ma(r,n)})}return""}))}}var ss={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},ls="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",us="active",cs="data-styled-version",ds="6.1.8",ps="/*!sc*/\n",fs="undefined"!=typeof window&&"HTMLElement"in window,ms=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)),hs={},gs=Object.freeze([]),bs=Object.freeze({});function vs(e,t,r){return void 0===r&&(r=bs),e.theme!==r.theme&&e.theme||t||r.theme}var ys=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"]),xs=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ss=/(^-|-$)/g;function Es(e){return e.replace(xs,"-").replace(Ss,"")}var Cs=/(a)(d)/gi,ws=52,Rs=function(e){return String.fromCharCode(e+(e>25?39:97))};function As(e){var t,r="";for(t=Math.abs(e);t>ws;t=t/ws|0)r=Rs(t%ws)+r;return(Rs(t%ws)+r).replace(Cs,"$1-$2")}var Is,Ds=5381,Ls=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ps=function(e){return Ls(Ds,e)};function Ms(e){return As(Ps(e)>>>0)}function _s(e){return"string"==typeof e&&!0}var Ts="function"==typeof Symbol&&Symbol.for,ks=Ts?Symbol.for("react.memo"):60115,Os=Ts?Symbol.for("react.forward_ref"):60112,qs={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ns={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zs=((Is={})[Os]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Is[ks]=Fs,Is);function js(e){return("type"in(t=e)&&t.type.$$typeof)===ks?Fs:"$$typeof"in e?zs[e.$$typeof]:qs;var t}var $s=Object.defineProperty,Bs=Object.getOwnPropertyNames,Hs=Object.getOwnPropertySymbols,Ws=Object.getOwnPropertyDescriptor,Gs=Object.getPrototypeOf,Vs=Object.prototype;function Us(e,t,r){if("string"!=typeof t){if(Vs){var n=Gs(t);n&&n!==Vs&&Us(e,n,r)}var o=Bs(t);Hs&&(o=o.concat(Hs(t)));for(var i=js(e),a=js(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Ns||r&&r[l]||a&&l in a||i&&l in i)){var u=Ws(t,l);try{$s(e,l,u)}catch(e){}}}}return e}function Ys(e){return"function"==typeof e}function Ks(e){return"object"==typeof e&&"styledComponentId"in e}function Xs(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Js(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 Zs(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Qs(e,t,r){if(void 0===r&&(r=!1),!r&&!Zs(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Qs(e[n],t[n]);else if(Zs(t))for(var n in t)e[n]=Qs(e[n],t[n]);return e}function el(e,t){Object.defineProperty(e,"toString",{value:t})}function tl(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 rl=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 tl(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(ps);return t},e}(),nl=new Map,ol=new Map,il=1,al=function(e){if(nl.has(e))return nl.get(e);for(;ol.has(il);)il++;var t=il++;return nl.set(e,t),ol.set(t,e),t},sl=function(e,t){il=t+1,nl.set(e,t),ol.set(t,e)},ll="style[".concat(ls,"][").concat(cs,'="').concat(ds,'"]'),ul=new RegExp("^".concat(ls,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),cl=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)},dl=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(ps),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(ul);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(sl(c,u),cl(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}};var pl=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ls,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(ls,us),n.setAttribute(cs,ds);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},fl=function(){function e(e){this.element=pl(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 tl(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}(),ml=function(){function e(e){this.element=pl(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}(),hl=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}(),gl=fs,bl={isServer:!fs,useCSSOMInjection:!ms},vl=function(){function e(e,t,r){void 0===e&&(e=bs),void 0===t&&(t={});var n=this;this.options=sa(sa({},bl),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&fs&&gl&&(gl=!1,function(e){for(var t=document.querySelectorAll(ll),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(ls)!==us&&(dl(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),el(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return ol.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 s="".concat(ls,".g").concat(r,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),n+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(ps)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return al(e)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(sa(sa({},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 hl(r):t?new fl(r):new ml(r)}(this.options),new rl(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(al(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(al(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(al(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),yl=/&/g,xl=/^\s*\/\/.*$/gm;function Sl(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=Sl(e.children,t)),e}))}function El(e){var t,r,n,o=void 0===e?bs:e,i=o.options,a=void 0===i?bs:i,s=o.plugins,l=void 0===s?gs:s,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=l.slice();c.push((function(e){e.type===ma&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(yl,r).replace(n,u))})),a.prefix&&c.push(as),c.push(is);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var l=e.replace(xl,""),u=Za(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=Sl(u,a.namespace));var d,p=[];return os(u,function(e){var t=La(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||tl(15),Ls(e,t.name)}),Ds).toString():"",d}var Cl=new vl,wl=El(),Rl=E.createContext({shouldForwardProp:void 0,styleSheet:Cl,stylis:wl});Rl.Consumer;var Al=E.createContext(void 0);function Il(){return w(Rl)}function Dl(e){var t=S(e.stylisPlugins),r=t[0],n=t[1],o=Il().styleSheet,i=x((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=x((function(){return El({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);C((function(){ua(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var s=x((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return E.createElement(Rl.Provider,{value:s},E.createElement(Al.Provider,{value:a},e.children))}var Ll=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=wl);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,el(this,(function(){throw tl(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=wl),this.name+e.hash},e}(),Pl=function(e){return e>="A"&&e<="Z"};function Ml(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Pl(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var _l=function(e){return null==e||!1===e||""===e},Tl=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!_l(i)&&(Array.isArray(i)&&i.isCss||Ys(i)?n.push("".concat(Ml(o),":"),i,";"):Zs(i)?n.push.apply(n,la(la(["".concat(o," {")],Tl(i),!1),["}"],!1)):n.push("".concat(Ml(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in ss||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function kl(e,t,r,n){return _l(e)?[]:Ks(e)?[".".concat(e.styledComponentId)]:Ys(e)?!Ys(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:kl(e(t),t,r,n):e instanceof Ll?r?(e.inject(r,n),[e.getName(n)]):[e]:Zs(e)?Tl(e):Array.isArray(e)?Array.prototype.concat.apply(gs,e.map((function(e){return kl(e,t,r,n)}))):[e.toString()];var o}function Ol(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ys(r)&&!Ks(r))return!1}return!0}var ql=Ps(ds),Nl=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Ol(e),this.componentId=t,this.baseHash=Ls(ql,t),this.baseStyle=r,vl.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=Xs(n,this.staticRulesId);else{var o=Js(kl(this.rules,e,t,r)),i=As(Ls(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=Xs(n,i),this.staticRulesId=i}else{for(var s=Ls(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=Js(kl(c,e,t,r));s=Ls(s,d+u),l+=d}}if(l){var p=As(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=Xs(n,p)}}return n},e}(),Fl=E.createContext(void 0);Fl.Consumer;var zl={};new Set;function jl(e,t,r){var n=Ks(e),o=e,i=!_s(e),a=t.attrs,s=void 0===a?gs:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":Es(e);zl[r]=(zl[r]||0)+1;var n="".concat(r,"-").concat(Ms(ds+r+zl[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return _s(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Es(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,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 b=new Nl(r,p,n?o.componentStyle:void 0);function v(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=E.useContext(Fl),c=Il(),d=e.shouldForwardProp||c.shouldForwardProp,p=vs(t,u,i)||bs,f=function(e,t,r){for(var n,o=sa(sa({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Ys(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?Xs(o[s],a[s]):"style"===s?sa(sa({},o[s]),a[s]):a[s]}return t.className&&(o.className=Xs(o.className,t.className)),o}(n,t,p),m=f.as||l,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var r=Il();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=Xs(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[_s(m)&&!ys.has(m)?"class":"className"]=v,h.ref=r,R(m,h)}(y,e,t)}v.displayName=d;var y=E.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=n?Xs(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Qs(e,o[n],!0);return e}({},o.defaultProps,e):e}}),el(y,(function(){return".".concat(y.styledComponentId)})),i&&Us(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function $l(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 Bl=function(e){return Object.assign(e,{isCss:!0})};function Hl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ys(e)||Zs(e))return Bl(kl($l(gs,la([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?kl(n):Bl(kl($l(n,t)))}function Wl(e,t,r){if(void 0===r&&(r=bs),!t)throw tl(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Hl.apply(void 0,la([n],o,!1)))};return n.attrs=function(n){return Wl(e,t,sa(sa({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Wl(e,t,sa(sa({},r),n))},n}var Gl=function(e){return Wl(jl,e)},Vl=Gl;ys.forEach((function(e){Vl[e]=Gl(e)}));var Ul=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ol(e),vl.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Js(kl(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&&vl.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Yl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Hl.apply(void 0,la([e],t,!1)),o="sc-global-".concat(Ms(JSON.stringify(n))),i=new Ul(n,o),a=function(e){var t=Il(),r=E.useContext(Fl),n=E.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,hs,r,o);else{var s=sa(sa({},t),{theme:vs(t,n,a.defaultProps)});i.renderStyles(e,s,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};return E.memo(a)}function Kl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Js(Hl.apply(void 0,la([e],t,!1))),o=Ms(n);return new Ll(o,n)}var Xl={exports:{}};function Jl(){}function Zl(){}Zl.resetWarningCache=Jl;Xl.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:Zl,resetWarningCache:Jl};return r.PropTypes=r,r}();var Ql=or(Xl.exports);function eu(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}eu.propTypes={children:Ql.node,injectFirst:Ql.bool};const tu=Yl((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 ru=tu;
|
|
12
12
|
/**
|
|
13
13
|
* @mui/styled-engine-sc v6.0.0-alpha.18
|
|
14
14
|
*
|
|
@@ -16,7 +16,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
|
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
18
|
*/
|
|
19
|
-
function Ks(e,t){let n;return n=t?Fs(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Fs(e),n}Us.propTypes={defaultTheme:Vs.object,styles:Vs.oneOfType([Vs.array,Vs.string,Vs.object,Vs.func])};var Xs=Object.freeze({__proto__:null,GlobalStyles:Ys,StyledEngineProvider:Gs,ThemeContext:Ms,css:_s,default:Ks,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:$s});function Js(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 Zs(e){if(!Js(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Zs(e[n])})),t}function Qs(e,t,n={clone:!0}){const r=n.clone?Yi({},e):e;return Js(e)&&Js(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Js(t[o])&&o in e&&Js(e[o])?r[o]=Qs(e[o],t[o],n):n.clone?r[o]=Js(t[o])?Zs(t[o]):t[o]:r[o]=t[o])})),r}var eu=Object.freeze({__proto__:null,default:Qs,isPlainObject:Js});const tu=["values","unit","step"],nu=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)=>Yi({},e,{[t.key]:t.val})),{})};function ru(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ki(e,tu),i=nu(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 Yi({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var ou={borderRadius:4};function iu(e,t){return t?Qs(e,t,{clone:!1}):e}const au={xs:0,sm:600,md:900,lg:1200,xl:1536},lu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${au[e]}px)`};function su(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||lu;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||lu;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||au).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function uu(e){if("string"!=typeof e)throw new Error(Vi(7));return e.charAt(0).toUpperCase()+e.slice(1)}var cu=Object.freeze({__proto__:null,default:uu});function du(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 pu(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:du(e,n)||r,t&&(o=t(o,r,e)),o}function fu(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=du(e.theme,r)||{};return su(e,i,(e=>{let r=pu(a,o,e);return e===r&&"string"==typeof e&&(r=pu(a,o,`${t}${"default"===e?"":uu(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const mu={m:"margin",p:"padding"},hu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bu=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!gu[e])return[e];e=gu[e]}const[t,n]=e.split(""),r=mu[t],o=hu[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),vu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function xu(e,t,n,r){var o;const i=null!=(o=du(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 Su(e){return xu(e,"spacing",8)}function Eu(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 Cu(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Eu(t,n),e)),{})}(bu(n),r);return su(e,e[n],o)}function wu(e,t){const n=Su(e.theme);return Object.keys(e).map((r=>Cu(e,t,r,n))).reduce(iu,{})}function Ru(e){return wu(e,vu)}function Au(e){return wu(e,yu)}function Pu(...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]?iu(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Iu(e){return"number"!=typeof e?e:`${e}px solid`}function Du(e,t){return fu({prop:e,themeKey:"borders",transform:t})}Ru.propTypes={},Ru.filterProps=vu,Au.propTypes={},Au.filterProps=yu;const Mu=Du("border",Iu),Lu=Du("borderTop",Iu),Ou=Du("borderRight",Iu),Tu=Du("borderBottom",Iu),ku=Du("borderLeft",Iu),_u=Du("borderColor"),qu=Du("borderTopColor"),Nu=Du("borderRightColor"),Fu=Du("borderBottomColor"),zu=Du("borderLeftColor"),ju=Du("outline",Iu),$u=Du("outlineColor"),Hu=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=xu(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Eu(t,e)});return su(e,e.borderRadius,n)}return null};Hu.propTypes={},Hu.filterProps=["borderRadius"],Pu(Mu,Lu,Ou,Tu,ku,_u,qu,Nu,Fu,zu,Hu,ju,$u);const Bu=e=>{if(void 0!==e.gap&&null!==e.gap){const t=xu(e.theme,"spacing",8),n=e=>({gap:Eu(t,e)});return su(e,e.gap,n)}return null};Bu.propTypes={},Bu.filterProps=["gap"];const Wu=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=xu(e.theme,"spacing",8),n=e=>({columnGap:Eu(t,e)});return su(e,e.columnGap,n)}return null};Wu.propTypes={},Wu.filterProps=["columnGap"];const Vu=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=xu(e.theme,"spacing",8),n=e=>({rowGap:Eu(t,e)});return su(e,e.rowGap,n)}return null};Vu.propTypes={},Vu.filterProps=["rowGap"];function Gu(e,t){return"grey"===t?t:e}Pu(Bu,Wu,Vu,fu({prop:"gridColumn"}),fu({prop:"gridRow"}),fu({prop:"gridAutoFlow"}),fu({prop:"gridAutoColumns"}),fu({prop:"gridAutoRows"}),fu({prop:"gridTemplateColumns"}),fu({prop:"gridTemplateRows"}),fu({prop:"gridTemplateAreas"}),fu({prop:"gridArea"}));function Uu(e){return e<=1&&0!==e?100*e+"%":e}Pu(fu({prop:"color",themeKey:"palette",transform:Gu}),fu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gu}),fu({prop:"backgroundColor",themeKey:"palette",transform:Gu}));const Yu=fu({prop:"width",transform:Uu}),Ku=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])||au[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:Uu(t)}};return su(e,e.maxWidth,t)}return null};Ku.filterProps=["maxWidth"];const Xu=fu({prop:"minWidth",transform:Uu}),Ju=fu({prop:"height",transform:Uu}),Zu=fu({prop:"maxHeight",transform:Uu}),Qu=fu({prop:"minHeight",transform:Uu});fu({prop:"size",cssProperty:"width",transform:Uu}),fu({prop:"size",cssProperty:"height",transform:Uu});Pu(Yu,Ku,Xu,Ju,Zu,Qu,fu({prop:"boxSizing"}));var ec={border:{themeKey:"borders",transform:Iu},borderTop:{themeKey:"borders",transform:Iu},borderRight:{themeKey:"borders",transform:Iu},borderBottom:{themeKey:"borders",transform:Iu},borderLeft:{themeKey:"borders",transform:Iu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Iu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Hu},color:{themeKey:"palette",transform:Gu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gu},backgroundColor:{themeKey:"palette",transform:Gu},p:{style:Au},pt:{style:Au},pr:{style:Au},pb:{style:Au},pl:{style:Au},px:{style:Au},py:{style:Au},padding:{style:Au},paddingTop:{style:Au},paddingRight:{style:Au},paddingBottom:{style:Au},paddingLeft:{style:Au},paddingX:{style:Au},paddingY:{style:Au},paddingInline:{style:Au},paddingInlineStart:{style:Au},paddingInlineEnd:{style:Au},paddingBlock:{style:Au},paddingBlockStart:{style:Au},paddingBlockEnd:{style:Au},m:{style:Ru},mt:{style:Ru},mr:{style:Ru},mb:{style:Ru},ml:{style:Ru},mx:{style:Ru},my:{style:Ru},margin:{style:Ru},marginTop:{style:Ru},marginRight:{style:Ru},marginBottom:{style:Ru},marginLeft:{style:Ru},marginX:{style:Ru},marginY:{style:Ru},marginInline:{style:Ru},marginInlineStart:{style:Ru},marginInlineEnd:{style:Ru},marginBlock:{style:Ru},marginBlockStart:{style:Ru},marginBlockEnd:{style:Ru},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:Bu},rowGap:{style:Vu},columnGap:{style:Wu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Uu},maxWidth:{style:Ku},minWidth:{transform:Uu},height:{transform:Uu},maxHeight:{transform:Uu},minHeight:{transform:Uu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function tc(){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=du(n,l)||{};if(u)return u(o);return su(o,t,(t=>{let n=pu(c,s,t);return t===n&&"string"==typeof t&&(n=pu(c,s,`${e}${"default"===t?"":uu(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:ec;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=iu(s,e(n,o,i,a));else{const e=su({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=iu(s,e):s[n]=t({sx:o,theme:i})}else s=iu(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const nc=tc();nc.filterProps=["sx"];var rc=nc;function oc(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const ic=["breakpoints","palette","spacing","shape"];function ac(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Ki(e,ic),l=ru(n),s=function(e=8){if(e.mui)return e;const t=Su({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=Qs({breakpoints:l,direction:"ltr",components:{},palette:Yi({mode:"light"},r),spacing:s,shape:Yi({},ou,i)},a);return u.applyStyles=oc,u=t.reduce(((e,t)=>Qs(e,t)),u),u.unstable_sxConfig=Yi({},ec,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return rc({sx:e,theme:this})},u}var lc=Object.freeze({__proto__:null,default:ac,private_createBreakpoints:ru,unstable_applyStyles:oc});function sc(e=null){const t=A.useContext(Ms);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const uc=ac();function cc(e=uc){return sc(e)}const dc=["sx"],pc=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:ec;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function fc(e){const{sx:t}=e,n=Ki(e,dc),{systemProps:r,otherProps:o}=pc(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Js(n)?Yi({},r,n):r}:Yi({},r,t),Yi({},o,{sx:i})}var mc=Object.freeze({__proto__:null,default:rc,extendSxProp:fc,unstable_createStyleFunctionSx:tc,unstable_defaultSxConfig:ec});const hc=e=>e;var gc=(()=>{let e=hc;return{configure(t){e=t},generate:t=>e(t),reset(){e=hc}}})();function bc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=bc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=bc(e))&&(r&&(r+=" "),r+=t);return r}const yc=["className","component"];const xc={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 Sc(e,t,n="Mui"){const r=xc[t];return r?`${n}-${r}`:`${gc.generate(e)}-${t}`}function Ec(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Sc(e,t,n)})),r}var Cc,wc={exports:{}},Rc={},Ac=Symbol.for("react.element"),Pc=Symbol.for("react.portal"),Ic=Symbol.for("react.fragment"),Dc=Symbol.for("react.strict_mode"),Mc=Symbol.for("react.profiler"),Lc=Symbol.for("react.provider"),Oc=Symbol.for("react.context"),Tc=Symbol.for("react.server_context"),kc=Symbol.for("react.forward_ref"),_c=Symbol.for("react.suspense"),qc=Symbol.for("react.suspense_list"),Nc=Symbol.for("react.memo"),Fc=Symbol.for("react.lazy"),zc=Symbol.for("react.offscreen");function jc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ac:switch(e=e.type){case Ic:case Mc:case Dc:case _c:case qc:return e;default:switch(e=e&&e.$$typeof){case Tc:case Oc:case kc:case Fc:case Nc:case Lc:return e;default:return t}}case Pc:return t}}}Cc=Symbol.for("react.module.reference"),Rc.ContextConsumer=Oc,Rc.ContextProvider=Lc,Rc.Element=Ac,Rc.ForwardRef=kc,Rc.Fragment=Ic,Rc.Lazy=Fc,Rc.Memo=Nc,Rc.Portal=Pc,Rc.Profiler=Mc,Rc.StrictMode=Dc,Rc.Suspense=_c,Rc.SuspenseList=qc,Rc.isAsyncMode=function(){return!1},Rc.isConcurrentMode=function(){return!1},Rc.isContextConsumer=function(e){return jc(e)===Oc},Rc.isContextProvider=function(e){return jc(e)===Lc},Rc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ac},Rc.isForwardRef=function(e){return jc(e)===kc},Rc.isFragment=function(e){return jc(e)===Ic},Rc.isLazy=function(e){return jc(e)===Fc},Rc.isMemo=function(e){return jc(e)===Nc},Rc.isPortal=function(e){return jc(e)===Pc},Rc.isProfiler=function(e){return jc(e)===Mc},Rc.isStrictMode=function(e){return jc(e)===Dc},Rc.isSuspense=function(e){return jc(e)===_c},Rc.isSuspenseList=function(e){return jc(e)===qc},Rc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ic||e===Mc||e===Dc||e===_c||e===qc||e===zc||"object"==typeof e&&null!==e&&(e.$$typeof===Fc||e.$$typeof===Nc||e.$$typeof===Lc||e.$$typeof===Oc||e.$$typeof===kc||e.$$typeof===Cc||void 0!==e.getModuleId)},Rc.typeOf=jc,wc.exports=Rc;var $c=wc.exports;const Hc=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Bc(e){const t=`${e}`.match(Hc);return t&&t[1]||""}function Wc(e,t=""){return e.displayName||e.name||Bc(e)||t}function Vc(e,t,n){const r=Wc(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Gc=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Wc(e,"Component");if("object"==typeof e)switch(e.$$typeof){case $c.ForwardRef:return Vc(e,e.render,"ForwardRef");case $c.Memo:return Vc(e,e.type,"memo");default:return}}},getFunctionName:Bc});function Uc(e,t){const n=Yi({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Yi({},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]=Yi({},i),Object.keys(o).forEach((e=>{n[r][e]=Uc(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Yc({props:e,name:t,defaultTheme:n,themeId:r}){let o=cc(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?Uc(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}var Kc="undefined"!=typeof window?A.useLayoutEffect:A.useEffect;function Xc(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Jc=Object.freeze({__proto__:null,default:Xc});function Zc(e){if(e.type)return e;if("#"===e.charAt(0))return Zc(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(Vi(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(Vi(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Qc(e,t){return e=Zc(e),t=function(e,t=0,n=1){return Xc(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function ed(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function td(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function nd(e){return e&&e.ownerDocument||document}function rd(e){return nd(e).defaultView||window}function od(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function id(e){const t=A.useRef(e);return Kc((()=>{t.current=e})),A.useRef(((...e)=>(0,t.current)(...e))).current}function ad(...e){return A.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{od(e,t)}))}),e)}const ld={};const sd=[];let ud=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function cd(){const e=function(e,t){const n=A.useRef(ld);return n.current===ld&&(n.current=e(t)),n}(ud.create).current;var t;return t=e.disposeEffect,A.useEffect(t,sd),e}let dd=!0,pd=!1;const fd=new ud,md={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 hd(e){e.metaKey||e.altKey||e.ctrlKey||(dd=!0)}function gd(){dd=!1}function bd(){"hidden"===this.visibilityState&&pd&&(dd=!0)}function vd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return dd||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!md[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function yd(){const e=A.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",hd,!0),t.addEventListener("mousedown",gd,!0),t.addEventListener("pointerdown",gd,!0),t.addEventListener("touchstart",gd,!0),t.addEventListener("visibilitychange",bd,!0))}),[]),t=A.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!vd(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(pd=!0,fd.start(100,(()=>{pd=!1})),t.current=!1,!0)},ref:e}}function xd(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Sd(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var Ed=A.createContext(null);function Cd(){return A.useContext(Ed)}var wd="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Rd(e){const{children:t,theme:n}=e,r=Cd(),o=A.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Yi({},e,t)}(r,n);return null!=e&&(e[wd]=null!==r),e}),[n,r]);return Wi.jsx(Ed.Provider,{value:o,children:t})}const Ad=["value"],Pd=A.createContext();function Id(e){let{value:t}=e,n=Ki(e,Ad);return Wi.jsx(Pd.Provider,Yi({value:null==t||t},n))}const Dd={};function Md(e,t,n,r=!1){return A.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Yi({},t,{[e]:i}):i;return r?()=>a:a}return Yi({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Ld(e){const{children:t,theme:n,themeId:r}=e,o=sc(Dd),i=Cd()||Dd,a=Md(r,o,n),l=Md(r,i,n,!0),s="rtl"===a.direction;return Wi.jsx(Rd,{theme:l,children:Wi.jsx(Ms.Provider,{value:a,children:Wi.jsx(Id,{value:s,children:t})})})}var Od={},Td={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Td);var kd=Td.exports,_d=an(Gi),qd=an(Jc),Nd=kd;Object.defineProperty(Od,"__esModule",{value:!0});var Fd=Od.alpha=Jd;Od.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Gd(e),a=Gd(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Yd({type:"rgb",values:l})},Od.colorChannel=void 0;var zd=Od.darken=Zd;Od.decomposeColor=Gd,Od.emphasize=function(e,t=.15){return Xd(e)>.5?Zd(e,t):Qd(e,t)};var jd=Od.getContrastRatio=function(e,t){const n=Xd(e),r=Xd(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Od.getLuminance=Xd,Od.hexToRgb=Vd,Od.hslToRgb=Kd;var $d=Od.lighten=Qd;Od.private_safeAlpha=function(e,t,n){try{return Jd(e,t)}catch(t){return e}},Od.private_safeColorChannel=void 0,Od.private_safeDarken=function(e,t,n){try{return Zd(e,t)}catch(t){return e}},Od.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},Od.private_safeLighten=function(e,t,n){try{return Qd(e,t)}catch(t){return e}},Od.recomposeColor=Yd,Od.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Gd(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Hd=Nd(_d),Bd=Nd(qd);function Wd(e,t=0,n=1){return(0,Bd.default)(e,t,n)}function Vd(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Gd(e){if(e.type)return e;if("#"===e.charAt(0))return Gd(Vd(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Hd.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,Hd.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Ud=e=>{const t=Gd(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Od.colorChannel=Ud;function Yd(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Kd(e){e=Gd(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Yd({type:l,values:s})}function Xd(e){let t="hsl"===(e=Gd(e)).type||"hsla"===e.type?Gd(Kd(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Jd(e,t){return e=Gd(e),t=Wd(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Yd(e)}function Zd(e,t){if(e=Gd(e),t=Wd(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Yd(e)}function Qd(e,t){if(e=Gd(e),t=Wd(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Yd(e)}Od.private_safeColorChannel=(e,t)=>{try{return Ud(e)}catch(t){return e}};var ep={black:"#000",white:"#fff"};var tp={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var np={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var rp={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var op={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var ip={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var ap={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var lp={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const sp=["mode","contrastThreshold","tonalOffset"],up={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ep.white,default:ep.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},cp={text:{primary:ep.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ep.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function dp(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=$d(e.main,o):"dark"===t&&(e.dark=zd(e.main,i)))}function pp(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ki(e,sp),i=e.primary||function(e="light"){return"dark"===e?{main:ip[200],light:ip[50],dark:ip[400]}:{main:ip[700],light:ip[400],dark:ip[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:np[200],light:np[50],dark:np[400]}:{main:np[500],light:np[300],dark:np[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:rp[500],light:rp[300],dark:rp[700]}:{main:rp[700],light:rp[400],dark:rp[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ap[400],light:ap[300],dark:ap[700]}:{main:ap[700],light:ap[500],dark:ap[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:lp[400],light:lp[300],dark:lp[700]}:{main:lp[800],light:lp[500],dark:lp[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:op[400],light:op[300],dark:op[700]}:{main:"#ed6c02",light:op[500],dark:op[900]}}(t);function d(e){return jd(e,cp.text.primary)>=n?cp.text.primary:up.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Yi({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Vi(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Vi(12,t?` (${t})`:"",JSON.stringify(e.main)));return dp(e,"light",o,r),dp(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:cp,light:up};return Qs(Yi({common:Yi({},ep),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:tp,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const fp=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const mp={textTransform:"uppercase"},hp='"Roboto", "Helvetica", "Arial", sans-serif';function gp(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=hp,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Ki(n,fp),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Yi({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===hp?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,mp),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,mp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qs(Yi({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function bp(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var vp=["none",bp(0,2,1,-1,0,1,1,0,0,1,3,0),bp(0,3,1,-2,0,2,2,0,0,1,5,0),bp(0,3,3,-2,0,3,4,0,0,1,8,0),bp(0,2,4,-1,0,4,5,0,0,1,10,0),bp(0,3,5,-1,0,5,8,0,0,1,14,0),bp(0,3,5,-1,0,6,10,0,0,1,18,0),bp(0,4,5,-2,0,7,10,1,0,2,16,1),bp(0,5,5,-3,0,8,10,1,0,3,14,2),bp(0,5,6,-3,0,9,12,1,0,3,16,2),bp(0,6,6,-3,0,10,14,1,0,4,18,3),bp(0,6,7,-4,0,11,15,1,0,4,20,3),bp(0,7,8,-4,0,12,17,2,0,5,22,4),bp(0,7,8,-4,0,13,19,2,0,5,24,4),bp(0,7,9,-4,0,14,21,2,0,5,26,4),bp(0,8,9,-5,0,15,22,2,0,6,28,5),bp(0,8,10,-5,0,16,24,2,0,6,30,5),bp(0,8,11,-5,0,17,26,2,0,6,32,5),bp(0,9,11,-5,0,18,28,2,0,7,34,6),bp(0,9,12,-6,0,19,29,2,0,7,36,6),bp(0,10,13,-6,0,20,31,3,0,8,38,7),bp(0,10,13,-6,0,21,33,3,0,8,40,7),bp(0,10,14,-6,0,22,35,3,0,8,42,7),bp(0,11,14,-7,0,23,36,3,0,9,44,8),bp(0,11,15,-7,0,24,38,3,0,9,46,8)];const yp=["duration","easing","delay"],xp={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Sp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ep(e){return`${Math.round(e)}ms`}function Cp(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function wp(e){const t=Yi({},xp,e.easing),n=Yi({},Sp,e.duration);return Yi({getAutoHeightDuration:Cp,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Ki(r,yp),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ep(o)} ${i} ${"string"==typeof a?a:Ep(a)}`)).join(",")}},e,{easing:t,duration:n})}var Rp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Ap=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Pp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Ki(e,Ap);if(e.vars)throw new Error(Vi(18));const l=pp(r),s=ac(e);let u=Qs(s,{mixins:(c=s.breakpoints,d=n,Yi({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:vp.slice(),typography:gp(l,i),transitions:wp(o),zIndex:Yi({},Rp)});var c,d;return u=Qs(u,a),u=t.reduce(((e,t)=>Qs(e,t)),u),u.unstable_sxConfig=Yi({},ec,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return rc({sx:e,theme:this})},u}var Ip=Pp();function Dp(){const e=cc(Ip);return e[Ui]||e}function Mp({props:e,name:t}){return Yc({props:e,name:t,defaultTheme:Ip,themeId:Ui})}var Lp,Op={},Tp={exports:{}};var kp,_p={exports:{}};var qp=an(Xs),Np=an(eu),Fp=an(cu),zp=an(Gc),jp=an(lc),$p=an(mc),Hp=kd;Object.defineProperty(Op,"__esModule",{value:!0});var Bp=Op.default=function(e={}){const{themeId:t,defaultTheme:n=tf,rootShouldForwardProp:r=ef,slotShouldForwardProp:o=ef}=e,i=e=>(0,Kp.default)((0,Wp.default)({},e,{theme:rf((0,Wp.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Gp.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=of(nf(s))}=a,p=(0,Vp.default)(a,Zp),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=ef;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,Gp.default)(e,(0,Wp.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Up.isPlainObject)(e)?r=>af(e,(0,Wp.default)({},r,{theme:rf({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=rf((0,Wp.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=af(n,(0,Wp.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=rf((0,Wp.default)({},e,{defaultTheme:n,themeId:t}));return af({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,Wp.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};Op.shouldForwardProp=ef,Op.systemDefaultTheme=void 0;var Wp=Hp((Lp||(Lp=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Tp)),Tp.exports)),Vp=Hp((kp||(kp=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(_p)),_p.exports)),Gp=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Qp(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(qp),Up=Np;Hp(Fp),Hp(zp);var Yp=Hp(jp),Kp=Hp($p);const Xp=["ownerState"],Jp=["variants"],Zp=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Qp(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Qp=function(e){return e?n:t})(e)}function ef(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const tf=Op.systemDefaultTheme=(0,Yp.default)(),nf=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function rf({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function of(e){return e?(t,n)=>n[e]:null}function af(e,t){let{ownerState:n}=t,r=(0,Vp.default)(t,Xp);const o="function"==typeof e?e((0,Wp.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>af(e,(0,Wp.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Vp.default)(o,Jp);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Wp.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Wp.default)({ownerState:n},r,n)):e.style))})),t}return o}var lf=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var sf=Bp({themeId:Ui,defaultTheme:Ip,rootShouldForwardProp:lf});const uf=["theme"];function cf(e){let{theme:t}=e,n=Ki(e,uf);const r=t[Ui];return Wi.jsx(Ld,Yi({},n,{themeId:r?Ui:void 0,theme:r||t}))}var df=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},pf={exports:{}};
|
|
19
|
+
function nu(e,t){let r;return r=t?Vl(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Vl(e),r}tu.propTypes={defaultTheme:Ql.object,styles:Ql.oneOfType([Ql.array,Ql.string,Ql.object,Ql.func])};var ou=Object.freeze({__proto__:null,GlobalStyles:ru,StyledEngineProvider:eu,ThemeContext:Fl,css:Hl,default:nu,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:Kl});function iu(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 au(e){if(!iu(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=au(e[r])})),t}function su(e,t,r={clone:!0}){const n=r.clone?ia({},e):e;return iu(e)&&iu(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(iu(t[o])&&o in e&&iu(e[o])?n[o]=su(e[o],t[o],r):r.clone?n[o]=iu(t[o])?au(t[o]):t[o]:n[o]=t[o])})),n}var lu=Object.freeze({__proto__:null,default:su,isPlainObject:iu});const uu=["values","unit","step"],cu=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)=>ia({},e,{[t.key]:t.val})),{})};function du(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=aa(e,uu),i=cu(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return ia({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var pu={borderRadius:4};function fu(e,t){return t?su(e,t,{clone:!1}):e}const mu={xs:0,sm:600,md:900,lg:1200,xl:1536},hu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mu[e]}px)`};function gu(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||hu;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||hu;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||mu).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function bu(e){if("string"!=typeof e)throw new Error(ra(7));return e.charAt(0).toUpperCase()+e.slice(1)}var vu=Object.freeze({__proto__:null,default:bu});function yu(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 xu(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:yu(e,r)||n,t&&(o=t(o,n,e)),o}function Su(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=yu(e.theme,n)||{};return gu(e,i,(e=>{let n=xu(a,o,e);return e===n&&"string"==typeof e&&(n=xu(a,o,`${t}${"default"===e?"":bu(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Eu={m:"margin",p:"padding"},Cu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ru=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!wu[e])return[e];e=wu[e]}const[t,r]=e.split(""),n=Eu[t],o=Cu[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Au=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Iu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Du(e,t,r,n){var o;const i=null!=(o=yu(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 Lu(e){return Du(e,"spacing",8)}function Pu(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 Mu(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Pu(t,r),e)),{})}(Ru(r),n);return gu(e,e[r],o)}function _u(e,t){const r=Lu(e.theme);return Object.keys(e).map((n=>Mu(e,t,n,r))).reduce(fu,{})}function Tu(e){return _u(e,Au)}function ku(e){return _u(e,Iu)}function Ou(...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]?fu(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function qu(e){return"number"!=typeof e?e:`${e}px solid`}function Nu(e,t){return Su({prop:e,themeKey:"borders",transform:t})}Tu.propTypes={},Tu.filterProps=Au,ku.propTypes={},ku.filterProps=Iu;const Fu=Nu("border",qu),zu=Nu("borderTop",qu),ju=Nu("borderRight",qu),$u=Nu("borderBottom",qu),Bu=Nu("borderLeft",qu),Hu=Nu("borderColor"),Wu=Nu("borderTopColor"),Gu=Nu("borderRightColor"),Vu=Nu("borderBottomColor"),Uu=Nu("borderLeftColor"),Yu=Nu("outline",qu),Ku=Nu("outlineColor"),Xu=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Du(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Pu(t,e)});return gu(e,e.borderRadius,r)}return null};Xu.propTypes={},Xu.filterProps=["borderRadius"],Ou(Fu,zu,ju,$u,Bu,Hu,Wu,Gu,Vu,Uu,Xu,Yu,Ku);const Ju=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Du(e.theme,"spacing",8),r=e=>({gap:Pu(t,e)});return gu(e,e.gap,r)}return null};Ju.propTypes={},Ju.filterProps=["gap"];const Zu=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Du(e.theme,"spacing",8),r=e=>({columnGap:Pu(t,e)});return gu(e,e.columnGap,r)}return null};Zu.propTypes={},Zu.filterProps=["columnGap"];const Qu=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Du(e.theme,"spacing",8),r=e=>({rowGap:Pu(t,e)});return gu(e,e.rowGap,r)}return null};Qu.propTypes={},Qu.filterProps=["rowGap"];function ec(e,t){return"grey"===t?t:e}Ou(Ju,Zu,Qu,Su({prop:"gridColumn"}),Su({prop:"gridRow"}),Su({prop:"gridAutoFlow"}),Su({prop:"gridAutoColumns"}),Su({prop:"gridAutoRows"}),Su({prop:"gridTemplateColumns"}),Su({prop:"gridTemplateRows"}),Su({prop:"gridTemplateAreas"}),Su({prop:"gridArea"}));function tc(e){return e<=1&&0!==e?100*e+"%":e}Ou(Su({prop:"color",themeKey:"palette",transform:ec}),Su({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ec}),Su({prop:"backgroundColor",themeKey:"palette",transform:ec}));const rc=Su({prop:"width",transform:tc}),nc=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])||mu[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:tc(t)}};return gu(e,e.maxWidth,t)}return null};nc.filterProps=["maxWidth"];const oc=Su({prop:"minWidth",transform:tc}),ic=Su({prop:"height",transform:tc}),ac=Su({prop:"maxHeight",transform:tc}),sc=Su({prop:"minHeight",transform:tc});Su({prop:"size",cssProperty:"width",transform:tc}),Su({prop:"size",cssProperty:"height",transform:tc});Ou(rc,nc,oc,ic,ac,sc,Su({prop:"boxSizing"}));var lc={border:{themeKey:"borders",transform:qu},borderTop:{themeKey:"borders",transform:qu},borderRight:{themeKey:"borders",transform:qu},borderBottom:{themeKey:"borders",transform:qu},borderLeft:{themeKey:"borders",transform:qu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xu},color:{themeKey:"palette",transform:ec},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ec},backgroundColor:{themeKey:"palette",transform:ec},p:{style:ku},pt:{style:ku},pr:{style:ku},pb:{style:ku},pl:{style:ku},px:{style:ku},py:{style:ku},padding:{style:ku},paddingTop:{style:ku},paddingRight:{style:ku},paddingBottom:{style:ku},paddingLeft:{style:ku},paddingX:{style:ku},paddingY:{style:ku},paddingInline:{style:ku},paddingInlineStart:{style:ku},paddingInlineEnd:{style:ku},paddingBlock:{style:ku},paddingBlockStart:{style:ku},paddingBlockEnd:{style:ku},m:{style:Tu},mt:{style:Tu},mr:{style:Tu},mb:{style:Tu},ml:{style:Tu},mx:{style:Tu},my:{style:Tu},margin:{style:Tu},marginTop:{style:Tu},marginRight:{style:Tu},marginBottom:{style:Tu},marginLeft:{style:Tu},marginX:{style:Tu},marginY:{style:Tu},marginInline:{style:Tu},marginInlineStart:{style:Tu},marginInlineEnd:{style:Tu},marginBlock:{style:Tu},marginBlockStart:{style:Tu},marginBlockEnd:{style:Tu},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:Ju},rowGap:{style:Qu},columnGap:{style:Zu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tc},maxWidth:{style:nc},minWidth:{transform:tc},height:{transform:tc},maxHeight:{transform:tc},minHeight:{transform:tc},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function uc(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=yu(r,s)||{};if(u)return u(o);return gu(o,t,(t=>{let r=xu(c,l,t);return t===r&&"string"==typeof t&&(r=xu(c,l,`${e}${"default"===t?"":bu(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:lc;function s(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),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[r])l=fu(l,e(r,o,i,a));else{const e=gu({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)?l=fu(l,e):l[r]=t({sx:o,theme:i})}else l=fu(l,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)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const cc=uc();cc.filterProps=["sx"];var dc=cc;function pc(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){return{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return r.palette.mode===e?t:{}}const fc=["breakpoints","palette","spacing","shape"];function mc(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=aa(e,fc),s=du(r),l=function(e=8){if(e.mui)return e;const t=Lu({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=su({breakpoints:s,direction:"ltr",components:{},palette:ia({mode:"light"},n),spacing:l,shape:ia({},pu,i)},a);return u.applyStyles=pc,u=t.reduce(((e,t)=>su(e,t)),u),u.unstable_sxConfig=ia({},lc,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return dc({sx:e,theme:this})},u}var hc=Object.freeze({__proto__:null,default:mc,private_createBreakpoints:du,unstable_applyStyles:pc});function gc(e=null){const t=A.useContext(Fl);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const bc=mc();function vc(e=bc){return gc(e)}const yc=["sx"],xc=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:lc;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function Sc(e){const{sx:t}=e,r=aa(e,yc),{systemProps:n,otherProps:o}=xc(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return iu(r)?ia({},n,r):n}:ia({},n,t),ia({},o,{sx:i})}var Ec=Object.freeze({__proto__:null,default:dc,extendSxProp:Sc,unstable_createStyleFunctionSx:uc,unstable_defaultSxConfig:lc});const Cc=e=>e;var wc=(()=>{let e=Cc;return{configure(t){e=t},generate:t=>e(t),reset(){e=Cc}}})();function Rc(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=Rc(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ac(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Rc(e))&&(n&&(n+=" "),n+=t);return n}const Ic=["className","component"];const Dc={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 Lc(e,t,r="Mui"){const n=Dc[t];return n?`${r}-${n}`:`${wc.generate(e)}-${t}`}function Pc(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Lc(e,t,r)})),n}var Mc,_c={exports:{}},Tc={},kc=Symbol.for("react.element"),Oc=Symbol.for("react.portal"),qc=Symbol.for("react.fragment"),Nc=Symbol.for("react.strict_mode"),Fc=Symbol.for("react.profiler"),zc=Symbol.for("react.provider"),jc=Symbol.for("react.context"),$c=Symbol.for("react.server_context"),Bc=Symbol.for("react.forward_ref"),Hc=Symbol.for("react.suspense"),Wc=Symbol.for("react.suspense_list"),Gc=Symbol.for("react.memo"),Vc=Symbol.for("react.lazy"),Uc=Symbol.for("react.offscreen");function Yc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case kc:switch(e=e.type){case qc:case Fc:case Nc:case Hc:case Wc:return e;default:switch(e=e&&e.$$typeof){case $c:case jc:case Bc:case Vc:case Gc:case zc:return e;default:return t}}case Oc:return t}}}Mc=Symbol.for("react.module.reference"),Tc.ContextConsumer=jc,Tc.ContextProvider=zc,Tc.Element=kc,Tc.ForwardRef=Bc,Tc.Fragment=qc,Tc.Lazy=Vc,Tc.Memo=Gc,Tc.Portal=Oc,Tc.Profiler=Fc,Tc.StrictMode=Nc,Tc.Suspense=Hc,Tc.SuspenseList=Wc,Tc.isAsyncMode=function(){return!1},Tc.isConcurrentMode=function(){return!1},Tc.isContextConsumer=function(e){return Yc(e)===jc},Tc.isContextProvider=function(e){return Yc(e)===zc},Tc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===kc},Tc.isForwardRef=function(e){return Yc(e)===Bc},Tc.isFragment=function(e){return Yc(e)===qc},Tc.isLazy=function(e){return Yc(e)===Vc},Tc.isMemo=function(e){return Yc(e)===Gc},Tc.isPortal=function(e){return Yc(e)===Oc},Tc.isProfiler=function(e){return Yc(e)===Fc},Tc.isStrictMode=function(e){return Yc(e)===Nc},Tc.isSuspense=function(e){return Yc(e)===Hc},Tc.isSuspenseList=function(e){return Yc(e)===Wc},Tc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===qc||e===Fc||e===Nc||e===Hc||e===Wc||e===Uc||"object"==typeof e&&null!==e&&(e.$$typeof===Vc||e.$$typeof===Gc||e.$$typeof===zc||e.$$typeof===jc||e.$$typeof===Bc||e.$$typeof===Mc||void 0!==e.getModuleId)},Tc.typeOf=Yc,_c.exports=Tc;var Kc=_c.exports;const Xc=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Jc(e){const t=`${e}`.match(Xc);return t&&t[1]||""}function Zc(e,t=""){return e.displayName||e.name||Jc(e)||t}function Qc(e,t,r){const n=Zc(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var ed=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Zc(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Kc.ForwardRef:return Qc(e,e.render,"ForwardRef");case Kc.Memo:return Qc(e,e.type,"memo");default:return}}},getFunctionName:Jc});function td(e,t){const r=ia({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=ia({},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]=ia({},i),Object.keys(o).forEach((e=>{r[n][e]=td(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function rd({props:e,name:t,defaultTheme:r,themeId:n}){let o=vc(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?td(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}var nd="undefined"!=typeof window?A.useLayoutEffect:A.useEffect;function od(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var id=Object.freeze({__proto__:null,default:od});function ad(e){if(e.type)return e;if("#"===e.charAt(0))return ad(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(ra(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(ra(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function sd(e,t){return e=ad(e),t=function(e,t=0,r=1){return od(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function ld(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function ud(e){return e&&e.ownerDocument||document}function cd(e){return ud(e).defaultView||window}function dd(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function pd(e){const t=A.useRef(e);return nd((()=>{t.current=e})),A.useRef(((...e)=>(0,t.current)(...e))).current}function fd(...e){return A.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{dd(e,t)}))}),e)}const md={};const hd=[];let gd=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function bd(){const e=function(e,t){const r=A.useRef(md);return r.current===md&&(r.current=e(t)),r}(gd.create).current;var t;return t=e.disposeEffect,A.useEffect(t,hd),e}let vd=!0,yd=!1;const xd=new gd,Sd={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 Ed(e){e.metaKey||e.altKey||e.ctrlKey||(vd=!0)}function Cd(){vd=!1}function wd(){"hidden"===this.visibilityState&&yd&&(vd=!0)}function Rd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return vd||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Sd[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Ad(){const e=A.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ed,!0),t.addEventListener("mousedown",Cd,!0),t.addEventListener("pointerdown",Cd,!0),t.addEventListener("touchstart",Cd,!0),t.addEventListener("visibilitychange",wd,!0))}),[]),t=A.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Rd(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(yd=!0,xd.start(100,(()=>{yd=!1})),t.current=!1,!0)},ref:e}}function Id(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}var Dd=A.createContext(null);function Ld(){return A.useContext(Dd)}var Pd="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Md(e){const{children:t,theme:r}=e,n=Ld(),o=A.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return ia({},e,t)}(n,r);return null!=e&&(e[Pd]=null!==n),e}),[r,n]);return ta.jsx(Dd.Provider,{value:o,children:t})}const _d=["value"],Td=A.createContext();function kd(e){let{value:t}=e,r=aa(e,_d);return ta.jsx(Td.Provider,ia({value:null==t||t},r))}const Od={};function qd(e,t,r,n=!1){return A.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?ia({},t,{[e]:i}):i;return n?()=>a:a}return ia({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Nd(e){const{children:t,theme:r,themeId:n}=e,o=gc(Od),i=Ld()||Od,a=qd(n,o,r),s=qd(n,i,r,!0),l="rtl"===a.direction;return ta.jsx(Md,{theme:s,children:ta.jsx(Fl.Provider,{value:a,children:ta.jsx(kd,{value:l,children:t})})})}var Fd={},zd={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(zd);var jd=zd.exports,$d=ir(na),Bd=ir(id),Hd=jd;Object.defineProperty(Fd,"__esModule",{value:!0});var Wd=Fd.alpha=np;Fd.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Zd(e),a=Zd(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ep({type:"rgb",values:s})},Fd.colorChannel=void 0;var Gd=Fd.darken=op;Fd.decomposeColor=Zd,Fd.emphasize=ap;var Vd=Fd.getContrastRatio=function(e,t){const r=rp(e),n=rp(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Fd.getLuminance=rp,Fd.hexToRgb=Jd,Fd.hslToRgb=tp;var Ud=Fd.lighten=ip;Fd.private_safeAlpha=function(e,t,r){try{return np(e,t)}catch(t){return e}},Fd.private_safeColorChannel=void 0,Fd.private_safeDarken=function(e,t,r){try{return op(e,t)}catch(t){return e}},Fd.private_safeEmphasize=function(e,t,r){try{return ap(e,t)}catch(t){return e}},Fd.private_safeLighten=function(e,t,r){try{return ip(e,t)}catch(t){return e}},Fd.recomposeColor=ep,Fd.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Zd(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Yd=Hd($d),Kd=Hd(Bd);function Xd(e,t=0,r=1){return(0,Kd.default)(e,t,r)}function Jd(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Zd(e){if(e.type)return e;if("#"===e.charAt(0))return Zd(Jd(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Yd.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Yd.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Qd=e=>{const t=Zd(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Fd.colorChannel=Qd;function ep(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 tp(e){e=Zd(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),ep({type:s,values:l})}function rp(e){let t="hsl"===(e=Zd(e)).type||"hsla"===e.type?Zd(tp(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 np(e,t){return e=Zd(e),t=Xd(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ep(e)}function op(e,t){if(e=Zd(e),t=Xd(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 ep(e)}function ip(e,t){if(e=Zd(e),t=Xd(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 ep(e)}function ap(e,t=.15){return rp(e)>.5?op(e,t):ip(e,t)}Fd.private_safeColorChannel=(e,t)=>{try{return Qd(e)}catch(t){return e}};var sp={black:"#000",white:"#fff"};var lp={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 up={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 cp={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 dp={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 pp={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 fp={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 mp={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 hp=["mode","contrastThreshold","tonalOffset"],gp={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:sp.white,default:sp.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}},bp={text:{primary:sp.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:sp.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 vp(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=Ud(e.main,o):"dark"===t&&(e.dark=Gd(e.main,i)))}function yp(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=aa(e,hp),i=e.primary||function(e="light"){return"dark"===e?{main:pp[200],light:pp[50],dark:pp[400]}:{main:pp[700],light:pp[400],dark:pp[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:up[200],light:up[50],dark:up[400]}:{main:up[500],light:up[300],dark:up[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:cp[500],light:cp[300],dark:cp[700]}:{main:cp[700],light:cp[400],dark:cp[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:fp[400],light:fp[300],dark:fp[700]}:{main:fp[700],light:fp[500],dark:fp[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:mp[400],light:mp[300],dark:mp[700]}:{main:mp[800],light:mp[500],dark:mp[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:dp[400],light:dp[300],dark:dp[700]}:{main:"#ed6c02",light:dp[500],dark:dp[900]}}(t);function d(e){return Vd(e,bp.text.primary)>=r?bp.text.primary:gp.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=ia({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(ra(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(ra(12,t?` (${t})`:"",JSON.stringify(e.main)));return vp(e,"light",o,n),vp(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:bp,light:gp};return su(ia({common:ia({},sp),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:lp,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const xp=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Sp={textTransform:"uppercase"},Ep='"Roboto", "Helvetica", "Arial", sans-serif';function Cp(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Ep,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=aa(r,xp),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return ia({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Ep?{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(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Sp),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Sp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return su(ia({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function wp(...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 Rp=["none",wp(0,2,1,-1,0,1,1,0,0,1,3,0),wp(0,3,1,-2,0,2,2,0,0,1,5,0),wp(0,3,3,-2,0,3,4,0,0,1,8,0),wp(0,2,4,-1,0,4,5,0,0,1,10,0),wp(0,3,5,-1,0,5,8,0,0,1,14,0),wp(0,3,5,-1,0,6,10,0,0,1,18,0),wp(0,4,5,-2,0,7,10,1,0,2,16,1),wp(0,5,5,-3,0,8,10,1,0,3,14,2),wp(0,5,6,-3,0,9,12,1,0,3,16,2),wp(0,6,6,-3,0,10,14,1,0,4,18,3),wp(0,6,7,-4,0,11,15,1,0,4,20,3),wp(0,7,8,-4,0,12,17,2,0,5,22,4),wp(0,7,8,-4,0,13,19,2,0,5,24,4),wp(0,7,9,-4,0,14,21,2,0,5,26,4),wp(0,8,9,-5,0,15,22,2,0,6,28,5),wp(0,8,10,-5,0,16,24,2,0,6,30,5),wp(0,8,11,-5,0,17,26,2,0,6,32,5),wp(0,9,11,-5,0,18,28,2,0,7,34,6),wp(0,9,12,-6,0,19,29,2,0,7,36,6),wp(0,10,13,-6,0,20,31,3,0,8,38,7),wp(0,10,13,-6,0,21,33,3,0,8,40,7),wp(0,10,14,-6,0,22,35,3,0,8,42,7),wp(0,11,14,-7,0,23,36,3,0,9,44,8),wp(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ap=["duration","easing","delay"],Ip={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)"},Dp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Lp(e){return`${Math.round(e)}ms`}function Pp(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Mp(e){const t=ia({},Ip,e.easing),r=ia({},Dp,e.duration);return ia({getAutoHeightDuration:Pp,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return aa(n,Ap),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Lp(o)} ${i} ${"string"==typeof a?a:Lp(a)}`)).join(",")}},e,{easing:t,duration:r})}var _p={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 kp(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=aa(e,Tp);if(e.vars)throw new Error(ra(18));const s=yp(n),l=mc(e);let u=su(l,{mixins:(c=l.breakpoints,d=r,ia({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Rp.slice(),typography:Cp(s,i),transitions:Mp(o),zIndex:ia({},_p)});var c,d;return u=su(u,a),u=t.reduce(((e,t)=>su(e,t)),u),u.unstable_sxConfig=ia({},lc,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return dc({sx:e,theme:this})},u}var Op=kp();function qp({props:e,name:t}){return rd({props:e,name:t,defaultTheme:Op,themeId:oa})}var Np,Fp={},zp={exports:{}};var jp,$p={exports:{}};var Bp=ir(ou),Hp=ir(lu),Wp=ir(vu),Gp=ir(ed),Vp=ir(hc),Up=ir(Ec),Yp=jd;Object.defineProperty(Fp,"__esModule",{value:!0});var Kp=Fp.default=function(e={}){const{themeId:t,defaultTheme:r=lf,rootShouldForwardProp:n=sf,slotShouldForwardProp:o=sf}=e,i=e=>(0,tf.default)((0,Xp.default)({},e,{theme:cf((0,Xp.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Zp.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=df(uf(l))}=a,p=(0,Jp.default)(a,of),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let h=sf;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,Zp.default)(e,(0,Xp.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Qp.isPlainObject)(e)?n=>pf(e,(0,Xp.default)({},n,{theme:cf({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push((e=>{const n=cf((0,Xp.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=pf(r,(0,Xp.default)({},e,{theme:n}))})),d(e,i)})),s&&!f&&l.push((e=>{var n;const o=cf((0,Xp.default)({},e,{defaultTheme:r,themeId:t}));return pf({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Xp.default)({},e,{theme:o}))})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};Fp.shouldForwardProp=sf,Fp.systemDefaultTheme=void 0;var Xp=Yp((Np||(Np=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(zp)),zp.exports)),Jp=Yp((jp||(jp=1,function(e){e.exports=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.exports.__esModule=!0,e.exports.default=e.exports}($p)),$p.exports)),Zp=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=af(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(Bp),Qp=Hp;Yp(Wp),Yp(Gp);var ef=Yp(Vp),tf=Yp(Up);const rf=["ownerState"],nf=["variants"],of=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function af(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(af=function(e){return e?r:t})(e)}function sf(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const lf=Fp.systemDefaultTheme=(0,ef.default)(),uf=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function cf({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function df(e){return e?(t,r)=>r[e]:null}function pf(e,t){let{ownerState:r}=t,n=(0,Jp.default)(t,rf);const o="function"==typeof e?e((0,Xp.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>pf(e,(0,Xp.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Jp.default)(o,nf);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Xp.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Xp.default)({ownerState:r},n,r)):e.style))})),t}return o}var ff=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var mf=Kp({themeId:oa,defaultTheme:Op,rootShouldForwardProp:ff});const hf=["theme"];function gf(e){let{theme:t}=e,r=aa(e,hf);const n=t[oa];return ta.jsx(Nd,ia({},r,{themeId:n?oa:void 0,theme:n||t}))}var bf={exports:{}};
|
|
20
20
|
/*!
|
|
21
21
|
* CSSJanus. https://github.com/cssjanus/cssjanus
|
|
22
22
|
*
|
|
@@ -35,8 +35,7 @@ function Ks(e,t){let n;return n=t?Fs(e).withConfig({displayName:t.label,shouldFo
|
|
|
35
35
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
36
36
|
* See the License for the specific language governing permissions and
|
|
37
37
|
* limitations under the License.
|
|
38
|
-
*/
|
|
39
|
-
!function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",l="(^|[^a-zA-Z])",s="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+n+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+n+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+n+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),E=new RegExp("("+s+g+"[^;}]+;?)","gi"),C=new RegExp("("+s+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(l+"(left)"+h+b+g,"gi"),P=new RegExp(l+"(right)"+h+b+g,"gi"),I=new RegExp(l+"(left)"+v,"gi"),D=new RegExp(l+"(right)"+v,"gi"),M=new RegExp(l+"(ltr)"+v,"gi"),L=new RegExp(l+"(rtl)"+v,"gi"),O=new RegExp(l+"([ns]?)e-resize","gi"),T=new RegExp(l+"([ns]?)w-resize","gi"),k=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),_=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),F=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),z=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),j=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function V(e,t,n){var r,o;return"%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n}function G(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter((function(e){return e})),o=n.slice(6,10).filter((function(e){return e})),i=n[10]||"";return t+(o.length?G(r)+" / "+G(o):G(r))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,n){return t+Y(n)}function X(e,t,n,r,o){return t+n+Y(r)+o}function J(e,t,n,r,o){return t+n+r+Y(o)}return{transform:function(n,o){var i=new r(E,"`NOFLIP_SINGLE`"),a=new r(C,"`NOFLIP_CLASS`"),l=new r(S,t);return n=l.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(M,"$1"+e).replace(L,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(n=n.replace(I,"$1"+e).replace(D,"$1left").replace(x,"right")),n=n.replace(w,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(P,"$1left").replace(x,"right").replace(O,"$1$2"+e).replace(T,"$1$2e-resize").replace(x,"w-resize").replace(F,U).replace(z,K).replace(j,J).replace($,J).replace(H,K).replace(B,X).replace(W,X).replace(k,"$1$2$3$8$5$6$7$4$9").replace(_,"$1$2$3$8$5$6$7$4$9").replace(q,V).replace(N,V),n=i.detokenize(a.detokenize(l.detokenize(n)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(pf,pf.exports);var ff,mf,hf,gf,bf,vf=on(pf.exports);function yf(e,t,n){switch(e.type){case aa:case oa:case na:return e.return=e.return||e.value;case ra:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===na&&(e.children=e.value)}))}var r=Xa(Array.prototype.concat(e.children),yf);return ya(r)?e.return=e.value+"{"+r+"}":""}function xf(e,t,n,r){if(e.type===sa||e.type===la||e.type===ra&&(!e.parent||e.parent.type===ia||e.parent.type===ra)){var o=vf.transform(yf(e));e.children=o?Wa(o)[0].children:[],e.return=""}}Object.defineProperty(xf,"name",{value:"stylisRTLPlugin"}),function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(ff||(ff={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_PAGE_ROWS="updatePageRows"}(mf||(mf={})),function(e){e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c"}(hf||(hf={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(gf||(gf={})),function(e){e.A="ascending",e.D="descending"}(bf||(bf={}));const Sf=[0,0],Ef=[1,0];function Cf(e){if(e.type)return e;if("#"===e.charAt(0))return Cf(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function wf(e,t){return e=Cf(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function Rf(e,t){return Rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rf(e,t)}function Af(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rf(e,t)}const Pf={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},If={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Pf,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Df=12,Mf=14,Lf=16,Of=24,Tf=3,kf=300,_f=400,qf=600,Nf=700,Ff={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};wf(If.GREYSCALE_0,.05),wf(If.GREEN_PALE,.5),wf(If.BLUE_PALE,.5),wf(If.GREEN_PALE,.5),wf(If.BLUE_PALE,.5),wf(If.GREEN_PALE,.5),wf(If.BLUE_PALE,.5);var zf;function jf(){return jf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jf.apply(this,arguments)}wf(If.GREEN_PALE,.5),wf(If.BLUE_PALE,.5),wf(If.GREEN_PALE,.5),wf(If.BLUE_PALE,.5);var $f,Hf=function(e){return A.createElement("svg",jf({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),zf||(zf=A.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Bf(){return Bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bf.apply(this,arguments)}var Wf=function(e){return A.createElement("svg",Bf({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),$f||($f=A.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function Vf({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return E.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 Gf=(e={})=>E.createElement(Vf,{...e},E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},E.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),E.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),Uf=(e={})=>E.createElement(Vf,{...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),E.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Yf=(e={})=>E.createElement(Vf,{fontSize:"medium",...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},E.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Kf=(e={})=>E.createElement(Vf,{fontSize:"medium",...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),E.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),Xf=({className:e})=>E.createElement(Vf,{fontSize:"small",className:e},E.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},E.createElement("g",{transform:"translate(4.324187, 1.300372)"},E.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"}),E.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),Jf=!1,Zf=E.createContext(null),Qf="unmounted",em="exited",tm="entering",nm="entered",rm="exiting",om=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=em,r.appearStatus=tm):o=nm:o=t.unmountOnExit||t.mountOnEnter?Qf:em,r.state={status:o},r.nextCallback=null,r}Af(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Qf?{status:em}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==tm&&n!==nm&&(t=tm):n!==tm&&n!==nm||(t=rm)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===tm){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===em&&this.setState({status:Qf})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[z.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Jf?this.safeSetState({status:nm},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:tm},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:nm},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:z.findDOMNode(this);t&&!Jf?(this.props.onExit(r),this.safeSetState({status:rm},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:em},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:em},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Qf)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Ki(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return E.createElement(Zf.Provider,{value:null},"function"==typeof n?n(e,r):E.cloneElement(E.Children.only(n),r))},t}(E.Component);function im(){}om.contextType=Zf,om.propTypes={},om.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:im,onEntering:im,onEntered:im,onExit:im,onExiting:im,onExited:im},om.UNMOUNTED=Qf,om.EXITED=em,om.ENTERING=tm,om.ENTERED=nm,om.EXITING=rm;var am=om;function lm(e,t){var n=Object.create(null);return e&&P.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&I(e)?t(e):e}(e)})),n}function sm(e,t,n){return null!=n[t]?n[t]:e.props[t]}function um(e,t,n){var r=lm(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(I(a)){var l=i in t,s=i in r,u=t[i],c=I(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&I(u)&&(o[i]=D(a,{onExited:n.bind(null,a),in:u.props.in,exit:sm(a,"exit",e),enter:sm(a,"enter",e)})):o[i]=D(a,{in:!1}):o[i]=D(a,{onExited:n.bind(null,a),in:!0,exit:sm(a,"exit",e),enter:sm(a,"enter",e)})}})),o}var cm=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},dm=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Af(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,lm(n.children,(function(e){return D(e,{onExited:r.bind(null,e),in:!0,appear:sm(e,"appear",n),enter:sm(e,"enter",n),exit:sm(e,"exit",n)})}))):um(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=lm(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Yi({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ki(e,["component","childFactory"]),o=this.state.contextValue,i=cm(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?E.createElement(Zf.Provider,{value:o},i):E.createElement(Zf.Provider,{value:o},E.createElement(t,r,i))},t}(E.Component);dm.propTypes={},dm.defaultProps={component:"div",childFactory:function(e){return e}};var pm=dm;const fm=e=>e.scrollTop;function mm(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function hm(e){return Sc("MuiPaper",e)}Ec("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const gm=["className","component","elevation","square","variant"],bm=sf("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Yi({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&&Yi({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Fd("#fff",df(t.elevation))}, ${Fd("#fff",df(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var vm=A.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Ki(n,gm),u=Yi({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sd({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},hm,o)})(u);return Wi.jsx(bm,Yi({as:o,ownerState:u,className:vc(c.root,r),ref:t},s))}));function ym(e){return"string"==typeof e}function xm(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function Sm(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const Em=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Cm(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Ki(e,Em),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=vc(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Yi({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Yi({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=xm(Yi({},o,r)),l=Sm(r),s=Sm(o),u=t(a),c=vc(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=Yi({},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=Yi({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Yi({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||ym(e)?t:Yi({},t,{ownerState:Yi({},t.ownerState,n)})}(n,Yi({},s,{ref:ad(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var wm=Ec("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Rm=["center","classes","className"];let Am,Pm,Im,Dm,Mm=e=>e;const Lm=$s(Am||(Am=Mm`
|
|
38
|
+
*/!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+r+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),E=new RegExp("("+l+g+"[^;}]+;?)","gi"),C=new RegExp("("+l+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(s+"(left)"+h+b+g,"gi"),I=new RegExp(s+"(right)"+h+b+g,"gi"),D=new RegExp(s+"(left)"+v,"gi"),L=new RegExp(s+"(right)"+v,"gi"),P=new RegExp(s+"(ltr)"+v,"gi"),M=new RegExp(s+"(rtl)"+v,"gi"),_=new RegExp(s+"([ns]?)e-resize","gi"),T=new RegExp(s+"([ns]?)w-resize","gi"),k=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),O=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),F=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),z=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),j=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),B=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),H=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function G(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function V(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?V(n)+" / "+V(o):V(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(E,"`NOFLIP_SINGLE`"),a=new n(C,"`NOFLIP_CLASS`"),s=new n(S,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(P,"$1"+e).replace(M,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(D,"$1"+e).replace(L,"$1left").replace(x,"right")),r=r.replace(w,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(I,"$1left").replace(x,"right").replace(_,"$1$2"+e).replace(T,"$1$2e-resize").replace(x,"w-resize").replace(F,U).replace(z,K).replace(j,J).replace($,J).replace(B,K).replace(H,X).replace(W,X).replace(k,"$1$2$3$8$5$6$7$4$9").replace(O,"$1$2$3$8$5$6$7$4$9").replace(q,G).replace(N,G),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(bf,bf.exports);var vf=or(bf.exports),yf="comm",xf="rule",Sf="decl",Ef="@media",Cf="@import",wf="@supports",Rf="@keyframes",Af=Math.abs,If=String.fromCharCode;function Df(e){return e.trim()}function Lf(e,t,r){return e.replace(t,r)}function Pf(e,t,r){return e.indexOf(t,r)}function Mf(e,t){return 0|e.charCodeAt(t)}function _f(e,t,r){return e.slice(t,r)}function Tf(e){return e.length}function kf(e,t){return t.push(e),e}var Of,qf,Nf,Ff,zf,jf=1,$f=1,Bf=0,Hf=0,Wf=0,Gf="";function Vf(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:jf,column:$f,length:a,return:"",siblings:s}}function Uf(){return Wf=Hf>0?Mf(Gf,--Hf):0,$f--,10===Wf&&($f=1,jf--),Wf}function Yf(){return Wf=Hf<Bf?Mf(Gf,Hf++):0,$f++,10===Wf&&($f=1,jf++),Wf}function Kf(){return Mf(Gf,Hf)}function Xf(){return Hf}function Jf(e,t){return _f(Gf,e,t)}function Zf(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 Qf(e){return Df(Jf(Hf-1,rm(91===e?e+2:40===e?e+1:e)))}function em(e){for(;(Wf=Kf())&&Wf<33;)Yf();return Zf(e)>2||Zf(Wf)>3?"":" "}function tm(e,t){for(;--t&&Yf()&&!(Wf<48||Wf>102||Wf>57&&Wf<65||Wf>70&&Wf<97););return Jf(e,Xf()+(t<6&&32==Kf()&&32==Yf()))}function rm(e){for(;Yf();)switch(Wf){case e:return Hf;case 34:case 39:34!==e&&39!==e&&rm(Wf);break;case 40:41===e&&rm(e);break;case 92:Yf()}return Hf}function nm(e,t){for(;Yf()&&e+Wf!==57&&(e+Wf!==84||47!==Kf()););return"/*"+Jf(t,Hf-1)+"*"+If(47===e?e:Yf())}function om(e){for(;!Zf(Kf());)Yf();return Jf(e,Hf)}function im(e){return function(e){return Gf="",e}(am("",null,null,null,[""],e=function(e){return jf=$f=1,Bf=Tf(Gf=e),Hf=0,[]}(e),0,[0],e))}function am(e,t,r,n,o,i,a,s,l){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=Yf()){case 40:if(108!=m&&58==Mf(C,d-1)){-1!=Pf(C+=Lf(Qf(v),"&","&\f"),"&\f",Af(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Qf(v);break;case 9:case 10:case 13:case 32:C+=em(m);break;case 92:C+=tm(Xf()-1,7);continue;case 47:switch(Kf()){case 42:case 47:kf(lm(nm(Yf(),Xf()),t,r,l),l);break;default:C+="/"}break;case 123*h:s[u++]=Tf(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Lf(C,/\f/g,"")),f>0&&Tf(C)-d&&kf(f>32?um(C+";",n,r,d-1,l):um(Lf(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(kf(E=sm(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)am(C,t,E,E,x,i,d,s,S);else switch(99===p&&110===Mf(C,3)?100:p){case 100:case 108:case 109:case 115:am(e,E,E,n&&kf(sm(e,E,E,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:am(C,E,E,E,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+Tf(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Uf())continue;switch(C+=If(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Tf(C)-1)*b,b=1;break;case 64:45===Kf()&&(C+=Qf(Yf())),p=Kf(),c=d=Tf(y=C+=om(Xf())),v++;break;case 45:45===m&&2==Tf(C)&&(h=0)}}return i}function sm(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],m=function(e){return e.length}(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=_f(e,p+1,p=Af(g=a[h])),x=e;v<m;++v)(x=Df(g>0?f[v]+" "+y:Lf(y,/&\f/g,f[v])))&&(l[b++]=x);return Vf(e,t,r,0===o?xf:s,l,u,c,d)}function lm(e,t,r,n){return Vf(e,t,r,yf,If(Wf),_f(e,2,-2),0,n)}function um(e,t,r,n,o){return Vf(e,t,r,Sf,_f(e,0,n),_f(e,n+1,-1),n,o)}function cm(e,t,r){switch(e.type){case Cf:case Sf:case yf:return e.return=e.return||e.value;case xf:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===yf&&(e.children=e.value)}))}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),cm);return Tf(n)?e.return=e.value+"{"+n+"}":""}function dm(e,t,r,n){if(e.type===Rf||e.type===wf||e.type===xf&&(!e.parent||e.parent.type===Ef||e.parent.type===xf)){var o=vf.transform(cm(e));e.children=o?im(o)[0].children:[],e.return=""}}Object.defineProperty(dm,"name",{value:"stylisRTLPlugin"}),function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(Of||(Of={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_PAGE_ROWS="updatePageRows"}(qf||(qf={})),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"}(Nf||(Nf={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(Ff||(Ff={})),function(e){e.A="ascending",e.D="descending"}(zf||(zf={}));const pm=[0,0];function fm(e){if(e.type)return e;if("#"===e.charAt(0))return fm(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(function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(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 mm(e,t){return e=fm(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function hm(e,t){return hm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hm(e,t)}function gm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hm(e,t)}const bm={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"},vm={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...bm,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},ym=12,xm=14,Sm=16,Em=24,Cm=3,wm=300,Rm=400,Am=600,Im=700,Dm={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};mm(vm.GREYSCALE_0,.05),mm(vm.GREEN_PALE,.5),mm(vm.BLUE_PALE,.5),mm(vm.GREEN_PALE,.5),mm(vm.BLUE_PALE,.5),mm(vm.GREEN_PALE,.5),mm(vm.BLUE_PALE,.5);var Lm;function Pm(){return Pm=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},Pm.apply(this,arguments)}mm(vm.GREEN_PALE,.5),mm(vm.BLUE_PALE,.5),mm(vm.GREEN_PALE,.5),mm(vm.BLUE_PALE,.5);var Mm,_m=function(e){return A.createElement("svg",Pm({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Lm||(Lm=A.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Tm(){return Tm=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},Tm.apply(this,arguments)}var km=function(e){return A.createElement("svg",Tm({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Mm||(Mm=A.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function Om({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return E.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 qm,Nm=(e={})=>E.createElement(Om,{...e},E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},E.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),E.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"}))),Fm=(e={})=>E.createElement(Om,{...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),E.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),zm=(e={})=>E.createElement(Om,{fontSize:"medium",...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},E.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),jm=(e={})=>E.createElement(Om,{fontSize:"medium",...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),E.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),$m=({className:e})=>E.createElement(Om,{fontSize:"small",className:e},E.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},E.createElement("g",{transform:"translate(4.324187, 1.300372)"},E.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"}),E.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"})))))),Bm={},Hm=Symbol.for("react.element"),Wm=Symbol.for("react.portal"),Gm=Symbol.for("react.fragment"),Vm=Symbol.for("react.strict_mode"),Um=Symbol.for("react.profiler"),Ym=Symbol.for("react.provider"),Km=Symbol.for("react.context"),Xm=Symbol.for("react.server_context"),Jm=Symbol.for("react.forward_ref"),Zm=Symbol.for("react.suspense"),Qm=Symbol.for("react.suspense_list"),eh=Symbol.for("react.memo"),th=Symbol.for("react.lazy"),rh=Symbol.for("react.offscreen");function nh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Hm:switch(e=e.type){case Gm:case Um:case Vm:case Zm:case Qm:return e;default:switch(e=e&&e.$$typeof){case Xm:case Km:case Jm:case th:case eh:case Ym:return e;default:return t}}case Wm:return t}}}qm=Symbol.for("react.module.reference"),Bm.ContextConsumer=Km,Bm.ContextProvider=Ym,Bm.Element=Hm,Bm.ForwardRef=Jm,Bm.Fragment=Gm,Bm.Lazy=th,Bm.Memo=eh,Bm.Portal=Wm,Bm.Profiler=Um,Bm.StrictMode=Vm,Bm.Suspense=Zm,Bm.SuspenseList=Qm,Bm.isAsyncMode=function(){return!1},Bm.isConcurrentMode=function(){return!1},Bm.isContextConsumer=function(e){return nh(e)===Km},Bm.isContextProvider=function(e){return nh(e)===Ym},Bm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Hm},Bm.isForwardRef=function(e){return nh(e)===Jm},Bm.isFragment=function(e){return nh(e)===Gm},Bm.isLazy=function(e){return nh(e)===th},Bm.isMemo=function(e){return nh(e)===eh},Bm.isPortal=function(e){return nh(e)===Wm},Bm.isProfiler=function(e){return nh(e)===Um},Bm.isStrictMode=function(e){return nh(e)===Vm},Bm.isSuspense=function(e){return nh(e)===Zm},Bm.isSuspenseList=function(e){return nh(e)===Qm},Bm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Gm||e===Um||e===Vm||e===Zm||e===Qm||e===rh||"object"==typeof e&&null!==e&&(e.$$typeof===th||e.$$typeof===eh||e.$$typeof===Ym||e.$$typeof===Km||e.$$typeof===Jm||e.$$typeof===qm||void 0!==e.getModuleId)},Bm.typeOf=nh;var oh=!1,ih=E.createContext(null),ah="unmounted",sh="exited",lh="entering",uh="entered",ch="exiting",dh=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=sh,n.appearStatus=lh):o=uh:o=t.unmountOnExit||t.mountOnEnter?ah:sh,n.state={status:o},n.nextCallback=null,n}gm(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ah?{status:sh}: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!==lh&&r!==uh&&(t=lh):r!==lh&&r!==uh||(t=ch)}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===lh){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sh&&this.setState({status:ah})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[z.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||oh?this.safeSetState({status:uh},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:lh},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:uh},(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:z.findDOMNode(this);t&&!oh?(this.props.onExit(n),this.safeSetState({status:ch},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:sh},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:sh},(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:z.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===ah)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=aa(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return E.createElement(ih.Provider,{value:null},"function"==typeof r?r(e,n):E.cloneElement(E.Children.only(r),n))},t}(E.Component);function ph(){}dh.contextType=ih,dh.propTypes={},dh.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ph,onEntering:ph,onEntered:ph,onExit:ph,onExiting:ph,onExited:ph},dh.UNMOUNTED=ah,dh.EXITED=sh,dh.ENTERING=lh,dh.ENTERED=uh,dh.EXITING=ch;var fh=dh;function mh(e,t){var r=Object.create(null);return e&&I.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&D(e)?t(e):e}(e)})),r}function hh(e,t,r){return null!=r[t]?r[t]:e.props[t]}function gh(e,t,r){var n=mh(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(D(a)){var s=i in t,l=i in n,u=t[i],c=D(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&D(u)&&(o[i]=L(a,{onExited:r.bind(null,a),in:u.props.in,exit:hh(a,"exit",e),enter:hh(a,"enter",e)})):o[i]=L(a,{in:!1}):o[i]=L(a,{onExited:r.bind(null,a),in:!0,exit:hh(a,"exit",e),enter:hh(a,"enter",e)})}})),o}var bh=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},vh=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}gm(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,mh(r.children,(function(e){return L(e,{onExited:n.bind(null,e),in:!0,appear:hh(e,"appear",r),enter:hh(e,"enter",r),exit:hh(e,"exit",r)})}))):gh(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=mh(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=ia({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=aa(e,["component","childFactory"]),o=this.state.contextValue,i=bh(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?E.createElement(ih.Provider,{value:o},i):E.createElement(ih.Provider,{value:o},E.createElement(t,n,i))},t}(E.Component);vh.propTypes={},vh.defaultProps={component:"div",childFactory:function(e){return e}};var yh=vh;var xh=Pc("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Sh=["center","classes","className"];let Eh,Ch,wh,Rh,Ah=e=>e;const Ih=Kl(Eh||(Eh=Ah`
|
|
40
39
|
0% {
|
|
41
40
|
transform: scale(0);
|
|
42
41
|
opacity: 0.1;
|
|
@@ -46,7 +45,7 @@ function Ks(e,t){let n;return n=t?Fs(e).withConfig({displayName:t.label,shouldFo
|
|
|
46
45
|
transform: scale(1);
|
|
47
46
|
opacity: 0.3;
|
|
48
47
|
}
|
|
49
|
-
`)),
|
|
48
|
+
`)),Dh=Kl(Ch||(Ch=Ah`
|
|
50
49
|
0% {
|
|
51
50
|
opacity: 1;
|
|
52
51
|
}
|
|
@@ -54,7 +53,7 @@ function Ks(e,t){let n;return n=t?Fs(e).withConfig({displayName:t.label,shouldFo
|
|
|
54
53
|
100% {
|
|
55
54
|
opacity: 0;
|
|
56
55
|
}
|
|
57
|
-
`)),
|
|
56
|
+
`)),Lh=Kl(wh||(wh=Ah`
|
|
58
57
|
0% {
|
|
59
58
|
transform: scale(1);
|
|
60
59
|
}
|
|
@@ -66,7 +65,7 @@ function Ks(e,t){let n;return n=t?Fs(e).withConfig({displayName:t.label,shouldFo
|
|
|
66
65
|
100% {
|
|
67
66
|
transform: scale(1);
|
|
68
67
|
}
|
|
69
|
-
`)),
|
|
68
|
+
`)),Ph=mf("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Mh=mf((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=A.useState(!1),p=Ac(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Ac(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),A.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),ta.jsx("span",{className:p,style:f,children:ta.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Rh||(Rh=Ah`
|
|
70
69
|
opacity: 0;
|
|
71
70
|
position: absolute;
|
|
72
71
|
|
|
@@ -109,7 +108,7 @@ function Ks(e,t){let n;return n=t?Fs(e).withConfig({displayName:t.label,shouldFo
|
|
|
109
108
|
animation-iteration-count: infinite;
|
|
110
109
|
animation-delay: 200ms;
|
|
111
110
|
}
|
|
112
|
-
`),wm.rippleVisible,Lm,550,(({theme:e})=>e.transitions.easing.easeInOut),wm.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),wm.child,wm.childLeaving,Om,550,(({theme:e})=>e.transitions.easing.easeInOut),wm.childPulsate,Tm,(({theme:e})=>e.transitions.easing.easeInOut));var qm=A.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Ki(n,Rm),[l,s]=A.useState([]),u=A.useRef(0),c=A.useRef(null);A.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=A.useRef(!1),p=cd(),f=A.useRef(null),m=A.useRef(null),h=A.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Wi.jsx(_m,{classes:{ripple:vc(o.ripple,wm.ripple),rippleVisible:vc(o.rippleVisible,wm.rippleVisible),ripplePulsate:vc(o.ripplePulsate,wm.ripplePulsate),child:vc(o.child,wm.child),childLeaving:vc(o.childLeaving,wm.childLeaving),childPulsate:vc(o.childPulsate,wm.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=A.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),b=A.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=A.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return A.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Wi.jsx(km,Yi({className:vc(wm.root,o.root,i),ref:m},a,{children:Wi.jsx(pm,{component:null,exit:!0,children:l})}))}));function Nm(e){return Sc("MuiButtonBase",e)}var Fm=Ec("MuiButtonBase",["root","disabled","focusVisible"]);const zm=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],jm=sf("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Fm.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),$m=A.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:P,tabIndex:I=0,TouchRippleProps:D,touchRippleRef:M,type:L}=n,O=Ki(n,zm),T=A.useRef(null),k=A.useRef(null),_=ad(k,M),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=yd(),[j,$]=A.useState(!1);s&&j&&$(!1),A.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[H,B]=A.useState(!1);A.useEffect((()=>{B(!0)}),[]);const W=H&&!u&&!s;function V(e,t,n=c){return id((r=>{t&&t(r);return!n&&k.current&&k.current[e](r),!0}))}A.useEffect((()=>{j&&d&&!u&&H&&k.current.pulsate()}),[u,d,j,H]);const G=V("start",S),U=V("stop",h),Y=V("stop",g),K=V("stop",C),X=V("stop",(e=>{j&&e.preventDefault(),E&&E(e)})),J=V("start",P),Z=V("stop",w),Q=V("stop",R),ee=V("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=id((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=T.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=A.useRef(!1),oe=id((e=>{d&&!re.current&&j&&k.current&&" "===e.key&&(re.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=id((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(re.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(O.href||O.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===L?"button":L,le.disabled=s):(O.href||O.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=ad(t,z,T),ue=Yi({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Sd({root:["root",t&&"disabled",n&&"focusVisible"]},Nm,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Wi.jsxs(jm,Yi({as:ae,className:vc(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:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:L},le,O,{children:[i,W?Wi.jsx(qm,Yi({ref:_,center:o},D)):null]}))}));var Hm=$m;function Bm(e){return Sc("MuiTypography",e)}Ec("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Wm=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Vm=sf("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${uu(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Yi({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}))),Gm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Um={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ym=A.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTypography"}),r=(e=>Um[e]||e)(n.color),o=fc(Yi({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Gm}=o,f=Ki(o,Wm),m=Yi({},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]||Gm[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Sd({root:["root",i,"inherit"!==e.align&&`align${uu(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Bm,a)})(m);return Wi.jsx(Vm,Yi({as:h,ref:t,ownerState:m,className:vc(g.root,a)},f))}));var Km=Ym;const Xm=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Jm(e){const t=[],n=[];return Array.from(e.querySelectorAll(Xm)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Zm(){return!0}function Qm(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Jm,isEnabled:a=Zm,open:l}=e,s=A.useRef(!1),u=A.useRef(null),c=A.useRef(null),d=A.useRef(null),p=A.useRef(null),f=A.useRef(!1),m=A.useRef(null),h=ad(t.ref,m),g=A.useRef(null);A.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),A.useEffect((()=>{if(!l||!m.current)return;const e=nd(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]),A.useEffect((()=>{if(!l||!m.current)return;const e=nd(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Wi.jsxs(A.Fragment,{children:[Wi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),A.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)}}),Wi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const eh=A.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=A.useState(null),l=ad(A.isValidElement(n)?n.ref:null,t);if(Kc((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Kc((()=>{if(i&&!o)return od(t,i),()=>{od(t,null)}}),[t,i,o]),o){if(A.isValidElement(n)){const e={ref:l};return A.cloneElement(n,e)}return Wi.jsx(A.Fragment,{children:n})}return Wi.jsx(A.Fragment,{children:i?j.createPortal(n,i):i})}));function th(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function nh(e){return parseInt(rd(e).getComputedStyle(e).paddingRight,10)||0}function rh(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&th(e,o)}))}function oh(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function ih(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=nd(e);return t.body===e?rd(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=xd(nd(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${nh(r)+e}px`;const t=nd(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${nh(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=nd(r).body;else{const t=r.parentElement,n=rd(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const ah=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&th(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);rh(t,e.mount,e.modalRef,r,!0);const o=oh(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=oh(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=ih(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=oh(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&th(e.modalRef,t),rh(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&th(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function lh(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=ah,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=A.useRef({}),f=A.useRef(null),m=A.useRef(null),h=ad(m,d),[g,b]=A.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=id((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||nd(f.current).body;o.add(x(),e),m.current&&S()})),C=A.useCallback((()=>o.isTopModal(x())),[o]),w=id((e=>{f.current=e,e&&(c&&C()?S():m.current&&th(m.current,y))})),R=A.useCallback((()=>{o.remove(x(),y)}),[y,o]);A.useEffect((()=>()=>{R()}),[R]),A.useEffect((()=>{c?E():v&&i||R()}),[c,R,v,i,E]);const P=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=xm(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Yi({},n,t);return Yi({role:"presentation"},r,{onKeyDown:P(r),ref:h})},getBackdropProps:(e={})=>Yi({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:ed((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:ed((()=>{b(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:v}}const sh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],uh={entering:{opacity:1},entered:{opacity:1}},ch=A.forwardRef((function(e,t){const n=Dp(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:b=am}=e,v=Ki(e,sh),y=A.useRef(null),x=ad(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{fm(e);const r=mm({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),P=S((e=>{const t=mm({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=S(f);return Wi.jsx(b,Yi({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:P,onExited:I,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>A.cloneElement(a,Yi({style:Yi({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},uh[e],h,a.props.style),ref:x},t))}))}));var dh=ch;function ph(e){return Sc("MuiBackdrop",e)}Ec("MuiBackdrop",["root","invisible"]);const fh=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],mh=sf("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Yi({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),hh=A.forwardRef((function(e,t){var n,r,o;const i=Mp({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=dh,transitionDuration:g}=i,b=Ki(i,fh),v=Yi({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Sd({root:["root",n&&"invisible"]},ph,t)})(v),x=null!=(n=f.root)?n:c.root;return Wi.jsx(h,Yi({in:p,timeout:g},b,{children:Wi.jsx(mh,Yi({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:vc(y.root,l,null==x?void 0:x.className),ownerState:Yi({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var gh=hh;var bh=Ec("MuiBox",["root"]);const vh=Pp(),yh=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Ks("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(rc);return A.forwardRef((function(e,a){const l=cc(n),s=fc(e),{className:u,component:c="div"}=s,d=Ki(s,yc);return Wi.jsx(i,Yi({as:c,ref:a,className:vc(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Ui,defaultTheme:vh,defaultClassName:bh.root,generateClassName:gc.generate});var xh=yh;function Sh(e){return Sc("MuiButton",e)}var Eh=Ec("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Ch=A.createContext({});var wh=A.createContext(void 0);const Rh=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ah=e=>Yi({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Ph=sf(Hm,{shouldForwardProp:e=>lf(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${uu(n.color)}`],t[`size${uu(n.size)}`],t[`${n.variant}Size${uu(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 Yi({},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":Yi({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fd(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fd(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fd(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Yi({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Eh.focusVisible}`]:Yi({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Eh.disabled}`]:Yi({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Fd(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Eh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Eh.disabled}`]:{boxShadow:"none"}})),Ih=sf("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${uu(n.size)}`]]}})((({ownerState:e})=>Yi({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ah(e)))),Dh=sf("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${uu(n.size)}`]]}})((({ownerState:e})=>Yi({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ah(e)))),Mh=A.forwardRef((function(e,t){const n=A.useContext(Ch),r=A.useContext(wh),o=Mp({props:Uc(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,y=Ki(o,Rh),x=Yi({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Yi({},a,Sd({root:["root",i,`${i}${uu(t)}`,`size${uu(o)}`,`${i}Size${uu(o)}`,`color${uu(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${uu(o)}`],endIcon:["icon","endIcon",`iconSize${uu(o)}`]},Sh,a))})(x),E=g&&Wi.jsx(Ih,{className:S.startIcon,ownerState:x,children:g}),C=p&&Wi.jsx(Dh,{className:S.endIcon,ownerState:x,children:p}),w=r||"";return Wi.jsxs(Ph,Yi({ownerState:x,className:vc(n.className,S.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:vc(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[E,i,C]}))}));var Lh=Mh;function Oh(e){return Sc("MuiModal",e)}Ec("MuiModal",["root","hidden","backdrop"]);const Th=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],kh=sf("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Yi({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),_h=sf(gh,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),qh=A.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Mp({name:"MuiModal",props:e}),{BackdropComponent:u=_h,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:P,open:I,slotProps:D,slots:M}=s,L=Ki(s,Th),O=Yi({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:T,getBackdropProps:k,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=lh(Yi({},O,{rootRef:t})),j=Yi({},O,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return Sd({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Oh,r)})(j),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=_();H.onEnter=e,H.onExited=t}const B=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:kh,W=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==D?void 0:D.root)?a:b.root,G=null!=(l=null==D?void 0:D.backdrop)?l:b.backdrop,U=Cm({elementType:B,externalSlotProps:V,externalForwardedProps:L,getSlotProps:T,additionalProps:{ref:t,as:h},ownerState:j,className:vc(d,null==V?void 0:V.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),Y=Cm({elementType:W,externalSlotProps:G,additionalProps:c,getSlotProps:e=>k(Yi({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:vc(null==G?void 0:G.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return R||I||z&&!F?Wi.jsx(eh,{ref:q,container:m,disablePortal:S,children:Wi.jsxs(B,Yi({},U,{children:[!w&&u?Wi.jsx(W,Yi({},Y)):null,Wi.jsx(Qm,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:N,open:I,children:A.cloneElement(f,H)})]}))}):null}));var Nh=qh;function Fh(e){return Sc("MuiDivider",e)}var zh=Ec("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const jh=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$h=sf("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Yi({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Fd(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Yi({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Yi({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Yi({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Yi({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Hh=sf("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Yi({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Bh=A.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Ki(n,jh),m=Yi({},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 Sd({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Fh,r)})(m);return Wi.jsx($h,Yi({as:a,className:vc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Wi.jsx(Hh,{className:h.wrapper,ownerState:m,children:o}):null}))}));Bh.muiSkipListHighlight=!0;var Wh=Bh;const Vh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Gh(e){return`scale(${e}, ${e**2})`}const Uh={entering:{opacity:1,transform:Gh(1)},entered:{opacity:1,transform:"none"}},Yh="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Kh=A.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=am}=e,g=Ki(e,Vh),b=cd(),v=A.useRef(),y=Dp(),x=A.useRef(null),S=ad(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{fm(e);const{duration:n,delay:r,easing:o}=mm({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Yh?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),P=E(p),I=E((e=>{const{duration:t,delay:n,easing:r}=mm({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Yh?o:.666*o,delay:Yh?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Gh(.75),c&&c(e)})),D=E(d);return Wi.jsx(h,Yi({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:D,onExiting:P,addEndListener:e=>{"auto"===m&&b.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>A.cloneElement(o,Yi({style:Yi({opacity:0,transform:Gh(.75),visibility:"exited"!==e||a?void 0:"hidden"},Uh[e],f,o.props.style),ref:S},t))}))}));Kh.muiSupportAuto=!0;var Xh=Kh;var Jh=A.createContext({});function Zh(e){return Sc("MuiList",e)}Ec("MuiList",["root","padding","dense","subheader"]);const Qh=["children","className","component","dense","disablePadding","subheader"],eg=sf("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Yi({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var tg=A.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Ki(n,Qh),c=A.useMemo((()=>({dense:a})),[a]),d=Yi({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sd({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Zh,t)})(d);return Wi.jsx(Jh.Provider,{value:c,children:Wi.jsxs(eg,Yi({as:i,className:vc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function ng(e){return Sc("MuiListItemIcon",e)}var rg=Ec("MuiListItemIcon",["root","alignItemsFlexStart"]);const og=["className"],ig=sf("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Yi({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var ag=A.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Ki(n,og),i=Yi({},n,{alignItems:A.useContext(Jh).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Sd({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ng,n)})(i);return Wi.jsx(ig,Yi({className:vc(a.root,r),ownerState:i,ref:t},o))}));var lg=Ec("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const sg=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ug(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function cg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function dg(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function pg(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&dg(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var fg=A.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=Ki(e,sg),p=A.useRef(null),f=A.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Kc((()=>{r&&p.current.focus()}),[r]),A.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${xd(nd(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=ad(p,t);let h=-1;A.Children.forEach(i,((e,t)=>{A.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=A.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),A.cloneElement(e,t)}return e}));return Wi.jsx(tg,Yi({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=nd(t).activeElement;if("ArrowDown"===n)e.preventDefault(),pg(t,r,s,l,ug);else if("ArrowUp"===n)e.preventDefault(),pg(t,r,s,l,cg);else if("Home"===n)e.preventDefault(),pg(t,null,s,l,ug);else if("End"===n)e.preventDefault(),pg(t,null,s,l,cg);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&dg(r,o);o.previousKeyMatched&&(s||pg(t,r,!1,l,ug,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function mg(e){return Sc("MuiPopover",e)}Ec("MuiPopover",["root","paper"]);const hg=["onEntering"],gg=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],bg=["slotProps"];function vg(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function yg(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function xg(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Sg(e){return"function"==typeof e?e():e}const Eg=sf(Nh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Cg=sf(vm,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var wg=A.forwardRef((function(e,t){var n,r,o;const i=Mp({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Xh,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=Ki(i.TransitionProps,hg),P=Ki(i,gg),I=null!=(n=null==y?void 0:y.paper)?n:b,D=A.useRef(),M=ad(D,I.ref),L=Yi({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:I,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),O=(e=>{const{classes:t}=e;return Sd({root:["root"],paper:["paper"]},mg,t)})(L),T=A.useCallback((()=>{if("anchorPosition"===c)return u;const e=Sg(l),t=(e&&1===e.nodeType?e:nd(D.current).body).getBoundingClientRect();return{top:t.top+vg(t,s.vertical),left:t.left+yg(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=A.useCallback((e=>({vertical:vg(e,x.vertical),horizontal:yg(e,x.horizontal)})),[x.horizontal,x.vertical]),_=A.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if("none"===c)return{top:null,left:null,transformOrigin:xg(n)};const r=T();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=rd(Sg(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:xg(n)}}),[l,c,T,k,h]),[q,N]=A.useState(g),F=A.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);A.useEffect((()=>(w&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,w,F]);A.useEffect((()=>{g&&F()})),A.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),A.useEffect((()=>{if(!g)return;const e=td((()=>{F()})),t=rd(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=E;"auto"!==E||S.muiSupportAuto||(z=void 0);const j=f||(l?nd(Sg(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:Eg,H=null!=(o=null==v?void 0:v.paper)?o:Cg,B=Cm({elementType:H,externalSlotProps:Yi({},I,{style:q?I.style:Yi({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:L,className:vc(O.paper,null==I?void 0:I.className)}),W=Cm({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:L,className:vc(O.root,p)}),{slotProps:V}=W,G=Ki(W,bg);return Wi.jsx($,Yi({},G,!ym($)&&{slotProps:V,disableScrollLock:w},{children:Wi.jsx(S,Yi({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),F()},onExited:()=>{N(!1)},timeout:z},R,{children:Wi.jsx(H,Yi({},B,{children:d}))}))}))}));function Rg(e){return Sc("MuiMenu",e)}Ec("MuiMenu",["root","paper","list"]);const Ag=["onEntering"],Pg=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ig={vertical:"top",horizontal:"right"},Dg={vertical:"top",horizontal:"left"},Mg=sf(wg,{shouldForwardProp:e=>lf(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lg=sf(Cg,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Og=sf(fg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Tg=A.forwardRef((function(e,t){var n,r;const o=Mp({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Ki(o.TransitionProps,Ag),x=Ki(o,Pg),S=(()=>{const e=A.useContext(Pd);return null!=e&&e})(),E=Yi({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Sd({root:["root"],paper:["paper"],list:["list"]},Rg,t)})(E),w=i&&!s&&d,R=A.useRef(null);let P=-1;A.Children.map(a,((e,t)=>{A.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))}));const I=null!=(n=b.paper)?n:Lg,D=null!=(r=v.paper)?r:p,M=Cm({elementType:b.root,externalSlotProps:v.root,ownerState:E,className:[C.root,l]}),L=Cm({elementType:I,externalSlotProps:D,ownerState:E,className:C.paper});return Wi.jsx(Mg,Yi({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Ig:Dg,slots:{paper:I,root:b.root},slotProps:{root:M,paper:L},open:d,ref:t,transitionDuration:m,TransitionProps:Yi({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},y),ownerState:E},x,{classes:f,children:Wi.jsx(Og,Yi({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===P||s),autoFocusItem:w,variant:g},u,{className:vc(C.list,u.className),children:a}))}))}));function kg(e){return Sc("MuiMenuItem",e)}var _g=Ec("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const qg=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ng=sf(Hm,{shouldForwardProp:e=>lf(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Yi({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_g.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fd(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_g.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fd(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_g.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fd(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fd(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${_g.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_g.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${zh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${zh.inset}`]:{marginLeft:52},[`& .${lg.root}`]:{marginTop:0,marginBottom:0},[`& .${lg.inset}`]:{paddingLeft:36},[`& .${rg.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Yi({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${rg.root} svg`]:{fontSize:"1.25rem"}}))));var Fg=A.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Ki(n,qg),f=A.useContext(Jh),m=A.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=A.useRef(null);Kc((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Yi({},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 Yi({},a,Sd({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},kg,a))})(n),v=ad(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Wi.jsx(Jh.Provider,{value:m,children:Wi.jsx(Ng,Yi({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:vc(b.focusVisible,s),className:vc(b.root,d)},p,{ownerState:g,classes:b}))})}));var zg=A.createContext();function jg(e){return Sc("MuiTable",e)}Ec("MuiTable",["root","stickyHeader"]);const $g=["className","component","padding","size","stickyHeader"],Hg=sf("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Yi({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Yi({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Bg="table",Wg=A.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTable"}),{className:r,component:o=Bg,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=Ki(n,$g),u=Yi({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return Sd({root:["root",n&&"stickyHeader"]},jg,t)})(u),d=A.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Wi.jsx(zg.Provider,{value:d,children:Wi.jsx(Hg,Yi({as:o,role:o===Bg?null:"table",ref:t,className:vc(c.root,r),ownerState:u},s))})}));var Vg=Wg;var Gg=A.createContext();function Ug(e){return Sc("MuiTableBody",e)}Ec("MuiTableBody",["root"]);const Yg=["className","component"],Kg=sf("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Xg={variant:"body"},Jg="tbody";var Zg=A.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTableBody"}),{className:r,component:o=Jg}=n,i=Ki(n,Yg),a=Yi({},n,{component:o}),l=(e=>{const{classes:t}=e;return Sd({root:["root"]},Ug,t)})(a);return Wi.jsx(Gg.Provider,{value:Xg,children:Wi.jsx(Kg,Yi({className:vc(l.root,r),as:o,ref:t,role:o===Jg?null:"rowgroup",ownerState:a},i))})}));function Qg(e){return Sc("MuiTableCell",e)}var eb=Ec("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const tb=["align","className","component","padding","scope","size","sortDirection","variant"],nb=sf("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${uu(n.size)}`],"normal"!==n.padding&&t[`padding${uu(n.padding)}`],"inherit"!==n.align&&t[`align${uu(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Yi({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?$d(Fd(e.palette.divider,1),.88):zd(Fd(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${eb.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),rb=A.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=Ki(n,tb),p=A.useContext(zg),f=A.useContext(Gg),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=Yi({},n,{align:r,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return Sd({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${uu(r)}`,"normal"!==o&&`padding${uu(o)}`,`size${uu(i)}`]},Qg,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Wi.jsx(nb,Yi({as:h,ref:t,className:vc(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));var ob=rb;function ib(e){return Sc("MuiTableContainer",e)}Ec("MuiTableContainer",["root"]);const ab=["className","component"],lb=sf("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var sb=A.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=Ki(n,ab),a=Yi({},n,{component:o}),l=(e=>{const{classes:t}=e;return Sd({root:["root"]},ib,t)})(a);return Wi.jsx(lb,Yi({ref:t,as:o,className:vc(l.root,r),ownerState:a},i))}));function ub(e){return Sc("MuiTableHead",e)}Ec("MuiTableHead",["root"]);const cb=["className","component"],db=sf("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),pb={variant:"head"},fb="thead";var mb=A.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTableHead"}),{className:r,component:o=fb}=n,i=Ki(n,cb),a=Yi({},n,{component:o}),l=(e=>{const{classes:t}=e;return Sd({root:["root"]},ub,t)})(a);return Wi.jsx(Gg.Provider,{value:pb,children:Wi.jsx(db,Yi({as:o,className:vc(l.root,r),ref:t,role:o===fb?null:"rowgroup",ownerState:a},i))})}));function hb(e){return Sc("MuiTableRow",e)}var gb=Ec("MuiTableRow",["root","selected","hover","head","footer"]);const bb=["className","component","hover","selected"],vb=sf("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${gb.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${gb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fd(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fd(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),yb="tr",xb=A.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTableRow"}),{className:r,component:o=yb,hover:i=!1,selected:a=!1}=n,l=Ki(n,bb),s=A.useContext(Gg),u=Yi({},n,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Sd({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},hb,t)})(u);return Wi.jsx(vb,Yi({as:o,ref:t,className:vc(c.root,r),role:o===yb?null:"row",ownerState:u},l))}));var Sb=xb,Eb=(e={})=>E.createElement(Vf,{...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("rect",{stroke:If.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Cb={MuiAccordion:{styleOverrides:{root:{backgroundColor:If.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:If.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:E.createElement(Hf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${If.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:If.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${If.MISC_FOCUS_BORDER}`,borderRadius:Tf,backgroundColor:If.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${If.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:If.WHITE,color:If.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Tf},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${If.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:If.GREYSCALE_0_15,backgroundColor:If.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:If.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${If.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:If.GREEN_PALE},"&:active":{backgroundColor:If.GREEN_DARK},"&.Mui-focusVisible":{borderColor:If.GREEN_PALE,boxShadow:`0 0 0 3px ${Qc(If.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:If.BLUE_PALE},"&:active":{backgroundColor:If.BLUE_DARK},"&.Mui-focusVisible":{borderColor:If.BLUE_PALE,boxShadow:`0 0 0 3px ${Qc(If.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Tf,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:If.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${If.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:If.GREYSCALE_0_15,backgroundColor:If.GREYSCALE_100_60,"&:active":{backgroundColor:If.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:If.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${If.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:If.PURPLE,"&.Mui-focusVisible":{borderColor:If.PURPLE,boxShadow:`0 0 0 3px ${Qc(If.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:If.GREEN,"&.Mui-focusVisible":{borderColor:If.GREEN,boxShadow:`0 0 0 3px ${Qc(If.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:If.BLUE,"&.Mui-focusVisible":{borderColor:If.BLUE,boxShadow:`0 0 0 3px ${Qc(If.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:If.ORANGE,"&.Mui-focusVisible":{borderColor:If.ORANGE,boxShadow:`0 0 0 3px ${Qc(If.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:If.RED,"&.Mui-focusVisible":{borderColor:If.RED,boxShadow:`0 0 0 3px ${Qc(If.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:If.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:If.PURPLE_PALE},"&:active":{backgroundColor:If.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:If.PURPLE_PALE,boxShadow:`0 0 0 3px ${Qc(If.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:If.GREEN_PALE},"&:active":{backgroundColor:If.GREEN_DARK},"&.Mui-focusVisible":{borderColor:If.GREEN_PALE,boxShadow:`0 0 0 3px ${Qc(If.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:If.BLUE_PALE},"&:active":{backgroundColor:If.BLUE_DARK},"&.Mui-focusVisible":{borderColor:If.BLUE_PALE,boxShadow:`0 0 0 3px ${Qc(If.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:If.ORANGE_PALE},"&:active":{backgroundColor:If.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:If.ORANGE_PALE,boxShadow:`0 0 0 3px ${Qc(If.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:If.RED_PALE},"&:active":{backgroundColor:If.RED_DARK},"&.Mui-focusVisible":{borderColor:If.RED_PALE,boxShadow:`0 0 0 3px ${Qc(If.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:If.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:If.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Tf,boxShadow:`inset 0 0 0 2px ${If.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:E.createElement(Wf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Df,borderRadius:Tf,color:If.TEXT_PRIMARY,backgroundColor:If.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:If.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${If.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:If.GREYSCALE_0_05,color:If.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:If.GREEN,borderColor:If.GREEN},"&.MuiChip-outlinedInfo":{color:If.BLUE,borderColor:If.BLUE},"&.MuiChip-outlinedWarning":{color:If.ORANGE,borderColor:If.ORANGE},"&.MuiChip-outlinedError":{color:If.RED,borderColor:If.RED}},outlined:{border:`solid 1px ${If.GREYSCALE_0_15}`,backgroundColor:If.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Tf,boxShadow:"none",backgroundColor:If.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:If.GREEN,borderColor:If.GREEN},outlinedSecondary:{color:If.BLUE,borderColor:If.BLUE},label:{fontFamily:Ff.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:E.createElement(Wf,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:E.createElement(Hf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Tf},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Tf,fontSize:Mf,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:If.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${If.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:If.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:If.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:If.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Tf,border:`solid 1px ${If.GREYSCALE_0_15}`,color:If.GREYSCALE_0_60,marginRight:0,width:Of,height:Of},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${If.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Tf,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:If.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Mf}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Df,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:If.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:If.GREYSCALE_25,fontSize:Df,fontFamily:Ff.FONT_FAMILY,fontWeight:qf,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:If.TEXT_PRIMARY},"&.Mui-error":{color:If.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:If.TEXT_SECONDARY,content:"'(optional)'",fontWeight:_f,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:If.TEXT_SECONDARY,content:"'(required)'",fontWeight:_f,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Mf,lineHeight:"16px",backgroundColor:If.WHITE,borderRadius:Tf,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${If.GREYSCALE_0_05}`,borderColor:If.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${If.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${If.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${If.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${If.RED}`,boxShadow:`0px 0px 0px 1px ${If.RED}, inset 0 2px 0 0 ${If.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${If.GREYSCALE_0_10}`,borderColor:If.GREYSCALE_0_10,backgroundColor:If.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:If.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:If.GREYSCALE_0_15,borderRadius:Tf,boxShadow:`inset 0 2px 0 0 ${If.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>E.createElement(Hf,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:If.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:If.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:If.GREYSCALE_0_03},"&:active":{backgroundColor:If.GREYSCALE_0_10},"&:focus":{backgroundColor:If.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${If.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${If.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:If.GREYSCALE_0_30,"&:hover":{backgroundColor:If.GREYSCALE_0_0,borderColor:If.GREYSCALE_0_15},"& ~svg":{color:If.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${If.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Tf}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:If.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${If.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:If.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Mf,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Df,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Df,fontWeight:qf,color:If.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:qf}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${If.GREYSCALE_0_15}, 0px 0px 0px 1px ${If.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:E.createElement(Yf,null),checkedIcon:E.createElement(Kf,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:If.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${If.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:If.GREEN_PALE,boxShadow:`0 0 0 3px ${Qc(If.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:If.BLUE_PALE,boxShadow:`0 0 0 3px ${Qc(If.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:If.GREYSCALE_0_20}},"&.Mui-disabled":{fill:If.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:E.createElement(Eb,null),checkedIcon:E.createElement(Gf,null),indeterminateIcon:E.createElement(Uf,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Tf,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:If.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:If.GREYSCALE_0_55,color:If.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:If.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:If.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:If.GREYSCALE_0_55,"&:hover":{color:If.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:If.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:If.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Mf,color:If.TEXT_PRIMARY,lineHeight:"16px",fontWeight:qf},secondary:{fontSize:Df,color:If.GREYSCALE_45,fontWeight:_f,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Mf,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:If.GREYSCALE_0_03},"&:active":{backgroundColor:If.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Mf,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:If.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Df,borderBottom:`solid 1px ${If.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Mf,color:If.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:If.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:If.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:If.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:If.RED}}},"&.Mui-focusVisible":{backgroundColor:If.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:If.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:If.GREEN,height:"24px","&.Mui-disabled":{color:If.GREYSCALE_0_15}},rail:{backgroundColor:If.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${If.GREYSCALE_0_05}`,borderRadius:Tf,boxShadow:`inset 0px 0px 0px 1px ${If.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${If.GREYSCALE_0_05}`,borderRadius:Tf},thumb:{height:"16px",width:"16px",borderRadius:Tf,backgroundColor:If.WHITE,boxShadow:`0px 1px 2px 0px ${If.GREYSCALE_0_15}, 0px 0px 0px 1px ${If.GREYSCALE_0_05}`,"&:hover":{borderRadius:Tf,boxShadow:`0 2px 4px 0 ${If.GREYSCALE_0_30}, 0 0 0 1px ${If.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${If.GREYSCALE_0_15}, 0 0 0 1px ${If.GREYSCALE_0_06}, 0 0 0 2px ${If.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${If.GREYSCALE_0_15}, 0 0 0 1px ${If.GREYSCALE_0_06}, 0 0 0 2px ${If.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:If.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:If.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:If.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:If.GREYSCALE_0_15},markLabel:{color:If.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:If.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:If.WHITE,color:If.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:If.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:If.GREEN_PALE,boxShadow:`0 0 0 3px ${Qc(If.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:If.BLUE_PALE,boxShadow:`0 0 0 3px ${Qc(If.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:If.GREYSCALE_0_15,borderRadius:Tf},thumb:{height:"16px",width:"16px",borderRadius:Tf,backgroundColor:If.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Mf,fontWeight:qf,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${If.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${If.MISC_FOCUS_BORDER}`,backgroundColor:If.GREYSCALE_0_03,borderRadius:Tf},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:If.GREYSCALE_25,"&.Mui-selected":{color:If.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Mf,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${If.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${If.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${If.GREYSCALE_85}`,borderRight:`1px solid ${If.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:qf,backgroundColor:If.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:If.GREYSCALE_98,borderBottom:`1px solid ${If.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${If.GREYSCALE_85}`,borderTop:`1px solid ${If.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:If.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:If.GREYSCALE_0_05,"&:hover":{backgroundColor:If.GREYSCALE_0_03}},"&&:hover":{backgroundColor:If.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>E.createElement(Xf,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${If.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Mf,borderRadius:Tf,padding:"7px 16px",border:`1px solid ${If.GREYSCALE_0_15}`,backgroundColor:If.GREYSCALE_100_60,color:If.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:If.GREYSCALE_0_10,border:`1px solid ${If.GREYSCALE_0_30}`},"&:hover":{backgroundColor:If.GREYSCALE_0_03,border:`1px solid ${If.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:If.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${If.MISC_FOCUS_BORDER}`,border:`1px solid ${If.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:If.GREYSCALE_25,backgroundColor:If.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:If.GREYSCALE_0_10,border:`1px solid ${If.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Df,height:24,width:24,padding:7},sizeLarge:{fontSize:Lf,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Mf,borderRadius:Tf}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:If.GREYSCALE_20},tooltip:{backgroundColor:If.GREYSCALE_20,fontSize:Df,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const wb={mode:"light",primary:{light:If.GREEN_PALE,main:If.GREEN,dark:If.GREEN_DARK,contrastText:If.WHITE},secondary:{light:If.BLUE_PALE,main:If.BLUE,dark:If.BLUE_DARK,contrastText:If.WHITE},error:{light:If.RED_PALE,main:If.RED,dark:If.RED_DARK,contrastText:If.WHITE},warning:{light:If.ORANGE_PALE,main:If.ORANGE,dark:If.ORANGE_DARK,contrastText:If.WHITE},success:{light:If.GREEN_PALE,main:If.GREEN,dark:If.GREEN_DARK,contrastText:If.WHITE},info:{light:If.BLUE_PALE,main:If.BLUE,dark:If.BLUE_DARK,contrastText:If.WHITE},text:{primary:If.TEXT_PRIMARY,secondary:If.TEXT_SECONDARY,disabled:If.GREYSCALE_0_30},action:{hover:If.GREYSCALE_0_03,hoverOpacity:.05,selected:If.GREYSCALE_0_05,focus:If.MISC_FOCUS_BORDER},amethyst:{main:If.PURPLE,light:If.PURPLE_PALE,dark:If.PURPLE_DARK,contrastText:If.WHITE},background:{paper:If.WHITE,default:If.GREYSCALE_95},divider:If.GREYSCALE_0_15},Rb=e=>({components:Cb,palette:wb,breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Mf,fontWeightLight:kf,fontWeightRegular:_f,fontWeightMedium:qf,fontWeightBold:Nf,htmlFontSize:Mf,fontFamily:Ff.FONT_FAMILY,button:{fontWeight:qf,fontSize:Mf,textTransform:"none"},body1:{fontSize:Lf,lineHeight:"24px"},body2:{fontSize:Mf,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Of,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Lf,fontWeight:qf,lineHeight:"16px"},h6:{fontSize:Mf,fontWeight:qf,lineHeight:"16px"},caption:{color:If.TEXT_SECONDARY},subtitle1:{fontSize:Mf,color:If.TEXT_SECONDARY},subtitle2:{fontSize:Df,color:If.TEXT_SECONDARY}},shape:{borderRadius:Tf}}),Ab={...Pf,MISC_FOCUS_BORDER:If.MISC_FOCUS_BORDER},Pb=(e="light")=>Rb(),Ib=Pb().palette,Db={SELECTED:{color:Ab.GREYSCALE_100,background:Ib.primary.light,selectedCellClass:ff.SELECTED},POSSIBLE:{color:Ib.text.primary,background:Ab.GREYSCALE_100},EXCLUDED_BACKGROUND:"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"},Mb=4/3,Lb="12px",Ob="600",Tb={height:"auto",fontSize:Lb,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},kb=25e4,_b=(e,t,n,r)=>{if(null==e||!e.length)return[];const o=[],i=[],a=r?Or.PixelsMin:Or.PixelsMinTable;let l=t;if(e.forEach(((e,r)=>{if(e.columnWidth){const{columnWidth:{type:s,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{o[r]=Math.min(Or.PixelsMax,Math.max(a,m)),l-=o[r]};switch(s){case Tr.Pixels:m=u||Or.PixelsDefault,h();break;case Tr.Percentage:m=(c||Or.PercentageDefault)/100*t,h();break;case Tr.FitToContent:m=n(d,f,p,e.isLocked,e.isActivelySorted),h();break;case Tr.Auto:i.push(r);break;default:throw new Error(`${s} is not a valid column width type`)}}else i.push(r)})),i.length){const e=l/i.length;i.forEach((t=>{o[t]=Math.max(a,e)}))}return o},qb={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},Nb={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...qb,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Fb=12,zb=14,jb=16,$b=24,Hb=3,Bb=300,Wb=400,Vb=600,Gb=700,Ub={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};wf(Nb.GREYSCALE_0,.05),wf(Nb.GREEN_PALE,.5),wf(Nb.BLUE_PALE,.5),wf(Nb.GREEN_PALE,.5),wf(Nb.BLUE_PALE,.5),wf(Nb.GREEN_PALE,.5),wf(Nb.BLUE_PALE,.5);var Yb;function Kb(){return Kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kb.apply(this,arguments)}wf(Nb.GREEN_PALE,.5),wf(Nb.BLUE_PALE,.5),wf(Nb.GREEN_PALE,.5),wf(Nb.BLUE_PALE,.5);var Xb,Jb=function(e){return A.createElement("svg",Kb({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Yb||(Yb=A.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Zb(){return Zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zb.apply(this,arguments)}var Qb=function(e){return A.createElement("svg",Zb({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Xb||(Xb=A.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function ev({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return E.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var tv=(e={})=>E.createElement(ev,{...e},E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},E.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),E.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),nv=(e={})=>E.createElement(ev,{...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),E.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),rv=(e={})=>E.createElement(ev,{fontSize:"medium",...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},E.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),ov=(e={})=>E.createElement(ev,{fontSize:"medium",...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),E.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),iv=({className:e})=>E.createElement(ev,{fontSize:"small",className:e},E.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},E.createElement("g",{transform:"translate(4.324187, 1.300372)"},E.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"}),E.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));var av={black:"#000",white:"#fff"};var lv={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var sv={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var uv={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var cv={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var dv={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var pv={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var fv={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function mv(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var hv="$$material";function gv(){return gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gv.apply(this,arguments)}function bv(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const vv=js((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var yv=vv;
|
|
111
|
+
`),xh.rippleVisible,Ih,550,(({theme:e})=>e.transitions.easing.easeInOut),xh.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),xh.child,xh.childLeaving,Dh,550,(({theme:e})=>e.transitions.easing.easeInOut),xh.childPulsate,Lh,(({theme:e})=>e.transitions.easing.easeInOut));var _h=A.forwardRef((function(e,t){const r=qp({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=aa(r,Sh),[s,l]=A.useState([]),u=A.useRef(0),c=A.useRef(null);A.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=A.useRef(!1),p=bd(),f=A.useRef(null),m=A.useRef(null),h=A.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,ta.jsx(Mh,{classes:{ripple:Ac(o.ripple,xh.ripple),rippleVisible:Ac(o.rippleVisible,xh.rippleVisible),ripplePulsate:Ac(o.ripplePulsate,xh.ripplePulsate),child:Ac(o.child,xh.child),childLeaving:Ac(o.childLeaving,xh.childLeaving),childPulsate:Ac(o.childPulsate,xh.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=A.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=A.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=A.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return A.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),ta.jsx(Ph,ia({className:Ac(xh.root,o.root,i),ref:m},a,{children:ta.jsx(yh,{component:null,exit:!0,children:s})}))}));function Th(e){return Lc("MuiButtonBase",e)}var kh=Pc("MuiButtonBase",["root","disabled","focusVisible"]);const Oh=["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"],qh=mf("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"},[`&.${kh.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Nh=A.forwardRef((function(e,t){const r=qp({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:I,tabIndex:D=0,TouchRippleProps:L,touchRippleRef:P,type:M}=r,_=aa(r,Oh),T=A.useRef(null),k=A.useRef(null),O=fd(k,P),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Ad(),[j,$]=A.useState(!1);l&&j&&$(!1),A.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[B,H]=A.useState(!1);A.useEffect((()=>{H(!0)}),[]);const W=B&&!u&&!l;function G(e,t,r=c){return pd((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}A.useEffect((()=>{j&&d&&!u&&B&&k.current.pulsate()}),[u,d,j,B]);const V=G("start",S),U=G("stop",h),Y=G("stop",g),K=G("stop",C),X=G("stop",(e=>{j&&e.preventDefault(),E&&E(e)})),J=G("start",I),Z=G("stop",w),Q=G("stop",R),ee=G("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=pd((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=A.useRef(!1),oe=pd((e=>{d&&!ne.current&&j&&k.current&&" "===e.key&&(ne.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=pd((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(_.href||_.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===M?"button":M,se.disabled=l):(_.href||_.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=fd(t,z,T),ue=ia({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Id({root:["root",t&&"disabled",r&&"focusVisible"]},Th,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ta.jsxs(qh,ia({as:ae,className:Ac(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:D,type:M},se,_,{children:[i,W?ta.jsx(_h,ia({ref:O,center:o},L)):null]}))}));var Fh=Nh;var zh=Pc("MuiBox",["root"]);const jh=kp(),$h=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=nu("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(dc);return A.forwardRef((function(e,a){const s=vc(r),l=Sc(e),{className:u,component:c="div"}=l,d=aa(l,Ic);return ta.jsx(i,ia({as:c,ref:a,className:Ac(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:oa,defaultTheme:jh,defaultClassName:zh.root,generateClassName:wc.generate});var Bh=$h;function Hh(e){return Lc("MuiDivider",e)}var Wh=Pc("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Gh=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Vh=mf("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})=>ia({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)`:Wd(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})=>ia({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>ia({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>ia({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>ia({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Uh=mf("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>ia({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)`}))),Yh=A.forwardRef((function(e,t){const r=qp({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=aa(r,Gh),m=ia({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Id({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Hh,n)})(m);return ta.jsx(Vh,ia({as:a,className:Ac(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?ta.jsx(Uh,{className:h.wrapper,ownerState:m,children:o}):null}))}));Yh.muiSkipListHighlight=!0;var Kh=Yh;var Xh=A.createContext({});function Jh(e){return Lc("MuiListItemIcon",e)}var Zh=Pc("MuiListItemIcon",["root","alignItemsFlexStart"]);const Qh=["className"],eg=mf("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})=>ia({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var tg=A.forwardRef((function(e,t){const r=qp({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=aa(r,Qh),i=ia({},r,{alignItems:A.useContext(Xh).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Id({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Jh,r)})(i);return ta.jsx(eg,ia({className:Ac(a.root,n),ownerState:i,ref:t},o))}));var rg=Pc("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function ng(e){return Lc("MuiMenuItem",e)}var og=Pc("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const ig=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ag=mf(Fh,{shouldForwardProp:e=>ff(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})=>ia({},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"}},[`&.${og.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wd(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${og.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wd(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${og.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wd(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})`:Wd(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${og.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${og.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Wh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Wh.inset}`]:{marginLeft:52},[`& .${rg.root}`]:{marginTop:0,marginBottom:0},[`& .${rg.inset}`]:{paddingLeft:36},[`& .${Zh.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ia({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Zh.root} svg`]:{fontSize:"1.25rem"}}))));var sg=A.forwardRef((function(e,t){const r=qp({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=aa(r,ig),f=A.useContext(Xh),m=A.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),h=A.useRef(null);nd((()=>{n&&h.current&&h.current.focus()}),[n]);const g=ia({},r,{dense:m.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return ia({},a,Id({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},ng,a))})(r),v=fd(h,t);let y;return r.disabled||(y=void 0!==c?c:-1),ta.jsx(Xh.Provider,{value:m,children:ta.jsx(ag,ia({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Ac(b.focusVisible,l),className:Ac(b.root,d)},p,{ownerState:g,classes:b}))})}));var lg=A.createContext();function ug(e){return Lc("MuiTable",e)}Pc("MuiTable",["root","stickyHeader"]);const cg=["className","component","padding","size","stickyHeader"],dg=mf("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>ia({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":ia({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),pg="table",fg=A.forwardRef((function(e,t){const r=qp({props:e,name:"MuiTable"}),{className:n,component:o=pg,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=aa(r,cg),u=ia({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Id({root:["root",r&&"stickyHeader"]},ug,t)})(u),d=A.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return ta.jsx(lg.Provider,{value:d,children:ta.jsx(dg,ia({as:o,role:o===pg?null:"table",ref:t,className:Ac(c.root,n),ownerState:u},l))})}));var mg=fg;var hg=A.createContext();function gg(e){return Lc("MuiTableBody",e)}Pc("MuiTableBody",["root"]);const bg=["className","component"],vg=mf("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),yg={variant:"body"},xg="tbody";var Sg=A.forwardRef((function(e,t){const r=qp({props:e,name:"MuiTableBody"}),{className:n,component:o=xg}=r,i=aa(r,bg),a=ia({},r,{component:o}),s=(e=>{const{classes:t}=e;return Id({root:["root"]},gg,t)})(a);return ta.jsx(hg.Provider,{value:yg,children:ta.jsx(vg,ia({className:Ac(s.root,n),as:o,ref:t,role:o===xg?null:"rowgroup",ownerState:a},i))})}));function Eg(e){return Lc("MuiTableCell",e)}var Cg=Pc("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const wg=["align","className","component","padding","scope","size","sortDirection","variant"],Rg=mf("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${bu(r.size)}`],"normal"!==r.padding&&t[`padding${bu(r.padding)}`],"inherit"!==r.align&&t[`align${bu(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>ia({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Ud(Wd(e.palette.divider,1),.88):Gd(Wd(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Cg.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),Ag=A.forwardRef((function(e,t){const r=qp({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=aa(r,wg),p=A.useContext(lg),f=A.useContext(hg),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=s;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=ia({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Id({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${bu(n)}`,"normal"!==o&&`padding${bu(o)}`,`size${bu(i)}`]},Eg,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),ta.jsx(Rg,ia({as:h,ref:t,className:Ac(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));var Ig=Ag;function Dg(e){return Lc("MuiTableContainer",e)}Pc("MuiTableContainer",["root"]);const Lg=["className","component"],Pg=mf("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var Mg=A.forwardRef((function(e,t){const r=qp({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=aa(r,Lg),a=ia({},r,{component:o}),s=(e=>{const{classes:t}=e;return Id({root:["root"]},Dg,t)})(a);return ta.jsx(Pg,ia({ref:t,as:o,className:Ac(s.root,n),ownerState:a},i))}));function _g(e){return Lc("MuiTableHead",e)}Pc("MuiTableHead",["root"]);const Tg=["className","component"],kg=mf("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Og={variant:"head"},qg="thead";var Ng=A.forwardRef((function(e,t){const r=qp({props:e,name:"MuiTableHead"}),{className:n,component:o=qg}=r,i=aa(r,Tg),a=ia({},r,{component:o}),s=(e=>{const{classes:t}=e;return Id({root:["root"]},_g,t)})(a);return ta.jsx(hg.Provider,{value:Og,children:ta.jsx(kg,ia({as:o,className:Ac(s.root,n),ref:t,role:o===qg?null:"rowgroup",ownerState:a},i))})}));function Fg(e){return Lc("MuiTableRow",e)}var zg=Pc("MuiTableRow",["root","selected","hover","head","footer"]);const jg=["className","component","hover","selected"],$g=mf("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${zg.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${zg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wd(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wd(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Bg="tr",Hg=A.forwardRef((function(e,t){const r=qp({props:e,name:"MuiTableRow"}),{className:n,component:o=Bg,hover:i=!1,selected:a=!1}=r,s=aa(r,jg),l=A.useContext(hg),u=ia({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return Id({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Fg,t)})(u);return ta.jsx($g,ia({as:o,ref:t,className:Ac(c.root,n),role:o===Bg?null:"row",ownerState:u},s))}));var Wg=Hg,Gg=(e={})=>E.createElement(Om,{...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("rect",{stroke:vm.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Vg={MuiAccordion:{styleOverrides:{root:{backgroundColor:vm.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:vm.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:E.createElement(_m,{"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 ${vm.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:vm.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${vm.MISC_FOCUS_BORDER}`,borderRadius:Cm,backgroundColor:vm.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 ${vm.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:vm.WHITE,color:vm.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:Cm},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${vm.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:vm.GREYSCALE_0_15,backgroundColor:vm.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:vm.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${vm.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:vm.GREEN_PALE},"&:active":{backgroundColor:vm.GREEN_DARK},"&.Mui-focusVisible":{borderColor:vm.GREEN_PALE,boxShadow:`0 0 0 3px ${sd(vm.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:vm.BLUE_PALE},"&:active":{backgroundColor:vm.BLUE_DARK},"&.Mui-focusVisible":{borderColor:vm.BLUE_PALE,boxShadow:`0 0 0 3px ${sd(vm.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:Cm,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:vm.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${vm.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:vm.GREYSCALE_0_15,backgroundColor:vm.GREYSCALE_100_60,"&:active":{backgroundColor:vm.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:vm.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${vm.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:vm.PURPLE,"&.Mui-focusVisible":{borderColor:vm.PURPLE,boxShadow:`0 0 0 3px ${sd(vm.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:vm.GREEN,"&.Mui-focusVisible":{borderColor:vm.GREEN,boxShadow:`0 0 0 3px ${sd(vm.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:vm.BLUE,"&.Mui-focusVisible":{borderColor:vm.BLUE,boxShadow:`0 0 0 3px ${sd(vm.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:vm.ORANGE,"&.Mui-focusVisible":{borderColor:vm.ORANGE,boxShadow:`0 0 0 3px ${sd(vm.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:vm.RED,"&.Mui-focusVisible":{borderColor:vm.RED,boxShadow:`0 0 0 3px ${sd(vm.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:vm.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:vm.PURPLE_PALE},"&:active":{backgroundColor:vm.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:vm.PURPLE_PALE,boxShadow:`0 0 0 3px ${sd(vm.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:vm.GREEN_PALE},"&:active":{backgroundColor:vm.GREEN_DARK},"&.Mui-focusVisible":{borderColor:vm.GREEN_PALE,boxShadow:`0 0 0 3px ${sd(vm.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:vm.BLUE_PALE},"&:active":{backgroundColor:vm.BLUE_DARK},"&.Mui-focusVisible":{borderColor:vm.BLUE_PALE,boxShadow:`0 0 0 3px ${sd(vm.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:vm.ORANGE_PALE},"&:active":{backgroundColor:vm.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:vm.ORANGE_PALE,boxShadow:`0 0 0 3px ${sd(vm.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:vm.RED_PALE},"&:active":{backgroundColor:vm.RED_DARK},"&.Mui-focusVisible":{borderColor:vm.RED_PALE,boxShadow:`0 0 0 3px ${sd(vm.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:vm.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:vm.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Cm,boxShadow:`inset 0 0 0 2px ${vm.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:E.createElement(km,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:ym,borderRadius:Cm,color:vm.TEXT_PRIMARY,backgroundColor:vm.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:vm.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${vm.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:vm.GREYSCALE_0_05,color:vm.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:vm.GREEN,borderColor:vm.GREEN},"&.MuiChip-outlinedInfo":{color:vm.BLUE,borderColor:vm.BLUE},"&.MuiChip-outlinedWarning":{color:vm.ORANGE,borderColor:vm.ORANGE},"&.MuiChip-outlinedError":{color:vm.RED,borderColor:vm.RED}},outlined:{border:`solid 1px ${vm.GREYSCALE_0_15}`,backgroundColor:vm.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Cm,boxShadow:"none",backgroundColor:vm.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:vm.GREEN,borderColor:vm.GREEN},outlinedSecondary:{color:vm.BLUE,borderColor:vm.BLUE},label:{fontFamily:Dm.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:E.createElement(km,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:E.createElement(_m,{"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:Cm},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Cm,fontSize:xm,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:vm.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${vm.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:vm.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:vm.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:vm.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Cm,border:`solid 1px ${vm.GREYSCALE_0_15}`,color:vm.GREYSCALE_0_60,marginRight:0,width:Em,height:Em},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${vm.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Cm,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:vm.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:xm}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:ym,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:vm.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:vm.GREYSCALE_25,fontSize:ym,fontFamily:Dm.FONT_FAMILY,fontWeight:Am,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:vm.TEXT_PRIMARY},"&.Mui-error":{color:vm.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:vm.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Rm,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:vm.TEXT_SECONDARY,content:"'(required)'",fontWeight:Rm,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:xm,lineHeight:"16px",backgroundColor:vm.WHITE,borderRadius:Cm,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vm.GREYSCALE_0_05}`,borderColor:vm.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vm.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${vm.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${vm.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vm.RED}`,boxShadow:`0px 0px 0px 1px ${vm.RED}, inset 0 2px 0 0 ${vm.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vm.GREYSCALE_0_10}`,borderColor:vm.GREYSCALE_0_10,backgroundColor:vm.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:vm.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:vm.GREYSCALE_0_15,borderRadius:Cm,boxShadow:`inset 0 2px 0 0 ${vm.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>E.createElement(_m,{...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:vm.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:vm.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:vm.GREYSCALE_0_03},"&:active":{backgroundColor:vm.GREYSCALE_0_10},"&:focus":{backgroundColor:vm.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${vm.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${vm.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:vm.GREYSCALE_0_30,"&:hover":{backgroundColor:vm.GREYSCALE_0_0,borderColor:vm.GREYSCALE_0_15},"& ~svg":{color:vm.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${vm.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Cm}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:vm.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${vm.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:vm.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:xm,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:ym,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:ym,fontWeight:Am,color:vm.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Am}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${vm.GREYSCALE_0_15}, 0px 0px 0px 1px ${vm.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:E.createElement(zm,null),checkedIcon:E.createElement(jm,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:vm.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${vm.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:vm.GREEN_PALE,boxShadow:`0 0 0 3px ${sd(vm.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:vm.BLUE_PALE,boxShadow:`0 0 0 3px ${sd(vm.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:vm.GREYSCALE_0_20}},"&.Mui-disabled":{fill:vm.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:E.createElement(Gg,null),checkedIcon:E.createElement(Nm,null),indeterminateIcon:E.createElement(Fm,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Cm,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:vm.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:vm.GREYSCALE_0_55,color:vm.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:vm.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:vm.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:vm.GREYSCALE_0_55,"&:hover":{color:vm.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:vm.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:vm.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:xm,color:vm.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Am},secondary:{fontSize:ym,color:vm.GREYSCALE_45,fontWeight:Rm,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:xm,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:vm.GREYSCALE_0_03},"&:active":{backgroundColor:vm.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:xm,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:vm.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:ym,borderBottom:`solid 1px ${vm.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:xm,color:vm.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:vm.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:vm.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:vm.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:vm.RED}}},"&.Mui-focusVisible":{backgroundColor:vm.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:vm.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:vm.GREEN,height:"24px","&.Mui-disabled":{color:vm.GREYSCALE_0_15}},rail:{backgroundColor:vm.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${vm.GREYSCALE_0_05}`,borderRadius:Cm,boxShadow:`inset 0px 0px 0px 1px ${vm.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${vm.GREYSCALE_0_05}`,borderRadius:Cm},thumb:{height:"16px",width:"16px",borderRadius:Cm,backgroundColor:vm.WHITE,boxShadow:`0px 1px 2px 0px ${vm.GREYSCALE_0_15}, 0px 0px 0px 1px ${vm.GREYSCALE_0_05}`,"&:hover":{borderRadius:Cm,boxShadow:`0 2px 4px 0 ${vm.GREYSCALE_0_30}, 0 0 0 1px ${vm.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${vm.GREYSCALE_0_15}, 0 0 0 1px ${vm.GREYSCALE_0_06}, 0 0 0 2px ${vm.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${vm.GREYSCALE_0_15}, 0 0 0 1px ${vm.GREYSCALE_0_06}, 0 0 0 2px ${vm.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:vm.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:vm.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:vm.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:vm.GREYSCALE_0_15},markLabel:{color:vm.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:vm.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:vm.WHITE,color:vm.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:vm.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:vm.GREEN_PALE,boxShadow:`0 0 0 3px ${sd(vm.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:vm.BLUE_PALE,boxShadow:`0 0 0 3px ${sd(vm.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:vm.GREYSCALE_0_15,borderRadius:Cm},thumb:{height:"16px",width:"16px",borderRadius:Cm,backgroundColor:vm.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:xm,fontWeight:Am,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${vm.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${vm.MISC_FOCUS_BORDER}`,backgroundColor:vm.GREYSCALE_0_03,borderRadius:Cm},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:vm.GREYSCALE_25,"&.Mui-selected":{color:vm.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:xm,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2,right:"unset",insetInlineEnd:0},vertical:{borderInlineEnd:`1px solid ${vm.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",borderInlineEnd:`2px solid ${vm.GREYSCALE_80}`,marginInlineEnd:"-2px"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${vm.GREYSCALE_85}`,borderRight:`1px solid ${vm.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Am,backgroundColor:vm.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:vm.GREYSCALE_98,borderBottom:`1px solid ${vm.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${vm.GREYSCALE_85}`,borderTop:`1px solid ${vm.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:vm.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:vm.GREYSCALE_0_05,"&:hover":{backgroundColor:vm.GREYSCALE_0_03}},"&&:hover":{backgroundColor:vm.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>E.createElement($m,{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 ${vm.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:xm,borderRadius:Cm,padding:"7px 16px",border:`1px solid ${vm.GREYSCALE_0_15}`,backgroundColor:vm.GREYSCALE_100_60,color:vm.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:vm.GREYSCALE_0_10,border:`1px solid ${vm.GREYSCALE_0_30}`},"&:hover":{backgroundColor:vm.GREYSCALE_0_03,border:`1px solid ${vm.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:vm.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${vm.MISC_FOCUS_BORDER}`,border:`1px solid ${vm.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:vm.GREYSCALE_25,backgroundColor:vm.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:vm.GREYSCALE_0_10,border:`1px solid ${vm.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:ym,height:24,width:24,padding:7},sizeLarge:{fontSize:Sm,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:xm,borderRadius:Cm}}},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:vm.GREYSCALE_20},tooltip:{backgroundColor:vm.GREYSCALE_20,fontSize:ym,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Ug={mode:"light",primary:{ultraLight:vm.GREEN_ULTRA_LIGHT,light:vm.GREEN_PALE,main:vm.GREEN,dark:vm.GREEN_DARK,extraDark:vm.GREEN_EXTRA_DARK,contrastText:vm.WHITE},secondary:{ultraLight:vm.BLUE_ULTRA_LIGHT,light:vm.BLUE_PALE,main:vm.BLUE,dark:vm.BLUE_DARK,extraDark:vm.BLUE_EXTRA_DARK,contrastText:vm.WHITE},error:{ultraLight:vm.RED_ULTRA_LIGHT,light:vm.RED_PALE,main:vm.RED,dark:vm.RED_DARK,extraDark:vm.RED_EXTRA_DARK,contrastText:vm.WHITE},warning:{ultraLight:vm.ORANGE_ULTRA_LIGHT,light:vm.ORANGE_PALE,main:vm.ORANGE,dark:vm.ORANGE_DARK,extraDark:vm.ORANGE_EXTRA_DARK,contrastText:vm.WHITE},success:{ultraLight:vm.GREEN_ULTRA_LIGHT,light:vm.GREEN_PALE,main:vm.GREEN,dark:vm.GREEN_DARK,extraDark:vm.GREEN_EXTRA_DARK,contrastText:vm.WHITE},info:{ultraLight:vm.BLUE_ULTRA_LIGHT,light:vm.BLUE_PALE,main:vm.BLUE,dark:vm.BLUE_DARK,extraDark:vm.BLUE_EXTRA_DARK,contrastText:vm.WHITE},text:{primary:vm.TEXT_PRIMARY,secondary:vm.TEXT_SECONDARY,disabled:vm.GREYSCALE_0_30},action:{hover:vm.GREYSCALE_0_03,hoverOpacity:.05,selected:vm.GREYSCALE_0_05,focus:vm.MISC_FOCUS_BORDER},amethyst:{ultraLight:vm.WHITE,main:vm.PURPLE,light:vm.PURPLE_PALE,dark:vm.PURPLE_DARK,extraDark:vm.GREYSCALE_0_0,contrastText:vm.WHITE},background:{paper:vm.WHITE,default:vm.GREYSCALE_95},divider:vm.GREYSCALE_0_15},Yg=e=>({components:Vg,palette:Ug,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:xm,fontWeightLight:wm,fontWeightRegular:Rm,fontWeightMedium:Am,fontWeightBold:Im,htmlFontSize:xm,fontFamily:Dm.FONT_FAMILY,button:{fontWeight:Am,fontSize:xm,textTransform:"none"},body1:{fontSize:Sm,lineHeight:"24px"},body2:{fontSize:xm,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Em,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Sm,fontWeight:Am,lineHeight:"16px"},h6:{fontSize:xm,fontWeight:Am,lineHeight:"16px"},caption:{color:vm.TEXT_SECONDARY},subtitle1:{fontSize:xm,color:vm.TEXT_SECONDARY},subtitle2:{fontSize:ym,color:vm.TEXT_SECONDARY}},shape:{borderRadius:Cm}}),Kg={...bm,MISC_FOCUS_BORDER:vm.MISC_FOCUS_BORDER},Xg=(e="light")=>Yg(),Jg=Xg().palette,Zg={SELECTED:{color:Kg.GREYSCALE_100,background:Jg.primary.light,selectedCellClass:Of.SELECTED},POSSIBLE:{color:Jg.text.primary,background:Kg.GREYSCALE_100},EXCLUDED_BACKGROUND:"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"},Qg=4/3,eb="12px",tb="600",rb={height:"auto",fontSize:eb,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},nb=25e4,ob=(e,t,r)=>{if(null==e||!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var s;if(e.columnWidth){const{columnWidth:{type:l,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(Fn.PixelsMax,Math.max(Fn.PixelsMin,m)),i-=n[a]};switch(l){case zn.Pixels:m=u||Fn.PixelsDefault,h();break;case zn.Percentage:m=(c||Fn.PercentageDefault)/100*t,h();break;case zn.FitToContent:(null===(s=e.representation)||void 0===s?void 0:s.type)===Di.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted),h());break;case zn.Auto:o.push(a);break;default:throw new Error(`${l} is not a valid column width type`)}}else o.push(a)})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(Fn.AutoMinTable,e)}))}return n},ib={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"},ab={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",...ib,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)"},sb=12,lb=14,ub=16,cb=24,db=3,pb=300,fb=400,mb=600,hb=700,gb={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};mm(ab.GREYSCALE_0,.05),mm(ab.GREEN_PALE,.5),mm(ab.BLUE_PALE,.5),mm(ab.GREEN_PALE,.5),mm(ab.BLUE_PALE,.5),mm(ab.GREEN_PALE,.5),mm(ab.BLUE_PALE,.5);var bb;function vb(){return vb=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},vb.apply(this,arguments)}mm(ab.GREEN_PALE,.5),mm(ab.BLUE_PALE,.5),mm(ab.GREEN_PALE,.5),mm(ab.BLUE_PALE,.5);var yb,xb=function(e){return A.createElement("svg",vb({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),bb||(bb=A.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Sb(){return Sb=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},Sb.apply(this,arguments)}var Eb=function(e){return A.createElement("svg",Sb({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),yb||(yb=A.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function Cb({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return E.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 wb=(e={})=>E.createElement(Cb,{...e},E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},E.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),E.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"}))),Rb=(e={})=>E.createElement(Cb,{...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),E.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Ab=(e={})=>E.createElement(Cb,{fontSize:"medium",...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},E.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Ib=(e={})=>E.createElement(Cb,{fontSize:"medium",...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),E.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),Db=({className:e})=>E.createElement(Cb,{fontSize:"small",className:e},E.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},E.createElement("g",{transform:"translate(4.324187, 1.300372)"},E.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"}),E.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));var Lb={black:"#000",white:"#fff"};var Pb={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 Mb={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 _b={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 Tb={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 kb={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var Ob={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 qb={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Nb(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 Fb="$$material";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)}function jb(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}const $b=Yl((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 Bb=$b;
|
|
113
112
|
/**
|
|
114
113
|
* @mui/styled-engine-sc v6.0.0-alpha.17
|
|
115
114
|
*
|
|
@@ -117,7 +116,7 @@ function Ks(e,t){let n;return n=t?Fs(e).withConfig({displayName:t.label,shouldFo
|
|
|
117
116
|
* This source code is licensed under the MIT license found in the
|
|
118
117
|
* LICENSE file in the root directory of this source tree.
|
|
119
118
|
*/
|
|
120
|
-
function xv(e,t){let n;return n=t?Fs(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Fs(e),n}vv.propTypes={defaultTheme:Vs.object,styles:Vs.oneOfType([Vs.array,Vs.string,Vs.object,Vs.func])};const Sv=["values","unit","step"],Ev=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Yi({},e,{[t.key]:t.val})),{})};var Cv={borderRadius:4};function wv(e,t){return t?Qs(e,t,{clone:!1}):e}const Rv={xs:0,sm:600,md:900,lg:1200,xl:1536},Av={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Rv[e]}px)`};function Pv(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Av;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Av;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Rv).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Iv(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Dv(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Iv(e,n)||r,t&&(o=t(o,r,e)),o}function Mv(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Iv(e.theme,r)||{};return Pv(e,i,(e=>{let r=Dv(a,o,e);return e===r&&"string"==typeof e&&(r=Dv(a,o,`${t}${"default"===e?"":uu(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Lv={m:"margin",p:"padding"},Ov={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Tv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},kv=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Tv[e])return[e];e=Tv[e]}const[t,n]=e.split(""),r=Lv[t],o=Ov[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),_v=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],qv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Nv(e,t,n,r){var o;const i=null!=(o=Iv(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Fv(e){return Nv(e,"spacing",8)}function zv(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function jv(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=zv(t,n),e)),{})}(kv(n),r);return Pv(e,e[n],o)}function $v(e,t){const n=Fv(e.theme);return Object.keys(e).map((r=>jv(e,t,r,n))).reduce(wv,{})}function Hv(e){return $v(e,_v)}function Bv(e){return $v(e,qv)}function Wv(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?wv(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Vv(e){return"number"!=typeof e?e:`${e}px solid`}function Gv(e,t){return Mv({prop:e,themeKey:"borders",transform:t})}Hv.propTypes={},Hv.filterProps=_v,Bv.propTypes={},Bv.filterProps=qv;const Uv=Gv("border",Vv),Yv=Gv("borderTop",Vv),Kv=Gv("borderRight",Vv),Xv=Gv("borderBottom",Vv),Jv=Gv("borderLeft",Vv),Zv=Gv("borderColor"),Qv=Gv("borderTopColor"),ey=Gv("borderRightColor"),ty=Gv("borderBottomColor"),ny=Gv("borderLeftColor"),ry=Gv("outline",Vv),oy=Gv("outlineColor"),iy=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Nv(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:zv(t,e)});return Pv(e,e.borderRadius,n)}return null};iy.propTypes={},iy.filterProps=["borderRadius"],Wv(Uv,Yv,Kv,Xv,Jv,Zv,Qv,ey,ty,ny,iy,ry,oy);const ay=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Nv(e.theme,"spacing",8),n=e=>({gap:zv(t,e)});return Pv(e,e.gap,n)}return null};ay.propTypes={},ay.filterProps=["gap"];const ly=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Nv(e.theme,"spacing",8),n=e=>({columnGap:zv(t,e)});return Pv(e,e.columnGap,n)}return null};ly.propTypes={},ly.filterProps=["columnGap"];const sy=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Nv(e.theme,"spacing",8),n=e=>({rowGap:zv(t,e)});return Pv(e,e.rowGap,n)}return null};sy.propTypes={},sy.filterProps=["rowGap"];function uy(e,t){return"grey"===t?t:e}Wv(ay,ly,sy,Mv({prop:"gridColumn"}),Mv({prop:"gridRow"}),Mv({prop:"gridAutoFlow"}),Mv({prop:"gridAutoColumns"}),Mv({prop:"gridAutoRows"}),Mv({prop:"gridTemplateColumns"}),Mv({prop:"gridTemplateRows"}),Mv({prop:"gridTemplateAreas"}),Mv({prop:"gridArea"}));function cy(e){return e<=1&&0!==e?100*e+"%":e}Wv(Mv({prop:"color",themeKey:"palette",transform:uy}),Mv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:uy}),Mv({prop:"backgroundColor",themeKey:"palette",transform:uy}));const dy=Mv({prop:"width",transform:cy}),py=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Rv[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:cy(t)}};return Pv(e,e.maxWidth,t)}return null};py.filterProps=["maxWidth"];const fy=Mv({prop:"minWidth",transform:cy}),my=Mv({prop:"height",transform:cy}),hy=Mv({prop:"maxHeight",transform:cy}),gy=Mv({prop:"minHeight",transform:cy});Mv({prop:"size",cssProperty:"width",transform:cy}),Mv({prop:"size",cssProperty:"height",transform:cy});Wv(dy,py,fy,my,hy,gy,Mv({prop:"boxSizing"}));var by={border:{themeKey:"borders",transform:Vv},borderTop:{themeKey:"borders",transform:Vv},borderRight:{themeKey:"borders",transform:Vv},borderBottom:{themeKey:"borders",transform:Vv},borderLeft:{themeKey:"borders",transform:Vv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:iy},color:{themeKey:"palette",transform:uy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:uy},backgroundColor:{themeKey:"palette",transform:uy},p:{style:Bv},pt:{style:Bv},pr:{style:Bv},pb:{style:Bv},pl:{style:Bv},px:{style:Bv},py:{style:Bv},padding:{style:Bv},paddingTop:{style:Bv},paddingRight:{style:Bv},paddingBottom:{style:Bv},paddingLeft:{style:Bv},paddingX:{style:Bv},paddingY:{style:Bv},paddingInline:{style:Bv},paddingInlineStart:{style:Bv},paddingInlineEnd:{style:Bv},paddingBlock:{style:Bv},paddingBlockStart:{style:Bv},paddingBlockEnd:{style:Bv},m:{style:Hv},mt:{style:Hv},mr:{style:Hv},mb:{style:Hv},ml:{style:Hv},mx:{style:Hv},my:{style:Hv},margin:{style:Hv},marginTop:{style:Hv},marginRight:{style:Hv},marginBottom:{style:Hv},marginLeft:{style:Hv},marginX:{style:Hv},marginY:{style:Hv},marginInline:{style:Hv},marginInlineStart:{style:Hv},marginInlineEnd:{style:Hv},marginBlock:{style:Hv},marginBlockStart:{style:Hv},marginBlockEnd:{style:Hv},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ay},rowGap:{style:sy},columnGap:{style:ly},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:cy},maxWidth:{style:py},minWidth:{transform:cy},height:{transform:cy},maxHeight:{transform:cy},minHeight:{transform:cy},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const vy=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Iv(n,l)||{};if(u)return u(o);return Pv(o,t,(t=>{let n=Dv(c,s,t);return t===n&&"string"==typeof t&&(n=Dv(c,s,`${e}${"default"===t?"":uu(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:by;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=wv(s,e(n,o,i,a));else{const e=Pv({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=wv(s,e):s[n]=t({sx:o,theme:i})}else s=wv(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();vy.filterProps=["sx"];var yy=vy;function xy(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const Sy=["breakpoints","palette","spacing","shape"];function Ey(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Ki(e,Sy),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ki(e,Sv),i=Ev(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Yi({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=Fv({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=Qs({breakpoints:l,direction:"ltr",components:{},palette:Yi({mode:"light"},r),spacing:s,shape:Yi({},Cv,i)},a);return u.applyStyles=xy,u=t.reduce(((e,t)=>Qs(e,t)),u),u.unstable_sxConfig=Yi({},by,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return yy({sx:e,theme:this})},u}function Cy(e=null){const t=A.useContext(Ms);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const wy=Ey();function Ry(e=wy){return Cy(e)}function Ay({styles:e,themeId:t,defaultTheme:n={}}){const r=Ry(n),o="function"==typeof e?e(t&&r[t]||r):e;return Wi.jsx(yv,{styles:o})}const Py=["sx"],Iy=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:by;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Dy(e){const{sx:t}=e,n=Ki(e,Py),{systemProps:r,otherProps:o}=Iy(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Js(n)?Yi({},r,n):r}:Yi({},r,t),Yi({},o,{sx:i})}const My=["className","component"];const Ly=["ownerState"],Oy=["variants"],Ty=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ky(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const _y=Ey(),qy=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ny({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Fy(e){return e?(t,n)=>n[e]:null}function zy(e,t){let{ownerState:n}=t,r=Ki(t,Ly);const o="function"==typeof e?e(Yi({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>zy(e,Yi({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Ki(o,Oy);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Yi({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Yi({ownerState:n},r)):e.style))})),t}return o}function jy({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ry(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Uc(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function $y(e,t=0,n=1){return Xc(e,t,n)}function Hy(e){if(e.type)return e;if("#"===e.charAt(0))return Hy(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Vi(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(Vi(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function By(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Wy(e){let t="hsl"===(e=Hy(e)).type||"hsla"===e.type?Hy(function(e){e=Hy(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),By({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Vy(e,t){return e=Hy(e),t=$y(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,By(e)}function Gy(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Uy(e){if(!Gy(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Uy(e[n])})),t}function Yy(e,t,n={clone:!0}){const r=n.clone?Yi({},e):e;return Gy(e)&&Gy(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Gy(t[o])&&o in e&&Gy(e[o])?r[o]=Yy(e[o],t[o],n):n.clone?r[o]=Gy(t[o])?Uy(t[o]):t[o]:r[o]=t[o])})),r}function Ky(e){if("string"!=typeof e)throw new Error(mv(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Xy(e){return e&&e.ownerDocument||document}function Jy(e){return Xy(e).defaultView||window}var Zy="undefined"!=typeof window?A.useLayoutEffect:A.useEffect;let Qy=0;const ex=A["useId".toString()];function tx(e){if(void 0!==ex){const t=ex();return null!=e?e:t}return function(e){const[t,n]=A.useState(e),r=e||t;return A.useEffect((()=>{null==t&&(Qy+=1,n(`mui-${Qy}`))}),[t]),r}(e)}function nx({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=A.useRef(void 0!==e),[i,a]=A.useState(t);return[o?e:i,A.useCallback((e=>{o||a(e)}),[])]}function rx(e){const t=A.useRef(e);return Zy((()=>{t.current=e})),A.useRef(((...e)=>(0,t.current)(...e))).current}function ox(...e){return A.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class ix{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new ix}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let ax=!0,lx=!1;const sx=new ix,ux={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function cx(e){e.metaKey||e.altKey||e.ctrlKey||(ax=!0)}function dx(){ax=!1}function px(){"hidden"===this.visibilityState&&lx&&(ax=!0)}function fx(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ax||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ux[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function mx(){const e=A.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",cx,!0),t.addEventListener("mousedown",dx,!0),t.addEventListener("pointerdown",dx,!0),t.addEventListener("touchstart",dx,!0),t.addEventListener("visibilitychange",px,!0))}),[]),t=A.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!fx(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(lx=!0,sx.start(100,(()=>{lx=!1})),t.current=!1,!0)},ref:e}}function hx(e,t){const n=Yi({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Yi({},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]=Yi({},i),Object.keys(o).forEach((e=>{n[r][e]=hx(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const gx=e=>e;var bx=(()=>{let e=gx;return{configure(t){e=t},generate:t=>e(t),reset(){e=gx}}})();const vx={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function yx(e,t,n="Mui"){const r=vx[t];return r?`${n}-${r}`:`${bx.generate(e)}-${t}`}function xx(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=yx(e,t,n)})),r}const Sx=["mode","contrastThreshold","tonalOffset"],Ex={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:av.white,default:av.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Cx={text:{primary:av.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:av.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function wx(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Hy(e),t=$y(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return By(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Hy(e),t=$y(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return By(e)}(e.main,i)))}function Rx(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=bv(e,Sx),i=e.primary||function(e="light"){return"dark"===e?{main:uv[200],light:uv[50],dark:uv[400]}:{main:uv[700],light:uv[400],dark:uv[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:sv[200],light:sv[50],dark:sv[400]}:{main:sv[500],light:sv[300],dark:sv[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:lv[500],light:lv[300],dark:lv[700]}:{main:lv[700],light:lv[400],dark:lv[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:cv[400],light:cv[300],dark:cv[700]}:{main:cv[700],light:cv[500],dark:cv[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:dv[400],light:dv[300],dark:dv[700]}:{main:dv[800],light:dv[500],dark:dv[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:pv[400],light:pv[300],dark:pv[700]}:{main:"#ed6c02",light:pv[500],dark:pv[900]}}(t);function d(e){const t=function(e,t){const n=Wy(e),r=Wy(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Cx.text.primary)>=n?Cx.text.primary:Ex.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=gv({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(mv(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(mv(12,t?` (${t})`:"",JSON.stringify(e.main)));return wx(e,"light",o,r),wx(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Cx,light:Ex};return Yy(gv({common:gv({},av),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:fv,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Ax=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Px={textTransform:"uppercase"},Ix='"Roboto", "Helvetica", "Arial", sans-serif';function Dx(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ix,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=bv(n,Ax),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return gv({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Ix?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Px),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Px),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yy(gv({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Mx(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Lx=["none",Mx(0,2,1,-1,0,1,1,0,0,1,3,0),Mx(0,3,1,-2,0,2,2,0,0,1,5,0),Mx(0,3,3,-2,0,3,4,0,0,1,8,0),Mx(0,2,4,-1,0,4,5,0,0,1,10,0),Mx(0,3,5,-1,0,5,8,0,0,1,14,0),Mx(0,3,5,-1,0,6,10,0,0,1,18,0),Mx(0,4,5,-2,0,7,10,1,0,2,16,1),Mx(0,5,5,-3,0,8,10,1,0,3,14,2),Mx(0,5,6,-3,0,9,12,1,0,3,16,2),Mx(0,6,6,-3,0,10,14,1,0,4,18,3),Mx(0,6,7,-4,0,11,15,1,0,4,20,3),Mx(0,7,8,-4,0,12,17,2,0,5,22,4),Mx(0,7,8,-4,0,13,19,2,0,5,24,4),Mx(0,7,9,-4,0,14,21,2,0,5,26,4),Mx(0,8,9,-5,0,15,22,2,0,6,28,5),Mx(0,8,10,-5,0,16,24,2,0,6,30,5),Mx(0,8,11,-5,0,17,26,2,0,6,32,5),Mx(0,9,11,-5,0,18,28,2,0,7,34,6),Mx(0,9,12,-6,0,19,29,2,0,7,36,6),Mx(0,10,13,-6,0,20,31,3,0,8,38,7),Mx(0,10,13,-6,0,21,33,3,0,8,40,7),Mx(0,10,14,-6,0,22,35,3,0,8,42,7),Mx(0,11,14,-7,0,23,36,3,0,9,44,8),Mx(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ox=["duration","easing","delay"],Tx={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},kx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _x(e){return`${Math.round(e)}ms`}function qx(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Nx(e){const t=gv({},Tx,e.easing),n=gv({},kx,e.duration);return gv({getAutoHeightDuration:qx,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return bv(r,Ox),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:_x(o)} ${i} ${"string"==typeof a?a:_x(a)}`)).join(",")}},e,{easing:t,duration:n})}var Fx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const zx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function jx(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=bv(e,zx);if(e.vars)throw new Error(mv(18));const l=Rx(r),s=Ey(e);let u=Yy(s,{mixins:(c=s.breakpoints,d=n,gv({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Lx.slice(),typography:Dx(l,i),transitions:Nx(o),zIndex:gv({},Fx),applyDarkStyles(e){if(this.vars){return{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Yy(u,a),u=t.reduce(((e,t)=>Yy(e,t)),u),u.unstable_sxConfig=gv({},by,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return yy({sx:e,theme:this})},u}var $x=jx();function Hx(){const e=Ry($x);return e[hv]||e}function Bx({props:e,name:t}){return jy({props:e,name:t,defaultTheme:$x,themeId:hv})}const Wx=e=>ky(e)&&"classes"!==e,Vx=ky,Gx=function(e={}){const{themeId:t,defaultTheme:n=_y,rootShouldForwardProp:r=ky,slotShouldForwardProp:o=ky}=e,i=e=>yy(Yi({},e,{theme:Ny(Yi({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Fy(qy(s))}=a,p=Ki(a,Ty),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=ky;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=xv(e,Yi({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||Js(e)?r=>zy(e,Yi({},r,{theme:Ny({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=Ny(Yi({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=zy(n,Yi({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=Ny(Yi({},e,{defaultTheme:n,themeId:t}));return zy({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Yi({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:hv,defaultTheme:$x,rootShouldForwardProp:Wx});var Ux=Gx;var Yx=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Kx(e){return yx("MuiSvgIcon",e)}xx("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Xx=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Jx=Ux("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Ky(n.color)}`],t[`fontSize${Ky(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Zx=A.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=bv(n,Xx),f=A.isValidElement(r)&&"svg"===r.type,m=gv({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Sd({root:["root","inherit"!==t&&`color${Ky(t)}`,`fontSize${Ky(n)}`]},Kx,r)})(m);return Wi.jsxs(Jx,gv({as:a,className:vc(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?Wi.jsx("title",{children:c}):null]}))}));Zx.muiName="SvgIcon";var Qx=Zx;const eS=e=>e.scrollTop;function tS(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function nS(e){return yx("MuiPaper",e)}xx("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const rS=["className","component","elevation","square","variant"],oS=Ux("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return gv({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&gv({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Vy("#fff",Yx(t.elevation))}, ${Vy("#fff",Yx(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var iS=A.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=bv(n,rS),u=gv({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sd({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},nS,o)})(u);return Wi.jsx(oS,gv({as:o,ownerState:u,className:vc(c.root,r),ref:t},s))}));function aS(e){return"string"==typeof e}function lS(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function sS(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const uS=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function cS(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Ki(e,uS),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=vc(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Yi({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Yi({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=lS(Yi({},o,r)),l=sS(r),s=sS(o),u=t(a),c=vc(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=Yi({},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=Yi({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Yi({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||aS(e)?t:Yi({},t,{ownerState:Yi({},t.ownerState,n)})}(n,Yi({},s,{ref:ad(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var dS=xx("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const pS=["center","classes","className"];let fS,mS,hS,gS,bS=e=>e;const vS=$s(fS||(fS=bS`
|
|
119
|
+
function Hb(e,t){let r;return r=t?Vl(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Vl(e),r}$b.propTypes={defaultTheme:Ql.object,styles:Ql.oneOfType([Ql.array,Ql.string,Ql.object,Ql.func])};const Wb=["values","unit","step"],Gb=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)=>ia({},e,{[t.key]:t.val})),{})};var Vb={borderRadius:4};function Ub(e,t){return t?su(e,t,{clone:!1}):e}const Yb={xs:0,sm:600,md:900,lg:1200,xl:1536},Kb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Yb[e]}px)`};function Xb(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Kb;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Kb;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Yb).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Jb(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 Zb(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Jb(e,r)||n,t&&(o=t(o,n,e)),o}function Qb(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=Jb(e.theme,n)||{};return Xb(e,i,(e=>{let n=Zb(a,o,e);return e===n&&"string"==typeof e&&(n=Zb(a,o,`${t}${"default"===e?"":bu(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const ev={m:"margin",p:"padding"},tv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},rv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},nv=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!rv[e])return[e];e=rv[e]}const[t,r]=e.split(""),n=ev[t],o=tv[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),ov=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],iv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function av(e,t,r,n){var o;const i=null!=(o=Jb(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 sv(e){return av(e,"spacing",8)}function lv(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 uv(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=lv(t,r),e)),{})}(nv(r),n);return Xb(e,e[r],o)}function cv(e,t){const r=sv(e.theme);return Object.keys(e).map((n=>uv(e,t,n,r))).reduce(Ub,{})}function dv(e){return cv(e,ov)}function pv(e){return cv(e,iv)}function fv(...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]?Ub(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function mv(e){return"number"!=typeof e?e:`${e}px solid`}function hv(e,t){return Qb({prop:e,themeKey:"borders",transform:t})}dv.propTypes={},dv.filterProps=ov,pv.propTypes={},pv.filterProps=iv;const gv=hv("border",mv),bv=hv("borderTop",mv),vv=hv("borderRight",mv),yv=hv("borderBottom",mv),xv=hv("borderLeft",mv),Sv=hv("borderColor"),Ev=hv("borderTopColor"),Cv=hv("borderRightColor"),wv=hv("borderBottomColor"),Rv=hv("borderLeftColor"),Av=hv("outline",mv),Iv=hv("outlineColor"),Dv=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=av(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:lv(t,e)});return Xb(e,e.borderRadius,r)}return null};Dv.propTypes={},Dv.filterProps=["borderRadius"],fv(gv,bv,vv,yv,xv,Sv,Ev,Cv,wv,Rv,Dv,Av,Iv);const Lv=e=>{if(void 0!==e.gap&&null!==e.gap){const t=av(e.theme,"spacing",8),r=e=>({gap:lv(t,e)});return Xb(e,e.gap,r)}return null};Lv.propTypes={},Lv.filterProps=["gap"];const Pv=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=av(e.theme,"spacing",8),r=e=>({columnGap:lv(t,e)});return Xb(e,e.columnGap,r)}return null};Pv.propTypes={},Pv.filterProps=["columnGap"];const Mv=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=av(e.theme,"spacing",8),r=e=>({rowGap:lv(t,e)});return Xb(e,e.rowGap,r)}return null};Mv.propTypes={},Mv.filterProps=["rowGap"];function _v(e,t){return"grey"===t?t:e}fv(Lv,Pv,Mv,Qb({prop:"gridColumn"}),Qb({prop:"gridRow"}),Qb({prop:"gridAutoFlow"}),Qb({prop:"gridAutoColumns"}),Qb({prop:"gridAutoRows"}),Qb({prop:"gridTemplateColumns"}),Qb({prop:"gridTemplateRows"}),Qb({prop:"gridTemplateAreas"}),Qb({prop:"gridArea"}));function Tv(e){return e<=1&&0!==e?100*e+"%":e}fv(Qb({prop:"color",themeKey:"palette",transform:_v}),Qb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_v}),Qb({prop:"backgroundColor",themeKey:"palette",transform:_v}));const kv=Qb({prop:"width",transform:Tv}),Ov=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])||Yb[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:Tv(t)}};return Xb(e,e.maxWidth,t)}return null};Ov.filterProps=["maxWidth"];const qv=Qb({prop:"minWidth",transform:Tv}),Nv=Qb({prop:"height",transform:Tv}),Fv=Qb({prop:"maxHeight",transform:Tv}),zv=Qb({prop:"minHeight",transform:Tv});Qb({prop:"size",cssProperty:"width",transform:Tv}),Qb({prop:"size",cssProperty:"height",transform:Tv});fv(kv,Ov,qv,Nv,Fv,zv,Qb({prop:"boxSizing"}));var jv={border:{themeKey:"borders",transform:mv},borderTop:{themeKey:"borders",transform:mv},borderRight:{themeKey:"borders",transform:mv},borderBottom:{themeKey:"borders",transform:mv},borderLeft:{themeKey:"borders",transform:mv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:mv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Dv},color:{themeKey:"palette",transform:_v},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_v},backgroundColor:{themeKey:"palette",transform:_v},p:{style:pv},pt:{style:pv},pr:{style:pv},pb:{style:pv},pl:{style:pv},px:{style:pv},py:{style:pv},padding:{style:pv},paddingTop:{style:pv},paddingRight:{style:pv},paddingBottom:{style:pv},paddingLeft:{style:pv},paddingX:{style:pv},paddingY:{style:pv},paddingInline:{style:pv},paddingInlineStart:{style:pv},paddingInlineEnd:{style:pv},paddingBlock:{style:pv},paddingBlockStart:{style:pv},paddingBlockEnd:{style:pv},m:{style:dv},mt:{style:dv},mr:{style:dv},mb:{style:dv},ml:{style:dv},mx:{style:dv},my:{style:dv},margin:{style:dv},marginTop:{style:dv},marginRight:{style:dv},marginBottom:{style:dv},marginLeft:{style:dv},marginX:{style:dv},marginY:{style:dv},marginInline:{style:dv},marginInlineStart:{style:dv},marginInlineEnd:{style:dv},marginBlock:{style:dv},marginBlockStart:{style:dv},marginBlockEnd:{style:dv},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:Lv},rowGap:{style:Mv},columnGap:{style:Pv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tv},maxWidth:{style:Ov},minWidth:{transform:Tv},height:{transform:Tv},maxHeight:{transform:Tv},minHeight:{transform:Tv},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const $v=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:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Jb(r,s)||{};if(u)return u(o);return Xb(o,t,(t=>{let r=Zb(c,l,t);return t===r&&"string"==typeof t&&(r=Zb(c,l,`${e}${"default"===t?"":bu(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:jv;function s(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),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[r])l=Ub(l,e(r,o,i,a));else{const e=Xb({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)?l=Ub(l,e):l[r]=t({sx:o,theme:i})}else l=Ub(l,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)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();$v.filterProps=["sx"];var Bv=$v;function Hv(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){return{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return r.palette.mode===e?t:{}}const Wv=["breakpoints","palette","spacing","shape"];function Gv(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=aa(e,Wv),s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=aa(e,Wb),i=Gb(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return ia({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),l=function(e=8){if(e.mui)return e;const t=sv({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=su({breakpoints:s,direction:"ltr",components:{},palette:ia({mode:"light"},n),spacing:l,shape:ia({},Vb,i)},a);return u.applyStyles=Hv,u=t.reduce(((e,t)=>su(e,t)),u),u.unstable_sxConfig=ia({},jv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Bv({sx:e,theme:this})},u}function Vv(e=null){const t=A.useContext(Fl);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Uv=Gv();function Yv(e=Uv){return Vv(e)}function Kv({styles:e,themeId:t,defaultTheme:r={}}){const n=Yv(r),o="function"==typeof e?e(t&&n[t]||n):e;return ta.jsx(Bb,{styles:o})}const Xv=["sx"],Jv=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:jv;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function Zv(e){const{sx:t}=e,r=aa(e,Xv),{systemProps:n,otherProps:o}=Jv(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return iu(r)?ia({},n,r):n}:ia({},n,t),ia({},o,{sx:i})}const Qv=["className","component"];const ey=["ownerState"],ty=["variants"],ry=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ny(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const oy=Gv(),iy=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ay({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function sy(e){return e?(t,r)=>r[e]:null}function ly(e,t){let{ownerState:r}=t,n=aa(t,ey);const o="function"==typeof e?e(ia({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>ly(e,ia({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=aa(o,ty);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(ia({ownerState:r},n)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(ia({ownerState:r},n)):e.style))})),t}return o}function uy({props:e,name:t,defaultTheme:r,themeId:n}){let o=Yv(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?td(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function cy(e,t=0,r=1){return od(e,t,r)}function dy(e){if(e.type)return e;if("#"===e.charAt(0))return dy(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(ra(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(ra(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function py(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 fy(e){let t="hsl"===(e=dy(e)).type||"hsla"===e.type?dy(function(e){e=dy(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),py({type:s,values:l})}(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 my(e,t){return e=dy(e),t=cy(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,py(e)}function hy(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 gy(e){if(!hy(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=gy(e[r])})),t}function by(e,t,r={clone:!0}){const n=r.clone?ia({},e):e;return hy(e)&&hy(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(hy(t[o])&&o in e&&hy(e[o])?n[o]=by(e[o],t[o],r):r.clone?n[o]=hy(t[o])?gy(t[o]):t[o]:n[o]=t[o])})),n}function vy(e){if("string"!=typeof e)throw new Error(Nb(7));return e.charAt(0).toUpperCase()+e.slice(1)}function yy(e){return e&&e.ownerDocument||document}function xy(e){return yy(e).defaultView||window}var Sy="undefined"!=typeof window?A.useLayoutEffect:A.useEffect;let Ey=0;const Cy=A["useId".toString()];function wy(e){if(void 0!==Cy){const t=Cy();return null!=e?e:t}return function(e){const[t,r]=A.useState(e),n=e||t;return A.useEffect((()=>{null==t&&(Ey+=1,r(`mui-${Ey}`))}),[t]),n}(e)}function Ry({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=A.useRef(void 0!==e),[i,a]=A.useState(t);return[o?e:i,A.useCallback((e=>{o||a(e)}),[])]}function Ay(e){const t=A.useRef(e);return Sy((()=>{t.current=e})),A.useRef(((...e)=>(0,t.current)(...e))).current}function Iy(...e){return A.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class Dy{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Dy}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Ly=!0,Py=!1;const My=new Dy,_y={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 Ty(e){e.metaKey||e.altKey||e.ctrlKey||(Ly=!0)}function ky(){Ly=!1}function Oy(){"hidden"===this.visibilityState&&Py&&(Ly=!0)}function qy(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ly||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!_y[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Ny(){const e=A.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ty,!0),t.addEventListener("mousedown",ky,!0),t.addEventListener("pointerdown",ky,!0),t.addEventListener("touchstart",ky,!0),t.addEventListener("visibilitychange",Oy,!0))}),[]),t=A.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!qy(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Py=!0,My.start(100,(()=>{Py=!1})),t.current=!1,!0)},ref:e}}function Fy(e,t){const r=ia({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=ia({},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]=ia({},i),Object.keys(o).forEach((e=>{r[n][e]=Fy(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const zy=e=>e;var jy=(()=>{let e=zy;return{configure(t){e=t},generate:t=>e(t),reset(){e=zy}}})();const $y={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 By(e,t,r="Mui"){const n=$y[t];return n?`${r}-${n}`:`${jy.generate(e)}-${t}`}function Hy(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=By(e,t,r)})),n}const Wy=["mode","contrastThreshold","tonalOffset"],Gy={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:Lb.white,default:Lb.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}},Vy={text:{primary:Lb.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:Lb.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 Uy(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=dy(e),t=cy(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 py(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=dy(e),t=cy(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 py(e)}(e.main,i)))}function Yy(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=jb(e,Wy),i=e.primary||function(e="light"){return"dark"===e?{main:_b[200],light:_b[50],dark:_b[400]}:{main:_b[700],light:_b[400],dark:_b[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Mb[200],light:Mb[50],dark:Mb[400]}:{main:Mb[500],light:Mb[300],dark:Mb[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Pb[500],light:Pb[300],dark:Pb[700]}:{main:Pb[700],light:Pb[400],dark:Pb[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Tb[400],light:Tb[300],dark:Tb[700]}:{main:Tb[700],light:Tb[500],dark:Tb[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:kb[400],light:kb[300],dark:kb[700]}:{main:kb[800],light:kb[500],dark:kb[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ob[400],light:Ob[300],dark:Ob[700]}:{main:"#ed6c02",light:Ob[500],dark:Ob[900]}}(t);function d(e){const t=function(e,t){const r=fy(e),n=fy(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Vy.text.primary)>=r?Vy.text.primary:Gy.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=zb({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Nb(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Nb(12,t?` (${t})`:"",JSON.stringify(e.main)));return Uy(e,"light",o,n),Uy(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Vy,light:Gy};return by(zb({common:zb({},Lb),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:qb,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Ky=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Xy={textTransform:"uppercase"},Jy='"Roboto", "Helvetica", "Arial", sans-serif';function Zy(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Jy,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=jb(r,Ky),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return zb({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Jy?{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(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Xy),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Xy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return by(zb({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Qy(...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 ex=["none",Qy(0,2,1,-1,0,1,1,0,0,1,3,0),Qy(0,3,1,-2,0,2,2,0,0,1,5,0),Qy(0,3,3,-2,0,3,4,0,0,1,8,0),Qy(0,2,4,-1,0,4,5,0,0,1,10,0),Qy(0,3,5,-1,0,5,8,0,0,1,14,0),Qy(0,3,5,-1,0,6,10,0,0,1,18,0),Qy(0,4,5,-2,0,7,10,1,0,2,16,1),Qy(0,5,5,-3,0,8,10,1,0,3,14,2),Qy(0,5,6,-3,0,9,12,1,0,3,16,2),Qy(0,6,6,-3,0,10,14,1,0,4,18,3),Qy(0,6,7,-4,0,11,15,1,0,4,20,3),Qy(0,7,8,-4,0,12,17,2,0,5,22,4),Qy(0,7,8,-4,0,13,19,2,0,5,24,4),Qy(0,7,9,-4,0,14,21,2,0,5,26,4),Qy(0,8,9,-5,0,15,22,2,0,6,28,5),Qy(0,8,10,-5,0,16,24,2,0,6,30,5),Qy(0,8,11,-5,0,17,26,2,0,6,32,5),Qy(0,9,11,-5,0,18,28,2,0,7,34,6),Qy(0,9,12,-6,0,19,29,2,0,7,36,6),Qy(0,10,13,-6,0,20,31,3,0,8,38,7),Qy(0,10,13,-6,0,21,33,3,0,8,40,7),Qy(0,10,14,-6,0,22,35,3,0,8,42,7),Qy(0,11,14,-7,0,23,36,3,0,9,44,8),Qy(0,11,15,-7,0,24,38,3,0,9,46,8)];const tx=["duration","easing","delay"],rx={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)"},nx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ox(e){return`${Math.round(e)}ms`}function ix(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ax(e){const t=zb({},rx,e.easing),r=zb({},nx,e.duration);return zb({getAutoHeightDuration:ix,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return jb(n,tx),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ox(o)} ${i} ${"string"==typeof a?a:ox(a)}`)).join(",")}},e,{easing:t,duration:r})}var sx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const lx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ux(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=jb(e,lx);if(e.vars)throw new Error(Nb(18));const s=Yy(n),l=Gv(e);let u=by(l,{mixins:(c=l.breakpoints,d=r,zb({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:ex.slice(),typography:Zy(s,i),transitions:ax(o),zIndex:zb({},sx),applyDarkStyles(e){if(this.vars){return{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=by(u,a),u=t.reduce(((e,t)=>by(e,t)),u),u.unstable_sxConfig=zb({},jv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Bv({sx:e,theme:this})},u}var cx=ux();function dx(){const e=Yv(cx);return e[Fb]||e}function px({props:e,name:t}){return uy({props:e,name:t,defaultTheme:cx,themeId:Fb})}const fx=e=>ny(e)&&"classes"!==e,mx=ny,hx=function(e={}){const{themeId:t,defaultTheme:r=oy,rootShouldForwardProp:n=ny,slotShouldForwardProp:o=ny}=e,i=e=>Bv(ia({},e,{theme:ay(ia({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=sy(iy(l))}=a,p=aa(a,ry),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let h=ny;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Hb(e,ia({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||iu(e)?n=>ly(e,ia({},n,{theme:ay({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push((e=>{const n=ay(ia({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=ly(r,ia({},e,{theme:n}))})),d(e,i)})),s&&!f&&l.push((e=>{var n;const o=ay(ia({},e,{defaultTheme:r,themeId:t}));return ly({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},ia({},e,{theme:o}))})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Fb,defaultTheme:cx,rootShouldForwardProp:fx});var gx=hx;var bx=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function vx(e){return By("MuiSvgIcon",e)}Hy("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yx=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],xx=gx("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${vy(r.color)}`],t[`fontSize${vy(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,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==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Sx=A.forwardRef((function(e,t){const r=px({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=jb(r,yx),f=A.isValidElement(n)&&"svg"===n.type,m=zb({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Id({root:["root","inherit"!==t&&`color${vy(t)}`,`fontSize${vy(r)}`]},vx,n)})(m);return ta.jsxs(xx,zb({as:a,className:Ac(g.root,o),focusable:"false",color:l,"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?ta.jsx("title",{children:c}):null]}))}));Sx.muiName="SvgIcon";var Ex=Sx;const Cx=e=>e.scrollTop;function wx(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 Rx(e){return By("MuiPaper",e)}Hy("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 Ax=["className","component","elevation","square","variant"],Ix=gx("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 zb({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&&zb({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${my("#fff",bx(t.elevation))}, ${my("#fff",bx(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var Dx=A.forwardRef((function(e,t){const r=px({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=jb(r,Ax),u=zb({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Id({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Rx,o)})(u);return ta.jsx(Ix,zb({as:o,ownerState:u,className:Ac(c.root,n),ref:t},l))}));function Lx(e){return"string"==typeof e}function Px(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 Mx(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 _x=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Tx(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=aa(e,_x),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Ac(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=ia({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=ia({},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=Px(ia({},o,n)),s=Mx(n),l=Mx(o),u=t(a),c=Ac(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=ia({},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=ia({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(ia({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||Lx(e)?t:ia({},t,{ownerState:ia({},t.ownerState,r)})}(r,ia({},l,{ref:fd(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var kx=Hy("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Ox=["center","classes","className"];let qx,Nx,Fx,zx,jx=e=>e;const $x=Kl(qx||(qx=jx`
|
|
121
120
|
0% {
|
|
122
121
|
transform: scale(0);
|
|
123
122
|
opacity: 0.1;
|
|
@@ -127,7 +126,7 @@ function xv(e,t){let n;return n=t?Fs(e).withConfig({displayName:t.label,shouldFo
|
|
|
127
126
|
transform: scale(1);
|
|
128
127
|
opacity: 0.3;
|
|
129
128
|
}
|
|
130
|
-
`)),
|
|
129
|
+
`)),Bx=Kl(Nx||(Nx=jx`
|
|
131
130
|
0% {
|
|
132
131
|
opacity: 1;
|
|
133
132
|
}
|
|
@@ -135,7 +134,7 @@ function xv(e,t){let n;return n=t?Fs(e).withConfig({displayName:t.label,shouldFo
|
|
|
135
134
|
100% {
|
|
136
135
|
opacity: 0;
|
|
137
136
|
}
|
|
138
|
-
`)),
|
|
137
|
+
`)),Hx=Kl(Fx||(Fx=jx`
|
|
139
138
|
0% {
|
|
140
139
|
transform: scale(1);
|
|
141
140
|
}
|
|
@@ -147,7 +146,7 @@ function xv(e,t){let n;return n=t?Fs(e).withConfig({displayName:t.label,shouldFo
|
|
|
147
146
|
100% {
|
|
148
147
|
transform: scale(1);
|
|
149
148
|
}
|
|
150
|
-
`)),
|
|
149
|
+
`)),Wx=gx("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Gx=gx((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=A.useState(!1),p=Ac(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Ac(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),A.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),ta.jsx("span",{className:p,style:f,children:ta.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(zx||(zx=jx`
|
|
151
150
|
opacity: 0;
|
|
152
151
|
position: absolute;
|
|
153
152
|
|
|
@@ -190,4 +189,4 @@ function xv(e,t){let n;return n=t?Fs(e).withConfig({displayName:t.label,shouldFo
|
|
|
190
189
|
animation-iteration-count: infinite;
|
|
191
190
|
animation-delay: 200ms;
|
|
192
191
|
}
|
|
193
|
-
`),dS.rippleVisible,vS,550,(({theme:e})=>e.transitions.easing.easeInOut),dS.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),dS.child,dS.childLeaving,yS,550,(({theme:e})=>e.transitions.easing.easeInOut),dS.childPulsate,xS,(({theme:e})=>e.transitions.easing.easeInOut));var CS=A.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=bv(n,pS),[l,s]=A.useState([]),u=A.useRef(0),c=A.useRef(null);A.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=A.useRef(!1),p=A.useRef(0),f=A.useRef(null),m=A.useRef(null);A.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=A.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Wi.jsx(ES,{classes:{ripple:vc(o.ripple,dS.ripple),rippleVisible:vc(o.rippleVisible,dS.rippleVisible),ripplePulsate:vc(o.ripplePulsate,dS.ripplePulsate),child:vc(o.child,dS.child),childLeaving:vc(o.childLeaving,dS.childLeaving),childPulsate:vc(o.childPulsate,dS.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=A.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=A.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=A.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return A.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Wi.jsx(SS,gv({className:vc(dS.root,o.root,i),ref:m},a,{children:Wi.jsx(pm,{component:null,exit:!0,children:l})}))}));function wS(e){return yx("MuiButtonBase",e)}var RS=xx("MuiButtonBase",["root","disabled","focusVisible"]);const AS=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],PS=Ux("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${RS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),IS=A.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:P,tabIndex:I=0,TouchRippleProps:D,touchRippleRef:M,type:L}=n,O=bv(n,AS),T=A.useRef(null),k=A.useRef(null),_=ox(k,M),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=mx(),[j,$]=A.useState(!1);s&&j&&$(!1),A.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[H,B]=A.useState(!1);A.useEffect((()=>{B(!0)}),[]);const W=H&&!u&&!s;function V(e,t,n=c){return rx((r=>{t&&t(r);return!n&&k.current&&k.current[e](r),!0}))}A.useEffect((()=>{j&&d&&!u&&H&&k.current.pulsate()}),[u,d,j,H]);const G=V("start",S),U=V("stop",h),Y=V("stop",g),K=V("stop",C),X=V("stop",(e=>{j&&e.preventDefault(),E&&E(e)})),J=V("start",P),Z=V("stop",w),Q=V("stop",R),ee=V("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=rx((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=T.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=A.useRef(!1),oe=rx((e=>{d&&!re.current&&j&&k.current&&" "===e.key&&(re.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=rx((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(re.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(O.href||O.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===L?"button":L,le.disabled=s):(O.href||O.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=ox(t,z,T),ue=gv({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Sd({root:["root",t&&"disabled",n&&"focusVisible"]},wS,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Wi.jsxs(PS,gv({as:ae,className:vc(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:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:L},le,O,{children:[i,W?Wi.jsx(CS,gv({ref:_,center:o},D)):null]}))}));var DS=IS;function MS(e){return yx("MuiTypography",e)}xx("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const LS=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],OS=Ux("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Ky(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>gv({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),TS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},kS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_S=A.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiTypography"}),r=(e=>kS[e]||e)(n.color),o=Dy(gv({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=TS}=o,f=bv(o,LS),m=gv({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||TS[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Sd({root:["root",i,"inherit"!==e.align&&`align${Ky(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},MS,a)})(m);return Wi.jsx(OS,gv({as:h,ref:t,ownerState:m,className:vc(g.root,a)},f))}));var qS=_S;const NS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function FS(e){const t=[],n=[];return Array.from(e.querySelectorAll(NS)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function zS(){return!0}function jS(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=FS,isEnabled:a=zS,open:l}=e,s=A.useRef(!1),u=A.useRef(null),c=A.useRef(null),d=A.useRef(null),p=A.useRef(null),f=A.useRef(!1),m=A.useRef(null),h=ad(t.ref,m),g=A.useRef(null);A.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),A.useEffect((()=>{if(!l||!m.current)return;const e=nd(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]),A.useEffect((()=>{if(!l||!m.current)return;const e=nd(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Wi.jsxs(A.Fragment,{children:[Wi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),A.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)}}),Wi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const $S=A.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=A.useState(null),l=ad(A.isValidElement(n)?n.ref:null,t);if(Kc((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Kc((()=>{if(i&&!o)return od(t,i),()=>{od(t,null)}}),[t,i,o]),o){if(A.isValidElement(n)){const e={ref:l};return A.cloneElement(n,e)}return Wi.jsx(A.Fragment,{children:n})}return Wi.jsx(A.Fragment,{children:i?j.createPortal(n,i):i})}));function HS(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function BS(e){return parseInt(rd(e).getComputedStyle(e).paddingRight,10)||0}function WS(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&HS(e,o)}))}function VS(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function GS(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=nd(e);return t.body===e?rd(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=xd(nd(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${BS(r)+e}px`;const t=nd(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${BS(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=nd(r).body;else{const t=r.parentElement,n=rd(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const US=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&HS(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);WS(t,e.mount,e.modalRef,r,!0);const o=VS(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=VS(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=GS(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=VS(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&HS(e.modalRef,t),WS(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&HS(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function YS(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=US,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=A.useRef({}),f=A.useRef(null),m=A.useRef(null),h=ad(m,d),[g,b]=A.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=id((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||nd(f.current).body;o.add(x(),e),m.current&&S()})),C=A.useCallback((()=>o.isTopModal(x())),[o]),w=id((e=>{f.current=e,e&&(c&&C()?S():m.current&&HS(m.current,y))})),R=A.useCallback((()=>{o.remove(x(),y)}),[y,o]);A.useEffect((()=>()=>{R()}),[R]),A.useEffect((()=>{c?E():v&&i||R()}),[c,R,v,i,E]);const P=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=lS(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Yi({},n,t);return Yi({role:"presentation"},r,{onKeyDown:P(r),ref:h})},getBackdropProps:(e={})=>Yi({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:ed((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:ed((()=>{b(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:v}}const KS=["onChange","maxRows","minRows","style","value"];function XS(e){return parseInt(e,10)||0}const JS={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function ZS(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const QS=A.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Ki(e,KS),{current:s}=A.useRef(null!=a),u=A.useRef(null),c=ad(t,u),d=A.useRef(null),p=A.useRef(0),[f,m]=A.useState({outerHeightStyle:0}),h=A.useCallback((()=>{const t=u.current,n=rd(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=XS(n.paddingBottom)+XS(n.paddingTop),s=XS(n.borderBottomWidth)+XS(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},b=A.useCallback((()=>{const e=h();ZS(e)||m((t=>g(t,e)))}),[h]);Kc((()=>{const e=()=>{p.current=0,(()=>{const e=h();ZS(e)||j.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=td(e),n=u.current,r=rd(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]),Kc((()=>{b()})),A.useEffect((()=>{p.current=0}),[a]);return Wi.jsxs(A.Fragment,{children:[Wi.jsx("textarea",Yi({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:Yi({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Wi.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Yi({},JS,i,{paddingTop:0,paddingBottom:0})})]})}));function eE({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var tE=A.createContext(void 0);function nE(){return A.useContext(tE)}function rE(e){return Wi.jsx(Ay,gv({},e,{defaultTheme:$x,themeId:hv}))}function oE(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function iE(e,t=!1){return e&&(oE(e.value)&&""!==e.value||t&&oE(e.defaultValue)&&""!==e.defaultValue)}function aE(e){return yx("MuiInputBase",e)}var lE=xx("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const sE=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],uE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Ky(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},cE=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},dE=Ux("div",{name:"MuiInputBase",slot:"Root",overridesResolver:uE})((({theme:e,ownerState:t})=>gv({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${lE.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&gv({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),pE=Ux("input",{name:"MuiInputBase",slot:"Input",overridesResolver:cE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=gv({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return gv({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${lE.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${lE.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),fE=Wi.jsx(rE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),mE=A.forwardRef((function(e,t){var n;const r=Bx({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:w,onClick:R,onFocus:P,onKeyDown:I,onKeyUp:D,placeholder:M,readOnly:L,renderSuffix:O,rows:T,slotProps:k={},slots:_={},startAdornment:q,type:N="text",value:F}=r,z=bv(r,sE),j=null!=b.value?b.value:F,{current:$}=A.useRef(null!=j),H=A.useRef(),B=A.useCallback((e=>{}),[]),W=ox(H,v,b.ref,B),[V,G]=A.useState(!1),U=nE(),Y=eE({props:r,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:V,A.useEffect((()=>{!U&&d&&V&&(G(!1),C&&C())}),[U,d,V,C]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=A.useCallback((e=>{iE(e)?K&&K():X&&X()}),[K,X]);Zy((()=>{$&&J({value:j})}),[j,J,$]);A.useEffect((()=>{J(H.current)}),[]);let Z=g,Q=b;S&&"input"===Z&&(Q=gv(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:y,minRows:x},Q),Z=QS);A.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=gv({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:S,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Sd({root:["root",`color${Ky(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Ky(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},aE,t)})(ee),ne=_.root||s.Root||dE,re=k.root||u.root||{},oe=_.input||s.Input||pE;return Q=gv({},Q,null!=(n=k.input)?n:u.input),Wi.jsxs(A.Fragment,{children:[!p&&fE,Wi.jsxs(ne,gv({},re,!aS(ne)&&{ownerState:gv({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),R&&R(e)}},z,{className:vc(te.root,re.className,l,L&&"MuiInputBase-readOnly"),children:[q,Wi.jsx(tE.Provider,{value:null,children:Wi.jsx(oe,gv({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:E,placeholder:M,readOnly:L,required:Y.required,rows:T,value:j,onKeyDown:I,onKeyUp:D,type:N},Q,!aS(oe)&&{as:Z,ownerState:gv({},ee,Q.ownerState)},{ref:W,className:vc(te.input,Q.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(mv(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),f,O?O(gv({},Y,{startAdornment:q})):null]}))]})}));var hE=mE;function gE(e){return yx("MuiInput",e)}var bE=gv({},lE,xx("MuiInput",["root","underline","input"]));function vE(e){return yx("MuiOutlinedInput",e)}var yE=gv({},lE,xx("MuiOutlinedInput",["root","notchedOutline","input"]));function xE(e){return yx("MuiFilledInput",e)}var SE=gv({},lE,xx("MuiFilledInput",["root","underline","input"])),EE=function(e,t){function n(n,r){return Wi.jsx(Qx,gv({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Qx.muiName,A.memo(A.forwardRef(n))}(Wi.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const CE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],wE={entering:{opacity:1},entered:{opacity:1}},RE=A.forwardRef((function(e,t){const n=Hx(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:b=am}=e,v=bv(e,CE),y=A.useRef(null),x=ox(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{eS(e);const r=tS({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),P=S((e=>{const t=tS({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=S(f);return Wi.jsx(b,gv({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:P,onExited:I,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>A.cloneElement(a,gv({style:gv({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},wE[e],h,a.props.style),ref:x},t))}))}));var AE=RE;function PE(e){return yx("MuiBackdrop",e)}xx("MuiBackdrop",["root","invisible"]);const IE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],DE=Ux("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>gv({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),ME=A.forwardRef((function(e,t){var n,r,o;const i=Bx({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=AE,transitionDuration:g}=i,b=bv(i,IE),v=gv({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Sd({root:["root",n&&"invisible"]},PE,t)})(v),x=null!=(n=f.root)?n:c.root;return Wi.jsx(h,gv({in:p,timeout:g},b,{children:Wi.jsx(DE,gv({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:vc(y.root,l,null==x?void 0:x.className),ownerState:gv({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var LE=ME;var OE=xx("MuiBox",["root"]);const TE=jx(),kE=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=xv("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(yy);return A.forwardRef((function(e,a){const l=Ry(n),s=Dy(e),{className:u,component:c="div"}=s,d=Ki(s,My);return Wi.jsx(i,Yi({as:c,ref:a,className:vc(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:hv,defaultTheme:TE,defaultClassName:OE.root,generateClassName:bx.generate});var _E=kE;function qE(e){return yx("MuiButton",e)}var NE=xx("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var FE=A.createContext({});var zE=A.createContext(void 0);const jE=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],$E=e=>gv({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),HE=Ux(DS,{shouldForwardProp:e=>Wx(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ky(n.color)}`],t[`size${Ky(n.size)}`],t[`${n.variant}Size${Ky(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return gv({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":gv({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Vy(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vy(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vy(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":gv({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${NE.focusVisible}`]:gv({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${NE.disabled}`]:gv({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Vy(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${NE.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${NE.disabled}`]:{boxShadow:"none"}})),BE=Ux("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ky(n.size)}`]]}})((({ownerState:e})=>gv({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},$E(e)))),WE=Ux("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ky(n.size)}`]]}})((({ownerState:e})=>gv({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},$E(e)))),VE=A.forwardRef((function(e,t){const n=A.useContext(FE),r=A.useContext(zE),o=Bx({props:hx(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,y=bv(o,jE),x=gv({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return gv({},a,Sd({root:["root",i,`${i}${Ky(t)}`,`size${Ky(o)}`,`${i}Size${Ky(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Ky(o)}`],endIcon:["endIcon",`iconSize${Ky(o)}`]},qE,a))})(x),E=g&&Wi.jsx(BE,{className:S.startIcon,ownerState:x,children:g}),C=p&&Wi.jsx(WE,{className:S.endIcon,ownerState:x,children:p}),w=r||"";return Wi.jsxs(HE,gv({ownerState:x,className:vc(n.className,S.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:vc(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[E,i,C]}))}));var GE=VE;function UE(e){return yx("MuiModal",e)}xx("MuiModal",["root","hidden","backdrop"]);const YE=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],KE=Ux("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>gv({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),XE=Ux(LE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),JE=A.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Bx({name:"MuiModal",props:e}),{BackdropComponent:u=XE,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:P,open:I,slotProps:D,slots:M}=s,L=bv(s,YE),O=gv({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:T,getBackdropProps:k,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=YS(gv({},O,{rootRef:t})),j=gv({},O,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return Sd({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},UE,r)})(j),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=_();H.onEnter=e,H.onExited=t}const B=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:KE,W=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==D?void 0:D.root)?a:b.root,G=null!=(l=null==D?void 0:D.backdrop)?l:b.backdrop,U=cS({elementType:B,externalSlotProps:V,externalForwardedProps:L,getSlotProps:T,additionalProps:{ref:t,as:h},ownerState:j,className:vc(d,null==V?void 0:V.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),Y=cS({elementType:W,externalSlotProps:G,additionalProps:c,getSlotProps:e=>k(gv({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:vc(null==G?void 0:G.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return R||I||z&&!F?Wi.jsx($S,{ref:q,container:m,disablePortal:S,children:Wi.jsxs(B,gv({},U,{children:[!w&&u?Wi.jsx(W,gv({},Y)):null,Wi.jsx(jS,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:N,open:I,children:A.cloneElement(f,H)})]}))}):null}));var ZE=JE;function QE(e){return yx("MuiDivider",e)}var eC=xx("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const tC=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],nC=Ux("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>gv({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Vy(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>gv({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>gv({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>gv({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>gv({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),rC=Ux("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>gv({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),oC=A.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=bv(n,tC),m=gv({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Sd({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},QE,r)})(m);return Wi.jsx(nC,gv({as:a,className:vc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Wi.jsx(rC,{className:h.wrapper,ownerState:m,children:o}):null}))}));oC.muiSkipListHighlight=!0;var iC=oC;const aC=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],lC=Ux(dE,{shouldForwardProp:e=>Wx(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...uE(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return gv({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${SE.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${SE.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${SE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${SE.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${SE.disabled}, .${SE.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${SE.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&gv({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),sC=Ux(pE,{name:"MuiFilledInput",slot:"Input",overridesResolver:cE})((({theme:e,ownerState:t})=>gv({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),uC=A.forwardRef((function(e,t){var n,r,o,i;const a=Bx({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=bv(a,aC),g=gv({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:n}=e;return gv({},t,Sd({root:["root",!n&&"underline"],input:["input"]},xE,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Yy(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:lC,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:sC;return Wi.jsx(hE,gv({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));uC.muiName="Input";var cC=uC;const dC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function pC(e){return`scale(${e}, ${e**2})`}const fC={entering:{opacity:1,transform:pC(1)},entered:{opacity:1,transform:"none"}},mC="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),hC=A.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=am}=e,g=bv(e,dC),b=A.useRef(),v=A.useRef(),y=Hx(),x=A.useRef(null),S=ox(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{eS(e);const{duration:n,delay:r,easing:o}=tS({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:mC?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),P=E(p),I=E((e=>{const{duration:t,delay:n,easing:r}=tS({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:mC?o:.666*o,delay:mC?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=pC(.75),c&&c(e)})),D=E(d);return A.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Wi.jsx(h,gv({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:D,onExiting:P,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>A.cloneElement(o,gv({style:gv({opacity:0,transform:pC(.75),visibility:"exited"!==e||a?void 0:"hidden"},fC[e],f,o.props.style),ref:S},t))}))}));hC.muiSupportAuto=!0;var gC=hC;const bC=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],vC=Ux(dE,{shouldForwardProp:e=>Wx(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...uE(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),gv({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bE.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bE.disabled}, .${bE.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${bE.disabled}:before`]:{borderBottomStyle:"dotted"}})})),yC=Ux(pE,{name:"MuiInput",slot:"Input",overridesResolver:cE})({}),xC=A.forwardRef((function(e,t){var n,r,o,i;const a=Bx({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=bv(a,bC),b=(e=>{const{classes:t,disableUnderline:n}=e;return gv({},t,Sd({root:["root",!n&&"underline"],input:["input"]},gE,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Yy(null!=f?f:u,v):v,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:vC,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:yC;return Wi.jsx(hE,gv({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));xC.muiName="Input";var SC=xC;function EC(e){return yx("MuiLink",e)}var CC=xx("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const wC={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var RC=({theme:e,ownerState:t})=>{const n=(e=>wC[e]||e)(t.color),r=Iv(e,`palette.${n}`,!1)||t.color,o=Iv(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Vy(r,.4)};const AC=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],PC=Ux(qS,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Ky(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>gv({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&gv({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:RC({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${CC.focusVisible}`]:{outline:"auto"}}))),IC=A.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=bv(n,AC),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=mx(),[b,v]=A.useState(!1),y=ox(t,g),x=gv({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return Sd({root:["root",`underline${Ky(o)}`,"button"===n&&"button",r&&"focusVisible"]},EC,t)})(x);return Wi.jsx(PC,gv({color:o,className:vc(S.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(wC).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var DC=IC;var MC=A.createContext({});function LC(e){return yx("MuiList",e)}xx("MuiList",["root","padding","dense","subheader"]);const OC=["children","className","component","dense","disablePadding","subheader"],TC=Ux("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>gv({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var kC=A.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=bv(n,OC),c=A.useMemo((()=>({dense:a})),[a]),d=gv({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sd({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},LC,t)})(d);return Wi.jsx(MC.Provider,{value:c,children:Wi.jsxs(TC,gv({as:i,className:vc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function _C(e){return yx("MuiListItemIcon",e)}var qC=xx("MuiListItemIcon",["root","alignItemsFlexStart"]);const NC=["className"],FC=Ux("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>gv({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var zC=A.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=bv(n,NC),i=gv({},n,{alignItems:A.useContext(MC).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Sd({root:["root","flex-start"===t&&"alignItemsFlexStart"]},_C,n)})(i);return Wi.jsx(FC,gv({className:vc(a.root,r),ownerState:i,ref:t},o))}));var jC=xx("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const $C=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function HC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function BC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function WC(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function VC(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&WC(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var GC=A.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=bv(e,$C),p=A.useRef(null),f=A.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Zy((()=>{r&&p.current.focus()}),[r]),A.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Xy(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=ox(p,t);let h=-1;A.Children.forEach(i,((e,t)=>{A.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=A.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),A.cloneElement(e,t)}return e}));return Wi.jsx(kC,gv({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Xy(t).activeElement;if("ArrowDown"===n)e.preventDefault(),VC(t,r,s,l,HC);else if("ArrowUp"===n)e.preventDefault(),VC(t,r,s,l,BC);else if("Home"===n)e.preventDefault(),VC(t,null,s,l,HC);else if("End"===n)e.preventDefault(),VC(t,null,s,l,BC);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&WC(r,o);o.previousKeyMatched&&(s||VC(t,r,!1,l,HC,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function UC(e){return yx("MuiPopover",e)}xx("MuiPopover",["root","paper"]);const YC=["onEntering"],KC=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],XC=["slotProps"];function JC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ZC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function QC(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function ew(e){return"function"==typeof e?e():e}const tw=Ux(ZE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nw=Ux(iS,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var rw=A.forwardRef((function(e,t){var n,r,o;const i=Bx({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=gC,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=bv(i.TransitionProps,YC),P=bv(i,KC),I=null!=(n=null==y?void 0:y.paper)?n:b,D=A.useRef(),M=ox(D,I.ref),L=gv({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:I,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),O=(e=>{const{classes:t}=e;return Sd({root:["root"],paper:["paper"]},UC,t)})(L),T=A.useCallback((()=>{if("anchorPosition"===c)return u;const e=ew(l),t=(e&&1===e.nodeType?e:Xy(D.current).body).getBoundingClientRect();return{top:t.top+JC(t,s.vertical),left:t.left+ZC(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=A.useCallback((e=>({vertical:JC(e,x.vertical),horizontal:ZC(e,x.horizontal)})),[x.horizontal,x.vertical]),_=A.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if("none"===c)return{top:null,left:null,transformOrigin:QC(n)};const r=T();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Jy(ew(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:QC(n)}}),[l,c,T,k,h]),[q,N]=A.useState(g),F=A.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);A.useEffect((()=>(w&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,w,F]);A.useEffect((()=>{g&&F()})),A.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),A.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{F()})),t=Jy(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=E;"auto"!==E||S.muiSupportAuto||(z=void 0);const j=f||(l?Xy(ew(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:tw,H=null!=(o=null==v?void 0:v.paper)?o:nw,B=cS({elementType:H,externalSlotProps:gv({},I,{style:q?I.style:gv({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:L,className:vc(O.paper,null==I?void 0:I.className)}),W=cS({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:L,className:vc(O.root,p)}),{slotProps:V}=W,G=bv(W,XC);return Wi.jsx($,gv({},G,!aS($)&&{slotProps:V,disableScrollLock:w},{children:Wi.jsx(S,gv({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),F()},onExited:()=>{N(!1)},timeout:z},R,{children:Wi.jsx(H,gv({},B,{children:d}))}))}))}));function ow(e){return yx("MuiMenu",e)}xx("MuiMenu",["root","paper","list"]);const iw=["onEntering"],aw=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],lw={vertical:"top",horizontal:"right"},sw={vertical:"top",horizontal:"left"},uw=Ux(rw,{shouldForwardProp:e=>Wx(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cw=Ux(nw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),dw=Ux(GC,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var pw=A.forwardRef((function(e,t){var n,r;const o=Bx({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=bv(o.TransitionProps,iw),x=bv(o,aw),S=Hx(),E="rtl"===S.direction,C=gv({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return Sd({root:["root"],paper:["paper"],list:["list"]},ow,t)})(C),R=i&&!s&&d,P=A.useRef(null);let I=-1;A.Children.map(a,((e,t)=>{A.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const D=null!=(n=b.paper)?n:cw,M=null!=(r=v.paper)?r:p,L=cS({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,l]}),O=cS({elementType:D,externalSlotProps:M,ownerState:C,className:w.paper});return Wi.jsx(uw,gv({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?lw:sw,slots:{paper:D,root:b.root},slotProps:{root:L,paper:O},open:d,ref:t,transitionDuration:m,TransitionProps:gv({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:Wi.jsx(dw,gv({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===I||s),autoFocusItem:R,variant:g},u,{className:vc(w.list,u.className),children:a}))}))}));function fw(e){return yx("MuiMenuItem",e)}var mw=xx("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const hw=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],gw=Ux(DS,{shouldForwardProp:e=>Wx(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>gv({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${mw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${mw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vy(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${mw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${eC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${eC.inset}`]:{marginLeft:52},[`& .${jC.root}`]:{marginTop:0,marginBottom:0},[`& .${jC.inset}`]:{paddingLeft:36},[`& .${qC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&gv({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${qC.root} svg`]:{fontSize:"1.25rem"}}))));var bw=A.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=bv(n,hw),f=A.useContext(MC),m=A.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=A.useRef(null);Zy((()=>{r&&h.current&&h.current.focus()}),[r]);const g=gv({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return gv({},a,Sd({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},fw,a))})(n),v=ox(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Wi.jsx(MC.Provider,{value:m,children:Wi.jsx(gw,gv({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:vc(b.focusVisible,s),className:vc(b.root,d)},p,{ownerState:g,classes:b}))})}));function vw(e){return yx("MuiNativeSelect",e)}var yw=xx("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const xw=["className","disabled","error","IconComponent","inputRef","variant"],Sw=({ownerState:e,theme:t})=>gv({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":gv({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${yw.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Ew=Ux("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wx,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${yw.multiple}`]:t.multiple}]}})(Sw),Cw=({ownerState:e,theme:t})=>gv({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${yw.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ww=Ux("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ky(n.variant)}`],n.open&&t.iconOpen]}})(Cw),Rw=A.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=bv(e,xw),u=gv({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Sd({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ky(n)}`,i&&"iconOpen",r&&"disabled"]},vw,t)})(u);return Wi.jsxs(A.Fragment,{children:[Wi.jsx(Ew,gv({ownerState:u,className:vc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Wi.jsx(ww,{as:i,ownerState:u,className:c.icon})]})}));var Aw,Pw=Rw;const Iw=["children","classes","className","label","notched"],Dw=Ux("fieldset",{shouldForwardProp:Wx})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Mw=Ux("legend",{shouldForwardProp:Wx})((({ownerState:e,theme:t})=>gv({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&gv({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const Lw=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ow=Ux(dE,{shouldForwardProp:e=>Wx(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:uE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return gv({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${yE.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yE.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${yE.focused} .${yE.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${yE.error} .${yE.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${yE.disabled} .${yE.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&gv({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Tw=Ux((function(e){const{className:t,label:n,notched:r}=e,o=bv(e,Iw),i=null!=n&&""!==n,a=gv({},e,{notched:r,withLabel:i});return Wi.jsx(Dw,gv({"aria-hidden":!0,className:t,ownerState:a},o,{children:Wi.jsx(Mw,{ownerState:a,children:i?Wi.jsx("span",{children:n}):Aw||(Aw=Wi.jsx("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),kw=Ux(pE,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:cE})((({theme:e,ownerState:t})=>gv({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),_w=A.forwardRef((function(e,t){var n,r,o,i,a;const l=Bx({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=bv(l,Lw),b=(e=>{const{classes:t}=e;return gv({},t,Sd({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},vE,t))})(l),v=nE(),y=eE({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=gv({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:Ow,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:kw;return Wi.jsx(hE,gv({slots:{root:S,input:E},renderSuffix:e=>Wi.jsx(Tw,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Wi.jsxs(A.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:gv({},b,{notchedOutline:null})}))}));_w.muiName="Input";var qw=_w;function Nw(e){return yx("MuiSelect",e)}var Fw,zw=xx("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const jw=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],$w=Ux("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${zw.select}`]:t.select},{[`&.${zw.select}`]:t[n.variant]},{[`&.${zw.error}`]:t.error},{[`&.${zw.multiple}`]:t.multiple}]}})(Sw,{[`&.${zw.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Hw=Ux("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ky(n.variant)}`],n.open&&t.iconOpen]}})(Cw),Bw=Ux("input",{shouldForwardProp:e=>Vx(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Ww(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Vw(e){return null==e||"string"==typeof e&&!e.trim()}const Gw=A.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:P,renderValue:I,SelectDisplayProps:D={},tabIndex:M,value:L,variant:O="standard"}=e,T=bv(e,jw),[k,_]=nx({controlled:L,default:c,name:"Select"}),[q,N]=nx({controlled:R,default:u,name:"Select"}),F=A.useRef(null),z=A.useRef(null),[j,$]=A.useState(null),{current:H}=A.useRef(null!=R),[B,W]=A.useState(),V=ox(t,h),G=A.useCallback((e=>{z.current=e,e&&$(e)}),[]),U=null==j?void 0:j.parentNode;A.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),A.useEffect((()=>{u&&q&&j&&!H&&(W(a?null:U.clientWidth),z.current.focus())}),[j,a]),A.useEffect((()=>{i&&z.current.focus()}),[i]),A.useEffect((()=>{if(!g)return;const e=Xy(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?w&&w(t):E&&E(t),H||(W(a?null:U.clientWidth),N(e))},K=A.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(k)?k.slice():[];const t=k.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),k!==n&&(_(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}v||Y(!1,t)}},J=null!==j&&q;let Z,Q;delete T["aria-invalid"];const ee=[];let te=!1;(iE({value:k})||p)&&(I?Z=I(k):te=!0);const ne=K.map((e=>{if(!A.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(mv(2));t=k.some((t=>Ww(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Ww(k,e.props.value),t&&te&&(Q=e.props.children);return A.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=B;!a&&H&&j&&(oe=U.clientWidth),re=void 0!==M?M:d?null:0;const ie=D.id||(y?`mui-component-select-${y}`:void 0),ae=gv({},e,{variant:O,value:k,open:J,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Sd({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ky(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Nw,t)})(ae),se=gv({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=tx();return Wi.jsxs(A.Fragment,{children:[Wi.jsx($w,gv({ref:G,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:y}}),x(e))},onFocus:C},D,{ownerState:ae,className:vc(D.className,le.select,s),id:ie,children:Vw(Z)?Fw||(Fw=Wi.jsx("span",{className:"notranslate",children:""})):Z})),Wi.jsx(Bw,gv({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},T)),Wi.jsx(Hw,{as:m,className:le.icon,ownerState:ae}),Wi.jsx(pw,gv({id:`menu-${y||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:gv({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:gv({},b.slotProps,{paper:gv({},se,{style:gv({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var Uw=Gw;const Yw=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Kw=["root"],Xw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Wx(e)&&"variant"!==e,slot:"Root"},Jw=Ux(SC,Xw)(""),Zw=Ux(qw,Xw)(""),Qw=Ux(cC,Xw)(""),eR=A.forwardRef((function(e,t){const n=Bx({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=EE,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=n,w=bv(n,Yw),R=b?Pw:Uw,P=eE({props:n,muiFormControl:nE(),states:["variant","error"]}),I=P.variant||C,D=gv({},n,{variant:I,classes:i}),M=(e=>{const{classes:t}=e;return t})(D),L=bv(M,Kw),O=d||{standard:Wi.jsx(Jw,{ownerState:D}),outlined:Wi.jsx(Zw,{label:f,ownerState:D}),filled:Wi.jsx(Qw,{ownerState:D})}[I],T=ox(t,O.ref);return Wi.jsx(A.Fragment,{children:A.cloneElement(O,gv({inputComponent:R,inputProps:gv({children:o,error:P.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:gv({id:c},E)},p,{classes:p?Yy(L,p.classes):L},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:T,className:vc(O.props.className,a,M.root)},!d&&{variant:I},w))})}));eR.muiName="Select";var tR=eR,nR=(e={})=>E.createElement(ev,{...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("rect",{stroke:Nb.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const rR={MuiAccordion:{styleOverrides:{root:{backgroundColor:Nb.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Nb.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:E.createElement(Jb,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Nb.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Nb.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`,borderRadius:Hb,backgroundColor:Nb.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Nb.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Nb.WHITE,color:Nb.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Hb},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Nb.GREYSCALE_0_15,backgroundColor:Nb.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Nb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Nb.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Nb.GREEN_PALE},"&:active":{backgroundColor:Nb.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Nb.GREEN_PALE,boxShadow:`0 0 0 3px ${Vy(Nb.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Nb.BLUE_PALE},"&:active":{backgroundColor:Nb.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Nb.BLUE_PALE,boxShadow:`0 0 0 3px ${Vy(Nb.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Hb,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Nb.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Nb.GREYSCALE_0_15,backgroundColor:Nb.GREYSCALE_100_60,"&:active":{backgroundColor:Nb.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Nb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Nb.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Nb.PURPLE,"&.Mui-focusVisible":{borderColor:Nb.PURPLE,boxShadow:`0 0 0 3px ${Vy(Nb.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Nb.GREEN,"&.Mui-focusVisible":{borderColor:Nb.GREEN,boxShadow:`0 0 0 3px ${Vy(Nb.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Nb.BLUE,"&.Mui-focusVisible":{borderColor:Nb.BLUE,boxShadow:`0 0 0 3px ${Vy(Nb.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Nb.ORANGE,"&.Mui-focusVisible":{borderColor:Nb.ORANGE,boxShadow:`0 0 0 3px ${Vy(Nb.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Nb.RED,"&.Mui-focusVisible":{borderColor:Nb.RED,boxShadow:`0 0 0 3px ${Vy(Nb.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Nb.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Nb.PURPLE_PALE},"&:active":{backgroundColor:Nb.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Nb.PURPLE_PALE,boxShadow:`0 0 0 3px ${Vy(Nb.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Nb.GREEN_PALE},"&:active":{backgroundColor:Nb.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Nb.GREEN_PALE,boxShadow:`0 0 0 3px ${Vy(Nb.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Nb.BLUE_PALE},"&:active":{backgroundColor:Nb.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Nb.BLUE_PALE,boxShadow:`0 0 0 3px ${Vy(Nb.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Nb.ORANGE_PALE},"&:active":{backgroundColor:Nb.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Nb.ORANGE_PALE,boxShadow:`0 0 0 3px ${Vy(Nb.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Nb.RED_PALE},"&:active":{backgroundColor:Nb.RED_DARK},"&.Mui-focusVisible":{borderColor:Nb.RED_PALE,boxShadow:`0 0 0 3px ${Vy(Nb.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Nb.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Nb.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Hb,boxShadow:`inset 0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:E.createElement(Qb,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Fb,borderRadius:Hb,color:Nb.TEXT_PRIMARY,backgroundColor:Nb.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Nb.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Nb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Nb.GREYSCALE_0_05,color:Nb.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Nb.GREEN,borderColor:Nb.GREEN},"&.MuiChip-outlinedInfo":{color:Nb.BLUE,borderColor:Nb.BLUE},"&.MuiChip-outlinedWarning":{color:Nb.ORANGE,borderColor:Nb.ORANGE},"&.MuiChip-outlinedError":{color:Nb.RED,borderColor:Nb.RED}},outlined:{border:`solid 1px ${Nb.GREYSCALE_0_15}`,backgroundColor:Nb.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Hb,boxShadow:"none",backgroundColor:Nb.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Nb.GREEN,borderColor:Nb.GREEN},outlinedSecondary:{color:Nb.BLUE,borderColor:Nb.BLUE},label:{fontFamily:Ub.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:E.createElement(Qb,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:E.createElement(Jb,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Hb},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Hb,fontSize:zb,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Nb.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Nb.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Nb.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Nb.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Nb.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Hb,border:`solid 1px ${Nb.GREYSCALE_0_15}`,color:Nb.GREYSCALE_0_60,marginRight:0,width:$b,height:$b},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Nb.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Hb,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Nb.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:zb}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Fb,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Nb.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Nb.GREYSCALE_25,fontSize:Fb,fontFamily:Ub.FONT_FAMILY,fontWeight:Vb,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Nb.TEXT_PRIMARY},"&.Mui-error":{color:Nb.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Nb.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Wb,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Nb.TEXT_SECONDARY,content:"'(required)'",fontWeight:Wb,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:zb,lineHeight:"16px",backgroundColor:Nb.WHITE,borderRadius:Hb,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nb.GREYSCALE_0_05}`,borderColor:Nb.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nb.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Nb.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Nb.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nb.RED}`,boxShadow:`0px 0px 0px 1px ${Nb.RED}, inset 0 2px 0 0 ${Nb.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nb.GREYSCALE_0_10}`,borderColor:Nb.GREYSCALE_0_10,backgroundColor:Nb.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Nb.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Nb.GREYSCALE_0_15,borderRadius:Hb,boxShadow:`inset 0 2px 0 0 ${Nb.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>E.createElement(Jb,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Nb.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Nb.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Nb.GREYSCALE_0_03},"&:active":{backgroundColor:Nb.GREYSCALE_0_10},"&:focus":{backgroundColor:Nb.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Nb.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Nb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Nb.GREYSCALE_0_30,"&:hover":{backgroundColor:Nb.GREYSCALE_0_0,borderColor:Nb.GREYSCALE_0_15},"& ~svg":{color:Nb.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Nb.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Hb}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Nb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Nb.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:zb,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Fb,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Fb,fontWeight:Vb,color:Nb.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Vb}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Nb.GREYSCALE_0_15}, 0px 0px 0px 1px ${Nb.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:E.createElement(rv,null),checkedIcon:E.createElement(ov,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Nb.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Nb.GREEN_PALE,boxShadow:`0 0 0 3px ${Vy(Nb.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Nb.BLUE_PALE,boxShadow:`0 0 0 3px ${Vy(Nb.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Nb.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Nb.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:E.createElement(nR,null),checkedIcon:E.createElement(tv,null),indeterminateIcon:E.createElement(nv,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Hb,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Nb.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Nb.GREYSCALE_0_55,color:Nb.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Nb.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Nb.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Nb.GREYSCALE_0_55,"&:hover":{color:Nb.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Nb.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Nb.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:zb,color:Nb.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Vb},secondary:{fontSize:Fb,color:Nb.GREYSCALE_45,fontWeight:Wb,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:zb,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Nb.GREYSCALE_0_03},"&:active":{backgroundColor:Nb.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:zb,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Nb.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Fb,borderBottom:`solid 1px ${Nb.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:zb,color:Nb.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Nb.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Nb.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Nb.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Nb.RED}}},"&.Mui-focusVisible":{backgroundColor:Nb.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Nb.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Nb.GREEN,height:"24px","&.Mui-disabled":{color:Nb.GREYSCALE_0_15}},rail:{backgroundColor:Nb.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Nb.GREYSCALE_0_05}`,borderRadius:Hb,boxShadow:`inset 0px 0px 0px 1px ${Nb.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Nb.GREYSCALE_0_05}`,borderRadius:Hb},thumb:{height:"16px",width:"16px",borderRadius:Hb,backgroundColor:Nb.WHITE,boxShadow:`0px 1px 2px 0px ${Nb.GREYSCALE_0_15}, 0px 0px 0px 1px ${Nb.GREYSCALE_0_05}`,"&:hover":{borderRadius:Hb,boxShadow:`0 2px 4px 0 ${Nb.GREYSCALE_0_30}, 0 0 0 1px ${Nb.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Nb.GREYSCALE_0_15}, 0 0 0 1px ${Nb.GREYSCALE_0_06}, 0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Nb.GREYSCALE_0_15}, 0 0 0 1px ${Nb.GREYSCALE_0_06}, 0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Nb.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Nb.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Nb.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Nb.GREYSCALE_0_15},markLabel:{color:Nb.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Nb.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Nb.WHITE,color:Nb.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Nb.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Nb.GREEN_PALE,boxShadow:`0 0 0 3px ${Vy(Nb.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Nb.BLUE_PALE,boxShadow:`0 0 0 3px ${Vy(Nb.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Nb.GREYSCALE_0_15,borderRadius:Hb},thumb:{height:"16px",width:"16px",borderRadius:Hb,backgroundColor:Nb.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:zb,fontWeight:Vb,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Nb.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`,backgroundColor:Nb.GREYSCALE_0_03,borderRadius:Hb},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Nb.GREYSCALE_25,"&.Mui-selected":{color:Nb.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:zb,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Nb.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Nb.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Nb.GREYSCALE_85}`,borderRight:`1px solid ${Nb.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Vb,backgroundColor:Nb.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Nb.GREYSCALE_98,borderBottom:`1px solid ${Nb.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Nb.GREYSCALE_85}`,borderTop:`1px solid ${Nb.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Nb.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Nb.GREYSCALE_0_05,"&:hover":{backgroundColor:Nb.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Nb.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>E.createElement(iv,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Nb.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:zb,borderRadius:Hb,padding:"7px 16px",border:`1px solid ${Nb.GREYSCALE_0_15}`,backgroundColor:Nb.GREYSCALE_100_60,color:Nb.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Nb.GREYSCALE_0_10,border:`1px solid ${Nb.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Nb.GREYSCALE_0_03,border:`1px solid ${Nb.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Nb.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Nb.MISC_FOCUS_BORDER}`,border:`1px solid ${Nb.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Nb.GREYSCALE_25,backgroundColor:Nb.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Nb.GREYSCALE_0_10,border:`1px solid ${Nb.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Fb,height:24,width:24,padding:7},sizeLarge:{fontSize:jb,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:zb,borderRadius:Hb}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Nb.GREYSCALE_20},tooltip:{backgroundColor:Nb.GREYSCALE_20,fontSize:Fb,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var oR=e=>rR;const iR={mode:"light",primary:{light:Nb.GREEN_PALE,main:Nb.GREEN,dark:Nb.GREEN_DARK,contrastText:Nb.WHITE},secondary:{light:Nb.BLUE_PALE,main:Nb.BLUE,dark:Nb.BLUE_DARK,contrastText:Nb.WHITE},error:{light:Nb.RED_PALE,main:Nb.RED,dark:Nb.RED_DARK,contrastText:Nb.WHITE},warning:{light:Nb.ORANGE_PALE,main:Nb.ORANGE,dark:Nb.ORANGE_DARK,contrastText:Nb.WHITE},success:{light:Nb.GREEN_PALE,main:Nb.GREEN,dark:Nb.GREEN_DARK,contrastText:Nb.WHITE},info:{light:Nb.BLUE_PALE,main:Nb.BLUE,dark:Nb.BLUE_DARK,contrastText:Nb.WHITE},text:{primary:Nb.TEXT_PRIMARY,secondary:Nb.TEXT_SECONDARY,disabled:Nb.GREYSCALE_0_30},action:{hover:Nb.GREYSCALE_0_03,hoverOpacity:.05,selected:Nb.GREYSCALE_0_05,focus:Nb.MISC_FOCUS_BORDER},amethyst:{main:Nb.PURPLE,light:Nb.PURPLE_PALE,dark:Nb.PURPLE_DARK,contrastText:Nb.WHITE},background:{paper:Nb.WHITE,default:Nb.GREYSCALE_95},divider:Nb.GREYSCALE_0_15},aR=e=>({components:oR(),palette:iR,breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:zb,fontWeightLight:Bb,fontWeightRegular:Wb,fontWeightMedium:Vb,fontWeightBold:Gb,htmlFontSize:zb,fontFamily:Ub.FONT_FAMILY,button:{fontWeight:Vb,fontSize:zb,textTransform:"none"},body1:{fontSize:jb,lineHeight:"24px"},body2:{fontSize:zb,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:$b,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:jb,fontWeight:Vb,lineHeight:"16px"},h6:{fontSize:zb,fontWeight:Vb,lineHeight:"16px"},caption:{color:Nb.TEXT_SECONDARY},subtitle1:{fontSize:zb,color:Nb.TEXT_SECONDARY},subtitle2:{fontSize:Fb,color:Nb.TEXT_SECONDARY}},shape:{borderRadius:Hb}}),lR={...qb,MISC_FOCUS_BORDER:Nb.MISC_FOCUS_BORDER},sR=aR().palette,uR={TEXT:sR.text.primary,DISABLED:sR.text.disabled,HOVER:sR.action.hover,WHITE:lR.GREYSCALE_100,BORDER_LIGHT:lR.GREYSCALE_90,BORDER_MEDIUM:lR.GREYSCALE_85,BORDER_HEAVY:lR.GREYSCALE_50,DARK_MODE_TEXT:lR.GREYSCALE_95,DARK_MODE_BORDER:lR.GREYSCALE_95,DARK_MODE_DISABLED:lR.GREYSCALE_70,DARK_MODE_BACKGROUND:lR.GREYSCALE_20},cR=(e,t)=>{const n=Ne(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},dR=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,pR=e=>{const t=dR.exec(e);if(t){const[,e,n,r,o]=t;return ue(+n,+r,+o,+e/255)}return ue(e)},fR=e=>{const t=pR(e);return Number.isNaN(t.r)?null:t.toString()},mR=e=>{if(void 0===e)return;const t=pR(e);return t.opacity=1,t.toString()},hR=(e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)},gR=e=>{e.stopPropagation(),e.preventDefault()},bR=(e,t)=>{var n;return null===(n=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[t[1]]},vR=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),yR=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?yR(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},xR=e=>{const t=e.previousElementSibling;if(!t){var n,r;const t=null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length;return null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[t-1]}return"HR"===t.tagName?xR(t):t},SR=e=>!e.enabled||e.active,ER=e=>{setTimeout((()=>{var t;const n=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${Mr}`);null==n||n.setAttribute("tabIndex","0"),null==n||n.focus()}),0)},CR=({focusType:e,cell:t})=>{if(t)switch(e){case gf.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case gf.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case gf.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case gf.ADD_TAB:t.setAttribute("tabIndex","0");break;case gf.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},wR=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:o,allowedRows:i})=>{const a=((e,t,n,r={top:0,bottom:0})=>{const o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length;let[a,l]=n;switch(e.key){case hf.DOWN:a<o-1-r.bottom&&a++;break;case hf.UP:a>r.top&&a--;break;case hf.RIGHT:if(r.top>0)break;l<i-1?l++:a<o-1&&(a++,l=0);break;case hf.LEFT:if(r.top>0)break;l>0?l--:a>0&&(a--,l=i-1)}return[a,l]})(e,t,n,i),l=bR(t,a);return CR({focusType:o,cell:l}),r(a),l},RR=(e,t)=>{let n=vR(e);const r=n?((e,t)=>{const n=e.getElementsByClassName("sn-table-head-cell").length,r=e.getElementsByClassName("sn-table-cell");let o=0;for(let e=0;e<r.length;e++)if(r[e]===t){o=e;break}return[Math.ceil(o/n),o%n]})(e,n):Ef;n=n||bR(e,Ef),CR({cell:n,focusType:gf.FOCUS}),t(r)},AR=(e,t,n,r)=>{var o;(CR({focusType:gf.REMOVE_TAB,cell:vR(t)}),n(e),r.enabled&&!r.active)?null===(o=r.focus)||void 0===o||o.call(r):CR({focusType:gf.ADD_TAB,cell:bR(t,e)})},PR=e=>e.ctrlKey||e.metaKey,IR=e=>e.shiftKey&&PR(e),DR=e=>[hf.LEFT,hf.RIGHT,hf.UP,hf.DOWN].includes(e),MR=e=>e.shiftKey&&DR(e.key),LR=(e,t=!1)=>e.key===hf.ESC&&!t||(e.key===hf.LEFT||e.key===hf.RIGHT)&&IR(e),OR=(e,t,n)=>{if(n)return gf.FOCUS;const r=t.key===hf.UP&&1===e[0],o=t.key===hf.LEFT&&1===e[0]&&0===e[1];return r||o?gf.FOCUS_BUTTON:gf.FOCUS},TR=({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s,isNewHeadCellMenuEnabled:u})=>{const c=l.atTop?2:1,d=[n.pageRowIdx+c,n.pageColIdx],p={top:s?c:0,bottom:s&&l.atBottom?1:0},f=OR(d,e,u);f===gf.FOCUS&&CR({focusType:gf.REMOVE_TAB,cell:e.currentTarget});const m=wR({evt:e,rootElement:t,cellCoord:d,setFocusedCellCoord:i,focusType:f,allowedRows:p});e.key!==hf.UP&&e.key!==hf.DOWN||(e.key===hf.UP&&((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(null==n||!n.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[r])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-a.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})([n.pageRowIdx,n.pageColIdx],t),((e,t,n)=>t.shiftKey&&(t.key===hf.UP&&0!==n.pageRowIdx||t.key===hf.DOWN&&!n.isLastRow)&&e&&n.isSelectable)(o,e,n)?r({type:mf.SELECT_MULTI_ADD,payload:{cell:n,evt:e,announce:a}}):((e,t,n=!1)=>{n&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,m,s))},kR=({evt:e,rootElement:t,setFocusedCellCoord:n,keyboard:r,isSelectionMode:o,paginationNeeded:i,isNewHeadCellMenuEnabled:a})=>{if((null==r?void 0:r.enabled)&&o&&(e.shiftKey||!e.shiftKey&&!i))gR(e),hR(e.currentTarget,r,e.shiftKey);else if(e.shiftKey&&!a){n([0,t.querySelectorAll(".sn-table-head-cell").length-1])}},_R=(e,t)=>{const{colIdx:n,rows:r,api:o}=t;let i=ff.INACTIVE;return null!=o&&o.isModal()&&(i=n!==e.selectionColIdx?ff.EXCLUDED:void 0!==r[e.qElemNumber]?ff.SELECTED:ff.POSSIBLE),i},qR=(e,t,n)=>{const r=Object.keys(n).length,o=r>=Object.keys(t).length;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},NR=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==n||n.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...r}}return s=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?{[r]:o}:(void 0!==e[r]?delete e[r]:e[r]=o,{...e})})(s,i,l),qR(a,r,s),Object.keys(s).length?(null==n||n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==n||n.cancel(),{...e,rows:s,colIdx:-1})},FR=(e,t)=>{var n;const{api:r,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&MR(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,n,r,o)=>{const i={...t};if("key"in r&&MR(r)){i[n.qElemNumber]=n.rowIdx;const t=r.key===hf.DOWN?1:-1;return i[e[n.pageRowIdx+t][n.pageColIdx].qElemNumber]=n.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),l=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=l;t++){const n=e[t][o.pageColIdx];i[n.qElemNumber]=n.rowIdx}return i})(a,d,s,c,l),qR(u,o,d),{...e,rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0}):e},zR=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(n),[r]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},jR=(e,t)=>{var n;switch(t.type){case mf.SELECT:return NR(e,t.payload);case mf.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case mf.SELECT_MOUSE_UP:return((e,t)=>zR(e.isSelectMultiValues||e.firstCell!==t.cell?e:NR(e,t)))(e,t.payload);case mf.SELECT_MULTI_ADD:return FR(e,t.payload);case mf.SELECT_MULTI_END:return zR(e);case mf.RESET:return null!==(n=e.api)&&void 0!==n&&n.isModal()?e:{...e,rows:{},colIdx:-1};case mf.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case mf.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},$R=4/3,HR={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},BR=e=>parseInt(e,10)*$R+8+1,WR=e=>!!e&&(null!==e.color||e.index>-1);function VR(e,t,n={}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const GR=e=>je(e)?uR.WHITE:uR.TEXT,UR=(e,t)=>e?{borderBottomColor:uR.DARK_MODE_BORDER,borderRightColor:uR.DARK_MODE_BORDER,borderLeftColor:uR.DARK_MODE_BORDER,borderTopColor:uR.DARK_MODE_BORDER}:{borderLeftColor:uR.BORDER_MEDIUM,borderRightColor:uR.BORDER_MEDIUM,borderTopColor:uR.BORDER_HEAVY,borderBottomColor:t?uR.BORDER_HEAVY:uR.BORDER_LIGHT},YR=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},KR=(e,t,n,r=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),l={fontFamily:o,color:WR(null==n?void 0:n.fontColor)?VR(uR.TEXT,t,null==n?void 0:n.fontColor):i||uR.TEXT,fontSize:(null==n?void 0:n.fontSize)&&`${n.fontSize}px`||a,padding:n&&"padding"in n?null==n?void 0:n.padding:void 0,...UR(t.background.isDark,r)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function XR(e,t,n,r){var o,i;const a=null===(o=YR(e))||void 0===o?void 0:o.header,l=KR("header",t,a,n);var s,u;(l.background=t.background.isTransparent?uR.WHITE:mR(t.background.color),null!=r&&r.isNewHeadCellMenuEnabled)&&(l.hoverBackground=cR(null!==(s=l.background)&&void 0!==s?s:uR.WHITE,HR.hover),l.activeBackground=cR(null!==(u=l.background)&&void 0!==u?u:uR.WHITE,HR.active));return l.color=null!==(i=l.color)&&void 0!==i?i:je(l.background)?uR.DARK_MODE_TEXT:uR.TEXT,l}function JR(e,t,n,r){var o;const i=null===(o=YR(e))||void 0===o?void 0:o.content,a=KR("content",t,i);a.background=t.background.color;const l=((e,t,n)=>{if(e&&t&&n)return BR(e)*(t+2)<n.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,n,r),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=WR(u)||!!d,f=WR(s)||!!c,m=p||f;let h;h=WR(s)?VR(uR.HOVER,t,s):c||(p?"":uR.HOVER);const g=m?VR(GR(h),t,WR(u)?u:d):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}function ZR(e,t,n){var r;const o={};return null==t||null===(r=t.qValues)||void 0===r||r.forEach(((e,t)=>{const r=e.qText&&fR(e.qText);r&&"none"!==r&&(o[n[t]]=r)})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=GR(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background}}const QR=(e,t,n,r,o)=>{const i=x((()=>{const i=n.totalsPosition.atTop,a=JR(e,t,n.rows.length,r),l=XR(e,t,!i,o),s=function(e,t,n){var r;const o=null===(r=YR(e))||void 0===r?void 0:r.content,i=KR("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=XR(e,t,n);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,i);return{body:a,head:l,totals:s}}),[e,t.name(),n,r]);return i},eA=new Map;const tA=L({}),nA=function(e){const t=L([()=>{},new Set]);return eA.set(e,t),({children:n,value:r})=>{const o=O(r),i=O(new Set);C((()=>{o.current=r,i.current.forEach((e=>{e(r)}))}),[r]);const a=T((()=>o.current),[o]),l=x((()=>[a,i.current]),[a]);return Wi.jsx(e.Provider,{value:r,children:Wi.jsx(t.Provider,{value:l,children:n})})}}(tA),rA={rows:[],columns:[],totalsPosition:{}},oA=({app:e,children:t,tableData:n=rA,selectionsAPI:r,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,isNewHeadCellMenuEnabled:E,isLinksEnabled:C})=>{const w=x((()=>({isNewHeadCellMenuEnabled:E,isLinksEnabled:C})),[E,C]),[R,A]=S(0),[P,I]=S(o||Sf),[D,L]=((e,t)=>{const[n,r]=M(jR,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n,r]})(n.rows,r),[O,T]=S(-1),k=QR(i,u,n,d,w),[_,q,N,F]=((e,t,n,{head:r,body:o},i)=>{const a=t.atBottom||t.atTop,l=rn({...r,fontWeight:Ob},{maxNbrLinesOfText:3}).measureText,s=rn({...o,fontWeight:Ob},{maxNbrLinesOfText:3}).measureText,{estimateWidth:u}=rn(r,{maxNbrLinesOfText:3}),c=x((()=>(e,t,n,r,o)=>{let c=25;return c+=28,r&&(c+=24),o&&(c+=20),i||(c=r?99:71),Math.max(l(e)+c,a?s(t)+24+1:0,u(n))}),[u,l,s,a,i]),[d,p]=S(0),[f,m]=S((()=>_b(e,n,c,i)));un((()=>{m(_b(e,n-d,c,i))}),[e,n,d,c]);const h=x((()=>((e,t,n)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<n)(f,d,n)),[f,d,n]);return[f,m,p,h]})(n.columns,n.totalsPosition,v.width,k,E),z=x((()=>({app:e,selectionsAPI:r,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,styling:k,rect:v,viewService:y})),[e,r,i,a,l,s,u.name(),c.active,d,p,f,m,k,v,y]);return Wi.jsx(nA,{value:{headRowHeight:R,setHeadRowHeight:A,focusedCellCoord:P,setFocusedCellCoord:I,selectionState:D,selectionDispatch:L,hoverIndex:O,setHoverIndex:T,columnWidths:_,setColumnWidths:q,baseProps:z,tableData:n,setYScrollbarWidth:N,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:F,featureFlags:w},children:t})};function iA(e,t){const n=function(e){return eA.get(e)}(e),[r,o]=w(n),[,i]=M((e=>e+1),0),a=O(t),l=O(),s=r();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=x((()=>t(s)),[s,t]);return C((()=>{a.current=t,l.current=u}),[s,u,t]),C((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function aA(e){var t;const n=Pb();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),Pp({...n,direction:e})}const lA=Ux(_E,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${Lr}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${Lr}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),sA=Ux(_E)({position:"absolute",height:"100%",width:"3px"}),uA=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=x((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=r||o?Or.PixelsMin:Or.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:Tr.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},b=e=>{const t=e.clientX-d.initX;h(t)},v=e=>{gR(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=e.touches[0].clientX-d.initX;h(t)},S=e=>{gR(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",S),g()},C=!r&&s?e=>{if(e.key===Dr.LEFT||e.key===Dr.RIGHT){gR(e);const t=d.columnWidth-d.initWidth,n=5,r=e.key===Dr.LEFT?t-n:t+n;h(r)}else e.key===Dr.SPACE||e.key===Dr.ENTER?(gR(e),s(e),g()):e.key===Dr.ESC&&(gR(e),s(e),h(d.initWidth))}:void 0;return E.createElement(lA,{className:Mr,isLastColumn:n,hoverColor:i,style:m,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:Tr.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:C,onBlur:s,"data-testid":Mr},E.createElement(sA,{className:Lr}))};function cA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dA=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),pA=k(dA);function fA(){return fA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fA.apply(this,arguments)}const mA=Ux(_E,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),hA=Ux(pA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),gA=Ux(pw)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),bA=Ux(iC)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),vA=Ux(bw)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),yA=Ux(bw,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),xA=Ux("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),SA=Ux("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),EA=Ux(qS)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),CA=Ux(zC)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function wA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const RA=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),AA=k(RA);let PA={};const IA=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=S(!1),p=O(null),f=T((e=>{e.stopPropagation(),d(!1)}),[d]);return E.createElement(E.Fragment,null,E.createElement(yA,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),PA={}),null!=a&&a.length&&(d(!0),PA[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&E.createElement(xA,null),E.createElement(SA,null,E.createElement(CA,null,E.createElement(o,null)),E.createElement(EA,{variant:"body2"},r)),null!=a&&a.length?E.createElement(AA,null):null),(null==a?void 0:a.length)&&E.createElement(MA,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=PA,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},DA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&E.createElement(vA,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>E.createElement(IA,fA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),MA=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?E.createElement(gA,fA({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,"aria-labelledby":r},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[DA({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?E.createElement(bA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,LA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},OA=(e,t)=>e.some((e=>t[e]>0));function TA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kA=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),_A=k(kA);function qA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const NA=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),FA=k(NA);function zA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jA=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})),$A=k(jA);function HA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const BA=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),WA=k(BA);function VA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GA=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){VA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})),UA=k(GA);function YA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const KA=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})),XA=k(KA);function JA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ZA=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){JA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),QA=k(ZA);function eP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tP=(e,t)=>E.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){eP(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),E.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),nP=k(tP);function rP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oP=(e,t)=>E.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){rP(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),E.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),iP=k(oP);function aP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lP=(e,t)=>E.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){aP(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),E.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})),sP=k(lP);let uP=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const cP=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(n[uP.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:_A,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:WA,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[uP.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:UA,enabled:!0}]}]),n[uP.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:sP,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:XA,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:iP,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:QA,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:nP,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:FA,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[uP.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:$A,enabled:!0}]}]),p},dP=({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:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:w}=(({headerData:e,app:t})=>{const[n,r]=S(null),[o,i]=S(LA);return C((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:T((()=>i(LA)),[]),updateSelectionActionsEnabledStatus:T((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:OA(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:OA(["qSelected"],n.qStateCounts),canSelectPossible:OA(["qOption"],n.qStateCounts),canSelectAlternative:OA(["qAlternative"],n.qStateCounts),canSelectExcluded:OA(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),R=T((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,b,g]);C((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{w(e)})).catch((e=>console.error(e))))}),[e,x,w,null==d?void 0:d.model]);const A=T((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?E.createElement(mA,{rightAligned:"right"===h,shouldShowMenuIcon:s},s&&E.createElement(hA,{height:Pr,className:Ir,"data-testid":Ir,"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},E.createElement(pA,null)),E.createElement(MA,{open:e,anchorEl:n.current,onClose:A,menuGroups:cP({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},pP=e=>e.isDark?{background:e.color,borderColor:uR.DARK_MODE_BORDER,color:uR.DARK_MODE_TEXT,disabledColor:uR.DARK_MODE_DISABLED,iconColor:uR.DARK_MODE_TEXT}:{background:e.color,borderColor:uR.BORDER_MEDIUM,color:uR.TEXT,disabledColor:uR.DISABLED},fP=Ux(_E,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),mP=Ux(tR,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),hP=Ux(GE,{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)}))),gP=Ux(qS)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),bP=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=x((()=>pP(r.background)),[r]);if(!n.active)return null;const a=o?E.createElement(fP,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},vP=L({}),yP=()=>w(vP),xP=({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=x((()=>pP(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=dn({translator:d}),S=x((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return E.createElement(vP.Provider,{value:S},e)};let SP=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),EP=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function CP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wP=(e,t)=>E.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){CP(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),E.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),RP=k(wP);function AP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const PP=(e,t)=>E.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){AP(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),E.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),IP=k(PP);function DP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const MP=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){DP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),LP=k(MP),OP={FirstPage:IP,PreviousPage:RP,NextPage:AA,LastPage:LP,FirstPageRTL:LP,PreviousPageRTL:AA,NextPageRTL:RP,LastPageRTL:IP},TP=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=yP(),u=OP[`${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}},kP=()=>{const{pageInfo:e,width:t}=yP(),n=0===e.page,{IconComponent:r,styledProps:o}=TP({type:SP.FirstPage,disabledCondition:n,pageNumber:0});return t<=EP.FirstPage?null:E.createElement(hP,o,E.createElement(r,{height:Pr}))},_P=(e,t,n=!1)=>{n&&e.key===Dr.TAB&&!e.shiftKey&&(gR(e),hR(e.target,t,!1))},qP=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=yP(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=TP({type:SP.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>_P(e,t,r):null;return o<=EP.LastPage?null:E.createElement(hP,fA({},l,{onKeyDown:s}),E.createElement(a,{height:Pr}))},NP=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=yP(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=TP({type:SP.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>EP.FirstPage&&o>EP.LastPage)&&t.enabled?e=>_P(e,t,r):null;return E.createElement(hP,fA({},l,{onKeyDown:s}),E.createElement(a,{height:Pr}))},FP=()=>{const{pageInfo:e}=yP(),t=0===e.page,{IconComponent:n,styledProps:r}=TP({type:SP.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return E.createElement(hP,r,E.createElement(n,{height:Pr}))},zP=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=yP(),{page:o,rowsPerPage:i}=n;if(t<=EP.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return E.createElement(gP,{variant:"caption"},a)},jP=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=yP(),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 E.createElement(E.Fragment,null,E.createElement(gP,{variant:"caption",id:d},u,":"),E.createElement(mP,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},$P=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=yP();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>EP.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=E.createElement(E.Fragment,null,t.rowsPerPageOptions.map((e=>E.createElement("option",{key:e,value:e},e))));return E.createElement(jP,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},HP=1e3,BP="…",WP=({totalPages:e,page:t})=>{const n=Math.min(e,HP),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-HP):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return E.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(E.createElement("option",{key:"startMoreOptions",value:BP,disabled:!0},BP)),o<e-1&&a.push(E.createElement("option",{key:"endMoreOptions",value:BP,disabled:!0},BP)),E.createElement(E.Fragment,null,a)},VP=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=yP(),{page:o}=e;if(t<=EP.SelectPage)return null;const i=E.createElement(WP,{totalPages:n,page:o});return E.createElement(jP,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};var GP=_((e=>E.createElement(xP,e,E.createElement($P,null),E.createElement(VP,null),E.createElement(zP,null),E.createElement(kP,null),E.createElement(FP,null),E.createElement(NP,null),E.createElement(qP,null))));const UP=e=>E.createElement(bP,e,E.createElement(GP,e)),YP=sf(xh,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.tableColorFromTheme}))),KP=sf(xh,{shouldForwardProp:e=>"isNewHeadCellMenuEnabled"!==e&&"lines"!==e&&"allIconsDisabled"!==e&&"wordBreak"!==e&&"headCell"!==e&&"isPagination"!==e&&"virtualizedCell"!==e})((({isNewHeadCellMenuEnabled:e,lines:t,wordBreak:n,allIconsDisabled:r=!1,headCell:o=!1,isPagination:i=!1,virtualizedCell:a=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(e?o||a:n||1===t)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:e&&o&&i?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",...e&&{whiteSpace:r||a?"normal":"nowrap"}}}))),XP=sf(xh)({overflow:"hidden",textOverflow:"ellipsis"});function JP(e,t){const n=O(!1);C((()=>{n.current?e():n.current=!0}),t)}const ZP=(e,t,n)=>{C((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth;let{scrollLeft:o}=n,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))})(e,"rtl"===t,r),i=e=>{var t;n.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}}),[e,t,n])},QP=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===hf.DOWN||n===hf.UP){const t=e=>n===hf.DOWN?yR(e):xR(e);gR(e);let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},eI=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,isInteractionEnabled:o,handleOpenMenu:i,isNewHeadCellMenuEnabled:a})=>{var l;if(!o)return void gR(e);if(LR(e))return;const s=!(null!==(l=e.currentTarget.closest(".sn-table-cell"))&&void 0!==l&&l.nextSibling);switch(e.key){case hf.LEFT:case hf.RIGHT:gR(e),e.key===hf.RIGHT&&s&&!a?RR(t,r):(a&&CR({focusType:gf.REMOVE_TAB,cell:e.currentTarget}),wR({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:a?gf.FOCUS:gf.FOCUS_BUTTON}));break;case hf.DOWN:gR(e),CR({focusType:gf.REMOVE_TAB,cell:vR(t)}),wR({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:gf.FOCUS});break;case!a&&hf.TAB:((e,t,n,r,o)=>{const i=e.currentTarget.classList.contains("sn-table-head-label");i&&e.shiftKey&&n[1]>0?r([n[0],n[1]-1]):i||e.shiftKey||(o?(gR(e),RR(t,r)):r([n[0],n[1]+1]))})(e,t,n,r,s);break;case hf.C:gR(e),PR(e)&&fo(e.currentTarget);break;case a&&hf.ENTER:case a&&hf.SPACE:i&&i(e)}},tI=e=>{const{layout:t,rect:n,theme:r}=iA(tA,(e=>e.baseProps)),o=r.name(),[i,a]=S(0),[l,s]=S(0);return q((()=>{if(e.current){var t;const{offsetWidth:n=0,offsetHeight:r=0,clientWidth:o=0,clientHeight:i=0}=null!==(t=e.current)&&void 0!==t?t:{},l=r-i;s(n-o),a(l)}}),[e,t,n,o]),{xScrollbarWidth:i,yScrollbarWidth:l}},nI=sf("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),rI=sf(sb,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),oI=sf(Vg,{shouldForwardProp:e=>"showRightBorder"!==e&&"styling"!==e})((({showRightBorder:e,styling:t})=>({tableLayout:"fixed",width:"min-content",borderRight:e?`1px solid ${t.body.borderRightColor}`:void 0}))),iI=()=>Wi.jsxs(Wi.Fragment,{children:[Wi.jsx(nI,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),Wi.jsx(nI,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),aI=e=>e.stopPropagation(),lI=({href:e,text:t,interactions:n,color:r})=>E.createElement(DC,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:aI,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),sI=({children:e,fontSize:t="",wordBreak:n=!1,isPagination:r=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:l=!1})=>{const s=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled));if(s&&a)return Wi.jsx(KP,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:r,isNewHeadCellMenuEnabled:!0,headCell:!0,allIconsDisabled:l,children:e});const u=parseInt(t||Lb,10),c=Wi.jsx(KP,{component:"span",className:"sn-table-cell-text",wordBreak:n,lines:i,...s&&{virtualizedCell:o,allIconsDisabled:l},children:e});return n?c:Wi.jsx(XP,{minHeight:u*Mb,maxHeight:u*Mb*i,children:c})},uI=({cell:e,style:t,virtualizedCell:n})=>{var r;const{isNewHeadCellMenuEnabled:o,isLinksEnabled:i}=iA(tA,(e=>e.featureFlags)),{interactions:a,viewService:l}=iA(tA,(e=>e.baseProps)),s=iA(tA,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let u=e.representation.text;return e.representation.type===bi.Link&&i&&!s&&(u=Wi.jsx(lI,{href:e.representation.url,text:e.representation.text,interactions:a,color:t.cellForegroundColor})),Wi.jsx(sI,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:null===(r=l.viewState)||void 0===r?void 0:r.maxLineCount,...o&&{virtualizedCell:n},children:u})},cI=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:n,keyboard:r,tableWrapperRef:o})=>{C((()=>{const i=()=>{t({type:mf.RESET})},a=()=>{t({type:mf.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))n();else if(r.enabled){var t;null===(t=r.blur)||void 0===t||t.call(r,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,r,t,n,o])},dI=(e,t,n,r)=>({handleMouseDown:r=>{null==e||e(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>n({type:mf.SELECT_MULTI_END});n({type:mf.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:mf.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:mf.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}),pI=sf(Zg,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),fI=sf(Sb,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),mI=sf(ob,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...Tb,...e,padding:t.spacing(.5,1.5),verticalAlign:"top"}))),hI=sf(ob,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...Tb,...e,fontWeight:Ob,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&n,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function gI(e){return t=>{const{cell:n,styling:r,announce:o,onMouseDown:i}=t,a=iA(tA,(e=>_R(n,e.selectionState))),l=iA(tA,(e=>e.selectionDispatch)),{handleMouseDown:s,handleMouseOver:u,handleMouseUp:c}=dI(i,n,l,o),d=function(e,t){let n={};switch(t){case ff.SELECTED:n=Db.SELECTED;break;case ff.POSSIBLE:n=Db.POSSIBLE;break;case ff.EXCLUDED:n={background:`${Db.EXCLUDED_BACKGROUND}, ${e.background}`,selectedCellClass:ff.EXCLUDED}}return{...e,...n}}(r,a);return Wi.jsx(e,{...t,styling:d,onMouseUp:c,onMouseDown:s,onMouseOver:u})}}function bI(e,t){let n=(r=mI,e=>{const{styling:{selectedCellClass:t,...n},component:o,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m}=e;return Wi.jsx(r,{cellStyle:n,component:o,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${t||""}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var r;return t&&(n=gI(n)),e&&(n=function(e){return t=>{const{cell:n,column:r,styling:o}=t,i=x((()=>ZR(o,n.qAttrExps,r.qAttrExprInfoIDs)),[o,n.qAttrExps,r.qAttrExprInfoIDs]);return Wi.jsx(e,{...t,styling:i})}}(n)),n}const vI=()=>{const{columns:e,totalsPosition:{atTop:t},rows:n}=iA(tA,(e=>e.tableData)),{rootElement:r,selectionsAPI:o,keyboard:i,styling:a,interactions:l}=iA(tA,(e=>e.baseProps)),s=iA(tA,(e=>e.headRowHeight)),u=iA(tA,(e=>e.setFocusedCellCoord)),c=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled));return Wi.jsx(Sb,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,d)=>{const p=[t?1:n.length+1,d],f=t&&0===d&&!i.enabled?0:-1;return Wi.jsx(hI,{totalsStyle:a.totals,headRowHeight:s,atTop:t,align:e.totalsTextAlign,className:"sn-table-cell",tabIndex:c?-1:f,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,n,r,o,i=!1)=>{if(i)gR(e);else if(!LR(e))switch(e.key){case hf.LEFT:case hf.RIGHT:case hf.UP:case hf.DOWN:{gR(e);const i=OR(n,e,o);i===gf.FOCUS&&CR({focusType:gf.REMOVE_TAB,cell:e.currentTarget}),wR({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:i});break}case hf.TAB:kR({evt:e,rootElement:t,setFocusedCellCoord:r,isNewHeadCellMenuEnabled:o});break;case hf.C:gR(e),PR(e)&&fo(e.currentTarget);break;case hf.SPACE:e.preventDefault()}})(e,r,p,u,c,null==o?void 0:o.isModal())},onMouseDown:()=>{AR(p,r,u,i)},children:Wi.jsx(sI,{wordBreak:!e.isTotalNumeric,fontSize:a.totals.fontSize,children:e.totalInfo})},e.id)}))})};var yI=_(vI);const xI=({setShouldRefocus:e,tableWrapperRef:t,announce:n})=>{var r;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=iA(tA,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styling:{body:{hoverColors:f,lastRowBottomBorder:m,...h}}}=iA(tA,(e=>e.baseProps)),g=iA(tA,(e=>e.setFocusedCellCoord)),b=iA(tA,(e=>e.selectionDispatch)),v=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),y=!!p.active&&!!p.select,S=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),E=x((()=>JSON.parse(S).map((e=>bI(e.some((e=>"cellBackgroundColor"===e||"cellForegroundColor"===e)),y)))),[S,y]),C=!(null===(r=YR(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect);return cI({keyboard:c,selectionDispatch:b,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),Wi.jsxs(pI,{lastRowBottomBorder:m,children:[l.atTop?Wi.jsx(yI,{}):void 0,o.map(((e,t)=>Wi.jsx(fI,{hoverColors:f,hover:C,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,children:i.map(((r,o)=>{const{id:i}=r,d=e[o],f=E[o],m=v||0!==t||0!==o||l.atTop||c.enabled?-1:0,x=ZR({},d.qAttrExps,r.qAttrExprInfoIDs);return f&&Wi.jsx(f,{scope:0===o?"row":void 0,component:0===o?"th":void 0,cell:d,column:r,align:d.align,styling:h,tabIndex:m,announce:n,title:p.passive?d.qText:void 0,onKeyDown:e=>{(({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c,isNewHeadCellMenuEnabled:d})=>{if(e.currentTarget.classList.contains("excluded"))return void gR(e);const p=null==c?void 0:c.isModal();if(!LR(e,p))switch(e.key){case hf.UP:case hf.DOWN:case hf.LEFT:case hf.RIGHT:gR(e),TR({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:p,isNewHeadCellMenuEnabled:d});break;case hf.SPACE:gR(e),n.isSelectable&&o&&r({type:mf.SELECT,payload:{cell:n,evt:e,announce:a}});break;case hf.ENTER:gR(e),p&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case hf.ESC:gR(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case hf.TAB:kR({evt:e,rootElement:t,setFocusedCellCoord:i,keyboard:l,isSelectionMode:p,paginationNeeded:s,isNewHeadCellMenuEnabled:d});break;case hf.C:gR(e),PR(e)&&fo(e.currentTarget)}})({evt:e,rootElement:u,selectionsAPI:s,cell:d,selectionDispatch:b,isSelectionsEnabled:y,setFocusedCellCoord:g,announce:n,keyboard:c,paginationNeeded:a,totalsPosition:l,isNewHeadCellMenuEnabled:v})},onKeyUp:e=>((e,t)=>{e.key===hf.SHIFT&&t({type:mf.SELECT_MULTI_END})})(e,b),onMouseDown:()=>((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;AR([l,a],t,n,r)})(d,u,g,c,l),children:Wi.jsx(uI,{cell:d,style:x})},i)}))},`row-${t}`))),l.atBottom?Wi.jsx(yI,{}):void 0]})};var SI=_(xI);const EI=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o}=e,{applyColumnWidths:i,interactions:a}=iA(tA,(e=>e.baseProps)),l=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),s=iA(tA,(e=>e.columnWidths)),u=iA(tA,(e=>e.setColumnWidths));if(!a.active)return null;return Wi.jsx(uA,{columnWidth:s[o],isLastColumn:t,keyValue:`adjuster-${o}`,isNewHeadCellMenuEnabled:l,updateWidthCallback:e=>{null==n||n();const t=[...s];t[o]=e,u(t)},confirmWidthCallback:t=>{i(t,e)},handleBlur:e=>((e,t)=>{var n;e.setAttribute("tabIndex","-1");const r=e.closest(".sn-table-cell");let o=null;var i;t?(o=r,null===(i=o)||void 0===i||i.setAttribute("tabIndex","0")):o=null==r?void 0:r.querySelector(".sn-table-head-menu-button"),null===(n=o)||void 0===n||n.focus()})(e.currentTarget,l),setIsAdjustingWidth:r})};function CI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wI=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){CI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),RI=k(wI);function AI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const PI=(e,t)=>E.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){AI(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),E.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),II=k(PI);function DI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const MI=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){DI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),E.createElement("use",{fillRule:"evenodd"})),LI=k(MI),OI=sf("div")({position:"absolute",left:0,bottom:0}),TI=sf(Lh,{shouldForwardProp:e=>!["isActivelySorted","textAlign","disabled","isNewHeadCellMenuEnabled"].includes(e)})((({isActivelySorted:e,textAlign:t,disabled:n,theme:r,isNewHeadCellMenuEnabled:o})=>({textAlign:t,height:"auto",...!o&&{maxWidth:"100%"},fontSize:"inherit",fontFamily:"inherit",padding:r.spacing(.5,1),color:"inherit",alignItems:"flex-end",cursor:n?"auto":"pointer",justifySelf:t,alignSelf:"center","&&:focus, &&:hover":{...o&&{background:"transparent",boxShadow:"none"},"& svg":{...!o&&{opacity:e?1:.5}}},"& svg":{opacity:e?1:0,fontSize:Lb},"& .Mui-disabled":{color:"inherit"},"& .MuiButton-endIcon, .MuiButton-startIcon":{marginBottom:"2px",visibility:n?"hidden":"visible"}}))),kI=sf("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),_I=sf(xh,{shouldForwardProp:e=>"isLocked"!==e&&"isNewHeadCellMenuEnabled"!==e&&"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e})((({theme:e,isLocked:t,isNewHeadCellMenuEnabled:n,shouldShowMenuIcon:r,shouldShowLockIcon:o})=>{const i=r?"24px":"";let a="",l="",s=null;return n?(a=o?`20px 2fr ${i}`:`1fr ${i}`,l=o?`${i} 2fr 20px`:`${i} 1fr`,s=o):(a=t?"20px 2fr 24px":"1fr 24px",l=t?"24px 2fr 20px":"24px 1fr",s=t),{width:"100%",display:"grid",flexDirection:"inherit",gridAutoFlow:"dense",gap:e.spacing(.5),fontSize:"inherit",fontFamily:"inherit",...n&&{alignItems:"end",overflow:"hidden"},"&&:hover, &&:focus-within":{"& .sn-table-head-menu-button":{opacity:1}},"& > div:last-child":{alignSelf:"flex-end"},"&.aligned-left":{gridTemplateColumns:a},"&.aligned-center":{gridTemplateColumns:"24px 2fr 24px","& > div:first-child":{gridColumn:1},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:3}},"&.aligned-right":{gridTemplateColumns:l,"& > div:first-child":{gridColumn:s?3:"unset"},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:1}}}})),qI=sf("div")({display:"flex",alignSelf:"flex-end"}),NI=sf(xh)({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit","&.aligned-right":{justifyContent:"flex-start"},"&.aligned-center, &.aligned-left":{justifyContent:"flex-end"}}),FI=sf(xh,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),zI=sf(Lh,{shouldForwardProp:e=>"isVisible"!==e&&"isNewHeadCellMenuEnabled"!==e})((({isVisible:e,isNewHeadCellMenuEnabled:t})=>({opacity:e?1:0,...!t&&{"&:focus":{opacity:1}}}))),jI=sf(Wh)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),$I=sf(Fg)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),HI=sf("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),BI=sf(ag)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0})));sf("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const WI=({sortDirection:e,isLocked:t,headTextAlign:n})=>{const r="A"===e?Wi.jsx(RI,{height:Lb}):Wi.jsx(II,{height:Lb}),o=t?Wi.jsx(NI,{className:`aligned-${n}`,children:Wi.jsx(LI,{height:Lb,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===n?{startIcon:r,lockIcon:o}:{endIcon:r,lockIcon:o}};function VI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GI=(e,t)=>E.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){VI(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),E.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),UI=k(GI);function YI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const KI=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})),XI=k(KI);function JI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ZI=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){JI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M2 6.5h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1m5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1m5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1"})),QI=k(ZI);function eD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tD=(e,t)=>E.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){eD(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),E.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})),nD=k(tD);function rD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oD=(e,t)=>E.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){rD(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),E.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})),iD=k(oD);function aD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lD=(e,t)=>E.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){aD(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),E.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),sD=k(lD);function uD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cD=(e,t)=>E.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){uD(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),E.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),dD=k(cD);function pD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fD=(e,t)=>E.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){pD(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),E.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),mD=k(fD);function hD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gD=(e,t)=>E.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){hD(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),E.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})),bD=k(gD),vD=new Map,yD={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},xD=(e,t)=>e.some((e=>t[e]>0));function SD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ED=(e,t)=>E.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){SD(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),E.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),CD=k(ED);let wD={};const RD=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a})=>{const[l,s]=S(!1),u=O(null);return Wi.jsxs(Wi.Fragment,{children:[Wi.jsxs($I,{ref:a?u:null,"data-testid":`menu-item-${t}`,className:"sn-table-head-menu-item",onClick:e=>{n&&(n(e),wD={}),null!=a&&a.length&&(s(!0),wD[r]=s)},disabled:!i,autoFocus:e,onKeyDown:QP,children:[Wi.jsxs(HI,{children:[Wi.jsx(BI,{children:o}),Wi.jsx(Km,{variant:"body2",children:r})]}),null!=a&&a.length?Wi.jsx(CD,{}):null]},t),(null==a?void 0:a.length)&&Wi.jsx(ID,{anchorEl:u.current,open:l,onClose:()=>s(!1),menuGroups:(c=a,d=wD,c.map((e=>e.map((({onClick:e,...t})=>({...t,...e?{onClick:t=>{Object.entries(d).map((([,e])=>e(!1))),e(t)}}:{}})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"}})]});var c,d},AD=({menuGroup:e})=>e.map((e=>Wi.jsx(RD,{...e},e.id))),PD=({itemGroups:e})=>e.map(((t,n)=>[AD({menuGroup:t}),n<e.length-1?Wi.jsx(jI,{"data-testid":"group-divider",variant:"middle"},"divider"):void 0])),ID=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,buttonId:a,menuId:l})=>r.length?Wi.jsx(Tg,{className:"sn-table-head-menu",id:l,open:t,anchorEl:e,onClose:n,"aria-labelledby":a,...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},children:PD({itemGroups:r})}):null,DD=({column:e,tabIndex:t})=>{const{isDim:n,qLibraryId:r,fieldId:o,headTextAlign:i,pageColIdx:a}=e,{translator:l,embed:s,model:u,interactions:c,layout:d}=iA(tA,(e=>e.baseProps)),p=O(null),f=O(null),[m,h]=S(!1),[g,b]=S(!1),{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:E,updateSelectionActionsEnabledStatus:w}=((e,t)=>{const{app:n,layout:r}=iA(tA,(e=>e.baseProps)),[o,i]=S(null),[a,l]=S(yD);return C((()=>{if(!(n&&n.getField&&e&&e.isDim&&t))return;const{qLibraryId:o,fieldId:a}=e;if(o){const e=`${n.id}-${o}`;vD.get(e)?i(vD.get(e)):n.createSessionObject(((e,t="$")=>({qInfo:{qType:"tableListbox"},qListObjectDef:{qLibraryId:e,qStateName:t}}))(o,r.qStateName)).then((t=>{const n={selectAll:()=>t.selectListObjectAll("/qListObjectDef"),clear:()=>t.clearSelections("/qListObjectDef").then((e=>e)),selectPossible:()=>t.selectListObjectPossible("/qListObjectDef"),selectAlternative:()=>t.selectListObjectAlternative("/qListObjectDef"),selectExcluded:()=>t.selectListObjectExcluded("/qListObjectDef")};i(n),vD.set(e,n)}))}else n.getField(a,r.qStateName).then(i)}),[n,e,r.qStateName,t]),{fieldInstance:o,selectionActionsEnabledStatus:a,resetSelectionActionsEnabledStatus:T((()=>l(yD)),[]),updateSelectionActionsEnabledStatus:t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&l({canSelectAll:xD(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:xD(["qSelected"],n.qStateCounts),canSelectPossible:xD(["qOption"],n.qStateCounts),canSelectAlternative:xD(["qAlternative"],n.qStateCounts),canSelectExcluded:xD(["qAlternative","qExcluded"],n.qStateCounts)})}}})(e,m),R=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),A=T((()=>{const e=r?{qLibraryId:r,type:"dimension"}:o;s.__DO_NOT_USE__.popover(f.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},stateName:d.qStateName}),s.on("fieldPopoverClose",(()=>{b(!1)}))}),[s,o,r,d.qStateName]),P=x((()=>[...n&&c.select?[[{id:1,itemTitle:l.get("SNTable.MenuItem.Search"),onClick:e=>{e.stopPropagation(),h(!1),b(!0),A()},icon:Wi.jsx(nD,{}),enabled:!0}],[{id:1,itemTitle:l.get("SNTable.MenuItem.Selections"),icon:Wi.jsx(bD,{}),enabled:!0,subMenus:[[{id:1,itemTitle:l.get("SNTable.MenuItem.SelectAll"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectAll())},icon:Wi.jsx(iD,{}),enabled:y.canSelectAll},{id:2,itemTitle:l.get("SNTable.MenuItem.SelectPossible"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectPossible())},icon:Wi.jsx(mD,{}),enabled:y.canSelectPossible},{id:3,itemTitle:l.get("SNTable.MenuItem.SelectAlternative"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectAlternative())},icon:Wi.jsx(sD,{}),enabled:y.canSelectAlternative},{id:4,itemTitle:l.get("SNTable.MenuItem.SelectExcluded"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectExcluded())},icon:Wi.jsx(dD,{}),enabled:y.canSelectExcluded}],[{id:1,itemTitle:l.get("SNTable.MenuItem.ClearSelections"),onClick:async()=>{h(!1),await(null==v?void 0:v.clear())},icon:Wi.jsx(UI,{}),enabled:y.canClearSelections}]]}]]:[],[{id:1,itemTitle:l.get("SNTable.MenuItem.AdjustColumnSize"),onClick:e=>{gR(e),h(!1),ER(p)},icon:Wi.jsx(XI,{}),enabled:!0}]]),[n,c.select,l,y,A,v]);C((()=>{m||E()}),[m,E]);const I=d.qInfo.qId,D=`sn-table-head-menu-button-${a}-${I}`,M=`sn-table-head-menu-${a}-${I}`;return P.length?Wi.jsxs(FI,{rightAligned:"right"===i,children:[Wi.jsx(zI,{isVisible:g||m,ref:p,size:"small",tabIndex:t,className:"sn-table-head-menu-button",id:D,"aria-controls":m?M:void 0,"aria-expanded":m?"true":void 0,"aria-haspopup":"true",onClick:async()=>{if(!m&&u){const e=await u.getLayout();w(e)}h(!m)},"aria-label":l.get("SNTable.Accessibility.ColumnOptions"),isNewHeadCellMenuEnabled:R,children:Wi.jsx(QI,{height:Lb})}),Wi.jsx("div",{ref:f}),Wi.jsx(ID,{open:m,anchorEl:p.current,onClose:()=>h(!1),menuGroups:P,buttonId:D,menuId:M})]}):null},MD=({children:e,column:t,isInteractionEnabled:n,open:r,setOpen:o,getHeadCellsIconsVisibilityStatus:i})=>{const{shouldShowLockIcon:a,shouldShowMenuIcon:l}=i(),{keyboard:s,translator:u,changeSortOrder:c,interactions:d,embed:p,app:f,model:m}=iA(tA,(e=>e.baseProps)),h=iA(tA,(e=>0===e.focusedCellCoord[0])),g=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),b=O(null),v=O(null),{startIcon:y,endIcon:x,lockIcon:S}=WI(t),E=n&&SR(s)?0:-1,C={A:u.get("SNTable.Accessibility.Ascending"),D:u.get("SNTable.Accessibility.Descending")};return Wi.jsxs(_I,{isLocked:Boolean(S),className:`aligned-${t.headTextAlign}`,isNewHeadCellMenuEnabled:g,...g&&{shouldShowMenuIcon:l,shouldShowLockIcon:a},children:[(g?a:S)&&Wi.jsx(qI,{children:S}),Wi.jsxs(TI,{className:"sn-table-head-label",isActivelySorted:t.isActivelySorted,textAlign:t.headTextAlign,color:"inherit",size:"small",...!g&&{startIcon:y,endIcon:x},tabIndex:g?-1:E,disabled:!n,onClick:g?()=>{}:()=>n&&c(t),isNewHeadCellMenuEnabled:g,children:[e,h&&Wi.jsx(kI,{"data-testid":`VHL-for-col-${t.pageColIdx}`,children:`${C[t.sortDirection]} ${u.get("SNTable.SortLabel.PressSpaceToSort")}`})]}),n&&(g?Wi.jsxs(Wi.Fragment,{children:[Wi.jsx(dP,{headerData:t,translator:u,anchorRef:b,handleHeadCellMenuKeyDown:QP,menuAvailabilityFlags:{[uP.SORTING]:!0,[uP.SEARCHING]:!0,[uP.SELECTIONS]:!0,[uP.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:o,interactions:d,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),c(t,n))},searchRelatedArgs:{embed:p,listboxRef:v},selectionRelatedArgs:{app:f,model:m},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:ER},shouldShowMenuIcon:!g||l}),Wi.jsx(OI,{ref:v}),Wi.jsx(OI,{ref:b})]}):Wi.jsx(DD,{column:t,tabIndex:E}))]})},LD=({styling:e,column:t,columnWidths:n,isNewHeadCellMenuEnabled:r})=>{const{measureText:o}=rn({fontSize:e.head.fontSize,fontFamily:e.head.fontFamily,fontWeight:Ob}),i=T((()=>{var e;if(!r)return{shouldShowMenuIcon:!0,shouldShowSortIcon:!0,shouldShowLockIcon:!0};let i=!1,a=!1,l=!1;const s=t.isLocked,u=t.isActivelySorted,c=(null!==(e=n[t.colIdx])&&void 0!==e?e:n[t.pageColIdx])-25,d=s?24:0,p=u?20:0;let f=o(t.label);return s&&f+d<=c&&(l=!0,f+=d,u&&f+p<=c&&(a=!0,f+=p)),!s&&u&&f+p<=c&&(a=!0,f+=p),f+28<=c&&(i=!0,f+=28),{shouldShowMenuIcon:i,shouldShowSortIcon:a,shouldShowLockIcon:l}}),[r,t.colIdx,t.pageColIdx,t.isLocked,t.label,t.isActivelySorted,n,o]);return{getHeadCellsIconsVisibilityStatus:i,allIconsDisabled:Object.values(i()).every((e=>!1===e))}},OD=({isInteractionEnabled:e,columnsData:t})=>{const[n,r]=S(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,n]=S(!1);return un((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}})([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Mr)})(t)&&!o&&r(!0),setIsAdjustingWidth:i}},TD=(e,t,n,r)=>{const o=e&&t&&n;return e=>o&&e===r},kD=sf(ob,{shouldForwardProp:e=>"headerStyle"!==e&&"isNewHeadCellMenuEnabled"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,isNewHeadCellMenuEnabled:t,interactions:n,hoverBackground:r,background:o})=>({...Tb,...e,...t&&{cursor:"pointer",background:o},pointer:"cursor",verticalAlign:"bottom","&&:focus-visible":{...!t&&{boxShadow:"none"},...t&&{background:n.active?r:o}},...t&&{"&&:hover":{background:n.active?r:o}}}))),_D=sf("div")({display:"flex",alignItems:"center"}),qD=sf("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:Lb,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),ND=({column:e,columnIndex:t,columnsLength:n})=>{const{styling:r,interactions:o,rootElement:i,keyboard:a,styling:{head:{activeBackground:l,background:s,hoverBackground:u}}}=iA(tA,(e=>e.baseProps)),{columns:c}=iA(tA,(e=>e.tableData)),d=iA(tA,(e=>e.columnWidths)),p=iA(tA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=iA(tA,(e=>e.setFocusedCellCoord)),m=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),h=iA(tA,(({focusedCellCoord:[e,n]})=>0===e&&n===t)),g=!!o.active&&!p,{open:b,setOpen:v,handleOpenMenu:y,setIsAdjustingWidth:x}=OD({isInteractionEnabled:g,columnsData:c}),{getHeadCellsIconsVisibilityStatus:S,allIconsDisabled:E}=LD({styling:r,column:e,columnWidths:d,isNewHeadCellMenuEnabled:m}),C=e.isActivelySorted?bf[e.sortDirection]:void 0,w=t===n-1,R=[0,e.pageColIdx],A={width:d[t]-(w?8:9),zIndex:c.length-t},{startIcon:P,endIcon:I}=WI(e),D=!!m&&0===e.colIdx&&!a.enabled&&h&&g?0:-1,M=S(),L=TD(m,M.shouldShowSortIcon,e.isActivelySorted,e.headTextAlign);return Wi.jsxs(kD,{headerStyle:r.head,style:A,align:e.headTextAlign,className:"sn-table-head-cell sn-table-cell","aria-sort":C,tabIndex:D,title:o.passive?e.label:void 0,onKeyDown:e=>eI({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,isInteractionEnabled:g,handleOpenMenu:y,isNewHeadCellMenuEnabled:m}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(r(n),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):CR({focusType:gf.FOCUS_BUTTON,cell:bR(t,n)}))})({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,keyboard:a,isInteractionEnabled:g}),isNewHeadCellMenuEnabled:m,background:b?l:s,hoverBackground:u,interactions:o,onClick:y,children:[Wi.jsx(MD,{column:e,isInteractionEnabled:g,open:b,setOpen:v,getHeadCellsIconsVisibilityStatus:S,children:m?Wi.jsxs(_D,{children:[L("right")&&Wi.jsx(qD,{align:e.headTextAlign,children:P}),Wi.jsx(sI,{allIconsDisabled:E,isPagination:!0,headCell:!0,children:e.label}),L("left")&&Wi.jsx(qD,{align:e.headTextAlign,children:I})]}):Wi.jsx(sI,{fontSize:r.head.fontSize,children:e.label})}),Wi.jsx(EI,{column:e,isLastColumn:w,setIsAdjustingWidth:x})]},e.id)},FD=()=>{var e;const{columns:t}=iA(tA,(e=>e.tableData)),{styling:n,viewService:r}=iA(tA,(e=>e.baseProps)),o=iA(tA,(e=>e.setHeadRowHeight)),i=iA(tA,(e=>e.columnWidths)),a=O(null);return C((()=>{a.current&&o(a.current.clientHeight)}),[n.head.fontSize,i,o]),null!==(e=r.viewState)&&void 0!==e&&e.skipHeader?null:Wi.jsx(mb,{children:Wi.jsx(Sb,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,n)=>Wi.jsx(ND,{column:e,columnIndex:n,columnsLength:t.length},e.id)))})})};var zD=_(FD);const jD=e=>{var t,n;const{pageInfo:r,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=r,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=iA(tA,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styling:E,viewService:w,layout:R,rect:A}=iA(tA,(e=>e.baseProps)),P=iA(tA,(e=>e.focusedCellCoord)),I=iA(tA,(e=>e.setFocusedCellCoord)),D=iA(tA,(e=>e.setYScrollbarWidth)),M=iA(tA,(e=>e.showRightBorder)),L=iA(tA,(e=>e.selectionDispatch)),k=iA(tA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),_=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),q=O(!1),N=O(null),F=O(null),{yScrollbarWidth:z}=tI(N),j=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length+1),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,$=Ti(R,w),H=$&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,B=$&&null!==(n=w.rowPartialHeight)&&void 0!==n?n:0,W=T((()=>{q.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),V=T((e=>{o({...r,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[r,o,p,l]),G=T((e=>{o({...r,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return((e,t,n)=>{C((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{const r=e.currentTarget,o=e.relatedTarget,i=!(null==r||!r.contains(o)),a=null==o?void 0:o.closest(".sn-table-head-menu");if(n.enabled&&!i&&!a&&!t.current&&r){var l;const e=r.querySelector(".sn-table-announcer-1"),t=r.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=n.blur)||void 0===l||l.call(n,!1)}})(e,t,n);return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}}),[e,t,n])})(F,q,v),ZP(N,i,w),(()=>{const{rootElement:e,keyboard:t}=iA(tA,(e=>e.baseProps)),n=iA(tA,(e=>e.focusedCellCoord)),r=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled));un((()=>{let o=r||n[0]>0?gf.FOCUS:gf.FOCUS_BUTTON;o=t.active?o:gf.BLUR;const i=t.active?bR(e,n):vR(e);CR({focusType:o,cell:i})}),[t.active,e,r])})(),C((()=>{const e=N.current;e&&(e.scrollLeft=H,e.scrollTop=B)}),[r,d,H,B]),JP((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l,isNewHeadCellMenuEnabled:s})=>{CR({focusType:gf.REMOVE_TAB,cell:vR(t)});const u=[l.atTop?2:1,e[1]],c=r?u:s?Sf:Ef;if(SR(i)){const e=n.current?gf.FOCUS:gf.ADD_TAB;n.current=!1;const o=bR(t,c);if(CR({focusType:e,cell:o}),r){var d;const e=null==o||null===(d=o.classList)||void 0===d?void 0:d.contains("selected");a({keys:[`${null==o?void 0:o.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}}o(c)})({focusedCellCoord:P,rootElement:b,shouldRefocus:q,setFocusedCellCoord:I,isSelectionMode:k,keyboard:v,announce:l,totalsPosition:g,isNewHeadCellMenuEnabled:_})}),[m.length,d,c,s,_]),JP((()=>{D(z)}),[z]),JP((()=>{L({type:mf.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),Wi.jsxs(YP,{ref:F,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:n,rowsPerPage:r,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(IR(e)){gR(e);const a=Math.ceil(t/r)-1;e.key===hf.RIGHT&&n<a?(i(),o(n+1)):e.key===hf.LEFT&&n>0&&(i(),o(n-1))}else if(e.key===hf.ESC&&a.enabled&&!l){var s;gR(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else DR(e.key)&&gR(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:V,setShouldRefocus:W,keyboard:v,isSelectionMode:k})},"data-testid":"sn-table",children:[Wi.jsx(iI,{}),Wi.jsx(rI,{ref:N,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:Wi.jsxs(oI,{styling:E,showRightBorder:M,stickyHeader:!0,"aria-label":j,children:[Wi.jsx(zD,{}),Wi.jsx(SI,{...e,setShouldRefocus:W,tableWrapperRef:F})]})}),Wi.jsx(UP,{footerContainer:a,pageInfo:r,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:A,layout:R,handleChangePage:V,handleChangeRowsPerPage:G,isSelectionMode:k})]})};var $D=_(jD);function HD(){return HD=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},HD.apply(this,arguments)}function BD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WD(e,t){return WD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WD(e,t)}function VD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,WD(e,t)}var GD=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function UD(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||GD(r)&&GD(o)))return!1;var r,o;return!0}function YD(e,t){var n;void 0===t&&(t=UD);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function KD(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var XD="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function JD(e){cancelAnimationFrame(e.id)}function ZD(e,t){var n=XD();var r={id:requestAnimationFrame((function o(){XD()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var QD=-1;function eM(e){if(void 0===e&&(e=!1),-1===QD||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),QD=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return QD}var tM=null;function nM(e){if(void 0===e&&(e=!1),null===tM||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?tM="positive-descending":(t.scrollLeft=1,tM=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),tM}return tM}var rM=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function oM(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,BD(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:BD(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=YD((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=YD((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=YD((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(nM()){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&&JD(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=ZD(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}VD(t,e),t.getDerivedStateFromProps=function(e,t){return iM(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=eM();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(nM()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&JD(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?rM:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),A=w[0],P=w[1],I=[];if(r>0&&g)for(var D=A;D<=P;D++)for(var M=E;M<=C;M++)I.push(R(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,M)}));var L=a(this.props,this._instanceProps),O=l(this.props,this._instanceProps);return R(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:HD({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:I,ref:s,style:{height:L,pointerEvents:x?"none":void 0,width:O}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var iM=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},aM=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},lM=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},sM=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]},uM=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?cM(e,t,n,i,0,r):dM(e,t,n,Math.max(0,i),r)},cM=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=sM(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},dM=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&sM(e,t,r,n).offset<o;)r+=a,a*=2;return cM(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},pM=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=sM(e,t,n,i),u="column"===e?lM(t,i):aM(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}},fM=oM({getColumnOffset:function(e,t,n){return sM("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return uM("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=sM("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=sM("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:aM,getEstimatedTotalWidth:lM,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return pM("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return pM("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return sM("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return uM("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=sM("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=sM("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}}),mM=function(e,t){return e};function hM(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,BD(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:BD(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=YD((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=YD((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=YD((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(nM()){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&&JD(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=ZD(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}VD(t,e),t.getDerivedStateFromProps=function(e,t){return gM(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?eM():0:s.scrollHeight>s.clientHeight?eM():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(nM()){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&&JD(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?mM:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],A=[];if(u>0)for(var P=C;P<=w;P++)A.push(R(t,{data:c,key:p(P,c),index:P,isScrolling:b?y:void 0,style:this._getItemStyle(P)}));var I=r(this.props,this._instanceProps);return R(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:HD({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(l||s||"div",{children:A,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var gM=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},bM=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]},vM=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=bM(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},yM=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&bM(e,n,t).offset<r;)n+=i,i*=2;return vM(e,t,Math.min(n,o-1),Math.floor(n/2),r)},xM=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},SM=hM({getItemOffset:function(e,t,n){return bM(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:xM,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=bM(e,t,o),p=xM(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?vM(e,t,o,0,n):yM(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=bM(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=bM(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 EM(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 CM=["style"],wM=["style"];function RM(e,t){var n=e.style,r=KD(e,CM),o=t.style,i=KD(t,wM);return!EM(n,o)&&!EM(r,i)}const AM=({style:e})=>Wi.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var PM=E.memo(AM,RM);const IM=()=>{},DM=e=>e.preventDefault();const MM=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const{rowsInPage:i,columns:a,bodyStyle:l,isHoverEnabled:s}=r,u=iA(tA,(e=>e.hoverIndex===t)),c=iA(tA,(e=>e.setHoverIndex)),{interactions:d}=iA(tA,(e=>e.baseProps)),p=iA(tA,(e=>e.showRightBorder)),f=null===(o=i[t])||void 0===o?void 0:o[e],{handleMouseDown:m,handleMouseOver:h,handleMouseUp:g,cellSelectionState:b}=function(e){const{interactions:t}=iA(tA,(e=>e.baseProps)),n=iA(tA,(e=>e.selectionDispatch)),r="object"==typeof e,o=iA(tA,(t=>r?_R(e,t.selectionState):ff.INACTIVE)),i=t.active&&t.select;if(r&&i){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=dI(DM,e,n,IM);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(f);if("object"==typeof f){const r=((e,t,n,r,o)=>{const{hoverColors:i,lastRowBottomBorder:a,...l}=o,s=t.qAttrExprInfoIDs.length?ZR(l,e.qAttrExps,t.qAttrExprInfoIDs):l;return r===ff.SELECTED?{...s,...Db.SELECTED}:r===ff.EXCLUDED?{...s,color:n?null==i?void 0:i.color:s.color,background:`${Db.EXCLUDED_BACKGROUND}, ${n?null==i?void 0:i.background:s.background}`}:n?{...s,...i}:s})(f,a[e],s&&u,b,l),o={rowindex:t,columnindex:e};return Wi.jsx("div",{className:`sn-table-cell ${b}`,style:{...n,...r,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:f.isLastRow?"0px":"1px",borderRightWidth:f.isLastColumn&&!p?"0px":"1px",borderStyle:"solid",justifyContent:f.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default"},onMouseDown:m,onMouseUp:g,onMouseOver:h,onMouseEnter:s?()=>c(t):void 0,onMouseLeave:s?()=>c(-1):void 0,title:d.passive?f.qText:void 0,...o,children:Wi.jsx(uI,{cell:f,style:r,virtualizedCell:!0})})}return Wi.jsx(PM,{style:{...n,...l,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var LM=E.memo(MM,RM);const OM=e=>{const t=O(e);return t.current=e,t},TM=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,kM=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},_M=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},qM=(e,t,n,r,o,i)=>{e.forEach((e=>{e.qMatrix.forEach(((a,l)=>{const s=e.qArea.qTop-t.page*t.rowsPerPage,{row:u,pageRowIdx:c}=((e,t,n,r,o,i,a,l)=>{var s;const{qSize:u}=a.qHyperCube,c=r.qTop+n,d=o+n,p=null!==(s=e[d])&&void 0!==s?s:[];return t.forEach(((e,t)=>{var n;const o=t+r.qLeft,{colIdx:a,isDim:s,isLocked:f,bodyTextAlign:m,selectionColIdx:h,qAttrExprInfoIDs:g,representation:b}=i[o],v=wi(e);p[o]={...e,align:Li(e,m),rowIdx:c,colIdx:a,isSelectable:s&&!f,pageRowIdx:d,pageColIdx:o,selectionColIdx:h,isLastRow:c===u.qcy-1,isLastColumn:o===u.qcx-1,isNumeric:v,representation:Ei(e,b,g.findIndex((e=>"url"===e)),g.findIndex((e=>"urlLabel"===e)))},l(null!==(n=e.qText)&&void 0!==n?n:"",d,o,v)})),{row:p,pageRowIdx:d}})(n,a,l,e.qArea,s,r,o,i);n[c]=u}))}))},NM=({layout:e,model:t,theme:n,initialDataPages:r,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,setCellSize:u,gridState:c})=>{const d=O([]),p=OM(u),f=T(((t,n)=>{const r=Array.isArray(n)?n.slice(0,i):(e=>Array(e).fill(void 0))(i);return qM(t,o,r,s,e,p.current),d.current=r,r}),[i,o,s,e,p]),[m,h]=S((()=>f(null!=r?r:[])));un((()=>{h(f(null!=r?r:[]))}),[r]);const g=((e,t)=>{const n=O(new Set),r=O(new Set),o=O(new Set),i=OM(e),a=OM(t),l=x((()=>({enqueue:e=>{const t=TM(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout((async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),r.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),n=await i.current(t);r.current.has(e)&&a.current(n)}catch(t){e.forEach((e=>{o.current.delete(TM(e))}))}finally{r.current.delete(e)}}}),75))},clear:()=>{n.current.clear(),r.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>h((t=>f(e,t))))),b=T(((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(_M(d.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};g.enqueue(e)}}),[d,g]),v=T(((e,t,n,r)=>{for(let i=t;i<t+r;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(kM(d.current,e,t,n,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:n};g.enqueue(t)}}}),[d,g,o]),y=n.name();return C((()=>{const{qcx:t,qcy:n}=e.qHyperCube.qSize,r=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,s=r+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-r,p=Math.min(100,u,t,l+5),f=Math.min(100,d,n,a+25);return v(i,s,p,f),()=>{g.clear()}}),[e,a,l,o,g,v,c,y]),{rowsInPage:m,loadRows:v,loadColumns:b}},FM=({style:e,columnWidths:t,rowHeight:n,pageInfo:r,rowCount:o,gridRef:i,lineRef:a,columns:l,fontWeight:s,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,allColumnsIconVisibilityStatus:f,isNewHeadCellMenuEnabled:m=!1})=>{var h;const g=O({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:b,rect:v}=iA(tA,(e=>e.baseProps)),[y,x]=S(n||24),{measureText:E,estimateLineCount:C}=rn({...e,fontWeight:s}),w=parseInt(null!==(h=e.fontSize)&&void 0!==h?h:Tb.fontSize,10)*$R,R=8e6/o-8-1,A=Math.max(0,Math.min(p,Math.round(R/w))),P=T(((e,n,r)=>{const o=l?(({isNewHeadCellMenuEnabled:e,width:t,column:n,columnIconsVisibilityStatus:r})=>{let o=0;if(!e)return o=t-71,o-=n.isLocked?24:0,Math.max(0,o);let i=0,a=0,l=0;if(r){const{shouldShowLockIcon:e,shouldShowSortIcon:t,shouldShowMenuIcon:n}=r,o=4;i=e?20+o:0,a=t?20:0,l=n?o+24:0}return o=t-25-i-a-l,Math.max(0,o)})({isNewHeadCellMenuEnabled:m,width:t[n],column:l[n],columnIconsVisibilityStatus:null==f?void 0:f[n]}):(e=>Math.max(0,e-24-1))(t[n]),i=Math.min(A,C({text:e.trim(),maxWidth:o,isNumeric:r}));return Math.max(1,i)*w+8+1}),[t,w,A,l,C,f,m]),I=T(((e,t,n,r=!1,o=!1)=>{const i=`${t}-${n}`;if(g.current.measuredCells.has(i))return;g.current.measuredCells.set(i,[e,t,n,r]);const a=P(e,n,r),l=g.current.heights[t],s=a-l;s>0?(g.current.totalHeight+=s,g.current.heights[t]=a):void 0===l&&(g.current.count+=1,g.current.totalHeight+=a,g.current.heights[t]=a),o||c||x(g.current.totalHeight/g.current.count)}),[P,c]),D=T((e=>{var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:y}),[g,y]),M=T((()=>{g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),L=OM(I),k=T((()=>{const e=new Map(g.current.measuredCells);M(),e.forEach((([e,t,n,r])=>{L.current(e,t,n,r,!0)})),c||x(g.current.totalHeight/g.current.count)}),[M,c,L]);un((()=>{M()}),[b,r]),un((()=>{k()}),[E,v.width]);return null!=i&&i.current?i.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):null!=a&&a.current&&a.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),d.estimatedRowHeight=y,{setCellSize:I,getRowHeight:D,rowMeta:g,estimatedRowHeight:y,maxLineCount:A,resizeVisibleCells:e=>{if(!u)return;M();const{overscanRowStartIndex:t,overscanRowStopIndex:n}=u.current,r=Math.min(n,b.qHyperCube.qSize.qcy-1);for(let n=t;n<=r;n++){var o;const t=null!==(o=e[n])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&I(null!==(t=e.qText)&&void 0!==t?t:"",n,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:k,resetRowMeta:M}};var zM;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(zM||(zM={}));const jM={enabled:!1},$M=()=>{},HM={current:null};const BM=(e,t,n,r,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(n.height/o)),l=x((()=>r.reduce(((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[n,r]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},WM=({columnIndex:e,data:t,rowIndex:n})=>{var r;const o=null===(r=t.rowsInPage[n])||void 0===r?void 0:r[e];return`${null==o?void 0:o.qElemNumber}-${null==o?void 0:o.qText}-${n}-${e}`},VM={overflow:"hidden",willChange:"auto"};var GM=_(k(((e,t)=>{var n,r;const{rect:o,columns:i,innerForwardRef:a,pageInfo:l,bodyStyle:s,rowHeight:u,headerAndTotalsHeight:c,syncHeight:d}=e,{layout:p,model:f,theme:m,viewService:h}=iA(tA,(e=>e.baseProps)),g=iA(tA,(e=>e.columnWidths)),b=iA(tA,(e=>e.initialDataPages)),v=null===(n=h.viewState)||void 0===n?void 0:n.maxLineCount,y=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),S=O(null),E=O({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),w=!(null===(r=YR(p))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{scrollHandler:R,verticalScrollDirection:A,horizontalScrollDirection:P}=(()=>{const e=O(0),t=O(0),n=O(zM.None),r=O(zM.None);return{scrollHandler:T((({scrollTop:o,scrollLeft:i})=>{o>t.current?n.current=zM.Down:o<t.current?n.current=zM.Up:n.current=zM.None,i>e.current?r.current=zM.Right:i<e.current?r.current=zM.Left:r.current=zM.None,t.current=o,e.current=i}),[t,e,n,r]),verticalScrollDirection:n,horizontalScrollDirection:r}})(),{rowCount:I,visibleRowCount:D,visibleColumnCount:M}=BM(p,l,o,g,u),{setCellSize:L,getRowHeight:k,rowMeta:_,estimatedRowHeight:N,maxLineCount:z,resizeVisibleCells:j}=FM({pageInfo:l,style:s,rowHeight:u,columnWidths:g,gridRef:S,rowCount:I,gridState:E,isSnapshot:!!p.snapshotData,viewService:h,maxNbrLines:v,isNewHeadCellMenuEnabled:y}),{rowsInPage:$,loadRows:H,loadColumns:B}=NM({layout:p,model:f,theme:m,initialDataPages:b,pageInfo:l,rowCount:I,visibleRowCount:D,visibleColumnCount:M,columns:i,setCellSize:L,gridState:E}),W=(({layout:e,loadRows:t,loadColumns:n,verticalScrollDirection:r,horizontalScrollDirection:o,rowCount:i,pageInfo:a,gridState:l,viewService:s})=>T((({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p,visibleColumnStartIndex:f,visibleColumnStopIndex:m,visibleRowStartIndex:h,visibleRowStopIndex:g})=>{if(l.current.overscanColumnStartIndex=u,l.current.overscanColumnStopIndex=c,l.current.overscanRowStartIndex=d,l.current.overscanRowStopIndex=p,d>i)return;const b=u,v=d+a.page*a.rowsPerPage,y=c-u+1,x=p-d+1;if(s.visibleLeft=f,s.visibleWidth=m-f+1,s.visibleTop=h+a.page*a.rowsPerPage,s.visibleHeight=g-h+1,s.page=a.page,s.rowsPerPage=a.rowsPerPage,r.current===zM.Down){const e=x+25;t(b,v,y,d+e>i?i-d:e)}else if(r.current===zM.Up){const e=x+25,n=a.page*a.rowsPerPage,r=Math.max(n,v-25);t(b,r,y,e)}if(o.current===zM.Right){const t=e.qHyperCube.qSize.qcx-b,r=y+5,o=Math.min(t,r);n(b,v,o,x)}else if(o.current===zM.Left){const t=Math.max(0,b-5),r=Math.min(e.qHyperCube.qSize.qcx,y+5);n(t,v,r,x)}}),[l,i,a.page,a.rowsPerPage,s,r,o,t,e.qHyperCube.qSize.qcx,n]))({layout:p,loadRows:H,loadColumns:B,verticalScrollDirection:A,horizontalScrollDirection:P,rowCount:I,pageInfo:l,gridState:E,viewService:h}),V=x((()=>({rowsInPage:$,columns:i,bodyStyle:s,isHoverEnabled:w,maxLineCount:z})),[$,i,s,w,z]),G=((e,t,n,r)=>{let{height:o}=e;return o-=t,n*r<o&&(o=Math.min(n*r,o)),o})(o,c,I,N);return q((()=>{var e,t;d(null!==(e=null===(t=a.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[I,d,a]),q((()=>{var e,t,n;(d(null!==(e=null===(t=a.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===_.current.lastScrollToRatio)&&(null===(n=S.current)||void 0===n||n.scrollToItem({rowIndex:I-1,align:"start"}))})),function(e){const{selectionsAPI:t}=iA(tA,(e=>e.baseProps)),n=iA(tA,(e=>e.selectionDispatch));C((()=>{n({type:mf.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),cI({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:$M,keyboard:jM,tableWrapperRef:HM})}($),un((()=>{var e;null===(e=S.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[p,l,m.name(),o.width,g]),F(t,(()=>({interpolatedScrollTo:(e,t)=>{var n,r;const o=(null!==(n=null===(r=a.current)||void 0===r?void 0:r.clientHeight)&&void 0!==n?n:G)-G,i=Math.round(o*e);var l,s,u;(_.current.lastScrollToRatio=e,1===_.current.lastScrollToRatio)?(null===(l=S.current)||void 0===l||l.scrollToItem({rowIndex:I-1,align:"start"}),null===(s=S.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(u=S.current)||void 0===u||u.scrollTo({scrollTop:i,scrollLeft:t})},resizeCells:()=>{var e;null===(e=S.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),j($)}})),[a,G,_,I,j,$]),Wi.jsx(fM,{"data-key":"body",ref:S,innerRef:a,style:VM,columnCount:p.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:G,rowCount:I,rowHeight:k,estimatedRowHeight:N,width:o.width,itemData:V,onItemsRendered:W,onScroll:R,itemKey:WM,className:"sn-table-body",children:LM})})));const UM=({width:e,height:t,children:n})=>Wi.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:n}),YM=sf("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"isNewHeadCellMenuEnabled"!==e})((({isNewHeadCellMenuEnabled:e,interactions:t,hoverBackground:n,background:r,applicableStyle:o})=>({...o,...e&&{background:r},"&&:hover":{...e&&{background:t.active?n:r}}}))),KM=({index:e,style:t,data:n})=>{const{columns:r,headerStyle:{...o},columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=n,{styling:l,interactions:s,styling:{head:{activeBackground:u,background:c,hoverBackground:d}}}=iA(tA,(e=>e.baseProps)),p=iA(tA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=iA(tA,(e=>e.showRightBorder)),m=iA(tA,(e=>e.columnWidths)),h=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),g=!!s.active&&!p,{open:b,setOpen:v,handleOpenMenu:y,setIsAdjustingWidth:x}=OD({isInteractionEnabled:g,columnsData:r}),S=r[e],E=r.length-1===e,C="right"===S.headTextAlign?"row-reverse":"row",{getHeadCellsIconsVisibilityStatus:w,allIconsDisabled:R}=LD({styling:l,column:S,columnWidths:m,isNewHeadCellMenuEnabled:h}),{startIcon:A,endIcon:P}=WI(S),I=w();a.current[e]=I;const D=TD(h,I.shouldShowSortIcon,S.isActivelySorted,S.headTextAlign);return Wi.jsxs(YM,{className:"sn-table-cell",title:s.passive?S.label:void 0,onClick:y,applicableStyle:o,style:{...t,cursor:h?"pointer":"default",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:E&&!f?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:S.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:C,userSelect:"none"},interactions:s,hoverBackground:d,background:b?u:c,isNewHeadCellMenuEnabled:h,children:[Wi.jsx(MD,{column:S,isInteractionEnabled:g,open:b,setOpen:v,getHeadCellsIconsVisibilityStatus:w,children:h?Wi.jsxs(_D,{children:[D("right")&&Wi.jsx(qD,{align:S.headTextAlign,children:A}),Wi.jsx(sI,{allIconsDisabled:R,headCell:!0,virtualizedCell:!0,children:S.label}),D("left")&&Wi.jsx(qD,{align:S.headTextAlign,children:P})]}):Wi.jsx(sI,{wordBreak:!0,lines:3,children:S.label})}),Wi.jsx(EI,{column:S,isLastColumn:E,onColumnResize:i,setIsAdjustingWidth:x})]})},XM=(e,t,n,r,o)=>{q((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,n,e,r,o])},JM={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},ZM=e=>{const{rect:t,forwardRef:n,columns:r,pageInfo:o,headerStyle:i,rowHeight:a,columResizeHandler:l,allColumnsIconVisibilityStatusRef:s}=e,{layout:u,theme:c}=iA(tA,(e=>e.baseProps)),d=iA(tA,(e=>e.columnWidths));return XM(n,u,o,d,c.name()),Wi.jsx(SM,{ref:n,layout:"horizontal",style:JM,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:a,width:t.width,itemData:{columns:r,headerStyle:i,columResizeHandler:l,allColumnsIconVisibilityStatusRef:s},children:KM})};var QM=_(ZM);const eL=E.forwardRef(((e,t)=>{const{children:n,width:r,height:o,onScroll:i}=e,{interactions:a}=iA(tA,(e=>e.baseProps));return Wi.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i,children:n})})),tL=({children:e,rect:t})=>Wi.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),nL=({index:e,style:t,data:n})=>{const{layout:r,interactions:o}=iA(tA,(e=>e.baseProps)),i=iA(tA,(e=>e.showRightBorder)),a=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),{totalsStyle:{hoverColors:l,...s},columns:u,totals:c}=n,d=u[e].totalInfo,{totalsTextAlign:p,isTotalNumeric:f}=u[e],m=r.qHyperCube.qSize.qcx-1===e;return Wi.jsx("div",{className:"sn-table-cell",title:o.passive?d:void 0,style:{...t,...s,display:"flex",alignItems:c.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!i?"0px":"1px",borderTopWidth:c.atBottom?"1px":"0px",borderBottomWidth:c.atTop?"1px":"0px",padding:"4px 12px",justifyContent:p,boxSizing:"border-box",cursor:"default",fontWeight:Ob},children:Wi.jsx(sI,{wordBreak:!f,lines:3,...a&&{virtualizedCell:!0},children:d})})},rL=e=>{const{rect:t,forwardRef:n,pageInfo:r,totals:o,rowHeight:i,columns:a}=e,{layout:l,styling:s,theme:u}=iA(tA,(e=>e.baseProps)),c=iA(tA,(e=>e.columnWidths));return XM(n,l,r,c,u.name()),Wi.jsx(SM,{ref:n,layout:"horizontal",style:JM,itemCount:l.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{totalsStyle:s.totals,columns:a,totals:o},children:nL})};var oL=_(rL);const iL=({columns:e,columnWidths:t,pageInfo:n,headerRef:r,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s})=>{const{styling:u}=iA(tA,(e=>e.baseProps)),c=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),d=FM({style:u.head,columnWidths:t,lineRef:r,rowCount:1,pageInfo:n,fontWeight:Ob,columns:e,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s,isNewHeadCellMenuEnabled:c}),p=FM({style:u.totals,columnWidths:t,lineRef:o,rowCount:1,pageInfo:n,fontWeight:Ob,isSnapshot:a,viewService:l,isNewHeadCellMenuEnabled:c});e.forEach(((e,t)=>{d.setCellSize(e.label,0,t),p.setCellSize(e.totalInfo,0,t,Ci(e.totalInfo))}));const f=d.getRowHeight(0)+8,m=p.getRowHeight(0);return{headerRowHeight:f,totalsRowHeight:m,bodyRowHeight:a?l.estimatedRowHeight:(({fontSize:e=Tb.fontSize})=>Math.max(24,BR(e)))(u.body),headerAndTotalsHeight:i.atTop||i.atBottom?f+m:f,resizeAllHeaderCells:d.resizeAllCells,resizeAllTotalCells:p.resizeAllCells}},aL=e=>{var t;const{pageInfo:n}=e,{totalsPosition:r,columns:o,paginationNeeded:i}=iA(tA,(e=>e.tableData)),{layout:a,theme:l,styling:s,rect:u,viewService:c}=iA(tA,(e=>e.baseProps)),d=iA(tA,(e=>e.columnWidths)),p=iA(tA,(e=>e.setYScrollbarWidth)),f=O(null),m=O(null),h=O(null),g=O(null),b=O(),{xScrollbarWidth:v,yScrollbarWidth:y}=tI(f),E=x((()=>{var e;return{...s.body,background:null!==(e=l.background.color)&&void 0!==e?e:"transparent"}}),[l.background.color,s]),C=O([]),{headerRowHeight:w,totalsRowHeight:R,bodyRowHeight:A,headerAndTotalsHeight:P,resizeAllHeaderCells:I,resizeAllTotalCells:D}=iL({columns:o,columnWidths:d,pageInfo:n,totalsPosition:r,headerRef:m,totalsRef:h,isSnapshot:!!a.snapshotData,viewService:c,allColumnsIconVisibilityStatus:C.current}),M=x((()=>((e,t)=>{const n=e.height-(t?41:0);return{width:e.width,height:n}})(u,i)),[u,i]),L=x((()=>((e,t,n)=>({width:e.width-n,height:e.height-t}))(M,v,y)),[M,v,y]),{rowCount:k}=BM(a,n,L,d,A),[_,N]=S(k*A+P),F=d.reduce(((e,t)=>e+t),0),z=((e,t,n,r)=>T((o=>{var i,a,l;const{scrollHeight:s,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(s-u)));r.scrollTopRatio=p,r.scrollLeft=d,null===(i=n.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(l=t.current)||void 0===l||l.scrollTo(d)}),[r,n,e,t]))(m,h,g,c),j=T(((e,t=!1)=>{const n=e+P;(_<L.height&&n>L.height||t)&&N(n)}),[_,P,L.height]),$=T((()=>{var e;f.current&&(f.current.scrollTop=0),null===(e=g.current)||void 0===e||e.resizeCells(),I(),D()}),[f,I,D]);q((()=>{f.current&&(f.current.scrollLeft=0,f.current.scrollTop=0)}),[o.length]);const H=l.name();q((()=>{f.current&&(f.current.scrollTop=0)}),[n,k,H]),JP((()=>{p(y)}),[y]);const B=Wi.jsx(oL,{rect:L,pageInfo:n,columns:o,forwardRef:h,totals:r,rowHeight:R});return Wi.jsx(eL,{ref:f,width:M.width,height:M.height,onScroll:z,children:Wi.jsx(UM,{width:F,height:_,children:Wi.jsxs(tL,{rect:L,children:[null!==(t=c.viewState)&&void 0!==t&&t.skipHeader?null:Wi.jsx(QM,{headerStyle:s.head,rect:L,pageInfo:n,columns:o,forwardRef:m,rowHeight:w,columResizeHandler:$,allColumnsIconVisibilityStatusRef:C}),r.atTop?B:null,Wi.jsx(GM,{ref:g,innerForwardRef:b,bodyStyle:E,rect:L,pageInfo:n,columns:o,rowHeight:A,headerAndTotalsHeight:P,syncHeight:j}),r.atBottom?B:null]})})})};var lL=_(aL);const sL=()=>{const{theme:e,keyboard:t,translator:n,interactions:r,rect:o,layout:i}=iA(tA,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=iA(tA,(e=>e.tableData)),c=iA(tA,(e=>e.pageInfo)),d=iA(tA,(e=>e.setPage));return Wi.jsxs(YP,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[Wi.jsx(lL,{pageInfo:c}),Wi.jsx(UP,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:n,theme:e,interactions:r,rect:o,layout:i})]})};var uL=_(sL);var cL,dL={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。有关键盘导航的完整范围,请参阅文档。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。如需完整的鍵盤導覽,請參閱文件。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(cL||(cL={}));const pL=(e,t)=>n((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(dL).forEach((t=>{e.add(dL[t])}))}}(t),()=>((e,t,n)=>{let r=n||null;return({keys:n,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=n.map((e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;r===cL.FIRST?(u=s,r=cL.SECOND):(u=l,r=cL.FIRST),u.innerHTML=u.innerHTML.endsWith(" ")?a:`${a} `,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(e,t))),[e,t.language()]),fL={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},mL=({isNewHeadCellMenuEnabled:e,app:t,model:n,rootElement:r,layout:s,interactions:u,translator:c,selectionsAPI:d,theme:p,changeSortOrder:f,keyboard:m,rect:h,embed:g,reactRoot:b,applyColumnWidths:v,isFontLoaded:y,viewService:x,isLinksEnabled:S})=>{const{direction:E,footerContainer:C}=o(),w=Ti(s,x),R=ki(s,x),A=pL(r,c),P=w?{page:x.page||fL.page,rowsPerPage:x.rowsPerPage||fL.rowsPerPage,rowsPerPageOptions:fL.rowsPerPageOptions}:fL,[I,D]=i(P),[M]=a((async()=>R?async function(e,t,n,r,o){var i,a;const{page:l,rowsPerPage:s,rowsPerPageOptions:u}=n,c=t.qHyperCube.qSize.qcx,d=t.qHyperCube.qSize.qcy,p=Math.ceil(d/s),f=null!==(i=o.visibleTop)&&void 0!==i?i:l*s,m=null!==(a=o.visibleHeight)&&void 0!==a?a:Math.min(s,d-f);if(l>0&&f>=d)return r({...n,page:0}),null;if(m*c>Ri)return r({...n,rowsPerPage:Ai(c,u),page:0}),null;const h=d>10,g=Pi(t,o),b=Oi(t),v=!!t.snapshotData,y=v?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:f,qLeft:0,qHeight:m,qWidth:c}]);o&&!v&&(o.qTop=f,o.qHeight=m,o.rowsPerPage=n.rowsPerPage,o.page=n.page);const x=(null==y?void 0:y[0].qMatrix.map(((e,t)=>{const n=[];return b.forEach(((r,o)=>{n[o]={...e[o],align:Li(e[o],r.bodyTextAlign),rowIdx:t+f,colIdx:r.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:r.selectionColIdx,isSelectable:r.isDim&&!r.isLocked,isLastRow:t===m-1,isNumeric:wi(e[o]),representation:Ei(e[o],r.representation,r.qAttrExprInfoIDs.findIndex((e=>"url"===e)),r.qAttrExprInfoIDs.findIndex((e=>"urlLabel"===e)))}})),n})))||[];return{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:h,totalsPosition:g,columns:b,rows:x}}(n,s,I,D,x):null),[s,I,n,u,R]);l((()=>{!!(R&&b&&n&&(s.snapshotData||t)&&s&&M&&f&&p&&d&&y&&g)&&function(e,t){const{app:n,model:r,direction:o,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,isLinksEnabled:v,...y}=e,x=aA(o);null==t||t.render(Wi.jsx(xs,{stylisPlugins:"rtl"===o?[xf]:void 0,children:Wi.jsx(cf,{theme:x,children:Wi.jsx(oA,{app:n,model:r,tableData:h,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,isNewHeadCellMenuEnabled:y.isNewHeadCellMenuEnabled,isLinksEnabled:v,children:Wi.jsx($D,{...y,direction:o})})})}))}({app:t,model:n,rootElement:r,layout:s,tableData:M,direction:E,pageInfo:I,setPageInfo:D,interactions:u,translator:c,selectionsAPI:d,theme:p,changeSortOrder:f,keyboard:m,rect:h,footerContainer:C,announce:A,embed:g,applyColumnWidths:v,viewService:x,isNewHeadCellMenuEnabled:e,isLinksEnabled:S},b)}),[t,n,b,M,u,E,p.name(),m.active,A,f,v,R,s,d,g,r,I,D,c,h,C,y,e,S])},hL=e=>{const t=n((()=>ln(e)),[e]);return l((()=>()=>t.unmount()),[t]),t},gL=(e,t,r)=>n((()=>((e,t,n)=>{if(t)return async(r,o)=>{const{isDim:i,colIdx:a,qReverseSort:l,sortDirection:s,isActivelySorted:u}=r,c=i?a:a-e,d=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,p=[],f=o&&o!==s||!o&&u;u||(d.splice(d.indexOf(a),1),d.unshift(a),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),(n&&f||!n&&u)&&p.push({qPath:`/qHyperCubeDef/${i?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!l).toString()}),t.applyPatches(p,!0)}})(e.qDimensionInfo.length,t,r)),[e.qDimensionInfo.length,t,r]);const bL=({model:e,layout:t,shouldRender:n,page:r})=>{const[o]=a((async()=>{if(n&&e)return(async(e,t,n)=>{let{qDataPages:r}=t.qHyperCube;if(0!==n||void 0===r||0===r.length){const o=n*Math.min(kb,t.qHyperCube.qSize.qcy);r=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:r,derivedFrom:{layout:t,page:n}}})(e,t,r)}),[e,t,r]),i=(null==o?void 0:o.derivedFrom.layout)!==t||(null==o?void 0:o.derivedFrom.page)!==r;return{initialDataPages:null==o?void 0:o.initialDataPages,isLoading:i}},vL=({app:e,layout:t,model:r,rect:o,theme:a,keyboard:s,translator:u,interactions:c,selectionsAPI:d,changeSortOrder:p,rootElement:f,embed:m,reactRoot:h,applyColumnWidths:g,isFontLoaded:b,viewService:v,isNewHeadCellMenuEnabled:y,isLinksEnabled:x})=>{const S=!ki(t,v),C=n((()=>function(e,t,n){const r=Pi(e,n),o=Oi(e),i=e.qHyperCube.qSize.qcy,a=Math.min(kb,i),l=i>kb&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(t,c,v)),[t,c,v]),{pageInfo:w,setPage:R}=((e,t)=>{const[r,o]=i(0),a=Math.min(kb,e.qHyperCube.qSize.qcy),l=n((()=>({page:r,rowsPerPage:a,rowsPerPageOptions:[]})),[a,r]);if(t){const t=Math.floor(e.qHyperCube.qSize.qcy/kb);t<r&&o(t)}return{pageInfo:l,setPage:o}})(t,S),{initialDataPages:A,isLoading:P}=bL({model:r,layout:t,page:w.page,shouldRender:S});l((()=>{S&&r&&p&&A&&!P&&b&&function(e,t){const{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,isNewHeadCellMenuEnabled:x,isLinksEnabled:S}=e,C=aA("ltr");t.render(Wi.jsx(E.StrictMode,{children:Wi.jsx(cf,{theme:C,children:Wi.jsx(oA,{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,isNewHeadCellMenuEnabled:x,isLinksEnabled:S,children:Wi.jsx(uL,{})})})}))}({app:e,layout:t,model:r,rect:o,theme:a,keyboard:s,translator:u,interactions:c,selectionsAPI:d,rootElement:f,embed:m,changeSortOrder:p,tableData:C,applyColumnWidths:g,setPage:R,pageInfo:w,initialDataPages:A,viewService:v,isNewHeadCellMenuEnabled:y,isLinksEnabled:x},h)}),[e,t,r,o,a.name(),s.active,u,c,d,p,S,f,m,h,C,g,R,w,P,A,b,y,x])},yL=(e,t)=>{const{fontSize:n,fontFamily:r}=XR(t,e,!1),{fontSize:o,fontFamily:i}=JR(t,e),[l,s]=a((async()=>(await document.fonts.load(`600 ${n} ${r}`),await document.fonts.load(`${o} ${i}`),!0)),[n,r,o,i]);return s?(console.warn("Failed to load font:",s),!0):!!l},xL={version:JSON.stringify("3.3.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};var SL=()=>({properties:{initial:xL},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:$r,exportProperties:zr,exploration:Hr});function EL(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=(null==n?void 0:n.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:r.y+i.height+(t.atTop?l.height:0),bottom:r.y+r.height-(t.atBottom?l.height:0)},c=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(s,u),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(s,u),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const CL=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},wL=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const RL=(e,t,n,r)=>{var o;if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||fL.rowsPerPage,l=null!==(o=r.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},AL=(e,t,n)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const r=Pi(e,t);if(ki(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=EL(n,r);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:RL(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=null==n?void 0:n.getBoundingClientRect(),o=null==n?void 0:n.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=CL(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=r.y+r.height,b=(wL(m,h,g)?d:d+1)+c;let v=p+c;const y=CL(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(wL(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:RL(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},PL=({layout:e,viewService:t,model:n,rootElement:r,contentRect:o})=>{s((async i=>{if(!i.snapshotData||!n||i.snapshotData.content)return i;if(n.getHyperCubeData){i.qHyperCube||(i.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=AL(e,t,r);i.qHyperCube.qDataPages=await n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:e.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),i.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return i})),u((()=>({getViewState:()=>AL(e,t,r)})),[e,t,r])},IL=e=>{const{viewState:t}=o();return n((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.rowPartialHeight)&&void 0!==n?n:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(t,e.snapshotData)),[t,e.snapshotData,e.usePagination])},DL=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),ML=e=>e.getStyle("object","straightTableV2","backgroundColor")}}}));
|
|
192
|
+
`),kx.rippleVisible,$x,550,(({theme:e})=>e.transitions.easing.easeInOut),kx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),kx.child,kx.childLeaving,Bx,550,(({theme:e})=>e.transitions.easing.easeInOut),kx.childPulsate,Hx,(({theme:e})=>e.transitions.easing.easeInOut));var Vx=A.forwardRef((function(e,t){const r=px({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=jb(r,Ox),[s,l]=A.useState([]),u=A.useRef(0),c=A.useRef(null);A.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=A.useRef(!1),p=A.useRef(0),f=A.useRef(null),m=A.useRef(null);A.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=A.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,ta.jsx(Gx,{classes:{ripple:Ac(o.ripple,kx.ripple),rippleVisible:Ac(o.rippleVisible,kx.rippleVisible),ripplePulsate:Ac(o.ripplePulsate,kx.ripplePulsate),child:Ac(o.child,kx.child),childLeaving:Ac(o.childLeaving,kx.childLeaving),childPulsate:Ac(o.childPulsate,kx.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=A.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{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]),b=A.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=A.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return A.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),ta.jsx(Wx,zb({className:Ac(kx.root,o.root,i),ref:m},a,{children:ta.jsx(yh,{component:null,exit:!0,children:s})}))}));function Ux(e){return By("MuiButtonBase",e)}var Yx=Hy("MuiButtonBase",["root","disabled","focusVisible"]);const Kx=["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"],Xx=gx("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"},[`&.${Yx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Jx=A.forwardRef((function(e,t){const r=px({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:I,tabIndex:D=0,TouchRippleProps:L,touchRippleRef:P,type:M}=r,_=jb(r,Kx),T=A.useRef(null),k=A.useRef(null),O=Iy(k,P),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Ny(),[j,$]=A.useState(!1);l&&j&&$(!1),A.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[B,H]=A.useState(!1);A.useEffect((()=>{H(!0)}),[]);const W=B&&!u&&!l;function G(e,t,r=c){return Ay((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}A.useEffect((()=>{j&&d&&!u&&B&&k.current.pulsate()}),[u,d,j,B]);const V=G("start",S),U=G("stop",h),Y=G("stop",g),K=G("stop",C),X=G("stop",(e=>{j&&e.preventDefault(),E&&E(e)})),J=G("start",I),Z=G("stop",w),Q=G("stop",R),ee=G("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Ay((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=A.useRef(!1),oe=Ay((e=>{d&&!ne.current&&j&&k.current&&" "===e.key&&(ne.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=Ay((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(_.href||_.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===M?"button":M,se.disabled=l):(_.href||_.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Iy(t,z,T),ue=zb({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Id({root:["root",t&&"disabled",r&&"focusVisible"]},Ux,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ta.jsxs(Xx,zb({as:ae,className:Ac(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:D,type:M},se,_,{children:[i,W?ta.jsx(Vx,zb({ref:O,center:o},L)):null]}))}));var Zx=Jx;function Qx(e){return By("MuiTypography",e)}Hy("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const eS=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],tS=gx("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${vy(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>zb({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}))),rS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},nS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},oS=A.forwardRef((function(e,t){const r=px({props:e,name:"MuiTypography"}),n=(e=>nS[e]||e)(r.color),o=Zv(zb({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=rS}=o,f=jb(o,eS),m=zb({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=s||(c?"p":p[d]||rS[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Id({root:["root",i,"inherit"!==e.align&&`align${vy(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Qx,a)})(m);return ta.jsx(tS,zb({as:h,ref:t,ownerState:m,className:Ac(g.root,a)},f))}));var iS=oS;const aS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function sS(e){const t=[],r=[];return Array.from(e.querySelectorAll(aS)).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 lS(){return!0}function uS(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=sS,isEnabled:a=lS,open:s}=e,l=A.useRef(!1),u=A.useRef(null),c=A.useRef(null),d=A.useRef(null),p=A.useRef(null),f=A.useRef(!1),m=A.useRef(null),h=fd(t.ref,m),g=A.useRef(null);A.useEffect((()=>{s&&m.current&&(f.current=!r)}),[r,s]),A.useEffect((()=>{if(!s||!m.current)return;const e=ud(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&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),A.useEffect((()=>{if(!s||!m.current)return;const e=ud(m.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ta.jsxs(A.Fragment,{children:[ta.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),A.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)}}),ta.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const cS=A.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=A.useState(null),s=fd(A.isValidElement(r)?r.ref:null,t);if(nd((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),nd((()=>{if(i&&!o)return dd(t,i),()=>{dd(t,null)}}),[t,i,o]),o){if(A.isValidElement(r)){const e={ref:s};return A.cloneElement(r,e)}return ta.jsx(A.Fragment,{children:r})}return ta.jsx(A.Fragment,{children:i?j.createPortal(r,i):i})}));function dS(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function pS(e){return parseInt(cd(e).getComputedStyle(e).paddingRight,10)||0}function fS(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&&dS(e,o)}))}function mS(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function hS(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=ud(e);return t.body===e?cd(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(ud(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${pS(n)+e}px`;const t=ud(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${pS(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=ud(n).body;else{const t=n.parentElement,r=cd(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 gS=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&&dS(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);fS(t,e.mount,e.modalRef,n,!0);const o=mS(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=mS(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=hS(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=mS(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&&dS(e.modalRef,t),fS(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&&dS(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function bS(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=gS,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=A.useRef({}),f=A.useRef(null),m=A.useRef(null),h=fd(m,d),[g,b]=A.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},E=pd((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ud(f.current).body;o.add(x(),e),m.current&&S()})),C=A.useCallback((()=>o.isTopModal(x())),[o]),w=pd((e=>{f.current=e,e&&(c&&C()?S():m.current&&dS(m.current,y))})),R=A.useCallback((()=>{o.remove(x(),y)}),[y,o]);A.useEffect((()=>()=>{R()}),[R]),A.useEffect((()=>{c?E():v&&i||R()}),[c,R,v,i,E]);const I=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(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=Px(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=ia({},r,t);return ia({role:"presentation"},n,{onKeyDown:I(n),ref:h})},getBackdropProps:(e={})=>ia({"aria-hidden":!0},e,{onClick:D(e),open:c}),getTransitionProps:()=>({onEnter:ld((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:ld((()=>{b(!0),s&&s(),i&&R()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:v}}const vS=["onChange","maxRows","minRows","style","value"];function yS(e){return parseInt(e,10)||0}const xS={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function SS(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const ES=A.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=aa(e,vS),{current:l}=A.useRef(null!=a),u=A.useRef(null),c=fd(t,u),d=A.useRef(null),p=A.useRef(0),[f,m]=A.useState({outerHeightStyle:0}),h=A.useCallback((()=>{const t=u.current,r=cd(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,s=yS(r.paddingBottom)+yS(r.paddingTop),l=yS(r.borderBottomWidth)+yS(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?s+l:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),g=(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},b=A.useCallback((()=>{const e=h();SS(e)||m((t=>g(t,e)))}),[h]);nd((()=>{const e=()=>{p.current=0,(()=>{const e=h();SS(e)||j.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=u.current,n=cd(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]),nd((()=>{b()})),A.useEffect((()=>{p.current=0}),[a]);return ta.jsxs(A.Fragment,{children:[ta.jsx("textarea",ia({value:a,onChange:e=>{p.current=0,l||b(),r&&r(e)},ref:c,rows:o,style:ia({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},s)),ta.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:ia({},xS,i,{paddingTop:0,paddingBottom:0})})]})}));function CS({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 wS=A.createContext(void 0);function RS(){return A.useContext(wS)}function AS(e){return ta.jsx(Kv,zb({},e,{defaultTheme:cx,themeId:Fb}))}function IS(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function DS(e,t=!1){return e&&(IS(e.value)&&""!==e.value||t&&IS(e.defaultValue)&&""!==e.defaultValue)}function LS(e){return By("MuiInputBase",e)}var PS=Hy("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const MS=["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"],_S=(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${vy(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},TS=(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]},kS=gx("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_S})((({theme:e,ownerState:t})=>zb({},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",[`&.${PS.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&zb({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),OS=gx("input",{name:"MuiInputBase",slot:"Input",overridesResolver:TS})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=zb({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 zb({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] + .${PS.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},[`&.${PS.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"})})),qS=ta.jsx(AS,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),NS=A.forwardRef((function(e,t){var r;const n=px({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:w,onClick:R,onFocus:I,onKeyDown:D,onKeyUp:L,placeholder:P,readOnly:M,renderSuffix:_,rows:T,slotProps:k={},slots:O={},startAdornment:q,type:N="text",value:F}=n,z=jb(n,MS),j=null!=b.value?b.value:F,{current:$}=A.useRef(null!=j),B=A.useRef(),H=A.useCallback((e=>{}),[]),W=Iy(B,v,b.ref,H),[G,V]=A.useState(!1),U=RS(),Y=CS({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:G,A.useEffect((()=>{!U&&d&&G&&(V(!1),C&&C())}),[U,d,G,C]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=A.useCallback((e=>{DS(e)?K&&K():X&&X()}),[K,X]);Sy((()=>{$&&J({value:j})}),[j,J,$]);A.useEffect((()=>{J(B.current)}),[]);let Z=g,Q=b;S&&"input"===Z&&(Q=zb(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:y,minRows:x},Q),Z=ES);A.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=zb({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:S,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Id({root:["root",`color${vy(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${vy(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"]},LS,t)})(ee),re=O.root||l.Root||kS,ne=k.root||u.root||{},oe=O.input||l.Input||OS;return Q=zb({},Q,null!=(r=k.input)?r:u.input),ta.jsxs(A.Fragment,{children:[!p&&qS,ta.jsxs(re,zb({},ne,!Lx(re)&&{ownerState:zb({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),R&&R(e)}},z,{className:Ac(te.root,ne.className,s,M&&"MuiInputBase-readOnly"),children:[q,ta.jsx(wS.Provider,{value:null,children:ta.jsx(oe,zb({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:E,placeholder:P,readOnly:M,required:Y.required,rows:T,value:j,onKeyDown:D,onKeyUp:L,type:N},Q,!Lx(oe)&&{as:Z,ownerState:zb({},ee,Q.ownerState)},{ref:W,className:Ac(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(Nb(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):V(!0))}}))}),f,_?_(zb({},Y,{startAdornment:q})):null]}))]})}));var FS=NS;function zS(e){return By("MuiInput",e)}var jS=zb({},PS,Hy("MuiInput",["root","underline","input"]));function $S(e){return By("MuiOutlinedInput",e)}var BS=zb({},PS,Hy("MuiOutlinedInput",["root","notchedOutline","input"]));function HS(e){return By("MuiFilledInput",e)}var WS=zb({},PS,Hy("MuiFilledInput",["root","underline","input"])),GS=function(e,t){function r(r,n){return ta.jsx(Ex,zb({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Ex.muiName,A.memo(A.forwardRef(r))}(ta.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const VS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],US={entering:{opacity:1},entered:{opacity:1}},YS=A.forwardRef((function(e,t){const r=dx(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:b=fh}=e,v=jb(e,VS),y=A.useRef(null),x=Iy(y,a.ref,t),S=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},E=S(d),C=S(((e,t)=>{Cx(e);const n=wx({style:h,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),w=S(c),R=S(m),I=S((e=>{const t=wx({style:h,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),D=S(f);return ta.jsx(b,zb({appear:i,in:l,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:I,onExited:D,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>A.cloneElement(a,zb({style:zb({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},US[e],h,a.props.style),ref:x},t))}))}));var KS=YS;function XS(e){return By("MuiBackdrop",e)}Hy("MuiBackdrop",["root","invisible"]);const JS=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ZS=gx("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>zb({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"}))),QS=A.forwardRef((function(e,t){var r,n,o;const i=px({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=KS,transitionDuration:g}=i,b=jb(i,JS),v=zb({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Id({root:["root",r&&"invisible"]},XS,t)})(v),x=null!=(r=f.root)?r:c.root;return ta.jsx(h,zb({in:p,timeout:g},b,{children:ta.jsx(ZS,zb({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:l,className:Ac(y.root,s,null==x?void 0:x.className),ownerState:zb({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var eE=QS;var tE=Hy("MuiBox",["root"]);const rE=ux(),nE=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Hb("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Bv);return A.forwardRef((function(e,a){const s=Yv(r),l=Zv(e),{className:u,component:c="div"}=l,d=aa(l,Qv);return ta.jsx(i,ia({as:c,ref:a,className:Ac(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Fb,defaultTheme:rE,defaultClassName:tE.root,generateClassName:jy.generate});var oE=nE;function iE(e){return By("MuiButton",e)}var aE=Hy("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 sE=A.createContext({});var lE=A.createContext(void 0);const uE=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],cE=e=>zb({},"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}}),dE=gx(Zx,{shouldForwardProp:e=>fx(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${vy(r.color)}`],t[`size${vy(r.size)}`],t[`${r.variant}Size${vy(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 zb({},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":zb({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:my(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})`:my(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})`:my(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":zb({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${aE.focusVisible}`]:zb({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${aE.disabled}`]:zb({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 ${my(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"},[`&.${aE.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${aE.disabled}`]:{boxShadow:"none"}})),pE=gx("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${vy(r.size)}`]]}})((({ownerState:e})=>zb({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},cE(e)))),fE=gx("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${vy(r.size)}`]]}})((({ownerState:e})=>zb({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},cE(e)))),mE=A.forwardRef((function(e,t){const r=A.useContext(sE),n=A.useContext(lE),o=px({props:Fy(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,y=jb(o,uE),x=zb({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return zb({},a,Id({root:["root",i,`${i}${vy(t)}`,`size${vy(o)}`,`${i}Size${vy(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${vy(o)}`],endIcon:["endIcon",`iconSize${vy(o)}`]},iE,a))})(x),E=g&&ta.jsx(pE,{className:S.startIcon,ownerState:x,children:g}),C=p&&ta.jsx(fE,{className:S.endIcon,ownerState:x,children:p}),w=n||"";return ta.jsxs(dE,zb({ownerState:x,className:Ac(r.className,S.root,l,w),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:Ac(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[E,i,C]}))}));var hE=mE;function gE(e){return By("MuiModal",e)}Hy("MuiModal",["root","hidden","backdrop"]);const bE=["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"],vE=gx("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})=>zb({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),yE=gx(eE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),xE=A.forwardRef((function(e,t){var r,n,o,i,a,s;const l=px({name:"MuiModal",props:e}),{BackdropComponent:u=yE,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:I,open:D,slotProps:L,slots:P}=l,M=jb(l,bE),_=zb({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:T,getBackdropProps:k,getTransitionProps:O,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=bS(zb({},_,{rootRef:t})),j=zb({},_,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Id({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},gE,n)})(j),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=O();B.onEnter=e,B.onExited=t}const H=null!=(r=null!=(n=null==P?void 0:P.root)?n:g.Root)?r:vE,W=null!=(o=null!=(i=null==P?void 0:P.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==L?void 0:L.root)?a:b.root,V=null!=(s=null==L?void 0:L.backdrop)?s:b.backdrop,U=Tx({elementType:H,externalSlotProps:G,externalForwardedProps:M,getSlotProps:T,additionalProps:{ref:t,as:h},ownerState:j,className:Ac(d,null==G?void 0:G.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),Y=Tx({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(zb({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Ac(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return R||D||z&&!F?ta.jsx(cS,{ref:q,container:m,disablePortal:S,children:ta.jsxs(H,zb({},U,{children:[!w&&u?ta.jsx(W,zb({},Y)):null,ta.jsx(uS,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:N,open:D,children:A.cloneElement(f,B)})]}))}):null}));var SE=xE;function EE(e){return By("MuiDivider",e)}var CE=Hy("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const wE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],RE=gx("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})=>zb({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)`:my(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})=>zb({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>zb({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>zb({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>zb({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),AE=gx("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>zb({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)`}))),IE=A.forwardRef((function(e,t){const r=px({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=jb(r,wE),m=zb({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Id({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},EE,n)})(m);return ta.jsx(RE,zb({as:a,className:Ac(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?ta.jsx(AE,{className:h.wrapper,ownerState:m,children:o}):null}))}));IE.muiSkipListHighlight=!0;var DE=IE;const LE=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],PE=gx(kS,{shouldForwardProp:e=>fx(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[..._S(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return zb({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}},[`&.${WS.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${WS.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${WS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${WS.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(.${WS.disabled}, .${WS.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${WS.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&zb({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}))})),ME=gx(OS,{name:"MuiFilledInput",slot:"Input",overridesResolver:TS})((({theme:e,ownerState:t})=>zb({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}))),_E=A.forwardRef((function(e,t){var r,n,o,i;const a=px({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=jb(a,LE),g=zb({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return zb({},t,Id({root:["root",!r&&"underline"],input:["input"]},HS,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?by(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:PE,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:ME;return ta.jsx(FS,zb({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));_E.muiName="Input";var TE=_E;const kE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function OE(e){return`scale(${e}, ${e**2})`}const qE={entering:{opacity:1,transform:OE(1)},entered:{opacity:1,transform:"none"}},NE="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),FE=A.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=fh}=e,g=jb(e,kE),b=A.useRef(),v=A.useRef(),y=dx(),x=A.useRef(null),S=Iy(x,o.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(u),w=E(((e,t)=>{Cx(e);const{duration:r,delay:n,easing:o}=wx({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:NE?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),R=E(l),I=E(p),D=E((e=>{const{duration:t,delay:r,easing:n}=wx({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:NE?o:.666*o,delay:NE?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=OE(.75),c&&c(e)})),L=E(d);return A.useEffect((()=>()=>{clearTimeout(b.current)}),[]),ta.jsx(h,zb({appear:n,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:D,onExited:L,onExiting:I,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),r&&r(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>A.cloneElement(o,zb({style:zb({opacity:0,transform:OE(.75),visibility:"exited"!==e||a?void 0:"hidden"},qE[e],f,o.props.style),ref:S},t))}))}));FE.muiSupportAuto=!0;var zE=FE;const jE=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],$E=gx(kS,{shouldForwardProp:e=>fx(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[..._S(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})`),zb({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"},[`&.${jS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jS.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(.${jS.disabled}, .${jS.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${jS.disabled}:before`]:{borderBottomStyle:"dotted"}})})),BE=gx(OS,{name:"MuiInput",slot:"Input",overridesResolver:TS})({}),HE=A.forwardRef((function(e,t){var r,n,o,i;const a=px({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=jb(a,jE),b=(e=>{const{classes:t,disableUnderline:r}=e;return zb({},t,Id({root:["root",!r&&"underline"],input:["input"]},zS,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?by(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:l.Root)?r:$E,S=null!=(o=null!=(i=m.input)?i:l.Input)?o:BE;return ta.jsx(FS,zb({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));HE.muiName="Input";var WE=HE;function GE(e){return By("MuiLink",e)}var VE=Hy("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const UE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var YE=({theme:e,ownerState:t})=>{const r=(e=>UE[e]||e)(t.color),n=Jb(e,`palette.${r}`,!1)||t.color,o=Jb(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:my(n,.4)};const KE=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],XE=gx(iS,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${vy(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>zb({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&zb({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:YE({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${VE.focusVisible}`]:{outline:"auto"}}))),JE=A.forwardRef((function(e,t){const r=px({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=jb(r,KE),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=Ny(),[b,v]=A.useState(!1),y=Iy(t,g),x=zb({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Id({root:["root",`underline${vy(o)}`,"button"===r&&"button",n&&"focusVisible"]},GE,t)})(x);return ta.jsx(XE,zb({color:o,className:Ac(S.root,n),classes:l,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(UE).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var ZE=JE;var QE=A.createContext({});function eC(e){return By("MuiList",e)}Hy("MuiList",["root","padding","dense","subheader"]);const tC=["children","className","component","dense","disablePadding","subheader"],rC=gx("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})=>zb({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var nC=A.forwardRef((function(e,t){const r=px({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=jb(r,tC),c=A.useMemo((()=>({dense:a})),[a]),d=zb({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Id({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},eC,t)})(d);return ta.jsx(QE.Provider,{value:c,children:ta.jsxs(rC,zb({as:i,className:Ac(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function oC(e){return By("MuiListItemIcon",e)}var iC=Hy("MuiListItemIcon",["root","alignItemsFlexStart"]);const aC=["className"],sC=gx("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})=>zb({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var lC=A.forwardRef((function(e,t){const r=px({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=jb(r,aC),i=zb({},r,{alignItems:A.useContext(QE).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Id({root:["root","flex-start"===t&&"alignItemsFlexStart"]},oC,r)})(i);return ta.jsx(sC,zb({className:Ac(a.root,n),ownerState:i,ref:t},o))}));var uC=Hy("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const cC=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function dC(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function pC(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function fC(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 mC(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&fC(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}var hC=A.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=jb(e,cC),p=A.useRef(null),f=A.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Sy((()=>{n&&p.current.focus()}),[n]),A.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(yy(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=Iy(p,t);let h=-1;A.Children.forEach(i,((e,t)=>{A.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=A.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),A.cloneElement(e,t)}return e}));return ta.jsx(nC,zb({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=yy(t).activeElement;if("ArrowDown"===r)e.preventDefault(),mC(t,n,l,s,dC);else if("ArrowUp"===r)e.preventDefault(),mC(t,n,l,s,pC);else if("Home"===r)e.preventDefault(),mC(t,null,l,s,dC);else if("End"===r)e.preventDefault(),mC(t,null,l,s,pC);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&fC(n,o);o.previousKeyMatched&&(l||mC(t,n,!1,s,dC,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function gC(e){return By("MuiPopover",e)}Hy("MuiPopover",["root","paper"]);const bC=["onEntering"],vC=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],yC=["slotProps"];function xC(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function SC(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function EC(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function CC(e){return"function"==typeof e?e():e}const wC=gx(SE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),RC=gx(Dx,{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 AC=A.forwardRef((function(e,t){var r,n,o;const i=px({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=zE,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=jb(i.TransitionProps,bC),I=jb(i,vC),D=null!=(r=null==y?void 0:y.paper)?r:b,L=A.useRef(),P=Iy(L,D.ref),M=zb({},i,{anchorOrigin:l,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:D,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),_=(e=>{const{classes:t}=e;return Id({root:["root"],paper:["paper"]},gC,t)})(M),T=A.useCallback((()=>{if("anchorPosition"===c)return u;const e=CC(s),t=(e&&1===e.nodeType?e:yy(L.current).body).getBoundingClientRect();return{top:t.top+xC(t,l.vertical),left:t.left+SC(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),k=A.useCallback((e=>({vertical:xC(e,x.vertical),horizontal:SC(e,x.horizontal)})),[x.horizontal,x.vertical]),O=A.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=k(t);if("none"===c)return{top:null,left:null,transformOrigin:EC(r)};const n=T();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=xy(CC(s)),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(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:EC(r)}}),[s,c,T,k,h]),[q,N]=A.useState(g),F=A.useCallback((()=>{const e=L.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[O]);A.useEffect((()=>(w&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,w,F]);A.useEffect((()=>{g&&F()})),A.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),A.useEffect((()=>{if(!g)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=xy(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,F]);let z=E;"auto"!==E||S.muiSupportAuto||(z=void 0);const j=f||(s?yy(CC(s)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:wC,B=null!=(o=null==v?void 0:v.paper)?o:RC,H=Tx({elementType:B,externalSlotProps:zb({},D,{style:q?D.style:zb({},D.style,{opacity:0})}),additionalProps:{elevation:m,ref:P},ownerState:M,className:Ac(_.paper,null==D?void 0:D.className)}),W=Tx({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:M,className:Ac(_.root,p)}),{slotProps:G}=W,V=jb(W,yC);return ta.jsx($,zb({},V,!Lx($)&&{slotProps:G,disableScrollLock:w},{children:ta.jsx(S,zb({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),F()},onExited:()=>{N(!1)},timeout:z},R,{children:ta.jsx(B,zb({},H,{children:d}))}))}))}));function IC(e){return By("MuiMenu",e)}Hy("MuiMenu",["root","paper","list"]);const DC=["onEntering"],LC=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],PC={vertical:"top",horizontal:"right"},MC={vertical:"top",horizontal:"left"},_C=gx(AC,{shouldForwardProp:e=>fx(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),TC=gx(RC,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),kC=gx(hC,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var OC=A.forwardRef((function(e,t){var r,n;const o=px({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=jb(o.TransitionProps,DC),x=jb(o,LC),S=dx(),E="rtl"===S.direction,C=zb({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return Id({root:["root"],paper:["paper"],list:["list"]},IC,t)})(C),R=i&&!l&&d,I=A.useRef(null);let D=-1;A.Children.map(a,((e,t)=>{A.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===D)&&(D=t))}));const L=null!=(r=b.paper)?r:TC,P=null!=(n=v.paper)?n:p,M=Tx({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,s]}),_=Tx({elementType:L,externalSlotProps:P,ownerState:C,className:w.paper});return ta.jsx(_C,zb({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?PC:MC,slots:{paper:L,root:b.root},slotProps:{root:M,paper:_},open:d,ref:t,transitionDuration:m,TransitionProps:zb({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:ta.jsx(kC,zb({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:I,autoFocus:i&&(-1===D||l),autoFocusItem:R,variant:g},u,{className:Ac(w.list,u.className),children:a}))}))}));function qC(e){return By("MuiMenuItem",e)}var NC=Hy("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const FC=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],zC=gx(Zx,{shouldForwardProp:e=>fx(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})=>zb({},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"}},[`&.${NC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:my(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${NC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:my(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${NC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:my(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})`:my(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${NC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${NC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${CE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${CE.inset}`]:{marginLeft:52},[`& .${uC.root}`]:{marginTop:0,marginBottom:0},[`& .${uC.inset}`]:{paddingLeft:36},[`& .${iC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&zb({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${iC.root} svg`]:{fontSize:"1.25rem"}}))));var jC=A.forwardRef((function(e,t){const r=px({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=jb(r,FC),f=A.useContext(QE),m=A.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),h=A.useRef(null);Sy((()=>{n&&h.current&&h.current.focus()}),[n]);const g=zb({},r,{dense:m.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return zb({},a,Id({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},qC,a))})(r),v=Iy(h,t);let y;return r.disabled||(y=void 0!==c?c:-1),ta.jsx(QE.Provider,{value:m,children:ta.jsx(zC,zb({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Ac(b.focusVisible,l),className:Ac(b.root,d)},p,{ownerState:g,classes:b}))})}));function $C(e){return By("MuiNativeSelect",e)}var BC=Hy("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const HC=["className","disabled","error","IconComponent","inputRef","variant"],WC=({ownerState:e,theme:t})=>zb({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":zb({},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"},[`&.${BC.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}}),GC=gx("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:fx,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${BC.multiple}`]:t.multiple}]}})(WC),VC=({ownerState:e,theme:t})=>zb({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${BC.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),UC=gx("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${vy(r.variant)}`],r.open&&t.iconOpen]}})(VC),YC=A.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=jb(e,HC),u=zb({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Id({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${vy(r)}`,i&&"iconOpen",n&&"disabled"]},$C,t)})(u);return ta.jsxs(A.Fragment,{children:[ta.jsx(GC,zb({ownerState:u,className:Ac(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:ta.jsx(UC,{as:i,ownerState:u,className:c.icon})]})}));var KC,XC=YC;const JC=["children","classes","className","label","notched"],ZC=gx("fieldset",{shouldForwardProp:fx})({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%"}),QC=gx("legend",{shouldForwardProp:fx})((({ownerState:e,theme:t})=>zb({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&&zb({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 ew=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],tw=gx(kS,{shouldForwardProp:e=>fx(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:_S})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return zb({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${BS.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${BS.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${BS.focused} .${BS.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${BS.error} .${BS.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${BS.disabled} .${BS.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&zb({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),rw=gx((function(e){const{className:t,label:r,notched:n}=e,o=jb(e,JC),i=null!=r&&""!==r,a=zb({},e,{notched:n,withLabel:i});return ta.jsx(ZC,zb({"aria-hidden":!0,className:t,ownerState:a},o,{children:ta.jsx(QC,{ownerState:a,children:i?ta.jsx("span",{children:r}):KC||(KC=ta.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}})),nw=gx(OS,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:TS})((({theme:e,ownerState:t})=>zb({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}))),ow=A.forwardRef((function(e,t){var r,n,o,i,a;const s=px({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=s,g=jb(s,ew),b=(e=>{const{classes:t}=e;return zb({},t,Id({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},$S,t))})(s),v=RS(),y=CS({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=zb({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(r=null!=(n=m.root)?n:l.Root)?r:tw,E=null!=(o=null!=(i=m.input)?i:l.Input)?o:nw;return ta.jsx(FS,zb({slots:{root:S,input:E},renderSuffix:e=>ta.jsx(rw,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=ta.jsxs(A.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:zb({},b,{notchedOutline:null})}))}));ow.muiName="Input";var iw=ow;function aw(e){return By("MuiSelect",e)}var sw,lw=Hy("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const uw=["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"],cw=gx("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${lw.select}`]:t.select},{[`&.${lw.select}`]:t[r.variant]},{[`&.${lw.error}`]:t.error},{[`&.${lw.multiple}`]:t.multiple}]}})(WC,{[`&.${lw.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),dw=gx("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${vy(r.variant)}`],r.open&&t.iconOpen]}})(VC),pw=gx("input",{shouldForwardProp:e=>mx(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 fw(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function mw(e){return null==e||"string"==typeof e&&!e.trim()}const hw=A.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:I,renderValue:D,SelectDisplayProps:L={},tabIndex:P,value:M,variant:_="standard"}=e,T=jb(e,uw),[k,O]=Ry({controlled:M,default:c,name:"Select"}),[q,N]=Ry({controlled:R,default:u,name:"Select"}),F=A.useRef(null),z=A.useRef(null),[j,$]=A.useState(null),{current:B}=A.useRef(null!=R),[H,W]=A.useState(),G=Iy(t,h),V=A.useCallback((e=>{z.current=e,e&&$(e)}),[]),U=null==j?void 0:j.parentNode;A.useImperativeHandle(G,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),A.useEffect((()=>{u&&q&&j&&!B&&(W(a?null:U.clientWidth),z.current.focus())}),[j,a]),A.useEffect((()=>{i&&z.current.focus()}),[i]),A.useEffect((()=>{if(!g)return;const e=yy(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?w&&w(t):E&&E(t),B||(W(a?null:U.clientWidth),N(e))},K=A.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){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&&(O(r),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),S(o,e)}v||Y(!1,t)}},J=null!==j&&q;let Z,Q;delete T["aria-invalid"];const ee=[];let te=!1;(DS({value:k})||p)&&(D?Z=D(k):te=!0);const re=K.map((e=>{if(!A.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(Nb(2));t=k.some((t=>fw(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=fw(k,e.props.value),t&&te&&(Q=e.props.children);return A.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=H;!a&&B&&j&&(oe=U.clientWidth),ne=void 0!==P?P:d?null:0;const ie=L.id||(y?`mui-component-select-${y}`:void 0),ae=zb({},e,{variant:_,value:k,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Id({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${vy(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},aw,t)})(ae),le=zb({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=wy();return ta.jsxs(A.Fragment,{children:[ta.jsx(cw,zb({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:y}}),x(e))},onFocus:C},L,{ownerState:ae,className:Ac(L.className,se.select,l),id:ie,children:mw(Z)?sw||(sw=ta.jsx("span",{className:"notranslate",children:""})):Z})),ta.jsx(pw,zb({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(O(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},T)),ta.jsx(dw,{as:m,className:se.icon,ownerState:ae}),ta.jsx(OC,zb({id:`menu-${y||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:zb({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:zb({},b.slotProps,{paper:zb({},le,{style:zb({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}));var gw=hw;const bw=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],vw=["root"],yw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>fx(e)&&"variant"!==e,slot:"Root"},xw=gx(WE,yw)(""),Sw=gx(iw,yw)(""),Ew=gx(TE,yw)(""),Cw=A.forwardRef((function(e,t){const r=px({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=GS,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=r,w=jb(r,bw),R=b?XC:gw,I=CS({props:r,muiFormControl:RS(),states:["variant","error"]}),D=I.variant||C,L=zb({},r,{variant:D,classes:i}),P=(e=>{const{classes:t}=e;return t})(L),M=jb(P,vw),_=d||{standard:ta.jsx(xw,{ownerState:L}),outlined:ta.jsx(Sw,{label:f,ownerState:L}),filled:ta.jsx(Ew,{ownerState:L})}[D],T=Iy(t,_.ref);return ta.jsx(A.Fragment,{children:A.cloneElement(_,zb({inputComponent:R,inputProps:zb({children:o,error:I.error,IconComponent:u,variant:D,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:zb({id:c},E)},p,{classes:p?by(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===D?{notched:!0}:{},{ref:T,className:Ac(_.props.className,a,P.root)},!d&&{variant:D},w))})}));Cw.muiName="Select";var ww=Cw,Rw=(e={})=>E.createElement(Cb,{...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("rect",{stroke:ab.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Aw={MuiAccordion:{styleOverrides:{root:{backgroundColor:ab.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:ab.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:E.createElement(xb,{"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 ${ab.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:ab.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${ab.MISC_FOCUS_BORDER}`,borderRadius:db,backgroundColor:ab.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 ${ab.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:ab.WHITE,color:ab.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:db},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ab.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:ab.GREYSCALE_0_15,backgroundColor:ab.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:ab.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ab.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:ab.GREEN_PALE},"&:active":{backgroundColor:ab.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ab.GREEN_PALE,boxShadow:`0 0 0 3px ${my(ab.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:ab.BLUE_PALE},"&:active":{backgroundColor:ab.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ab.BLUE_PALE,boxShadow:`0 0 0 3px ${my(ab.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:db,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:ab.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ab.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:ab.GREYSCALE_0_15,backgroundColor:ab.GREYSCALE_100_60,"&:active":{backgroundColor:ab.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:ab.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ab.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:ab.PURPLE,"&.Mui-focusVisible":{borderColor:ab.PURPLE,boxShadow:`0 0 0 3px ${my(ab.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:ab.GREEN,"&.Mui-focusVisible":{borderColor:ab.GREEN,boxShadow:`0 0 0 3px ${my(ab.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:ab.BLUE,"&.Mui-focusVisible":{borderColor:ab.BLUE,boxShadow:`0 0 0 3px ${my(ab.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:ab.ORANGE,"&.Mui-focusVisible":{borderColor:ab.ORANGE,boxShadow:`0 0 0 3px ${my(ab.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:ab.RED,"&.Mui-focusVisible":{borderColor:ab.RED,boxShadow:`0 0 0 3px ${my(ab.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:ab.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:ab.PURPLE_PALE},"&:active":{backgroundColor:ab.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:ab.PURPLE_PALE,boxShadow:`0 0 0 3px ${my(ab.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:ab.GREEN_PALE},"&:active":{backgroundColor:ab.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ab.GREEN_PALE,boxShadow:`0 0 0 3px ${my(ab.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:ab.BLUE_PALE},"&:active":{backgroundColor:ab.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ab.BLUE_PALE,boxShadow:`0 0 0 3px ${my(ab.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:ab.ORANGE_PALE},"&:active":{backgroundColor:ab.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:ab.ORANGE_PALE,boxShadow:`0 0 0 3px ${my(ab.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:ab.RED_PALE},"&:active":{backgroundColor:ab.RED_DARK},"&.Mui-focusVisible":{borderColor:ab.RED_PALE,boxShadow:`0 0 0 3px ${my(ab.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:ab.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:ab.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:db,boxShadow:`inset 0 0 0 2px ${ab.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:E.createElement(Eb,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:sb,borderRadius:db,color:ab.TEXT_PRIMARY,backgroundColor:ab.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:ab.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${ab.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:ab.GREYSCALE_0_05,color:ab.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:ab.GREEN,borderColor:ab.GREEN},"&.MuiChip-outlinedInfo":{color:ab.BLUE,borderColor:ab.BLUE},"&.MuiChip-outlinedWarning":{color:ab.ORANGE,borderColor:ab.ORANGE},"&.MuiChip-outlinedError":{color:ab.RED,borderColor:ab.RED}},outlined:{border:`solid 1px ${ab.GREYSCALE_0_15}`,backgroundColor:ab.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:db,boxShadow:"none",backgroundColor:ab.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:ab.GREEN,borderColor:ab.GREEN},outlinedSecondary:{color:ab.BLUE,borderColor:ab.BLUE},label:{fontFamily:gb.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:E.createElement(Eb,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:E.createElement(xb,{"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:db},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:db,fontSize:lb,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:ab.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${ab.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:ab.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:ab.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:ab.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:db,border:`solid 1px ${ab.GREYSCALE_0_15}`,color:ab.GREYSCALE_0_60,marginRight:0,width:cb,height:cb},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${ab.GREYSCALE_0_15}`},clearIndicator:{borderRadius:db,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:ab.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:lb}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:sb,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:ab.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:ab.GREYSCALE_25,fontSize:sb,fontFamily:gb.FONT_FAMILY,fontWeight:mb,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:ab.TEXT_PRIMARY},"&.Mui-error":{color:ab.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:ab.TEXT_SECONDARY,content:"'(optional)'",fontWeight:fb,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:ab.TEXT_SECONDARY,content:"'(required)'",fontWeight:fb,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:lb,lineHeight:"16px",backgroundColor:ab.WHITE,borderRadius:db,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ab.GREYSCALE_0_05}`,borderColor:ab.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ab.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${ab.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${ab.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ab.RED}`,boxShadow:`0px 0px 0px 1px ${ab.RED}, inset 0 2px 0 0 ${ab.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ab.GREYSCALE_0_10}`,borderColor:ab.GREYSCALE_0_10,backgroundColor:ab.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:ab.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:ab.GREYSCALE_0_15,borderRadius:db,boxShadow:`inset 0 2px 0 0 ${ab.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>E.createElement(xb,{...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:ab.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:ab.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:ab.GREYSCALE_0_03},"&:active":{backgroundColor:ab.GREYSCALE_0_10},"&:focus":{backgroundColor:ab.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${ab.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${ab.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:ab.GREYSCALE_0_30,"&:hover":{backgroundColor:ab.GREYSCALE_0_0,borderColor:ab.GREYSCALE_0_15},"& ~svg":{color:ab.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${ab.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:db}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:ab.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${ab.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:ab.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:lb,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:sb,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:sb,fontWeight:mb,color:ab.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:mb}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${ab.GREYSCALE_0_15}, 0px 0px 0px 1px ${ab.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:E.createElement(Ab,null),checkedIcon:E.createElement(Ib,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:ab.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${ab.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:ab.GREEN_PALE,boxShadow:`0 0 0 3px ${my(ab.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:ab.BLUE_PALE,boxShadow:`0 0 0 3px ${my(ab.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:ab.GREYSCALE_0_20}},"&.Mui-disabled":{fill:ab.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:E.createElement(Rw,null),checkedIcon:E.createElement(wb,null),indeterminateIcon:E.createElement(Rb,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:db,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:ab.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:ab.GREYSCALE_0_55,color:ab.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:ab.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:ab.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:ab.GREYSCALE_0_55,"&:hover":{color:ab.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:ab.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:ab.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:lb,color:ab.TEXT_PRIMARY,lineHeight:"16px",fontWeight:mb},secondary:{fontSize:sb,color:ab.GREYSCALE_45,fontWeight:fb,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:lb,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:ab.GREYSCALE_0_03},"&:active":{backgroundColor:ab.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:lb,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:ab.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:sb,borderBottom:`solid 1px ${ab.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:lb,color:ab.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:ab.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:ab.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:ab.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:ab.RED}}},"&.Mui-focusVisible":{backgroundColor:ab.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:ab.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:ab.GREEN,height:"24px","&.Mui-disabled":{color:ab.GREYSCALE_0_15}},rail:{backgroundColor:ab.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${ab.GREYSCALE_0_05}`,borderRadius:db,boxShadow:`inset 0px 0px 0px 1px ${ab.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${ab.GREYSCALE_0_05}`,borderRadius:db},thumb:{height:"16px",width:"16px",borderRadius:db,backgroundColor:ab.WHITE,boxShadow:`0px 1px 2px 0px ${ab.GREYSCALE_0_15}, 0px 0px 0px 1px ${ab.GREYSCALE_0_05}`,"&:hover":{borderRadius:db,boxShadow:`0 2px 4px 0 ${ab.GREYSCALE_0_30}, 0 0 0 1px ${ab.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${ab.GREYSCALE_0_15}, 0 0 0 1px ${ab.GREYSCALE_0_06}, 0 0 0 2px ${ab.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${ab.GREYSCALE_0_15}, 0 0 0 1px ${ab.GREYSCALE_0_06}, 0 0 0 2px ${ab.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:ab.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:ab.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:ab.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:ab.GREYSCALE_0_15},markLabel:{color:ab.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:ab.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:ab.WHITE,color:ab.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:ab.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:ab.GREEN_PALE,boxShadow:`0 0 0 3px ${my(ab.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ab.BLUE_PALE,boxShadow:`0 0 0 3px ${my(ab.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:ab.GREYSCALE_0_15,borderRadius:db},thumb:{height:"16px",width:"16px",borderRadius:db,backgroundColor:ab.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:lb,fontWeight:mb,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${ab.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${ab.MISC_FOCUS_BORDER}`,backgroundColor:ab.GREYSCALE_0_03,borderRadius:db},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:ab.GREYSCALE_25,"&.Mui-selected":{color:ab.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:lb,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${ab.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${ab.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${ab.GREYSCALE_85}`,borderRight:`1px solid ${ab.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:mb,backgroundColor:ab.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:ab.GREYSCALE_98,borderBottom:`1px solid ${ab.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${ab.GREYSCALE_85}`,borderTop:`1px solid ${ab.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:ab.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:ab.GREYSCALE_0_05,"&:hover":{backgroundColor:ab.GREYSCALE_0_03}},"&&:hover":{backgroundColor:ab.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>E.createElement(Db,{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 ${ab.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:lb,borderRadius:db,padding:"7px 16px",border:`1px solid ${ab.GREYSCALE_0_15}`,backgroundColor:ab.GREYSCALE_100_60,color:ab.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:ab.GREYSCALE_0_10,border:`1px solid ${ab.GREYSCALE_0_30}`},"&:hover":{backgroundColor:ab.GREYSCALE_0_03,border:`1px solid ${ab.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:ab.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${ab.MISC_FOCUS_BORDER}`,border:`1px solid ${ab.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:ab.GREYSCALE_25,backgroundColor:ab.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:ab.GREYSCALE_0_10,border:`1px solid ${ab.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:sb,height:24,width:24,padding:7},sizeLarge:{fontSize:ub,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:lb,borderRadius:db}}},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:ab.GREYSCALE_20},tooltip:{backgroundColor:ab.GREYSCALE_20,fontSize:sb,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var Iw=e=>Aw;const Dw={mode:"light",primary:{light:ab.GREEN_PALE,main:ab.GREEN,dark:ab.GREEN_DARK,contrastText:ab.WHITE},secondary:{light:ab.BLUE_PALE,main:ab.BLUE,dark:ab.BLUE_DARK,contrastText:ab.WHITE},error:{light:ab.RED_PALE,main:ab.RED,dark:ab.RED_DARK,contrastText:ab.WHITE},warning:{light:ab.ORANGE_PALE,main:ab.ORANGE,dark:ab.ORANGE_DARK,contrastText:ab.WHITE},success:{light:ab.GREEN_PALE,main:ab.GREEN,dark:ab.GREEN_DARK,contrastText:ab.WHITE},info:{light:ab.BLUE_PALE,main:ab.BLUE,dark:ab.BLUE_DARK,contrastText:ab.WHITE},text:{primary:ab.TEXT_PRIMARY,secondary:ab.TEXT_SECONDARY,disabled:ab.GREYSCALE_0_30},action:{hover:ab.GREYSCALE_0_03,hoverOpacity:.05,selected:ab.GREYSCALE_0_05,focus:ab.MISC_FOCUS_BORDER},amethyst:{main:ab.PURPLE,light:ab.PURPLE_PALE,dark:ab.PURPLE_DARK,contrastText:ab.WHITE},background:{paper:ab.WHITE,default:ab.GREYSCALE_95},divider:ab.GREYSCALE_0_15},Lw=e=>({components:Iw(),palette:Dw,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:lb,fontWeightLight:pb,fontWeightRegular:fb,fontWeightMedium:mb,fontWeightBold:hb,htmlFontSize:lb,fontFamily:gb.FONT_FAMILY,button:{fontWeight:mb,fontSize:lb,textTransform:"none"},body1:{fontSize:ub,lineHeight:"24px"},body2:{fontSize:lb,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:cb,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:ub,fontWeight:mb,lineHeight:"16px"},h6:{fontSize:lb,fontWeight:mb,lineHeight:"16px"},caption:{color:ab.TEXT_SECONDARY},subtitle1:{fontSize:lb,color:ab.TEXT_SECONDARY},subtitle2:{fontSize:sb,color:ab.TEXT_SECONDARY}},shape:{borderRadius:db}}),Pw={...ib,MISC_FOCUS_BORDER:ab.MISC_FOCUS_BORDER},Mw=Lw().palette,_w={TEXT:Mw.text.primary,DISABLED:Mw.text.disabled,HOVER:Mw.action.hover,WHITE:Pw.GREYSCALE_100,BORDER_LIGHT:Pw.GREYSCALE_90,BORDER_MEDIUM:Pw.GREYSCALE_85,BORDER_HEAVY:Pw.GREYSCALE_50,DARK_MODE_TEXT:Pw.GREYSCALE_95,DARK_MODE_BORDER:Pw.GREYSCALE_95,DARK_MODE_DISABLED:Pw.GREYSCALE_70,DARK_MODE_BACKGROUND:Pw.GREYSCALE_20},Tw=(e,t)=>{const r=Ne(e),n=r.l<70;return 0===r.opacity?(r.opacity=t.opacity,r.toString()):n?r.brighter(t.brighter).toString():r.darker(t.darker).toString()},kw=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Ow=e=>{const t=kw.exec(e);if(t){const[,e,r,n,o]=t;return ue(+r,+n,+o,+e/255)}return ue(e)},qw=e=>{const t=Ow(e);return Number.isNaN(t.r)?null:t.toString()},Nw=e=>{if(void 0===e)return;const t=Ow(e);return t.opacity=1,t.toString()},Fw=(e,t,r)=>{var n,o,i,a;const s=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;s?s.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)},zw=e=>{e.stopPropagation(),e.preventDefault()},jw=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},$w=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),Bw=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?Bw(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},Hw=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?Hw(t):t},Ww=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${qn}`);null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},Gw=({focusType:e,cell:t})=>{if(t)switch(e){case Ff.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case Ff.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case Ff.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case Ff.ADD_TAB:t.setAttribute("tabIndex","0");break;case Ff.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},Vw=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o})=>{const i=((e,t,r,n={top:0,bottom:0})=>{const o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length;let[a,s]=r;switch(e.key){case Nf.DOWN:a<o-1-n.bottom&&a++;break;case Nf.UP:a>n.top&&a--;break;case Nf.RIGHT:if(n.top>0)break;s<i-1?s++:a<o-1&&(a++,s=0);break;case Nf.LEFT:if(n.top>0)break;s>0?s--:a>0&&(a--,s=i-1)}return[a,s]})(e,t,r,o),a=jw(t,i);return Gw({focusType:Ff.FOCUS,cell:a}),n(i),a},Uw=(e,t,r,n)=>{var o;(Gw({focusType:Ff.REMOVE_TAB,cell:$w(t)}),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):Gw({focusType:Ff.ADD_TAB,cell:jw(t,e)})},Yw=e=>e.ctrlKey||e.metaKey,Kw=e=>e.shiftKey&&Yw(e),Xw=e=>[Nf.LEFT,Nf.RIGHT,Nf.UP,Nf.DOWN].includes(e),Jw=e=>e.shiftKey&&Xw(e.key),Zw=(e,t=!1)=>e.key===Nf.ESC&&!t||(e.key===Nf.LEFT||e.key===Nf.RIGHT)&&Kw(e),Qw=({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:s,isSelectionMode:l})=>{const u=s.atTop?2:1,c=[r.pageRowIdx+u,r.pageColIdx],d={top:l?u:0,bottom:l&&s.atBottom?1:0};Gw({focusType:Ff.REMOVE_TAB,cell:e.currentTarget});const p=Vw({evt:e,rootElement:t,cellCoord:c,setFocusedCellCoord:i,allowedRows:d});e.key!==Nf.UP&&e.key!==Nf.DOWN||(e.key===Nf.UP&&((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[n])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-a.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})([r.pageRowIdx,r.pageColIdx],t),((e,t,r)=>t.shiftKey&&(t.key===Nf.UP&&0!==r.pageRowIdx||t.key===Nf.DOWN&&!r.isLastRow)&&e&&r.isSelectable)(o,e,r)?n({type:qf.SELECT_MULTI_ADD,payload:{cell:r,evt:e,announce:a}}):((e,t,r=!1)=>{r&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,p,l))},eR=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=Of.INACTIVE;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?Of.EXCLUDED:void 0!==n[e.qElemNumber]?Of.SELECTED:Of.POSSIBLE),i},tR=(e,t,r)=>{const n=Object.keys(r).length,o=n>=Object.keys(t).length;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},rR=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l={};if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l={...n}}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?{[n]:o}:(void 0!==e[n]?delete e[n]:e[n]=o,{...e})})(l,i,s),tR(a,n,l),Object.keys(l).length?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(l),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:l,colIdx:-1})},nR=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:s}=e,{cell:l,announce:u,evt:c}=t;let d={};return s||"key"in c&&Jw(c)?(-1===i?null==n||n.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,r,n,o)=>{const i={...t};if("key"in n&&Jw(n)){i[r.qElemNumber]=r.rowIdx;const t=n.key===Nf.DOWN?1:-1;return i[e[r.pageRowIdx+t][r.pageColIdx].qElemNumber]=r.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i[r.qElemNumber]=r.rowIdx}return i})(a,d,l,c,s),tR(u,o,d),{...e,rows:d,colIdx:null!==(r=null==s?void 0:s.selectionColIdx)&&void 0!==r?r:l.selectionColIdx,isSelectMultiValues:!0}):e},oR=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(r),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},iR=(e,t)=>{var r;switch(t.type){case qf.SELECT:return rR(e,t.payload);case qf.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case qf.SELECT_MOUSE_UP:return((e,t)=>oR(e.isSelectMultiValues||e.firstCell!==t.cell?e:rR(e,t)))(e,t.payload);case qf.SELECT_MULTI_ADD:return nR(e,t.payload);case qf.SELECT_MULTI_END:return oR(e);case qf.RESET:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:{},colIdx:-1};case qf.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case qf.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},aR=4/3,sR={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},lR=e=>parseInt(e,10)*aR+8+1,uR=e=>!!e&&(null!==e.color||e.index>-1);function cR(e,t,r={}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const dR=e=>je(e)?_w.WHITE:_w.TEXT,pR=(e,t)=>e?{borderBottomColor:_w.DARK_MODE_BORDER,borderRightColor:_w.DARK_MODE_BORDER,borderLeftColor:_w.DARK_MODE_BORDER,borderTopColor:_w.DARK_MODE_BORDER}:{borderLeftColor:_w.BORDER_MEDIUM,borderRightColor:_w.BORDER_MEDIUM,borderTopColor:_w.BORDER_HEAVY,borderBottomColor:t?_w.BORDER_HEAVY:_w.BORDER_LIGHT},fR=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},mR=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:uR(null==r?void 0:r.fontColor)?cR(_w.TEXT,t,null==r?void 0:r.fontColor):i||_w.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?null==r?void 0:r.padding:void 0,...pR(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function hR(e,t,r){var n,o,i;const a=null===(n=fR(e))||void 0===n?void 0:n.header,s=mR("header",t,a,r);return s.background=t.background.isTransparent?_w.WHITE:Nw(t.background.color),s.hoverBackground=Tw(null!==(o=s.background)&&void 0!==o?o:_w.WHITE,sR.hover),s.activeBackground=Tw(null!==(i=s.background)&&void 0!==i?i:_w.WHITE,sR.active),s}function gR(e,t,r,n){var o;const i=null===(o=fR(e))||void 0===o?void 0:o.content,a=mR("content",t,i);a.background=t.background.color;const s=((e,t,r)=>{if(e&&t&&r)return lR(e)*(t+2)<r.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,r,n),l=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=uR(u)||!!d,f=uR(l)||!!c,m=p||f;let h;h=uR(l)?cR(_w.HOVER,t,l):c||(p?"":_w.HOVER);const g=m?cR(dR(h),t,uR(u)?u:d):"";return{...a,lastRowBottomBorder:s,hoverColors:{background:h,color:g}}}function bR(e,t,r){var n;const o={};return null==t||null===(n=t.qValues)||void 0===n||n.forEach(((e,t)=>{const n=e.qText&&qw(e.qText);n&&"none"!==n&&(o[r[t]]=n)})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=dR(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background}}const vR=(e,t,r,n)=>{const o=x((()=>{const o=r.totalsPosition.atTop,i=gR(e,t,r.rows.length,n),a=hR(e,t,!o),s=function(e,t,r){var n;const o=null===(n=fR(e))||void 0===n?void 0:n.content,i=mR("content",t,o),{borderBottomColor:a,borderTopColor:s,background:l}=hR(e,t,r);return{...i,borderBottomColor:a,background:l,borderTopColor:s}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t.name(),r,n]);return o},yR=new Map;const xR=M({}),SR=function(e){const t=M([()=>{},new Set]);return yR.set(e,t),({children:r,value:n})=>{const o=_(n),i=_(new Set);C((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=T((()=>o.current),[o]),s=x((()=>[a,i.current]),[a]);return ta.jsx(e.Provider,{value:n,children:ta.jsx(t.Provider,{value:s,children:r})})}}(xR),ER={rows:[],columns:[],totalsPosition:{}},CR=({app:e,children:t,tableData:r=ER,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,env:E})=>{const[C,w]=S(0),[R,A]=S(o||pm),[I,D]=((e,t)=>{const[r,n]=P(iR,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[L,M]=S(-1),_=vR(i,u,r,d),[T,k,O,q]=((e,t,r,{head:n,body:o})=>{const i=t.atBottom||t.atTop,a=nr({...n,fontWeight:tb},{maxNbrLinesOfText:3}).measureText,s=nr({...o,fontWeight:tb},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=nr(n,{maxNbrLinesOfText:3}),u=x((()=>(e,t,r,n,o)=>{let u=25;return u+=28,n&&(u+=24),o&&(u+=20),Math.max(a(e)+u,i?s(t)+24+1:0,l(r))}),[l,a,s,i]),[c,d]=S(0),[p,f]=S((()=>ob(e,r,u)));lr((()=>{f(ob(e,r-c,u))}),[e,r,c,u]);const m=x((()=>((e,t,r)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,v.width,_),N=x((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,styling:_,rect:v,viewService:y})),[e,n,i,a,s,l,u.name(),c.active,d,p,f,m,_,v,y]);return ta.jsx(SR,{value:{headRowHeight:C,setHeadRowHeight:w,focusedCellCoord:R,setFocusedCellCoord:A,selectionState:I,selectionDispatch:D,hoverIndex:L,setHoverIndex:M,columnWidths:T,setColumnWidths:k,baseProps:N,tableData:r,setYScrollbarWidth:O,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:q,env:E},children:t})};function wR(e,t){const r=function(e){return yR.get(e)}(e),[n,o]=w(r),[,i]=P((e=>e+1),0),a=_(t),s=_(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=x((()=>t(l)),[l,t]);return C((()=>{a.current=t,s.current=u}),[l,u,t]),C((()=>{const e=e=>{(a.current&&a.current(e))!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function RR(e){var t;const r=Xg();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),kp({...r,direction:e})}const AR=gx(oE,{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)":{[`& .${Nn}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${Nn}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),IR=gx(oE)({position:"absolute",height:"100%",width:"3px"}),DR=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u})=>{const c=_({initWidth:e,columnWidth:e,initX:0}),d=r?0:1,p=n&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};lr((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,Fn.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:zn.Pixels,pixels:c.current.columnWidth};a(e)}else null==l||l(!1)},b=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},v=e=>{zw(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},x=e=>{zw(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!n&&s?e=>{if(e.key===On.LEFT||e.key===On.RIGHT){zw(e);const t=5,r=e.key===On.LEFT?-t:t;h(c.current.columnWidth+r)}else e.key===On.SPACE||e.key===On.ENTER?(zw(e),s(e),g()):e.key===On.ESC&&(zw(e),s(e),h(c.current.initWidth))}:void 0;return E.createElement(AR,{className:qn,isLastColumn:r,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==l||l(!0),m(e.clientX)},onDoubleClick:()=>a({type:zn.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==l||l(!0),m(e.touches[0].clientX))},onKeyDown:S,onBlur:s,onFocus:()=>m(),"data-testid":qn},E.createElement(IR,{className:Nn}))};function LR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const PR=(e,t)=>E.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){LR(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),E.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),MR=k(PR);function _R(){return _R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_R.apply(this,arguments)}const TR=gx(oE,{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"}))),kR=gx(MR,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),OR=gx(OC)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),qR=gx(DE)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),NR=gx(jC)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),FR=gx(jC,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(r?"rgba(0, 0, 0, 0.05)":"transparent")}))),zR=gx("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"}))),jR=gx("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),$R=gx(iS)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),BR=gx(lC)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function HR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const WR=(e,t)=>E.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){HR(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),E.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),GR=k(WR);let VR={};const UR=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,handleHeadCellMenuKeyDown:u})=>{const[c,d]=S(!1),p=_(null),f=T((e=>{e.stopPropagation(),d(!1)}),[d]);return E.createElement(E.Fragment,null,E.createElement(FR,{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),VR={}),null!=a&&a.length&&(d(!0),VR[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:u},l&&E.createElement(zR,null),E.createElement(jR,null,E.createElement(BR,null,E.createElement(o,null)),E.createElement($R,{variant:"body2"},n)),null!=a&&a.length?E.createElement(GR,null):null),(null==a?void 0:a.length)&&E.createElement(KR,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=VR,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},YR=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&E.createElement(NR,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>E.createElement(UR,_R({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),KR=({anchorEl:e,open:t,onClose:r,ariaLabel:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:s,handleHeadCellMenuKeyDown:l})=>o.length?E.createElement(OR,_R({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)=>[YR({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?E.createElement(qR,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:s,handleHeadCellMenuKeyDown:l})):null,XR={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},JR=(e,t)=>e.some((e=>t[e]>0));function ZR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const QR=(e,t)=>E.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){ZR(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),E.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),eA=k(QR);function tA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rA=(e,t)=>E.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){tA(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),E.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),nA=k(rA);function oA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const iA=(e,t)=>E.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){oA(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),E.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})),aA=k(iA);function sA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lA=(e,t)=>E.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){sA(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),E.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),uA=k(lA);function cA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dA=(e,t)=>E.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){cA(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),E.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})),pA=k(dA);function fA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const mA=(e,t)=>E.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){fA(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),E.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})),hA=k(mA);function gA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bA=(e,t)=>E.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){gA(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),E.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),vA=k(bA);function yA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xA=(e,t)=>E.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){yA(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),E.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),SA=k(xA);function EA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CA=(e,t)=>E.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){EA(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),E.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),wA=k(CA);function RA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const AA=(e,t)=>E.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){RA(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),E.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})),IA=k(AA);let DA=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const LA=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:s,fieldInstance:l,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(r[DA.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:eA,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:uA,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[DA.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),s()},icon:pA,enabled:!0}]}]),r[DA.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:IA,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectAll())},icon:hA,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectPossible())},icon:wA,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectAlternative())},icon:vA,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectExcluded())},icon:SA,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clear())},icon:nA,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[DA.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:aA,enabled:!0}]}]),p},PA=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:s,shouldShowMenuIcon:l=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=cr({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=n,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:w}=(({headerData:e,app:t})=>{const[r,n]=S(null),[o,i]=S(XR);return C((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(n).catch(console.error)}),[t,e]),{fieldInstance:r,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:T((()=>i(XR)),[]),updateSelectionActionsEnabledStatus:T((t=>{const r=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));r&&i({canSelectAll:JR(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:JR(["qSelected"],r.qStateCounts),canSelectPossible:JR(["qOption"],r.qStateCounts),canSelectAlternative:JR(["qAlternative"],r.qStateCounts),canSelectExcluded:JR(["qAlternative","qExcluded"],r.qStateCounts)})}),[e.label,i])}})({headerData:n,app:null==d?void 0:d.app}),R=T((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,b,g]);C((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{w(e)})).catch((e=>console.error(e))))}),[e,x,w,null==d?void 0:d.model]);const A=T((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?E.createElement(TR,{rightAligned:"right"===h,shouldShowMenuIcon:l,className:kn},l&&E.createElement(kR,{height:_n,className:Tn,"data-testid":Tn,"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},E.createElement(MR,null)),E.createElement(KR,{open:e,anchorEl:r.current,onClose:A,menuGroups:LA({headerData:n,translator:m,menuAvailabilityFlags:s,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},MA=e=>e.isDark?{background:e.color,borderColor:_w.DARK_MODE_BORDER,color:_w.DARK_MODE_TEXT,disabledColor:_w.DARK_MODE_DISABLED,iconColor:_w.DARK_MODE_TEXT}:{background:e.color,borderColor:_w.BORDER_MEDIUM,color:_w.TEXT,disabledColor:_w.DISABLED},_A=gx(oE,{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}`}))),TA=gx(ww,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),kA=gx(hE,{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)}))),OA=gx(iS)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),qA=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=x((()=>MA(n.background)),[n]);if(!r.active)return null;const a=o?E.createElement(_A,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},NA=M({}),FA=()=>w(NA),zA=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=x((()=>MA(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=cr({translator:d}),S=x((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,s,l,u,c,y,p,f,m,h,b,g,v]);return E.createElement(NA.Provider,{value:S},e)};let jA=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),$A=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function BA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const HA=(e,t)=>E.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){BA(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),E.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),WA=k(HA);function GA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const VA=(e,t)=>E.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){GA(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),E.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),UA=k(VA);function YA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KA=(e,t)=>E.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){YA(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),E.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),XA=k(KA),JA={FirstPage:UA,PreviousPage:WA,NextPage:GR,LastPage:XA,FirstPageRTL:XA,PreviousPageRTL:GR,NextPageRTL:WA,LastPageRTL:UA},ZA=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=FA(),u=JA[`${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:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?null:()=>i(t)},IconComponent:u}},QA=()=>{const{pageInfo:e,width:t}=FA(),r=0===e.page,{IconComponent:n,styledProps:o}=ZA({type:jA.FirstPage,disabledCondition:r,pageNumber:0});return t<=$A.FirstPage?null:E.createElement(kA,o,E.createElement(n,{height:_n}))},eI=(e,t,r=!1)=>{r&&e.key===On.TAB&&!e.shiftKey&&(zw(e),Fw(e.target,t,!1))},tI=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=FA(),i=e.page>=r-1,{IconComponent:a,styledProps:s}=ZA({type:jA.LastPage,disabledCondition:i,pageNumber:r-1}),l=t.enabled?e=>eI(e,t,n):null;return o<=$A.LastPage?null:E.createElement(kA,_R({},s,{onKeyDown:l}),E.createElement(a,{height:_n}))},rI=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=FA(),i=e.page>=r-1,{IconComponent:a,styledProps:s}=ZA({type:jA.NextPage,disabledCondition:i,pageNumber:e.page+1}),l=!(o>$A.FirstPage&&o>$A.LastPage)&&t.enabled?e=>eI(e,t,n):null;return E.createElement(kA,_R({},s,{onKeyDown:l}),E.createElement(a,{height:_n}))},nI=()=>{const{pageInfo:e}=FA(),t=0===e.page,{IconComponent:r,styledProps:n}=ZA({type:jA.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return E.createElement(kA,n,E.createElement(r,{height:_n}))},oI=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=FA(),{page:o,rowsPerPage:i}=r;if(t<=$A.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return E.createElement(OA,{variant:"caption"},a)},iI=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s}=FA(),l=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${l}`,p={tabIndex:s,id:`${c}-${l}`,"data-testid":c,"aria-labelledby":d};return E.createElement(E.Fragment,null,E.createElement(OA,{variant:"caption",id:d},u,":"),E.createElement(TA,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},aI=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=FA();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>$A.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=E.createElement(E.Fragment,null,t.rowsPerPageOptions.map((e=>E.createElement("option",{key:e,value:e},e))));return E.createElement(iI,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},sI=1e3,lI="…",uI=({totalPages:e,page:t})=>{const r=Math.min(e,sI),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-sI):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return E.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(E.createElement("option",{key:"startMoreOptions",value:lI,disabled:!0},lI)),o<e-1&&a.push(E.createElement("option",{key:"endMoreOptions",value:lI,disabled:!0},lI)),E.createElement(E.Fragment,null,a)},cI=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=FA(),{page:o}=e;if(t<=$A.SelectPage)return null;const i=E.createElement(uI,{totalPages:r,page:o});return E.createElement(iI,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var dI=O((e=>E.createElement(zA,e,E.createElement(aI,null),E.createElement(cI,null),E.createElement(oI,null),E.createElement(QA,null),E.createElement(nI,null),E.createElement(rI,null),E.createElement(tI,null))));const pI=e=>E.createElement(qA,e,E.createElement(dI,e)),fI=mf(Bh,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.tableColorFromTheme}))),mI=mf(Bh,{shouldForwardProp:e=>"lines"!==e&&"allIconsDisabled"!==e&&"headCell"!==e&&"isPagination"!==e&&"wordBreak"!==e&&"virtualizedCell"!==e})((({lines:e,wordBreak:t,allIconsDisabled:r=!1,headCell:n=!1,isPagination:o=!1,virtualizedCell:i=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(n||t||1===e)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:n&&o?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",...n&&{whiteSpace:r||i?"normal":"nowrap"}}}))),hI=mf(Bh)({overflow:"hidden",textOverflow:"ellipsis"});function gI(e,t){const r=_(!1);C((()=>{r.current?e():r.current=!0}),t)}const bI=(e,t,r)=>{C((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n),i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},vI=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===Nf.DOWN||r===Nf.UP){const t=e=>r===Nf.DOWN?Bw(e):Hw(e);zw(e);let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}},yI=({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:s,paginationNeeded:l,totalsPosition:u,selectionsAPI:c})=>{if(e.currentTarget.classList.contains("excluded"))return void zw(e);const d=null==c?void 0:c.isModal();if(!Zw(e,d))switch(e.key){case Nf.UP:case Nf.DOWN:case Nf.LEFT:case Nf.RIGHT:zw(e),Qw({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:d});break;case Nf.SPACE:zw(e),r.isSelectable&&o&&n({type:qf.SELECT,payload:{cell:r,evt:e,announce:a}});break;case Nf.ENTER:zw(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case Nf.ESC:zw(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case Nf.TAB:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{(null==t?void 0:t.enabled)&&r&&(e.shiftKey||!e.shiftKey&&!n)&&(zw(e),Fw(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:s,isSelectionMode:d,paginationNeeded:l});break;case Nf.C:zw(e),Yw(e)&&fr(e.currentTarget)}},xI=e=>{const{layout:t,rect:r,theme:n}=wR(xR,(e=>e.baseProps)),o=n.name(),[i,a]=S(0),[s,l]=S(0);return q((()=>{if(e.current){var t;const{offsetWidth:r=0,offsetHeight:n=0,clientWidth:o=0,clientHeight:i=0}=null!==(t=e.current)&&void 0!==t?t:{},s=n-i;l(r-o),a(s)}}),[e,t,r,o]),{xScrollbarWidth:i,yScrollbarWidth:s}},SI=mf("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),EI=mf(Mg,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),CI=mf(mg,{shouldForwardProp:e=>"showRightBorder"!==e&&"styling"!==e})((({showRightBorder:e,styling:t})=>({tableLayout:"fixed",width:"min-content",borderRight:e?`1px solid ${t.body.borderRightColor}`:void 0}))),wI=()=>ta.jsxs(ta.Fragment,{children:[ta.jsx(SI,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),ta.jsx(SI,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),RI=e=>e.stopPropagation(),AI=({href:e,text:t,interactions:r,color:n})=>E.createElement(ZE,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:RI,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t),II=({layout:e,viewService:t,isImagesEnabled:r})=>{var n,o;let i=null===(n=t.viewState)||void 0===n?void 0:n.maxLineCount;var a,s;r&&(i=null!==(a=i)&&void 0!==a?a:null===(s=fR(e))||void 0===s||null===(s=s.content)||void 0===s?void 0:s.rowHeight);return{maxNbrLines:null!==(o=i)&&void 0!==o?o:3,isStaticNbrOfLines:void 0!==i}},DI=({children:e,fontSize:t="",wordBreak:r=!1,isPagination:n=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:s=!1})=>{if(a)return ta.jsx(mI,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:n,headCell:!0,allIconsDisabled:s,children:e});const l=parseInt(t||eb,10),u=ta.jsx(mI,{component:"span",className:"sn-table-cell-text",wordBreak:r,lines:i,virtualizedCell:o,children:e});return r?u:ta.jsx(hI,{minHeight:l*Qg,maxHeight:l*Qg*i,children:u})},LI=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},PI=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},MI=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:s}=e,l="fitHeight"===a,u=ta.jsx("img",{src:o,alt:i,style:{width:l?"auto":"100%",height:"100%",maxHeight:r,objectFit:PI(a),objectPosition:LI(s),...t,overflow:"hidden"}});var c;return n?ta.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:l?r:"100%",overflow:"hidden",display:"flex",justifyContent:l?null==e||null===(c=e.resolvedImagePosition)||void 0===c?void 0:c.horizontal:void 0},children:u}):u},_I=({cell:e,style:t,maxImageHeight:r,virtualizedCell:n})=>{const{flags:o}=wR(xR,(e=>e.env)),{interactions:i,viewService:a,layout:s}=wR(xR,(e=>e.baseProps)),l=wR(xR,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()})),{maxNbrLines:u}=II({viewService:a,layout:s,isImagesEnabled:o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")});let c=e.representation.text;return e.representation.type!==Di.Link||l||(c=ta.jsx(AI,{href:e.representation.url,text:e.representation.text,interactions:i,color:t.cellForegroundColor})),e.representation.type===Di.Image?ta.jsx(MI,{representation:e.representation,textStyle:t,maxImageHeight:r,wrapInContainer:!n}):ta.jsx(DI,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:u,virtualizedCell:n,children:c})},TI=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{C((()=>{const i=()=>{t({type:qf.RESET})},a=()=>{t({type:qf.CLEAR})},s=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",s),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",s),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},kI=e=>parseInt(null!=e?e:rb.fontSize,10)*Qg,OI=({maxNbrLines:e,isStaticNbrOfLines:t,lineHeight:r})=>t?r*e+8+1:void 0,qI=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>r({type:qf.SELECT_MULTI_END});r({type:qf.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:qf.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:qf.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:n}})}}),NI=mf(Sg,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),FI=mf(Wg,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),zI=mf(Ig,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...rb,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),jI=mf(Ig,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...rb,...e,fontWeight:tb,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&r,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function $I(e){return t=>{const{cell:r,styling:n,announce:o,onMouseDown:i}=t,a=wR(xR,(e=>eR(r,e.selectionState))),s=wR(xR,(e=>e.selectionDispatch)),{handleMouseDown:l,handleMouseOver:u,handleMouseUp:c}=qI(i,r,s,o),d=function(e,t){let r={};switch(t){case Of.SELECTED:r=Zg.SELECTED;break;case Of.POSSIBLE:r=Zg.POSSIBLE;break;case Of.EXCLUDED:r={background:`${Zg.EXCLUDED_BACKGROUND}, ${e.background}`,selectedCellClass:Of.EXCLUDED}}return{...e,...r}}(n,a);return ta.jsx(e,{...t,styling:d,onMouseUp:c,onMouseDown:l,onMouseOver:u})}}function BI(e,t){let r=(n=zI,e=>{const{styling:{selectedCellClass:t,...r},component:o,align:i,children:a,scope:s,tabIndex:l,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m}=e;return ta.jsx(n,{cellStyle:r,component:o,scope:s,align:i,tabIndex:l,className:`sn-table-cell ${t||""}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var n;return t&&(r=$I(r)),e&&(r=function(e){return t=>{const{cell:r,column:n,styling:o}=t,i=x((()=>bR(o,r.qAttrExps,n.qAttrExprInfoIDs)),[o,r.qAttrExps,n.qAttrExprInfoIDs]);return ta.jsx(e,{...t,styling:i})}}(r)),r}const HI=()=>{const{columns:e,totalsPosition:{atTop:t},rows:r}=wR(xR,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styling:a,interactions:s}=wR(xR,(e=>e.baseProps)),l=wR(xR,(e=>e.headRowHeight)),u=wR(xR,(e=>e.setFocusedCellCoord));return ta.jsx(Wg,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t?1:r.length+1,c];return ta.jsx(jI,{totalsStyle:a.totals,headRowHeight:l,atTop:t,align:e.totalsTextAlign,className:"sn-table-cell",tabIndex:-1,title:s.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,r,n,o=!1)=>{if(o)zw(e);else if(!Zw(e))switch(e.key){case Nf.LEFT:case Nf.RIGHT:case Nf.UP:case Nf.DOWN:zw(e),Gw({focusType:Ff.REMOVE_TAB,cell:e.currentTarget}),Vw({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n});break;case Nf.C:zw(e),Yw(e)&&fr(e.currentTarget);break;case Nf.SPACE:e.preventDefault()}})(e,n,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{Uw(d,n,u,i)},children:ta.jsx(DI,{wordBreak:!e.isTotalNumeric,fontSize:a.totals.fontSize,children:e.totalInfo})},e.id)}))})};var WI=O(HI);const GI=({setShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:s}=wR(xR,(e=>e.tableData)),{selectionsAPI:l,rootElement:u,keyboard:c,layout:d,interactions:p,styling:{body:{hoverColors:f,lastRowBottomBorder:m,...h}},viewService:g}=wR(xR,(e=>e.baseProps)),b=wR(xR,(e=>e.setFocusedCellCoord)),v=wR(xR,(e=>e.selectionDispatch)),{flags:y}=wR(xR,(e=>e.env)),S=!!p.active&&!!p.select,E=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),C=x((()=>JSON.parse(E).map((e=>BI(e.some((e=>"cellBackgroundColor"===e||"cellForegroundColor"===e)),S)))),[E,S]),w=!(null===(n=fR(d))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect),{maxNbrLines:R,isStaticNbrOfLines:A}=II({viewService:g,layout:d,isImagesEnabled:y.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),I=kI(h.fontSize),D=OI({maxNbrLines:R,isStaticNbrOfLines:A,lineHeight:I});return TI({keyboard:c,selectionDispatch:v,selectionsAPI:l,setShouldRefocus:e,tableWrapperRef:t}),ta.jsxs(NI,{lastRowBottomBorder:m,children:[s.atTop?ta.jsx(WI,{}):void 0,o.map(((e,t)=>ta.jsx(FI,{hoverColors:f,hover:w,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,height:D,children:i.map(((t,n)=>{const{id:o}=t,i=e[n],d=C[n],f=bR({},i.qAttrExps,t.qAttrExprInfoIDs);return d&&ta.jsx(d,{scope:0===n?"row":void 0,component:0===n?"th":void 0,cell:i,column:t,align:i.align,styling:h,tabIndex:-1,announce:r,title:p.passive?i.representation.text:void 0,onKeyDown:e=>{yI({evt:e,rootElement:u,selectionsAPI:l,cell:i,selectionDispatch:v,isSelectionsEnabled:S,setFocusedCellCoord:b,announce:r,keyboard:c,paginationNeeded:a,totalsPosition:s})},onKeyUp:e=>((e,t)=>{e.key===Nf.SHIFT&&t({type:qf.SELECT_MULTI_END})})(e,v),onMouseDown:()=>((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;Uw([s,a],t,r,n)})(i,u,b,c,s),children:ta.jsx(_I,{cell:i,style:f,maxImageHeight:A?I*R:I})},o)}))},`row-${t}`))),s.atBottom?ta.jsx(WI,{}):void 0]})};var VI=O(GI);const UI=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o}=e,{applyColumnWidths:i,interactions:a}=wR(xR,(e=>e.baseProps)),s=wR(xR,(e=>e.columnWidths)),l=wR(xR,(e=>e.setColumnWidths));if(!a.active)return null;return ta.jsx(DR,{columnWidth:s[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...s];t[o]=e,l(t)},confirmWidthCallback:t=>{i(t,e)},handleBlur:e=>(e=>{e.setAttribute("tabIndex","-1");const t=e.closest(".sn-table-cell");Gw({focusType:Ff.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:n})};function YI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KI=(e,t)=>E.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){YI(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),E.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),XI=k(KI);function JI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ZI=(e,t)=>E.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){JI(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),E.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),QI=k(ZI);function eD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tD=(e,t)=>E.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){eD(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),E.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),E.createElement("use",{fillRule:"evenodd"})),rD=k(tD),nD=mf("div")({position:"absolute",left:0,bottom:0}),oD=mf(Bh,{shouldForwardProp:e=>!["textAlign"].includes(e)})((({textAlign:e,theme:t})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center"}))),iD=mf("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),aD=mf(Bh,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${kn}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:2},[`& .${kn}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),sD=mf(Bh,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));mf(Bh,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),mf(Kh)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),mf(sg)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),mf("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),mf(tg)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),mf("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const lD=mf(Ig,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...rb,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));mf("div")({display:"flex",alignItems:"center"});const uD=mf("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:eb,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),cD=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i})=>{const{translator:a,changeSortOrder:s,interactions:l,embed:u,app:c,model:d,styling:p}=wR(xR,(e=>e.baseProps)),f=wR(xR,(t=>t.columnWidths[e.pageColIdx])),m=wR(xR,(e=>0===e.focusedCellCoord[0])),h=_(null),g=_(null),{getHeadCellsIconsVisibilityStatus:b,allIconsDisabled:v}=(({styling:e,column:t,columnWidth:r})=>{const{measureText:n}=nr({fontSize:e.head.fontSize,fontFamily:e.head.fontFamily,fontWeight:tb}),o=T((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,s=t.isActivelySorted,l=r-25,u=a?20:0,c=s?20:0;let d=n(t.label);return a&&d+u<=l&&(i=!0,d+=u,s&&d+c<=l&&(o=!0,d+=c)),!a&&s&&d+c<=l&&(o=!0,d+=c),d+24<=l&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n]);return{getHeadCellsIconsVisibilityStatus:o,allIconsDisabled:Object.values(o()).every((e=>!1===e))}})({styling:p,column:e,columnWidth:f}),y=b(),{StartIcon:x,EndIcon:S,LockIcon:E}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n})=>{const o="A"===e?ta.jsx(XI,{height:eb,"data-testid":"head-cell-sort-ascending-icon"}):ta.jsx(QI,{height:eb,"data-testid":"head-cell-sort-descending-icon"}),i=r?ta.jsx(uD,{align:t,children:o}):void 0,a=n?ta.jsx(sD,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:ta.jsx(rD,{height:eb,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:i,LockIcon:a}:{EndIcon:i,LockIcon:a}})(e,y);o&&(o.current[e.pageColIdx]=y);const C={A:a.get("SNTable.Accessibility.Ascending"),D:a.get("SNTable.Accessibility.Descending")};return ta.jsxs(aD,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:e.headTextAlign,children:[E,ta.jsxs(oD,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[x,ta.jsx(DI,{allIconsDisabled:v,isPagination:i,virtualizedCell:!i,headCell:!0,children:e.label}),S]}),m&&ta.jsx(iD,{"data-testid":"head-cell-hidden-text",children:`${C[e.sortDirection]} ${a.get("SNTable.SortLabel.PressSpaceToSort")}`}),t&&ta.jsxs(ta.Fragment,{children:[ta.jsx(PA,{headerData:e,translator:a,anchorRef:h,handleHeadCellMenuKeyDown:vI,menuAvailabilityFlags:{[DA.SORTING]:!0,[DA.SEARCHING]:!0,[DA.SELECTIONS]:!0,[DA.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:n,interactions:l,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:u,listboxRef:g},selectionRelatedArgs:{app:c,model:d},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:Ww},shouldShowMenuIcon:y.shouldShowMenuIcon}),ta.jsx(nD,{ref:g}),ta.jsx(nD,{ref:h})]})]})},dD=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=S(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=S(!1);return lr((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(qn)})(t)&&!o&&n(!0),setIsAdjustingWidth:i}},pD=({column:e,columnIndex:t,columnsLength:r})=>{const{styling:n,interactions:o,rootElement:i,keyboard:a,styling:{head:{activeBackground:s,background:l,hoverBackground:u}}}=wR(xR,(e=>e.baseProps)),{columns:c}=wR(xR,(e=>e.tableData)),d=wR(xR,(e=>e.columnWidths[t])),p=wR(xR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=wR(xR,(e=>e.setFocusedCellCoord)),m=wR(xR,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),h=!!o.active&&!p,{open:g,setOpen:b,handleOpenMenu:v,setIsAdjustingWidth:y}=dD({isInteractionEnabled:h,columnsData:c}),x=e.isActivelySorted?zf[e.sortDirection]:void 0,S=t===r-1,E=[0,e.pageColIdx],C={width:d-(S?8:9),zIndex:c.length-t},w=m&&0===t&&!a.enabled&&h?0:-1;return ta.jsxs(lD,{headerStyle:n.head,style:C,align:e.headTextAlign,className:"sn-table-head-cell sn-table-cell","aria-sort":x,tabIndex:w,title:o.passive?e.label:void 0,onKeyDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,isInteractionEnabled:o,handleOpenMenu:i})=>{if(o){if(!Zw(e))switch(e.key){case Nf.LEFT:case Nf.RIGHT:zw(e),Gw({focusType:Ff.REMOVE_TAB,cell:e.currentTarget}),Vw({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n});break;case Nf.DOWN:zw(e),Gw({focusType:Ff.REMOVE_TAB,cell:$w(t)}),Vw({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n});break;case Nf.C:zw(e),Yw(e)&&fr(e.currentTarget);break;case Nf.ENTER:case Nf.SPACE:i&&i(e)}}else zw(e)})({evt:e,rootElement:i,cellCoord:E,setFocusedCellCoord:f,isInteractionEnabled:h,handleOpenMenu:v}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(n(r),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):Gw({focusType:Ff.FOCUS,cell:jw(t,r)}))})({evt:e,rootElement:i,cellCoord:E,setFocusedCellCoord:f,keyboard:a,isInteractionEnabled:h}),background:g?s:l,hoverBackground:u,interactions:o,onClick:v,children:[ta.jsx(cD,{column:e,isInteractionEnabled:h,open:g,setOpen:b,isPagination:!0}),ta.jsx(UI,{column:e,isLastColumn:S,setIsAdjustingWidth:y})]},e.id)},fD=()=>{var e;const{columns:t}=wR(xR,(e=>e.tableData)),{styling:r,viewService:n}=wR(xR,(e=>e.baseProps)),o=wR(xR,(e=>e.setHeadRowHeight)),i=wR(xR,(e=>e.columnWidths)),a=_(null);return C((()=>{a.current&&o(a.current.clientHeight)}),[r.head.fontSize,i,o]),null!==(e=n.viewState)&&void 0!==e&&e.skipHeader?null:ta.jsx(Ng,{children:ta.jsx(Wg,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,r)=>ta.jsx(pD,{column:e,columnIndex:r,columnsLength:t.length},e.id)))})})};var mD=O(fD);const hD=e=>{var t,r;const{pageInfo:n,setPageInfo:o,direction:i,footerContainer:a,announce:s}=e,{page:l,rowsPerPage:u}=n,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=wR(xR,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styling:E,viewService:w,layout:R,rect:A}=wR(xR,(e=>e.baseProps)),I=wR(xR,(e=>e.focusedCellCoord)),D=wR(xR,(e=>e.setFocusedCellCoord)),L=wR(xR,(e=>e.setYScrollbarWidth)),P=wR(xR,(e=>e.showRightBorder)),M=wR(xR,(e=>e.selectionDispatch)),k=wR(xR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),O=_(!1),q=_(null),N=_(null),{yScrollbarWidth:F}=xI(q),z=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length+1),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,j=Wi(R,w),$=j&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,B=j&&null!==(r=w.rowPartialHeight)&&void 0!==r?r:0,H=T((()=>{O.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),W=T((e=>{o({...n,page:e}),s({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[n,o,p,s]),G=T((e=>{o({...n,page:0,rowsPerPage:e}),s({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[s,n,o]);return((e,t,r)=>{C((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(".sn-table-head-menu");if(r.enabled&&!i&&!a&&!t.current&&n){var s;const e=n.querySelector(".sn-table-announcer-1"),t=n.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(s=r.blur)||void 0===s||s.call(r,!1)}})(e,t,r);return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(N,O,v),bI(q,i,w),(()=>{const{rootElement:e,keyboard:t}=wR(xR,(e=>e.baseProps)),r=wR(xR,(e=>e.focusedCellCoord));lr((()=>{const n=t.active?Ff.FOCUS:Ff.BLUR,o=t.active?jw(e,r):$w(e);Gw({focusType:n,cell:o})}),[t.active,e])})(),C((()=>{const e=q.current;e&&(e.scrollLeft=$,e.scrollTop=B)}),[n,d,$,B]),gI((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:s})=>{Gw({focusType:Ff.REMOVE_TAB,cell:$w(t)});const l=[s.atTop?2:1,e[1]],u=n?l:pm;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=r.current?Ff.FOCUS:Ff.ADD_TAB;r.current=!1;const d=jw(t,u);if(Gw({focusType:c,cell:d}),n){var p;const e=null==d||null===(p=d.classList)||void 0===p?void 0:p.contains("selected");a({keys:[`${null==d?void 0:d.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}})({focusedCellCoord:I,rootElement:b,shouldRefocus:O,setFocusedCellCoord:D,isSelectionMode:k,keyboard:v,announce:s,totalsPosition:g})}),[m.length,d,c,l]),gI((()=>{L(F)}),[F]),gI((()=>{M({type:qf.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),ta.jsxs(fI,{ref:N,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:r,rowsPerPage:n,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:s})=>{if(Kw(e)){zw(e);const a=Math.ceil(t/n)-1;e.key===Nf.RIGHT&&r<a?(i(),o(r+1)):e.key===Nf.LEFT&&r>0&&(i(),o(r-1))}else if(e.key===Nf.ESC&&a.enabled&&!s){var l;zw(e),null===(l=a.blur)||void 0===l||l.call(a,!0)}else Xw(e.key)&&zw(e)})({evt:e,totalRowCount:d,page:l,rowsPerPage:u,handleChangePage:W,setShouldRefocus:H,keyboard:v,isSelectionMode:k})},"data-testid":"sn-table",children:[ta.jsx(wI,{}),ta.jsx(EI,{ref:q,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:ta.jsxs(CI,{styling:E,showRightBorder:P,stickyHeader:!0,"aria-label":z,children:[ta.jsx(mD,{}),ta.jsx(VI,{...e,setShouldRefocus:H,tableWrapperRef:N})]})}),ta.jsx(pI,{footerContainer:a,pageInfo:n,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:A,layout:R,handleChangePage:W,handleChangeRowsPerPage:G,isSelectionMode:k})]})};var gD=O(hD);function bD(){return bD=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},bD.apply(this,arguments)}function vD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yD(e,t){return yD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yD(e,t)}function xD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yD(e,t)}var SD=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ED(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||SD(n)&&SD(o)))return!1;var n,o;return!0}function CD(e,t){var r;void 0===t&&(t=ED);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function wD(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 RD="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function AD(e){cancelAnimationFrame(e.id)}function ID(e,t){var r=RD();var n={id:requestAnimationFrame((function o(){RD()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var DD=-1;function LD(e){if(void 0===e&&(e=!1),-1===DD||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),DD=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return DD}var PD=null;function MD(e){if(void 0===e&&(e=!1),null===PD||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?PD="positive-descending":(t.scrollLeft=1,PD=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),PD}return PD}var _D=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function TD(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,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,vD(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:vD(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=CD((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=CD((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&s,h&&l,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===l;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=CD((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(MD()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&AD(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=ID(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}xD(t,e),t.getDerivedStateFromProps=function(e,t){return kD(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=LD();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,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(MD()){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&&AD(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?_D:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),A=w[0],I=w[1],D=[];if(n>0&&g)for(var L=A;L<=I;L++)for(var P=E;P<=C;P++)D.push(R(t,{columnIndex:P,data:d,isScrolling:v?x:void 0,key:f({columnIndex:P,data:d,rowIndex:L}),rowIndex:L,style:this._getItemStyle(L,P)}));var M=a(this.props,this._instanceProps),_=s(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:bD({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:D,ref:l,style:{height:M,pointerEvents:x?"none":void 0,width:_}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,s,d,p,l,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,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),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,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var kD=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},OD=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},qD=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},ND=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},FD=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?zD(e,t,r,i,0,n):jD(e,t,r,Math.max(0,i),n)},zD=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=ND(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},jD=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&ND(e,t,n,r).offset<o;)n+=a,a*=2;return zD(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},$D=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=ND(e,t,r,i),u="column"===e?qD(t,i):OD(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},BD=TD({getColumnOffset:function(e,t,r){return ND("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return FD("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=ND("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ND("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:OD,getEstimatedTotalWidth:qD,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return $D("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return $D("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return ND("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return FD("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=ND("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ND("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}}),HD=function(e,t){return e};function WD(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,vD(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:vD(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=CD((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=CD((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,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=CD((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(MD()){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&&AD(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=ID(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}xD(t,e),t.getDerivedStateFromProps=function(e,t){return GD(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?LD():0:l.scrollHeight>l.clientHeight?LD():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(MD()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&AD(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?HD:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],A=[];if(u>0)for(var I=C;I<=w;I++)A.push(R(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var D=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:bD({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(s||l||"div",{children:A,ref:a,style:{height:x?"100%":D,pointerEvents:y?"none":void 0,width:x?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,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var GD=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},VD=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},UD=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=VD(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},YD=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&VD(e,r,t).offset<n;)r+=i,i*=2;return UD(e,t,Math.min(r,o-1),Math.floor(r/2),n)},KD=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},XD=WD({getItemOffset:function(e,t,r){return VD(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:KD,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=VD(e,t,o),p=KD(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?UD(e,t,o,0,r):YD(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=VD(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=VD(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 JD(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 ZD=["style"],QD=["style"];function eL(e,t){var r=e.style,n=wD(e,ZD),o=t.style,i=wD(t,QD);return!JD(r,o)&&!JD(n,i)}const tL=({style:e})=>ta.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var rL=E.memo(tL,eL);const nL=()=>{},oL=e=>e.preventDefault();const iL=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const{rowsInPage:i,columns:a,bodyStyle:s,isHoverEnabled:l,maxImageHeight:u}=n,c=wR(xR,(e=>e.hoverIndex===t)),d=wR(xR,(e=>e.setHoverIndex)),{interactions:p}=wR(xR,(e=>e.baseProps)),f=wR(xR,(e=>e.showRightBorder)),m=null===(o=i[t])||void 0===o?void 0:o[e],{handleMouseDown:h,handleMouseOver:g,handleMouseUp:b,cellSelectionState:v}=function(e){const{interactions:t}=wR(xR,(e=>e.baseProps)),r=wR(xR,(e=>e.selectionDispatch)),n="object"==typeof e,o=wR(xR,(t=>n?eR(e,t.selectionState):Of.INACTIVE)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=qI(oL,e,r,nL);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(m);if("object"==typeof m){var y;const n=((e,t,r,n,o)=>{const{hoverColors:i,lastRowBottomBorder:a,...s}=o,l=t.qAttrExprInfoIDs.length?bR(s,e.qAttrExps,t.qAttrExprInfoIDs):s;return n===Of.SELECTED?{...l,...Zg.SELECTED}:n===Of.EXCLUDED?{...l,color:r?null==i?void 0:i.color:l.color,background:`${Zg.EXCLUDED_BACKGROUND}, ${r?null==i?void 0:i.background:l.background}`}:r?{...l,...i}:l})(m,a[e],l&&c,v,s),o={rowindex:t,columnindex:e};return ta.jsx("div",{className:`sn-table-cell ${v}`,style:{...r,...n,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:m.isLastRow?"0px":"1px",borderRightWidth:m.isLastColumn&&!f?"0px":"1px",borderStyle:"solid",justifyContent:m.representation.type===Di.Image&&"fitHeight"===m.representation.imageSize?null===(y=m.representation)||void 0===y||null===(y=y.resolvedImagePosition)||void 0===y?void 0:y.horizontal:m.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:h,onMouseUp:b,onMouseOver:g,onMouseEnter:l?()=>d(t):void 0,onMouseLeave:l?()=>d(-1):void 0,title:p.passive?m.representation.text:void 0,...o,children:ta.jsx(_I,{cell:m,style:n,maxImageHeight:u,virtualizedCell:!0})})}return ta.jsx(rL,{style:{...r,...s,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var aL=E.memo(iL,eL);const sL=e=>{const t=_(e);return t.current=e,t},lL=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,uL=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},cL=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},dL=(e,t,r,n,o,i,a)=>{e.forEach((e=>{e.qMatrix.forEach(((s,l)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:c,pageRowIdx:d}=((e,t,r,n,o,i,a,s,l)=>{var u;const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=null!==(u=e[p])&&void 0!==u?u:[];return t.forEach(((e,t)=>{var r,o;const a=t+n.qLeft,{colIdx:u,isDim:m,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y}=i[a],x=Oi(e);f[a]=null!==(r=f[a])&&void 0!==r?r:{id:Mo(),...e,align:Bi(e,g),rowIdx:d,colIdx:u,isSelectable:m&&!h,pageRowIdx:p,pageColIdx:a,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:a===c.qcx-1,isNumeric:x,representation:Ti(e,y,v,l)},s(null!==(o=f[a].representation.text)&&void 0!==o?o:"",p,a,x)})),{row:f,pageRowIdx:p}})(r,s,l,e.qArea,u,n,o,i,a);r[d]=c}))}))},pL=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,setCellSize:u,gridState:c})=>{const d=wR(xR,(e=>e.env)),p=_([]),f=sL(u),m=T(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return dL(t,o,n,l,e,f.current,d),p.current=n,n}),[i,o,l,e,f,d]),[h,g]=S((()=>m(null!=n?n:[])));lr((()=>{g(m(null!=n?n:[]))}),[n]);const b=((e,t)=>{const r=_(new Set),n=_(new Set),o=_(new Set),i=sL(e),a=sL(t),s=x((()=>({enqueue:e=>{const t=lL(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(lL(e))}))}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return s})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>g((t=>m(e,t))))),v=T(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(cL(p.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[p,b]),y=T(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(uL(p.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[p,b,o]),E=r.name();return C((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-n,p=Math.min(100,u,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,c,E]),{rowsInPage:h,loadRows:y,loadColumns:v}},fL=({style:e,columnWidths:t,rowHeight:r,pageInfo:n,rowCount:o,gridRef:i,lineRef:a,columns:s,fontWeight:l,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,isStaticNbrOfLines:f,allColumnsIconVisibilityStatus:m})=>{const h=_({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:g,rect:b}=wR(xR,(e=>e.baseProps)),[v,y]=S(r||24),{measureText:x,estimateLineCount:E}=nr({...e,fontWeight:l},{maxNbrLinesOfText:p}),C=kI(e.fontSize),w=8e6/o-8-1,R=Math.max(0,Math.min(p,Math.round(w/C))),A=OI({maxNbrLines:R,isStaticNbrOfLines:f,lineHeight:C}),I=f?R*C:C,D=T(((e,r,n)=>{const o=s?(({width:e,columnIconsVisibilityStatus:t})=>{let r=0,n=0,o=0,i=0;if(t){const{shouldShowLockIcon:e,shouldShowSortIcon:r,shouldShowMenuIcon:a}=t;n=e?20:0,o=r?20:0,i=a?24:0}return r=e-25-n-o-i,Math.max(0,r)})({width:t[r],columnIconsVisibilityStatus:null==m?void 0:m[r]}):(e=>Math.max(0,e-24-1))(t[r]),i=Math.min(R,E({text:e.trim(),maxWidth:o,isNumeric:n}));return Math.max(1,i)*C+8+1}),[t,C,R,s,E,m]),L=T(((e,t,n,o=!1,i=!1)=>{const a=`${t}-${n}`;if(h.current.measuredCells.has(a))return;if(f)return h.current.measuredCells.set(a,[e,t,n,o]),void y(A);h.current.measuredCells.set(a,[e,t,n,o]);const l=r||24,d=((e,t,r)=>{var n;return(null==t||null===(n=t[e].representation)||void 0===n?void 0:n.type)===Di.Image&&r})(n,s,u)?l:D(e,n,o),p=h.current.heights[t],m=d-p;m>0?(h.current.totalHeight+=m,h.current.heights[t]=d):void 0===p&&(h.current.count+=1,h.current.totalHeight+=d,h.current.heights[t]=d),i||c||y(h.current.totalHeight/h.current.count)}),[D,c,f,A,s,r,u]),P=T((e=>{var t;return null!==(t=h.current.heights[e])&&void 0!==t?t:v}),[h,v]),M=T((()=>{h.current.lastScrollToRatio=0,h.current.resetAfterRowIndex=0,h.current.heights=[],h.current.totalHeight=0,h.current.count=0,h.current.measuredCells.clear()}),[h]),k=sL(L),O=T((()=>{if(f)return void M();const e=new Map(h.current.measuredCells);M(),e.forEach((([e,t,r,n])=>{k.current(e,t,r,n,!0)})),c||y(h.current.totalHeight/h.current.count)}),[M,c,k,f]);lr((()=>{M()}),[g,n]),lr((()=>{O()}),[x,b.width]);return null!=i&&i.current?i.current.resetAfterRowIndex(h.current.resetAfterRowIndex,!1):null!=a&&a.current&&a.current.resetAfterIndex(h.current.resetAfterRowIndex,!1),d.estimatedRowHeight=v,{setCellSize:L,getRowHeight:P,rowMeta:h,estimatedRowHeight:v,maxLineCount:R,resizeVisibleCells:e=>{if(!u||f)return;M();const{overscanRowStartIndex:t,overscanRowStopIndex:r}=u.current,n=Math.min(r,g.qHyperCube.qSize.qcy-1);for(let r=t;r<=n;r++){var o;const t=null!==(o=e[r])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&L(null!==(t=e.representation.text)&&void 0!==t?t:"",r,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:O,resetRowMeta:M,maxImageHeight:I}};var mL;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(mL||(mL={}));const hL={enabled:!1},gL=()=>{},bL={current:null};const vL=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=x((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},yL=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},xL={overflow:"hidden",willChange:"auto"};var SL=O(k(((e,t)=>{var r;const{rect:n,columns:o,innerForwardRef:i,pageInfo:a,bodyStyle:s,rowHeight:l,headerAndTotalsHeight:u,syncHeight:c}=e,{flags:d}=wR(xR,(e=>e.env)),{layout:p,model:f,theme:m,viewService:h}=wR(xR,(e=>e.baseProps)),g=wR(xR,(e=>e.columnWidths)),b=wR(xR,(e=>e.initialDataPages)),{maxNbrLines:v,isStaticNbrOfLines:y}=II({viewService:h,layout:p,isImagesEnabled:d.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),S=_(null),E=_({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),w=!(null===(r=fR(p))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{scrollHandler:R,verticalScrollDirection:A,horizontalScrollDirection:I}=(()=>{const e=_(0),t=_(0),r=_(mL.None),n=_(mL.None);return{scrollHandler:T((({scrollTop:o,scrollLeft:i})=>{o>t.current?r.current=mL.Down:o<t.current?r.current=mL.Up:r.current=mL.None,i>e.current?n.current=mL.Right:i<e.current?n.current=mL.Left:n.current=mL.None,t.current=o,e.current=i}),[t,e,r,n]),verticalScrollDirection:r,horizontalScrollDirection:n}})(),{rowCount:D,visibleRowCount:L,visibleColumnCount:P}=vL(p,a,n,g,l),{setCellSize:M,getRowHeight:k,rowMeta:O,estimatedRowHeight:N,maxLineCount:z,resizeVisibleCells:j,maxImageHeight:$}=fL({pageInfo:a,style:s,rowHeight:l,columnWidths:g,columns:o,gridRef:S,rowCount:D,gridState:E,isSnapshot:!!p.snapshotData,viewService:h,maxNbrLines:v,isStaticNbrOfLines:y}),{rowsInPage:B,loadRows:H,loadColumns:W}=pL({layout:p,model:f,theme:m,initialDataPages:b,pageInfo:a,rowCount:D,visibleRowCount:L,visibleColumnCount:P,columns:o,setCellSize:M,gridState:E}),G=(({layout:e,loadRows:t,loadColumns:r,verticalScrollDirection:n,horizontalScrollDirection:o,rowCount:i,pageInfo:a,gridState:s,viewService:l})=>T((({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p,visibleColumnStartIndex:f,visibleColumnStopIndex:m,visibleRowStartIndex:h,visibleRowStopIndex:g})=>{if(s.current.overscanColumnStartIndex=u,s.current.overscanColumnStopIndex=c,s.current.overscanRowStartIndex=d,s.current.overscanRowStopIndex=p,d>i)return;const b=u,v=d+a.page*a.rowsPerPage,y=c-u+1,x=p-d+1;if(l.visibleLeft=f,l.visibleWidth=m-f+1,l.visibleTop=h+a.page*a.rowsPerPage,l.visibleHeight=g-h+1,l.page=a.page,l.rowsPerPage=a.rowsPerPage,n.current===mL.Down){const e=x+25;t(b,v,y,d+e>i?i-d:e)}else if(n.current===mL.Up){const e=x+25,r=a.page*a.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(o.current===mL.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(o.current===mL.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[s,i,a.page,a.rowsPerPage,l,n,o,t,e.qHyperCube.qSize.qcx,r]))({layout:p,loadRows:H,loadColumns:W,verticalScrollDirection:A,horizontalScrollDirection:I,rowCount:D,pageInfo:a,gridState:E,viewService:h}),V=x((()=>({rowsInPage:B,columns:o,bodyStyle:s,isHoverEnabled:w,maxLineCount:z,maxImageHeight:$})),[B,o,s,w,z,$]),U=((e,t,r,n)=>{let{height:o}=e;return o-=t,r*n<o&&(o=Math.min(r*n,o)),o})(n,u,D,N);return q((()=>{var e,t;c(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[D,c,i]),q((()=>{var e,t,r;(c(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===O.current.lastScrollToRatio)&&(null===(r=S.current)||void 0===r||r.scrollToItem({rowIndex:D-1,align:"start"}))})),function(e){const{selectionsAPI:t}=wR(xR,(e=>e.baseProps)),r=wR(xR,(e=>e.selectionDispatch));C((()=>{r({type:qf.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[r,e]),TI({selectionsAPI:t,selectionDispatch:r,setShouldRefocus:gL,keyboard:hL,tableWrapperRef:bL})}(B),lr((()=>{var e;null===(e=S.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[p,a,m.name(),n.width,g]),F(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=i.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:U)-U,a=Math.round(o*e);var s,l,u;(O.current.lastScrollToRatio=e,1===O.current.lastScrollToRatio)?(null===(s=S.current)||void 0===s||s.scrollToItem({rowIndex:D-1,align:"start"}),null===(l=S.current)||void 0===l||l.scrollTo({scrollLeft:t})):null===(u=S.current)||void 0===u||u.scrollTo({scrollTop:a,scrollLeft:t})},resizeCells:()=>{var e;null===(e=S.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),j(B)}})),[i,U,O,D,j,B]),ta.jsx(BD,{"data-key":"body",ref:S,innerRef:i,style:xL,columnCount:p.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:U,rowCount:D,rowHeight:k,estimatedRowHeight:N,width:n.width,itemData:V,onItemsRendered:G,onScroll:R,itemKey:yL,className:"sn-table-body",children:aL})})));const EL=({width:e,height:t,children:r})=>ta.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),CL=mf("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:r}}))),wL=({index:e,style:t,data:r})=>{const{columns:n,headerStyle:{...o},columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=r,{interactions:s,styling:{head:{activeBackground:l,background:u,hoverBackground:c}}}=wR(xR,(e=>e.baseProps)),d=wR(xR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),p=wR(xR,(e=>e.showRightBorder)),f=!!s.active&&!d,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=dD({isInteractionEnabled:f,columnsData:n}),v=n[e],y=n.length-1===e,x="right"===v.headTextAlign?"row-reverse":"row";return ta.jsxs(CL,{className:"sn-table-cell",title:s.passive?v.label:void 0,onClick:g,applicableStyle:o,style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:y&&!p?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:x,userSelect:"none",fontWeight:tb},interactions:s,hoverBackground:c,background:m?l:u,children:[ta.jsx(cD,{column:v,isInteractionEnabled:f,open:m,setOpen:h,allColumnsIconVisibilityStatusRef:a}),ta.jsx(UI,{column:v,isLastColumn:y,onColumnResize:i,setIsAdjustingWidth:b})]})},RL=(e,t,r,n,o)=>{q((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,r,e,n,o])},AL={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},IL=e=>{const{rect:t,forwardRef:r,columns:n,pageInfo:o,headerStyle:i,rowHeight:a,columResizeHandler:s,allColumnsIconVisibilityStatusRef:l}=e,{layout:u,theme:c}=wR(xR,(e=>e.baseProps)),d=wR(xR,(e=>e.columnWidths));return RL(r,u,o,d,c.name()),ta.jsx(XD,{ref:r,layout:"horizontal",style:AL,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:a,width:t.width,itemData:{columns:n,headerStyle:i,columResizeHandler:s,allColumnsIconVisibilityStatusRef:l},children:wL})};var DL=O(IL);const LL=E.forwardRef(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a}=wR(xR,(e=>e.baseProps));return ta.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:n,height:o},onScroll:i,children:r})})),PL=({children:e,rect:t})=>ta.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),ML=({index:e,style:t,data:r})=>{const{layout:n,interactions:o}=wR(xR,(e=>e.baseProps)),i=wR(xR,(e=>e.showRightBorder)),{totalsStyle:{hoverColors:a,...s},columns:l,totals:u}=r,c=l[e].totalInfo,{totalsTextAlign:d,isTotalNumeric:p}=l[e],f=n.qHyperCube.qSize.qcx-1===e;return ta.jsx("div",{className:"sn-table-cell",title:o.passive?c:void 0,style:{...t,...s,display:"flex",alignItems:u.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:f&&!i?"0px":"1px",borderTopWidth:u.atBottom?"1px":"0px",borderBottomWidth:u.atTop?"1px":"0px",padding:"4px 12px",justifyContent:d,boxSizing:"border-box",cursor:"default",fontWeight:tb},children:ta.jsx(DI,{wordBreak:!p,lines:3,virtualizedCell:!0,children:c})})},_L=e=>{const{rect:t,forwardRef:r,pageInfo:n,totals:o,rowHeight:i,columns:a}=e,{layout:s,styling:l,theme:u}=wR(xR,(e=>e.baseProps)),c=wR(xR,(e=>e.columnWidths));return RL(r,s,n,c,u.name()),ta.jsx(XD,{ref:r,layout:"horizontal",style:AL,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{totalsStyle:l.totals,columns:a,totals:o},children:ML})};var TL=O(_L);const kL=({columns:e,columnWidths:t,pageInfo:r,headerRef:n,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:s,allColumnsIconVisibilityStatus:l})=>{const{styling:u}=wR(xR,(e=>e.baseProps)),c=fL({style:u.head,columnWidths:t,lineRef:n,rowCount:1,pageInfo:r,fontWeight:tb,columns:e,isSnapshot:a,viewService:s,allColumnsIconVisibilityStatus:l}),d=fL({style:u.totals,columnWidths:t,lineRef:o,rowCount:1,pageInfo:r,fontWeight:tb,isSnapshot:a,viewService:s});e.forEach(((e,t)=>{c.setCellSize(e.label,0,t),d.setCellSize(e.totalInfo,0,t,ki(e.totalInfo))}));const p=c.getRowHeight(0)+8,f=d.getRowHeight(0);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:a?s.estimatedRowHeight:(({fontSize:e=rb.fontSize})=>Math.max(24,lR(e)))(u.body),headerAndTotalsHeight:i.atTop||i.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},OL=e=>{var t;const{pageInfo:r}=e,{totalsPosition:n,columns:o,paginationNeeded:i}=wR(xR,(e=>e.tableData)),{layout:a,theme:s,styling:l,rect:u,viewService:c}=wR(xR,(e=>e.baseProps)),d=wR(xR,(e=>e.columnWidths)),p=wR(xR,(e=>e.setYScrollbarWidth)),f=_(null),m=_(null),h=_(null),g=_(null),b=_(),{xScrollbarWidth:v,yScrollbarWidth:y}=xI(f),E=x((()=>{var e;return{...l.body,background:null!==(e=s.background.color)&&void 0!==e?e:"transparent"}}),[s.background.color,l]),C=_([]),{headerRowHeight:w,totalsRowHeight:R,bodyRowHeight:A,headerAndTotalsHeight:I,resizeAllHeaderCells:D,resizeAllTotalCells:L}=kL({columns:o,columnWidths:d,pageInfo:r,totalsPosition:n,headerRef:m,totalsRef:h,isSnapshot:!!a.snapshotData,viewService:c,allColumnsIconVisibilityStatus:C.current}),P=x((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(u,i)),[u,i]),M=x((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(P,v,y)),[P,v,y]),{rowCount:k}=vL(a,r,M,d,A),[O,N]=S(k*A+I),F=d.reduce(((e,t)=>e+t),0),z=((e,t,r,n)=>T((o=>{var i,a,s;const{scrollHeight:l,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(l-u)));n.scrollTopRatio=p,n.scrollLeft=d,null===(i=r.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(s=t.current)||void 0===s||s.scrollTo(d)}),[n,r,e,t]))(m,h,g,c),j=T(((e,t=!1)=>{const r=e+I;(O<M.height&&r>M.height||t)&&N(r)}),[O,I,M.height]),$=T((()=>{var e;f.current&&(f.current.scrollTop=0),null===(e=g.current)||void 0===e||e.resizeCells(),D(),L()}),[f,D,L]);q((()=>{f.current&&(f.current.scrollLeft=0,f.current.scrollTop=0)}),[o.length]);const B=s.name();q((()=>{f.current&&(f.current.scrollTop=0)}),[r,k,B]),gI((()=>{p(y)}),[y]);const H=ta.jsx(TL,{rect:M,pageInfo:r,columns:o,forwardRef:h,totals:n,rowHeight:R});return ta.jsx(LL,{ref:f,width:P.width,height:P.height,onScroll:z,children:ta.jsx(EL,{width:F,height:O,children:ta.jsxs(PL,{rect:M,children:[null!==(t=c.viewState)&&void 0!==t&&t.skipHeader?null:ta.jsx(DL,{headerStyle:l.head,rect:M,pageInfo:r,columns:o,forwardRef:m,rowHeight:w,columResizeHandler:$,allColumnsIconVisibilityStatusRef:C}),n.atTop?H:null,ta.jsx(SL,{ref:g,innerForwardRef:b,bodyStyle:E,rect:M,pageInfo:r,columns:o,rowHeight:A,headerAndTotalsHeight:I,syncHeight:j}),n.atBottom?H:null]})})})};var qL=O(OL);const NL=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=wR(xR,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=wR(xR,(e=>e.tableData)),c=wR(xR,(e=>e.pageInfo)),d=wR(xR,(e=>e.setPage));return ta.jsxs(fI,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[ta.jsx(qL,{pageInfo:c}),ta.jsx(pI,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var FL=O(NL);var zL,jL={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。有关键盘导航的完整范围,请参阅文档。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。如需完整的鍵盤導覽,請參閱文件。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(zL||(zL={}));const $L=(e,t)=>r((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(jL).forEach((t=>{e.add(jL[t])}))}}(t),()=>((e,t,r)=>{let n=r||null;return({keys:r,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=r.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),s=e.querySelector(".sn-table-announcer-1"),l=e.querySelector(".sn-table-announcer-2");let u;n===zL.FIRST?(u=l,n=zL.SECOND):(u=s,n=zL.FIRST),u.innerHTML=u.innerHTML.endsWith(" ")?a:`${a} `,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(e,t))),[e,t.language()]),BL={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},HL=({app:e,model:t,rootElement:r,layout:n,interactions:l,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,embed:h,reactRoot:g,applyColumnWidths:b,isFontLoaded:v,viewService:y,env:x})=>{const{direction:S,footerContainer:E}=o(),C=Wi(n,y),w=Gi(n,y),R=$L(r,u),A=C?{page:y.page||BL.page,rowsPerPage:y.rowsPerPage||BL.rowsPerPage,rowsPerPageOptions:BL.rowsPerPageOptions}:BL,[I,D]=i(A),[L]=a((async()=>w?async function(e,t,r,n,o,i){var a,s;const{page:l,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),m=null!==(a=o.visibleTop)&&void 0!==a?a:l*u,h=null!==(s=o.visibleHeight)&&void 0!==s?s:Math.min(u,p-m);if(l>0&&m>=p)return n({...r,page:0}),null;if(h*d>qi)return n({...r,rowsPerPage:Ni(d,c),page:0}),null;const g=p>10,b=Fi(t,o),v=Hi(t),y=!!t.snapshotData,x=y?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:m,qLeft:0,qHeight:h,qWidth:d}]);o&&!y&&(o.qTop=m,o.qHeight=h,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=(null==x?void 0:x[0].qMatrix.map(((e,t)=>{const r=[];return v.forEach(((n,o)=>{r[o]={id:Mo(),...e[o],align:Bi(e[o],n.bodyTextAlign),rowIdx:t+m,colIdx:n.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:n.selectionColIdx,isSelectable:n.isDim&&!n.isLocked,isLastRow:t===h-1,isNumeric:Oi(e[o]),representation:Ti(e[o],n.representation,n.qAttrExprInfoIndex,i)}})),r})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(t,n,I,D,y,x):null),[n,I,t,l,w]);s((()=>{!!(w&&g&&t&&(n.snapshotData||e)&&n&&L&&p&&d&&c&&v&&h)&&function(e,t){const{app:r,model:n,direction:o,selectionsAPI:i,layout:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,env:v,...y}=e,x=RR(o);null==t||t.render(ta.jsx(Dl,{stylisPlugins:"rtl"===o?[dm]:void 0,children:ta.jsx(gf,{theme:x,children:ta.jsx(CR,{app:r,model:n,tableData:h,selectionsAPI:i,layout:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,env:v,children:ta.jsx(gD,{...y,direction:o})})})}))}({app:e,model:t,rootElement:r,layout:n,tableData:L,direction:S,pageInfo:I,setPageInfo:D,interactions:l,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,footerContainer:E,announce:R,embed:h,applyColumnWidths:b,viewService:y,env:x},g)}),[e,t,g,L,l,S,d.name(),f.active,R,p,b,w,n,c,h,r,I,D,u,m,E,v,x])},WL=e=>{const t=r((()=>ar(e)),[e]);return s((()=>()=>t.unmount()),[t]),t},GL=(e,t)=>r((()=>((e,t)=>{if(t)return async(r,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,d=[],p=n&&n!==s||!n&&l;l||(c.splice(c.indexOf(i),1),c.unshift(i),d.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${c.join(",")}]`})),p&&d.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(d,!0)}})(e.qDimensionInfo.length,t)),[e.qDimensionInfo.length,t]);const VL=({model:e,layout:t,shouldRender:r,page:n})=>{const[o]=a((async()=>{if(r&&e)return(async(e,t,r)=>{let{qDataPages:n}=t.qHyperCube;if(0!==r||void 0===n||0===n.length){const o=r*Math.min(nb,t.qHyperCube.qSize.qcy);n=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:n,derivedFrom:{layout:t,page:r}}})(e,t,n)}),[e,t,n]),i=(null==o?void 0:o.derivedFrom.layout)!==t||(null==o?void 0:o.derivedFrom.page)!==n;return{initialDataPages:null==o?void 0:o.initialDataPages,isLoading:i}},UL=({app:e,layout:t,model:n,rect:o,theme:a,keyboard:l,translator:u,interactions:c,selectionsAPI:d,changeSortOrder:p,rootElement:f,embed:m,reactRoot:h,applyColumnWidths:g,isFontLoaded:b,viewService:v,env:y})=>{const x=!Gi(t,v),S=r((()=>function(e,t,r){const n=Fi(e,r),o=Hi(e),i=e.qHyperCube.qSize.qcy,a=Math.min(nb,i),s=i>nb&&!!t.active;return{totalsPosition:n,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:s}}(t,c,v)),[t,c,v]),{pageInfo:C,setPage:w}=((e,t)=>{const[n,o]=i(0),a=Math.min(nb,e.qHyperCube.qSize.qcy),s=r((()=>({page:n,rowsPerPage:a,rowsPerPageOptions:[]})),[a,n]);if(t){const t=Math.floor(e.qHyperCube.qSize.qcy/nb);t<n&&o(t)}return{pageInfo:s,setPage:o}})(t,x),{initialDataPages:R,isLoading:A}=VL({model:n,layout:t,page:C.page,shouldRender:x});s((()=>{var e;x&&l.active&&(null===(e=l.blur)||void 0===e||e.call(l,!1))}),[l.active]),s((()=>{x&&n&&p&&R&&!A&&b&&function(e,t){const{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:s,theme:l,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:x}=e,S=RR("ltr");t.render(ta.jsx(E.StrictMode,{children:ta.jsx(gf,{theme:S,children:ta.jsx(CR,{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:s,theme:l,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:x,children:ta.jsx(FL,{})})})}))}({app:e,layout:t,model:n,rect:o,theme:a,keyboard:l,translator:u,interactions:c,selectionsAPI:d,rootElement:f,embed:m,changeSortOrder:p,tableData:S,applyColumnWidths:g,setPage:w,pageInfo:C,initialDataPages:R,viewService:v,env:y},h)}),[e,t,n,o,a.name(),l.active,u,c,d,p,x,f,m,h,S,g,w,C,A,R,b,y])},YL=(e,t)=>{const{fontSize:r,fontFamily:n}=hR(t,e,!1),{fontSize:o,fontFamily:i}=gR(t,e),[s,l]=a((async()=>(await document.fonts.load(`600 ${r} ${n}`),await document.fonts.load(`${o} ${i}`),!0)),[r,n,o,i]);return l?(console.warn("Failed to load font:",l),!0):!!s},KL={version:JSON.stringify("3.4.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};var XL=()=>({properties:{initial:KL},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:Un,exportProperties:Gn,exploration:Yn});function JL(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=(null==r?void 0:r.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=(null==a?void 0:a.getBoundingClientRect())||{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const ZL=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},QL=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const eP=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||BL.rowsPerPage,s=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},tP=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=Fi(e,t);if(Gi(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=JL(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:eP(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=ZL(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(QL(m,h,g)?d:d+1)+c;let v=p+c;const y=ZL(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(QL(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:eP(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},rP=({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{l((async i=>{if(!i.snapshotData||!r||i.snapshotData.content)return i;if(r.getHyperCubeData){i.qHyperCube||(i.qHyperCube={});const{rowPartialHeight:a,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=tP(e,t,n);i.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:e.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),i.snapshotData.content={rowPartialHeight:a,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return i})),u((()=>({getViewState:()=>tP(e,t,n)})),[e,t,n])},nP=e=>{const{viewState:t}=o();return r((()=>((e,t)=>{var r,n,o,i,a,s,l,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(s=t.content)||void 0===s?void 0:s.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(l=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==l?l:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(t,e.snapshotData)),[t,e.snapshotData,e.usePagination])},oP=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),iP=e=>e.getStyle("object","straightTableV2","backgroundColor")}}}));
|