@nebula.js/sn-pivot-table 3.1.0 → 3.3.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/core/esm/index.js CHANGED
@@ -1,30 +1,103 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v3.1.0
2
+ * @nebula.js/sn-pivot-table v3.3.0
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- import{useTheme as e,useMemo as t,usePromise as r,useEffect as n,useState as o,onTakeSnapshot as i,useTranslator as a,useElement as l,useStaleLayout as s,useModel as u,useApp as c,useEmbed as d,useKeyboard as p,useInteractionState as f,useSelections as h,useRect as m}from"@nebula.js/stardust";import*as g from"react";import b,{useMemo as v,useState as y,useContext as x,createElement as S,Children as E,isValidElement as C,cloneElement as w,forwardRef as R,useRef as L,useCallback as A,useEffect as D,createContext as _,memo as I,useLayoutEffect as M,PureComponent as O}from"react";import*as P from"react-dom";import k from"react-dom";function T(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function q(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 N={exports:{}};self,N.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Me});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},A=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function _(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=_(e[r||t])?i:e[t],e=e[r||t]}})),e}function O(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){O(e[n],t[n])||(r=!1)})),r);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!O(e[n],t[n]))return!1;return!0}return e===t}L.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);O(i,a)||I(t,o)||(_(a)?n.push({op:"add",path:l,value:i}):D(i)&&D(a)?n=n.concat(L.generate(a,i,l)):A(i)&&A(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&_(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(O(t,o))return n;if(!_(t[0])&&_(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(L.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){_(t[o])&&!I(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},L.apply=function(e,t){t.forEach((function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!I(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const P=L,k=function(e,r,n){if(!e)return Promise.resolve();var o=P.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var $="movingAverage";function j(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const H={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(G(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(G(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(G(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(G(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=j(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=j(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(G(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(G(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=j(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function Y(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var U={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,U),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))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,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!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 le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t,r){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,r){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t,r){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&r(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const De=Ae;function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}var Ie={accumulation:z,movingAverage:H,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Ie,apply:Pe,applyModifiers:ke,cleanUpMeasure:Te,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:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=$e(e);Ye({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Oe={};function Pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Oe[r.id]=Oe[r.id]||{isFirstTime:!0};var u=Oe[r.id].isFirstTime;if(Oe[r.id].isFirstTime=!1,n&&"object"===_e(n))return ke({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Oe[r.id].lastReloadTime;if(Oe[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ye({modifiers:$e(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Ge(n);var o=Qe(n);return Ue({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return h&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(r++,"object"!==_e(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&He(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),ke({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===_e(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function ke(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Ge(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ye({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;De.isValid(r)||De.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(l++,"object"!==_e(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ie[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[n.type].updateModifier&&Ie[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Ie[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=$e(e);return Array.isArray(t)&&t.some((function(e){return"object"===_e(e)&&!e.disabled&&!Ie[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:$e(e),properties:r,layout:n})}))}function Ne(e){var t=$e(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ie[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Ie[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function $e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function je(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Ge(e){ze(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&je(r)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=$e(e);Array.isArray(t)&&t.forEach((function(t){"object"===_e(t)&&(t.disabled||!Ie[t.type]&&je(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function He(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=He(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ye({modifiers:$e(t),properties:r,layout:n})}function Ye(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==_e(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ue(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function 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"===_e(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=$e(t);if(Ye({modifiers:n,properties:e})){var i=We(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)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Pe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[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:()=>Ge});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const _=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},I=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},M=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},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}}},P=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},$=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},j=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return A(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},G=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return D(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function H(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 W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:s}),m({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?O():w,L=s.defaultMeasure,A=void 0===L?P():L;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&$({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),j({newProperties:g,dataDefinition:a,hypercubePath:u}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),I("qMaxStackedCells",b,v),I("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),_(g,t,n),m.qProperty=g;var D=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:D}),p&&H(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&H(m.qProperty,"dynamicScript"),m}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function U(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(Y(a,t,n,o),U(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},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,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||l,key:r||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}n||(i.auto=!1,i.mode=a)}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||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"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?H(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):H(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",Ae="conditionalColoring",De="measures",_e="qDef.conditionalColoring";const Ie={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ae,arrayName:De,itemPath:_e})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:_e,arrayName:De,quarantineName:Ae})}};var Me="qHyperCubeDef.qMeasures",Oe="measures",Pe="qHyperCubeDef.qDimensions",ke="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",$e="conditionalShowHide";const je={quarantine:function(e){we({properties:e,arrayPath:Me,quarantineName:$e,arrayName:Oe,itemPath:ze}),we({properties:e,arrayPath:Pe,quarantineName:$e,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:$e,arrayName:Oe,itemPath:ze}),Re({properties:e,arrayPath:Pe,quarantineName:$e,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Te,quarantineName:$e,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:$e,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:$e,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:$e,arrayName:Fe,itemPath:ze})}},Ge={hypercube:W,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:H,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Ie,conditionalShow:je}})(),n.default})();var F=T(N.exports);const z="qHyperCubeDef.qDimensions",$="dimensions",j="qDef.representation",G="tableRepresentation",B=e=>{F.unquarantineArrayProp({properties:e,arrayPath:z,itemPath:j,arrayName:$,quarantineName:G})},H=e=>{F.quarantineArrayProp({properties:e,arrayPath:z,itemPath:j,arrayName:$,quarantineName:G})};var W=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],V=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Y(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?V:W}var U=Object.prototype.hasOwnProperty,K=Object.prototype.toString,X=Object.defineProperty,J=Object.getOwnPropertyDescriptor,Z=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===K.call(e)},Q=function(e){if(!e||"[object Object]"!==K.call(e))return!1;var t,r=U.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&U.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||U.call(e,t)},ee=function(e,t){X&&"__proto__"===t.name?X(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},te=function(e,t){if("__proto__"===t){if(!U.call(e,t))return;if(J)return J(e,t).value}return e[t]};function re(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ne(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function oe(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(r in t)n=te(l,r),l!==(o=te(t,r))&&(c&&o&&(Q(o)||(i=Z(o)))?(i?(i=!1,a=n&&Z(n)?n:[]):a=n&&Q(n)?n:{},ee(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&ee(l,{name:r,newValue:o}));return l}));var ie=1/.7,ae="\\s*([+-]?\\d+)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ue=/^#([0-9a-f]{3,8})$/,ce=new RegExp(`^rgb\\(${ae},${ae},${ae}\\)$`),de=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),pe=new RegExp(`^rgba\\(${ae},${ae},${ae},${le}\\)$`),fe=new RegExp(`^rgba\\(${se},${se},${se},${le}\\)$`),he=new RegExp(`^hsl\\(${le},${se},${se}\\)$`),me=new RegExp(`^hsla\\(${le},${se},${se},${le}\\)$`),ge={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 be(){return this.rgb().formatHex()}function ve(){return this.rgb().formatRgb()}function ye(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ue.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?xe(t):3===r?new we(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=ce.exec(e))?new we(t[1],t[2],t[3],1):(t=de.exec(e))?new we(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=pe.exec(e))?Se(t[1],t[2],t[3],t[4]):(t=fe.exec(e))?Se(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=he.exec(e))?Ie(t[1],t[2]/100,t[3]/100,1):(t=me.exec(e))?Ie(t[1],t[2]/100,t[3]/100,t[4]):ge.hasOwnProperty(e)?xe(ge[e]):"transparent"===e?new we(NaN,NaN,NaN,0):null}function xe(e){return new we(e>>16&255,e>>8&255,255&e,1)}function Se(e,t,r,n){return n<=0&&(e=t=r=NaN),new we(e,t,r,n)}function Ee(e){return e instanceof oe||(e=ye(e)),e?new we((e=e.rgb()).r,e.g,e.b,e.opacity):new we}function Ce(e,t,r,n){return 1===arguments.length?Ee(e):new we(e,t,r,null==n?1:n)}function we(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Re(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}`}function Le(){const e=Ae(this.opacity);return`${1===e?"rgb(":"rgba("}${De(this.r)}, ${De(this.g)}, ${De(this.b)}${1===e?")":`, ${e})`}`}function Ae(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function De(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _e(e){return((e=De(e))<16?"0":"")+e.toString(16)}function Ie(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Oe(e,t,r,n)}function Me(e){if(e instanceof Oe)return new Oe(e.h,e.s,e.l,e.opacity);if(e instanceof oe||(e=ye(e)),!e)return new Oe;if(e instanceof Oe)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Oe(a,l,s,e.opacity)}function Oe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Pe(e){return(e=(e||0)%360)<0?e+360:e}function ke(e){return Math.max(0,Math.min(1,e||0))}function Te(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}re(oe,ye,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:be,formatHex:be,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Me(this).formatHsl()},formatRgb:ve,toString:ve}),re(we,Ce,ne(oe,{brighter(e){return e=null==e?ie:Math.pow(ie,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new we(De(this.r),De(this.g),De(this.b),Ae(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:Re,formatHex:Re,formatHex8:function(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}${_e(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Le,toString:Le})),re(Oe,(function(e,t,r,n){return 1===arguments.length?Me(e):new Oe(e,t,r,null==n?1:n)}),ne(oe,{brighter(e){return e=null==e?ie:Math.pow(ie,e),new Oe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Oe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new we(Te(e>=240?e-240:e+120,o,n),Te(e,o,n),Te(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Oe(Pe(this.h),ke(this.s),ke(this.l),Ae(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=Ae(this.opacity);return`${1===e?"hsl(":"hsla("}${Pe(this.h)}, ${100*ke(this.s)}%, ${100*ke(this.l)}%${1===e?")":`, ${e})`}`}}));const qe=Math.PI/180,Ne=180/Math.PI,Fe=4/29,ze=6/29,$e=3*ze*ze;function je(e){if(e instanceof Ge)return new Ge(e.l,e.a,e.b,e.opacity);if(e instanceof Ye)return Ue(e);e instanceof we||(e=Ee(e));var t,r,n=Ve(e.r),o=Ve(e.g),i=Ve(e.b),a=Be((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Be((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Be((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ge(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ge(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Be(e){return e>.008856451679035631?Math.pow(e,1/3):e/$e+Fe}function He(e){return e>ze?e*e*e:$e*(e-Fe)}function We(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ve(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ye(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Ue(e){if(isNaN(e.h))return new Ge(e.l,0,0,e.opacity);var t=e.h*qe;return new Ge(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}re(Ge,(function(e,t,r,n){return 1===arguments.length?je(e):new Ge(e,t,r,null==n?1:n)}),ne(oe,{brighter(e){return new Ge(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ge(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new we(We(3.1338561*(t=.96422*He(t))-1.6168667*(e=1*He(e))-.4906146*(r=.82521*He(r))),We(-.9787684*t+1.9161415*e+.033454*r),We(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),re(Ye,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Ye)return new Ye(e.h,e.c,e.l,e.opacity);if(e instanceof Ge||(e=je(e)),0===e.a&&0===e.b)return new Ye(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ne;return new Ye(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ye(e,t,r,null==n?1:n)}),ne(oe,{brighter(e){return new Ye(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ye(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ue(this).rgb()}}));var Ke=e=>()=>e;function Xe(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ke(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Xe: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):Ke(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Ce(e)).r,(t=Ce(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Xe(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 Je,Ze=["__proto__","constructor"];function Qe(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Ze.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function et(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function tt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=nt)):void 0===t&&(t=rt);for(var r,n,o,i,a,l=new at(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new at(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(it)}function rt(e){return e.children}function nt(e){return Array.isArray(e)?e[1]:null}function ot(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function it(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function at(e){this.data=e,this.depth=this.height=0,this.parent=null}function lt(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o=n&&"rows"===n.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}at.prototype=tt.prototype={constructor:at,count:function(){return this.eachAfter(et)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return tt(this).eachBefore(ot)},[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)}},Je=function(e){
7
+ import{useTheme as e,useMemo as t,usePromise as r,useEffect as n,useState as o,onTakeSnapshot as i,useImperativeHandle as a,useTranslator as l,useOptions as s,useElement as u,useStaleLayout as c,useModel as d,useApp as p,useEmbed as f,useKeyboard as h,useInteractionState as m,useSelections as g,useRect as b}from"@nebula.js/stardust";import*as v from"react";import y,{useMemo as x,useState as S,useContext as E,createElement as C,Children as w,isValidElement as R,cloneElement as L,forwardRef as A,useRef as I,useCallback as M,useEffect as D,createContext as P,memo as _,useLayoutEffect as O,PureComponent as k}from"react";import*as T from"react-dom";import q from"react-dom";function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function F(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 z={exports:{}};self,z.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Pe});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},A=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function M(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=M(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(e,t){var r=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){_(e[n],t[n])||(r=!1)})),r);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!_(e[n],t[n]))return!1;return!0}return e===t}L.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);_(i,a)||D(t,o)||(M(a)?n.push({op:"add",path:l,value:i}):I(i)&&I(a)?n=n.concat(L.generate(a,i,l)):A(i)&&A(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&M(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(_(t,o))return n;if(!M(t[0])&&M(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(L.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!D(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},L.apply=function(e,t){t.forEach((function(t){var r,n,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!D(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=P(e,t.from);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const O=L,k=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var 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 G={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,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 W="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function Y(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var U={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,U),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))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,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!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 le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t,r){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,r){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t,r){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&r(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Ie=Ae;function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var De={accumulation:z,movingAverage:G,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:De,apply:Oe,applyModifiers:ke,cleanUpMeasure:Te,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:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return De[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[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);Ye({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var _e={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;_e[r.id]=_e[r.id]||{isFirstTime:!0};var u=_e[r.id].isFirstTime;if(_e[r.id].isFirstTime=!1,n&&"object"===Me(n))return ke({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[r.id].lastReloadTime;if(_e[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ye({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ue({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return h&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(r++,"object"!==Me(De[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=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ge(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),ke({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Me(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function ke(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),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,l=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ye({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(r)||Ie.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(l++,"object"!==Me(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");De[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:De[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[n.type].updateModifier&&De[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:De[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),He(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&!De[e.type]}))}(e)?Ie.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 Ye({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(De[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||De[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function 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:!Ie.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"===Me(t)&&(t.disabled||!De[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ge(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ge(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ye({modifiers:je(t),properties:r,layout:n})}function Ye(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ue(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function 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"===Me(e)&&!e.disabled&&De[e.type]&&De[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(Ye({modifiers:n,properties:e})){var i=We(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={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_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 l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const M=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},D=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},P=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}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return A(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},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,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 r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.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 G(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 W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:s}),m({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?_():w,L=s.defaultMeasure,A=void 0===L?O():L;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),D("qMaxStackedCells",b,v),D("qNoOfLeftDims",b,v),P("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",b,v,"S"),P("qReductionMode",b,v,"N"),P("qSortbyYValue",b,v),P("qIndentMode",b,v),P("qShowTotalsAbove",b,v),M(g,t,n),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return H({measures:v.qMeasures,modifierTypes:I}),p&&G(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&G(m.qProperty,"dynamicScript"),m}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function U(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(Y(a,t,n,o),U(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},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,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||l,key:r||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}n||(i.auto=!1,i.mode=a)}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||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"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?G(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):G(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",Ae="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const De={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ae,arrayName:Ie,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:Me,arrayName:Ie,quarantineName:Ae})}};var Pe="qHyperCubeDef.qMeasures",_e="measures",Oe="qHyperCubeDef.qDimensions",ke="dimensions",Te="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:Pe,quarantineName:je,arrayName:_e,itemPath:ze}),we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:je,arrayName:_e,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Te,quarantineName:je,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:je,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:W,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:G,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:$e}})(),n.default})();var j=N(z.exports);const $="qHyperCubeDef.qDimensions",B="dimensions",H="qDef.representation",G="tableRepresentation",W=e=>{j.unquarantineArrayProp({properties:e,arrayPath:$,itemPath:H,arrayName:B,quarantineName:G})},V=e=>{j.quarantineArrayProp({properties:e,arrayPath:$,itemPath:H,arrayName:B,quarantineName:G})};var Y=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],U=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function K(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?U:Y}var X=Object.prototype.hasOwnProperty,J=Object.prototype.toString,Z=Object.defineProperty,Q=Object.getOwnPropertyDescriptor,ee=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===J.call(e)},te=function(e){if(!e||"[object Object]"!==J.call(e))return!1;var t,r=X.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&X.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||X.call(e,t)},re=function(e,t){Z&&"__proto__"===t.name?Z(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ne=function(e,t){if("__proto__"===t){if(!X.call(e,t))return;if(Q)return Q(e,t).value}return e[t]};function oe(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ie(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ae(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(r in t)n=ne(l,r),l!==(o=ne(t,r))&&(c&&o&&(te(o)||(i=ee(o)))?(i?(i=!1,a=n&&ee(n)?n:[]):a=n&&te(n)?n:{},re(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&re(l,{name:r,newValue:o}));return l}));var le=1/.7,se="\\s*([+-]?\\d+)\\s*",ue="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",de=/^#([0-9a-f]{3,8})$/,pe=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),fe=new RegExp(`^rgb\\(${ce},${ce},${ce}\\)$`),he=new RegExp(`^rgba\\(${se},${se},${se},${ue}\\)$`),me=new RegExp(`^rgba\\(${ce},${ce},${ce},${ue}\\)$`),ge=new RegExp(`^hsl\\(${ue},${ce},${ce}\\)$`),be=new RegExp(`^hsla\\(${ue},${ce},${ce},${ue}\\)$`),ve={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 ye(){return this.rgb().formatHex()}function xe(){return this.rgb().formatRgb()}function Se(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=de.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ee(t):3===r?new Le(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Ce(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Ce(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=pe.exec(e))?new Le(t[1],t[2],t[3],1):(t=fe.exec(e))?new Le(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=he.exec(e))?Ce(t[1],t[2],t[3],t[4]):(t=me.exec(e))?Ce(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ge.exec(e))?_e(t[1],t[2]/100,t[3]/100,1):(t=be.exec(e))?_e(t[1],t[2]/100,t[3]/100,t[4]):ve.hasOwnProperty(e)?Ee(ve[e]):"transparent"===e?new Le(NaN,NaN,NaN,0):null}function Ee(e){return new Le(e>>16&255,e>>8&255,255&e,1)}function Ce(e,t,r,n){return n<=0&&(e=t=r=NaN),new Le(e,t,r,n)}function we(e){return e instanceof ae||(e=Se(e)),e?new Le((e=e.rgb()).r,e.g,e.b,e.opacity):new Le}function Re(e,t,r,n){return 1===arguments.length?we(e):new Le(e,t,r,null==n?1:n)}function Le(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ae(){return`#${Pe(this.r)}${Pe(this.g)}${Pe(this.b)}`}function Ie(){const e=Me(this.opacity);return`${1===e?"rgb(":"rgba("}${De(this.r)}, ${De(this.g)}, ${De(this.b)}${1===e?")":`, ${e})`}`}function Me(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function De(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pe(e){return((e=De(e))<16?"0":"")+e.toString(16)}function _e(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ke(e,t,r,n)}function Oe(e){if(e instanceof ke)return new ke(e.h,e.s,e.l,e.opacity);if(e instanceof ae||(e=Se(e)),!e)return new ke;if(e instanceof ke)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new ke(a,l,s,e.opacity)}function ke(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Te(e){return(e=(e||0)%360)<0?e+360:e}function qe(e){return Math.max(0,Math.min(1,e||0))}function Ne(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}oe(ae,Se,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ye,formatHex:ye,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Oe(this).formatHsl()},formatRgb:xe,toString:xe}),oe(Le,Re,ie(ae,{brighter(e){return e=null==e?le:Math.pow(le,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Le(De(this.r),De(this.g),De(this.b),Me(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ae,formatHex:Ae,formatHex8:function(){return`#${Pe(this.r)}${Pe(this.g)}${Pe(this.b)}${Pe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ie,toString:Ie})),oe(ke,(function(e,t,r,n){return 1===arguments.length?Oe(e):new ke(e,t,r,null==n?1:n)}),ie(ae,{brighter(e){return e=null==e?le:Math.pow(le,e),new ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ke(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 Le(Ne(e>=240?e-240:e+120,o,n),Ne(e,o,n),Ne(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ke(Te(this.h),qe(this.s),qe(this.l),Me(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Me(this.opacity);return`${1===e?"hsl(":"hsla("}${Te(this.h)}, ${100*qe(this.s)}%, ${100*qe(this.l)}%${1===e?")":`, ${e})`}`}}));const Fe=Math.PI/180,ze=180/Math.PI,je=4/29,$e=6/29,Be=3*$e*$e;function He(e){if(e instanceof Ge)return new Ge(e.l,e.a,e.b,e.opacity);if(e instanceof Ke)return Xe(e);e instanceof Le||(e=we(e));var t,r,n=Ue(e.r),o=Ue(e.g),i=Ue(e.b),a=We((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=We((.4360747*n+.3850649*o+.1430804*i)/.96422),r=We((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ge(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ge(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function We(e){return e>.008856451679035631?Math.pow(e,1/3):e/Be+je}function Ve(e){return e>$e?e*e*e:Be*(e-je)}function Ye(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ue(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ke(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Xe(e){if(isNaN(e.h))return new Ge(e.l,0,0,e.opacity);var t=e.h*Fe;return new Ge(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}oe(Ge,(function(e,t,r,n){return 1===arguments.length?He(e):new Ge(e,t,r,null==n?1:n)}),ie(ae,{brighter(e){return new Ge(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ge(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 Le(Ye(3.1338561*(t=.96422*Ve(t))-1.6168667*(e=1*Ve(e))-.4906146*(r=.82521*Ve(r))),Ye(-.9787684*t+1.9161415*e+.033454*r),Ye(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),oe(Ke,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Ke)return new Ke(e.h,e.c,e.l,e.opacity);if(e instanceof Ge||(e=He(e)),0===e.a&&0===e.b)return new Ke(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ze;return new Ke(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ke(e,t,r,null==n?1:n)}),ie(ae,{brighter(e){return new Ke(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ke(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Xe(this).rgb()}}));var Je=e=>()=>e;function Ze(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Je(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Ze: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):Je(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Re(e)).r,(t=Re(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Ze(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 Qe,et=["__proto__","constructor"];function tt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!et.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function rt(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 nt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=it)):void 0===t&&(t=ot);for(var r,n,o,i,a,l=new st(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new st(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(lt)}function ot(e){return e.children}function it(e){return Array.isArray(e)?e[1]:null}function at(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function lt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function st(e){this.data=e,this.depth=this.height=0,this.parent=null}function ut(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o=n&&"rows"===n.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}st.prototype=nt.prototype={constructor:st,count:function(){return this.eachAfter(rt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return nt(this).eachBefore(at)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Qe=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",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(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},Je({exports:{}});const st="qHyperCubeDef.qDimensions",ut="dimensions",ct="qOtherTotalSpec.qTotalMode",dt="totalMode",pt={quarantine(e){F.quarantineArrayProp({properties:e,arrayPath:st,quarantineName:dt,arrayName:ut,itemPath:ct})},unquarantine(e){F.unquarantineArrayProp({properties:e,arrayPath:st,quarantineName:dt,arrayName:ut,itemPath:ct})}};function ft(e){const t=lt(e);return(e,r,n,o)=>{var i,a,l,s,u,c;const d=F.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),p=((null===(i=d.qProperty)||void 0===i||null===(i=i.qHyperCubeDef)||void 0===i?void 0:i.qDimensions)||[]).length,f=(null===(a=d.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a||null===(a=a.qMeasures)||void 0===a?void 0:a.length)||0;let h,m=(null===(l=d.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l?void 0:l.qInterColumnSortOrder)||[],g=!0;p+f===m.length&&Qe(d,"qProperty.qLayoutExclude.quarantine.interColSortOrder",m.concat());const b=(null==d||null===(s=d.qProperty)||void 0===s||null===(s=s.qLayoutExclude)||void 0===s||null===(s=s.quarantine)||void 0===s?void 0:s.pivotInterColSortOrder)||void 0;b?(m=b,h=[...b],Qe(d,"qProperty.qHyperCubeDef.qInterColumnSortOrder",m),delete d.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):m.length=0;const v=+(m.indexOf(-1)>-1),y=p+v;if(y>m.length)for(let e=m.length;e<y;e++)m.indexOf(e)<0&&m.push(e-v);for(let e=m.length-1;e>=0;e--)m[e]>=p&&m.splice(e,1);f>1&&m.indexOf(-1)<0?m.push(-1):f<2&&m.indexOf(-1)>-1&&m.splice(m.indexOf(-1),1);const x=null!==(u=null==d||null===(c=d.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qNoOfLeftDims)&&void 0!==u?u:-1;if(p>0&&-1===x&&Qe(d,"qProperty.qHyperCubeDef.qNoOfLeftDims",p),h&&m&&h.length===m.length){for(let e=0;e<h.length;e++)if(h[e]!==m[e]){g=!1;break}g&&F.unquarantineProperty(d.qProperty,"noOfLeftDims")}return F.conditionalShow.unquarantine(d.qProperty),pt.unquarantine(d.qProperty),B(d.qProperty),d}}function ht(e,t){var r,n,o;const i=null!==(r=null==e||null===(n=e.qProperty)||void 0===n||null===(n=n.qHyperCubeDef)||void 0===n?void 0:n.qInterColumnSortOrder)&&void 0!==r?r:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=F.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;Qe(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),F.quarantineProperty(s.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete s.properties.qHyperCubeDef.qNoOfLeftDims;const f=null==s||null===(o=s.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;f&&(p=f,Qe(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),Qe(s,"data.0.interColumnSortOrder",p),delete s.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=p.length;e<c+d;e++)p.length<=e&&p.push(e);return F.conditionalShow.quarantine(s.properties),pt.quarantine(s.properties),H(s.properties),s}const mt={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},gt="12px",bt="nebula-table-utils-head-menu-button";let vt=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 yt="nebula-table-utils-column-adjuster",xt=`${yt}-border`;let St=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}({}),Et=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Ct="CLIENT_IM_5863_PVT_TEXT_ALIGN",wt="CLIENT_IM5847_PIVOT_LIMITATION",Rt="CLIENT_IM_5715_LINKS_AND_IMAGES",Lt="CLIENT_IM_5715_LINKS";var At,Dt;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(At||(At={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(Dt||(Dt={}));var _t,It,Mt,Ot,Pt=At;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(_t||(_t={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.Link="url",e.LinkLabel="urlLabel"}(It||(It={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Mt||(Mt={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Ot||(Ot={}));const kt="TOTAL_OFF",Tt="image",qt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:It.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:It.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.LinkLabel,tid:"ImageLabelByExpression",show:!1}]};function Nt(e,t,r){if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=r.properties.qHyperCubeDef.qNoOfLeftDims;n>-1&&n<o&&(o-=1);const i=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o}const Ft={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Et.Auto,translation:"Common.Auto"},{value:Et.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Et.Pixels,translation:"Object.Table.Column.Pixels"},{value:Et.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Et.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:St.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Et.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(St.PixelsMin,Math.min(St.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:St.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Et.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(St.PercentageMin,Math.min(St.PercentageMax,e.qDef.columnWidth.percentage)))}}},zt=({key:e,translation:t,flags:r})=>{if(r.isEnabled(Ct))return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:e=>{var t;return(null==e||null===(t=e.qDef)||void 0===t||null===(t=t.representation)||void 0===t?void 0:t.type)!==Tt}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var r,n;return void 0!==t.qDef[e]&&!(null!==(r=t.qDef[e])&&void 0!==r&&r.auto)&&(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==Tt}}}},$t=e=>{var t,r;const{flags:n,anything:o}=e,i=n.isEnabled(Rt)&&!(null!==(t=o.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages")),a=n.isEnabled(Lt);return{representationType:i||a?{uses:"dimensionRepresentationItems.representationType",options(){const e=[{value:"text",translation:"Object.Table.Representation.Text"}];return a&&e.push({value:"url",translation:"Object.Table.Representation.Link"}),i&&e.push({value:Tt,translation:"Object.Table.Representation.Image"}),e}}:void 0,representationUrlPosition:a?{uses:"dimensionRepresentationItems.representationUrlPosition"}:void 0,representationUrlLabel:a?{uses:"dimensionRepresentationItems.representationUrlLabel"}:void 0,representationLinkUrl:a?{uses:"dimensionRepresentationItems.representationLinkUrl"}:void 0,representationImage:i?{uses:"dimensionRepresentationItems.representationImage"}:void 0}},jt=e=>{var t,r;const{translator:n,anything:o,flags:i}=e;return{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:kt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:kt,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&Nt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==kt&&Nt(e,0,r)}},dimensionLimits:i.isEnabled(wt)?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled(wt)?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled(wt)?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:qt,...zt({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...zt({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),...$t(e),...Ft}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:qt,...zt({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...zt({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ft}}}}},Gt="12px",Bt="Source Sans Pro, sans-serif",Ht="600",Wt=15e3,Vt=15e3,Yt=4/3,Ut=1;var Kt,Xt;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Kt||(Kt={})),function(e){e.Solid="solid",e.None="none"}(Xt||(Xt={}));const Jt={display:"flex",justifyContent:"center",alignItems:"center"},Zt={borderStyle:"solid"},Qt={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},er={lineHeight:"calc(1.3333333333333333)",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},tr=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",lineBreak:"auto",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-all"}),rr=(e,t)=>e>0?`${e}px ${Xt.Solid} ${t}`:Xt.None,nr=(e,t,r,n)=>{const o=Number(!t||(null==n?void 0:n.right)),i=Number(!e||(null==n?void 0:n.bottom));return{borderRight:rr(o,r),borderBottom:rr(i,r),borderLeft:Xt.None,borderTop:Xt.None}},or=(e,t,r,n,o,i)=>{const a=nr(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=rr(2,o)),r||(a.borderLeft=rr(1,o))),a},ir=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=rr(1,r)),t&&(n.borderRight=rr(1,r)),n},ar=(e,t,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,n){const o=n.theme.current(),i=r(o);return{color:i===Kt.Transparent.toString()?"none":i}}}),lr=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),sr=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:lr("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled(Rt)?lr("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:ar("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Kt.DividerLight})),divider:ar("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Kt.DividerDark})),background:ar("grid.background","properties.background",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.backgroundColor)&&void 0!==t?t:Kt.Transparent}))}}}}),ur=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},cr=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:Bt,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>ur(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...Y(n).filter((e=>!s.includes(e))).map((e=>ur(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),dr=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],pr=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>ur(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...dr.filter((e=>!a.includes(e))).map((e=>ur(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),fr=(e,t,r)=>{var n,o,i,a,l,s;switch(t){case"header":return null==e||null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[r];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[r];default:return}},hr=({section:e,defaultFontStyle:t,translator:r,flags:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:cr({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=fr(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:pr({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=fr(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:ar(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=fr(t,e,"color"))&&void 0!==r?r:t.color}))}},background:ar(`${e}.background`,"properties.background",(t=>{var r;return null!==(r=fr(t,e,"backgroundColor"))&&void 0!==r?r:Kt.Transparent}))}}}}),mr=({section:e,defaultFontStyle:t,fallbackBackground:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:ar(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=fr(t,e,"color"))&&void 0!==r?r:t.color}))}},background:ar(`${e}.background`,"properties.background",(t=>{var n,o;return null!==(n=null!==(o=fr(t,e,"backgroundColor"))&&void 0!==o?o:r)&&void 0!==n?n:Kt.Transparent}))}}}}),gr=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:hr({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:hr({section:"dimensionValues",translator:e,flags:t}),measureValueSection:hr({section:"measureValues",translator:e,flags:t}),measureLabelSection:mr({section:"measureLabels"}),totalValuesSection:mr({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:mr({section:"nullValues",fallbackBackground:Kt.NullValueBackground}),gridSection:sr(t)}}]}),br=e=>({type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},...e.isEnabled("CLIENT_IM_5975_INDENT_MODE")&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){var t;return null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qDimensions)||void 0===t?void 0:t.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)}))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}),vr=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[gr(e,t),br(t)]}}}),yr="auto",xr={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:yr,translation:"Object.Table.SortingInSearch",options:[{value:yr,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Sr(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:jt(e),sorting:xr,addons:mt,settings:vr(t,r)}}}function Er(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:!1,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Sr(e),importProperties:ft(e),exportProperties:ht}}function Cr(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function wr(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Rr(){}var Lr=.7,Ar=1/Lr,Dr="\\s*([+-]?\\d+)\\s*",_r="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ir="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mr=/^#([0-9a-f]{3,8})$/,Or=new RegExp(`^rgb\\(${Dr},${Dr},${Dr}\\)$`),Pr=new RegExp(`^rgb\\(${Ir},${Ir},${Ir}\\)$`),kr=new RegExp(`^rgba\\(${Dr},${Dr},${Dr},${_r}\\)$`),Tr=new RegExp(`^rgba\\(${Ir},${Ir},${Ir},${_r}\\)$`),qr=new RegExp(`^hsl\\(${_r},${Ir},${Ir}\\)$`),Nr=new RegExp(`^hsla\\(${_r},${Ir},${Ir},${_r}\\)$`),Fr={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 zr(){return this.rgb().formatHex()}function $r(){return this.rgb().formatRgb()}function jr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Mr.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Gr(t):3===r?new Vr(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Br(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Br(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=Or.exec(e))?new Vr(t[1],t[2],t[3],1):(t=Pr.exec(e))?new Vr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=kr.exec(e))?Br(t[1],t[2],t[3],t[4]):(t=Tr.exec(e))?Br(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=qr.exec(e))?Zr(t[1],t[2]/100,t[3]/100,1):(t=Nr.exec(e))?Zr(t[1],t[2]/100,t[3]/100,t[4]):Fr.hasOwnProperty(e)?Gr(Fr[e]):"transparent"===e?new Vr(NaN,NaN,NaN,0):null}function Gr(e){return new Vr(e>>16&255,e>>8&255,255&e,1)}function Br(e,t,r,n){return n<=0&&(e=t=r=NaN),new Vr(e,t,r,n)}function Hr(e){return e instanceof Rr||(e=jr(e)),e?new Vr((e=e.rgb()).r,e.g,e.b,e.opacity):new Vr}function Wr(e,t,r,n){return 1===arguments.length?Hr(e):new Vr(e,t,r,null==n?1:n)}function Vr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Yr(){return`#${Jr(this.r)}${Jr(this.g)}${Jr(this.b)}`}function Ur(){const e=Kr(this.opacity);return`${1===e?"rgb(":"rgba("}${Xr(this.r)}, ${Xr(this.g)}, ${Xr(this.b)}${1===e?")":`, ${e})`}`}function Kr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jr(e){return((e=Xr(e))<16?"0":"")+e.toString(16)}function Zr(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new en(e,t,r,n)}function Qr(e){if(e instanceof en)return new en(e.h,e.s,e.l,e.opacity);if(e instanceof Rr||(e=jr(e)),!e)return new en;if(e instanceof en)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new en(a,l,s,e.opacity)}function en(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function tn(e){return(e=(e||0)%360)<0?e+360:e}function rn(e){return Math.max(0,Math.min(1,e||0))}function nn(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Cr(Rr,jr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zr,formatHex:zr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Qr(this).formatHsl()},formatRgb:$r,toString:$r}),Cr(Vr,Wr,wr(Rr,{brighter(e){return e=null==e?Ar:Math.pow(Ar,e),new Vr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Lr:Math.pow(Lr,e),new Vr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vr(Xr(this.r),Xr(this.g),Xr(this.b),Kr(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:Yr,formatHex:Yr,formatHex8:function(){return`#${Jr(this.r)}${Jr(this.g)}${Jr(this.b)}${Jr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ur,toString:Ur})),Cr(en,(function(e,t,r,n){return 1===arguments.length?Qr(e):new en(e,t,r,null==n?1:n)}),wr(Rr,{brighter(e){return e=null==e?Ar:Math.pow(Ar,e),new en(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Lr:Math.pow(Lr,e),new en(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 Vr(nn(e>=240?e-240:e+120,o,n),nn(e,o,n),nn(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new en(tn(this.h),rn(this.s),rn(this.l),Kr(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=Kr(this.opacity);return`${1===e?"hsl(":"hsla("}${tn(this.h)}, ${100*rn(this.s)}%, ${100*rn(this.l)}%${1===e?")":`, ${e})`}`}}));const on=Math.PI/180,an=180/Math.PI,ln=.96422,sn=1,un=.82521,cn=4/29,dn=6/29,pn=3*dn*dn,fn=dn*dn*dn;function hn(e){if(e instanceof mn)return new mn(e.l,e.a,e.b,e.opacity);if(e instanceof Sn)return En(e);e instanceof Vr||(e=Hr(e));var t,r,n=yn(e.r),o=yn(e.g),i=yn(e.b),a=gn((.2225045*n+.7168786*o+.0606169*i)/sn);return n===o&&o===i?t=r=a:(t=gn((.4360747*n+.3850649*o+.1430804*i)/ln),r=gn((.0139322*n+.0971045*o+.7141733*i)/un)),new mn(116*a-16,500*(t-a),200*(a-r),e.opacity)}function mn(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function gn(e){return e>fn?Math.pow(e,1/3):e/pn+cn}function bn(e){return e>dn?e*e*e:pn*(e-cn)}function vn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function xn(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Sn)return new Sn(e.h,e.c,e.l,e.opacity);if(e instanceof mn||(e=hn(e)),0===e.a&&0===e.b)return new Sn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*an;return new Sn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Sn(e,t,r,null==n?1:n)}function Sn(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function En(e){if(isNaN(e.h))return new mn(e.l,0,0,e.opacity);var t=e.h*on;return new mn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Cr(mn,(function(e,t,r,n){return 1===arguments.length?hn(e):new mn(e,t,r,null==n?1:n)}),wr(Rr,{brighter(e){return new mn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new mn(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 Vr(vn(3.1338561*(t=ln*bn(t))-1.6168667*(e=sn*bn(e))-.4906146*(r=un*bn(r))),vn(-.9787684*t+1.9161415*e+.033454*r),vn(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Cr(Sn,xn,wr(Rr,{brighter(e){return new Sn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Sn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return En(this).rgb()}}));const Cn=e=>{if(e){const t=Wr(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},wn=(e,t,r,n)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==r?void 0:r(e),u=null==n?void 0:n(e),c=s||i||u,d=(e=>!!e&&0===Wr(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:Cn(d?l:c),isTransparent:d}};function Rn(e,n){const o=t((()=>({isLoading:!0})),n),[i,a]=r((async()=>{try{return await e()}finally{o.isLoading=!1}}),n);return[i,o.isLoading,a]}var Ln=Object.prototype.hasOwnProperty,An=Object.prototype.toString,Dn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,In=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===An.call(e)},Mn=function(e){if(!e||"[object Object]"!==An.call(e))return!1;var t,r=Ln.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Ln.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Ln.call(e,t)},On=function(e,t){Dn&&"__proto__"===t.name?Dn(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Pn=function(e,t){if("__proto__"===t){if(!Ln.call(e,t))return;if(_n)return _n(e,t).value}return e[t]};function kn(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Tn(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function qn(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(r in t)n=Pn(l,r),l!==(o=Pn(t,r))&&(c&&o&&(Mn(o)||(i=In(o)))?(i?(i=!1,a=n&&In(n)?n:[]):a=n&&Mn(n)?n:{},On(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&On(l,{name:r,newValue:o}));return l}));var Nn=1/.7,Fn="\\s*([+-]?\\d+)\\s*",zn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$n="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jn=/^#([0-9a-f]{3,8})$/,Gn=new RegExp(`^rgb\\(${Fn},${Fn},${Fn}\\)$`),Bn=new RegExp(`^rgb\\(${$n},${$n},${$n}\\)$`),Hn=new RegExp(`^rgba\\(${Fn},${Fn},${Fn},${zn}\\)$`),Wn=new RegExp(`^rgba\\(${$n},${$n},${$n},${zn}\\)$`),Vn=new RegExp(`^hsl\\(${zn},${$n},${$n}\\)$`),Yn=new RegExp(`^hsla\\(${zn},${$n},${$n},${zn}\\)$`),Un={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 Kn(){return this.rgb().formatHex()}function Xn(){return this.rgb().formatRgb()}function Jn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=jn.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Zn(t):3===r?new ro(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Qn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Qn(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=Gn.exec(e))?new ro(t[1],t[2],t[3],1):(t=Bn.exec(e))?new ro(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Hn.exec(e))?Qn(t[1],t[2],t[3],t[4]):(t=Wn.exec(e))?Qn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Vn.exec(e))?so(t[1],t[2]/100,t[3]/100,1):(t=Yn.exec(e))?so(t[1],t[2]/100,t[3]/100,t[4]):Un.hasOwnProperty(e)?Zn(Un[e]):"transparent"===e?new ro(NaN,NaN,NaN,0):null}function Zn(e){return new ro(e>>16&255,e>>8&255,255&e,1)}function Qn(e,t,r,n){return n<=0&&(e=t=r=NaN),new ro(e,t,r,n)}function eo(e){return e instanceof qn||(e=Jn(e)),e?new ro((e=e.rgb()).r,e.g,e.b,e.opacity):new ro}function to(e,t,r,n){return 1===arguments.length?eo(e):new ro(e,t,r,null==n?1:n)}function ro(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function no(){return`#${lo(this.r)}${lo(this.g)}${lo(this.b)}`}function oo(){const e=io(this.opacity);return`${1===e?"rgb(":"rgba("}${ao(this.r)}, ${ao(this.g)}, ${ao(this.b)}${1===e?")":`, ${e})`}`}function io(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ao(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lo(e){return((e=ao(e))<16?"0":"")+e.toString(16)}function so(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new co(e,t,r,n)}function uo(e){if(e instanceof co)return new co(e.h,e.s,e.l,e.opacity);if(e instanceof qn||(e=Jn(e)),!e)return new co;if(e instanceof co)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new co(a,l,s,e.opacity)}function co(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function po(e){return(e=(e||0)%360)<0?e+360:e}function fo(e){return Math.max(0,Math.min(1,e||0))}function ho(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}kn(qn,Jn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Kn,formatHex:Kn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return uo(this).formatHsl()},formatRgb:Xn,toString:Xn}),kn(ro,to,Tn(qn,{brighter(e){return e=null==e?Nn:Math.pow(Nn,e),new ro(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ro(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ro(ao(this.r),ao(this.g),ao(this.b),io(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:no,formatHex:no,formatHex8:function(){return`#${lo(this.r)}${lo(this.g)}${lo(this.b)}${lo(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:oo,toString:oo})),kn(co,(function(e,t,r,n){return 1===arguments.length?uo(e):new co(e,t,r,null==n?1:n)}),Tn(qn,{brighter(e){return e=null==e?Nn:Math.pow(Nn,e),new co(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new co(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 ro(ho(e>=240?e-240:e+120,o,n),ho(e,o,n),ho(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new co(po(this.h),fo(this.s),fo(this.l),io(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=io(this.opacity);return`${1===e?"hsl(":"hsla("}${po(this.h)}, ${100*fo(this.s)}%, ${100*fo(this.l)}%${1===e?")":`, ${e})`}`}}));const mo=Math.PI/180,go=180/Math.PI,bo=4/29,vo=6/29,yo=3*vo*vo;function xo(e){if(e instanceof So)return new So(e.l,e.a,e.b,e.opacity);if(e instanceof Lo)return Ao(e);e instanceof ro||(e=eo(e));var t,r,n=Ro(e.r),o=Ro(e.g),i=Ro(e.b),a=Eo((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Eo((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Eo((.0139322*n+.0971045*o+.7141733*i)/.82521)),new So(116*a-16,500*(t-a),200*(a-r),e.opacity)}function So(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Eo(e){return e>.008856451679035631?Math.pow(e,1/3):e/yo+bo}function Co(e){return e>vo?e*e*e:yo*(e-bo)}function wo(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ro(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Lo(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Ao(e){if(isNaN(e.h))return new So(e.l,0,0,e.opacity);var t=e.h*mo;return new So(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}kn(So,(function(e,t,r,n){return 1===arguments.length?xo(e):new So(e,t,r,null==n?1:n)}),Tn(qn,{brighter(e){return new So(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new So(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 ro(wo(3.1338561*(t=.96422*Co(t))-1.6168667*(e=1*Co(e))-.4906146*(r=.82521*Co(r))),wo(-.9787684*t+1.9161415*e+.033454*r),wo(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),kn(Lo,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Lo)return new Lo(e.h,e.c,e.l,e.opacity);if(e instanceof So||(e=xo(e)),0===e.a&&0===e.b)return new Lo(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*go;return new Lo(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Lo(e,t,r,null==n?1:n)}),Tn(qn,{brighter(e){return new Lo(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Lo(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ao(this).rgb()}}));var Do,_o=e=>()=>e;function Io(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):_o(isNaN(e)?t:e)}function Mo(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 Oo(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 Po(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=To)):void 0===t&&(t=ko);for(var r,n,o,i,a,l=new Fo(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Fo(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(No)}function ko(e){return e.children}function To(e){return Array.isArray(e)?e[1]:null}function qo(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function No(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Fo(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var r=function(e){return 1==(e=+e)?Io: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):_o(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=to(e)).r,(t=to(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Io(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),Fo.prototype=Po.prototype={constructor:Fo,count:function(){return this.eachAfter(Oo)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Po(this).eachBefore(qo)},[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)}},Do=function(e){
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",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(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},Qe({exports:{}});const ct="qHyperCubeDef.qDimensions",dt="dimensions",pt="qOtherTotalSpec.qTotalMode",ft="totalMode",ht={quarantine(e){j.quarantineArrayProp({properties:e,arrayPath:ct,quarantineName:ft,arrayName:dt,itemPath:pt})},unquarantine(e){j.unquarantineArrayProp({properties:e,arrayPath:ct,quarantineName:ft,arrayName:dt,itemPath:pt})}};function mt(e){const t=ut(e);return(e,r,n,o)=>{var i,a,l,s,u,c;const d=j.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),p=((null===(i=d.qProperty)||void 0===i||null===(i=i.qHyperCubeDef)||void 0===i?void 0:i.qDimensions)||[]).length,f=(null===(a=d.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a||null===(a=a.qMeasures)||void 0===a?void 0:a.length)||0;let h,m=(null===(l=d.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l?void 0:l.qInterColumnSortOrder)||[],g=!0;p+f===m.length&&tt(d,"qProperty.qLayoutExclude.quarantine.interColSortOrder",m.concat());const b=(null==d||null===(s=d.qProperty)||void 0===s||null===(s=s.qLayoutExclude)||void 0===s||null===(s=s.quarantine)||void 0===s?void 0:s.pivotInterColSortOrder)||void 0;b?(m=b,h=[...b],tt(d,"qProperty.qHyperCubeDef.qInterColumnSortOrder",m),delete d.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):m.length=0;const v=+(m.indexOf(-1)>-1),y=p+v;if(y>m.length)for(let e=m.length;e<y;e++)m.indexOf(e)<0&&m.push(e-v);for(let e=m.length-1;e>=0;e--)m[e]>=p&&m.splice(e,1);f>1&&m.indexOf(-1)<0?m.push(-1):f<2&&m.indexOf(-1)>-1&&m.splice(m.indexOf(-1),1);const x=null!==(u=null==d||null===(c=d.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qNoOfLeftDims)&&void 0!==u?u:-1;if(p>0&&-1===x&&tt(d,"qProperty.qHyperCubeDef.qNoOfLeftDims",p),h&&m&&h.length===m.length){for(let e=0;e<h.length;e++)if(h[e]!==m[e]){g=!1;break}g&&j.unquarantineProperty(d.qProperty,"noOfLeftDims")}return j.conditionalShow.unquarantine(d.qProperty),ht.unquarantine(d.qProperty),W(d.qProperty),d}}function gt(e,t){var r,n,o;const i=null!==(r=null==e||null===(n=e.qProperty)||void 0===n||null===(n=n.qHyperCubeDef)||void 0===n?void 0:n.qInterColumnSortOrder)&&void 0!==r?r:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=j.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;tt(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),j.quarantineProperty(s.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete s.properties.qHyperCubeDef.qNoOfLeftDims;const f=null==s||null===(o=s.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;f&&(p=f,tt(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),tt(s,"data.0.interColumnSortOrder",p),delete s.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=p.length;e<c+d;e++)p.length<=e&&p.push(e);return j.conditionalShow.quarantine(s.properties),ht.quarantine(s.properties),V(s.properties),s}const bt={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},vt="12px",yt="nebula-table-utils-head-menu-button";let xt=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 St="nebula-table-utils-column-adjuster",Et=`${St}-border`;let Ct=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}({}),wt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Rt="CLIENT_IM_5863_PVT_TEXT_ALIGN",Lt="CLIENT_IM5847_PIVOT_LIMITATION",At="CLIENT_IM_5715_LINKS_AND_IMAGES",It="CLIENT_IM_5715_LINKS",Mt="CLIENT_IM_5975_INDENT_MODE";var Dt,Pt;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(Dt||(Dt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(Pt||(Pt={}));var _t,Ot,kt,Tt,qt=Dt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(_t||(_t={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Ot||(Ot={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(kt||(kt={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Tt||(Tt={}));const Nt=e=>{var t,r;const{flags:n,anything:o}=e,i=n.isEnabled(At)&&!(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}},Ft="TOTAL_OFF",zt="image",jt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ot.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ot.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ot.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ot.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ot.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ot.ImageUrl,tid:"ImageUrlByExpression",show:!1}]};function $t(e,t,r){if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=r.properties.qHyperCubeDef.qNoOfLeftDims;n>-1&&n<o&&(o-=1);const i=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o}const Bt={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:wt.Auto,translation:"Common.Auto"},{value:wt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:wt.Pixels,translation:"Object.Table.Column.Pixels"},{value:wt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:wt.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Ct.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===wt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(Ct.PixelsMin,Math.min(Ct.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Ct.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===wt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(Ct.PercentageMin,Math.min(Ct.PercentageMax,e.qDef.columnWidth.percentage)))}}},Ht=({key:e,translation:t,flags:r})=>{if(!r.isEnabled(Rt))return;const n=r.isEnabled(At);return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var r;if(!n||"labelTextAlign"===e)return!0;return(null==t||null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==zt}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var r,o;return!(void 0===t.qDef[e]||null!==(r=t.qDef[e])&&void 0!==r&&r.auto)&&(!n||"labelTextAlign"===e||(null===(o=t.qDef)||void 0===o||null===(o=o.representation)||void 0===o?void 0:o.type)!==zt)}}}},Gt=e=>{var t,r;const{flags:n,anything:o}=e,i=n.isEnabled(At)&&!(null!==(t=o.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages")),a=n.isEnabled(It);return{representationType:i||a?{uses:"dimensionRepresentationItems.representationType",options(){const e=[{value:"text",translation:"Object.Table.Representation.Text"}];return a&&e.push({value:"url",translation:"Object.Table.Representation.Link"}),i&&e.push({value:zt,translation:"Object.Table.Representation.Image"}),e}}:void 0,representationUrlPosition:a?{uses:"dimensionRepresentationItems.representationUrlPosition"}:void 0,representationUrlLabel:a?{uses:"dimensionRepresentationItems.representationUrlLabel"}:void 0,representationLinkUrl:a?{uses:"dimensionRepresentationItems.representationLinkUrl"}:void 0,representationImage:i?{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"}]}}}:void 0}},Wt=e=>{var t,r;const{translator:n,anything:o,flags:i}=e;return{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:Ft,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Ft,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&$t},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==Ft&&$t(e,0,r)}},dimensionLimits:i.isEnabled(Lt)?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled(Lt)?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled(Lt)?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:jt,...Ht({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Ht({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Gt(e),...Bt}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:jt,...Ht({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Ht({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Nt(e),...Bt}}}}},Vt="12px",Yt="Source Sans Pro, sans-serif",Ut="600",Kt=15e3,Xt=15e3,Jt=4/3,Zt=1;var Qt,er;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Qt||(Qt={})),function(e){e.Solid="solid",e.None="none"}(er||(er={}));const tr={display:"flex",justifyContent:"center",alignItems:"center"},rr={borderStyle:"solid"},nr={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},or={lineHeight:"calc(1.3333333333333333)",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},ir=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",lineBreak:"auto",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-all"}),ar=(e,t)=>e>0?`${e}px ${er.Solid} ${t}`:er.None,lr=(e,t,r,n)=>{const o=Number(!t||(null==n?void 0:n.right)),i=Number(!e||(null==n?void 0:n.bottom));return{borderRight:ar(o,r),borderBottom:ar(i,r),borderLeft:er.None,borderTop:er.None}},sr=(e,t,r,n,o,i)=>{const a=lr(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=ar(2,o)),r||(a.borderLeft=ar(1,o))),a},ur=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=ar(1,r)),t&&(n.borderRight=ar(1,r)),n},cr=(e,t,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,n){const o=n.theme.current(),i=r(o);return{color:i===Qt.Transparent.toString()?"none":i}}}),dr=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),pr=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:dr("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled(At)?dr("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:cr("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Qt.DividerLight})),divider:cr("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Qt.DividerDark})),background:cr("grid.background","properties.background",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.backgroundColor)&&void 0!==t?t:Qt.Transparent}))}}}}),fr=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},hr=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:Yt,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>fr(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...K(n).filter((e=>!s.includes(e))).map((e=>fr(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),mr=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],gr=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>fr(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...mr.filter((e=>!a.includes(e))).map((e=>fr(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),br=(e,t,r)=>{var n,o,i,a,l,s;switch(t){case"header":return null==e||null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[r];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[r];default:return}},vr=({section:e,defaultFontStyle:t,translator:r,flags:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:hr({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=br(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:gr({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=br(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:cr(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=br(t,e,"color"))&&void 0!==r?r:t.color}))}},background:cr(`${e}.background`,"properties.background",(t=>{var r;return null!==(r=br(t,e,"backgroundColor"))&&void 0!==r?r:Qt.Transparent}))}}}}),yr=({section:e,defaultFontStyle:t,fallbackBackground:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:cr(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=br(t,e,"color"))&&void 0!==r?r:t.color}))}},background:cr(`${e}.background`,"properties.background",(t=>{var n,o;return null!==(n=null!==(o=br(t,e,"backgroundColor"))&&void 0!==o?o:r)&&void 0!==n?n:Qt.Transparent}))}}}}),xr=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:vr({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:vr({section:"dimensionValues",translator:e,flags:t}),measureValueSection:vr({section:"measureValues",translator:e,flags:t}),measureLabelSection:yr({section:"measureLabels"}),totalValuesSection:yr({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:yr({section:"nullValues",fallbackBackground:Qt.NullValueBackground}),gridSection:pr(t)}}]}),Sr=e=>({type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},...e.isEnabled(Mt)&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){var t;return!e.qHyperCubeDef.qIndentMode&&(null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qDimensions)||void 0===t?void 0:t.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)})))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}),Er=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[xr(e,t),Sr(t)]}}}),Cr="auto",wr={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:Cr,translation:"Object.Table.SortingInSearch",options:[{value:Cr,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Rr(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:Wt(e),sorting:wr,addons:bt,settings:Er(t,r)}}}function Lr(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Rr(e),importProperties:mt(e),exportProperties:gt}}function Ar(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ir(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Mr(){}var Dr=.7,Pr=1/Dr,_r="\\s*([+-]?\\d+)\\s*",Or="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",kr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tr=/^#([0-9a-f]{3,8})$/,qr=new RegExp(`^rgb\\(${_r},${_r},${_r}\\)$`),Nr=new RegExp(`^rgb\\(${kr},${kr},${kr}\\)$`),Fr=new RegExp(`^rgba\\(${_r},${_r},${_r},${Or}\\)$`),zr=new RegExp(`^rgba\\(${kr},${kr},${kr},${Or}\\)$`),jr=new RegExp(`^hsl\\(${Or},${kr},${kr}\\)$`),$r=new RegExp(`^hsla\\(${Or},${kr},${kr},${Or}\\)$`),Br={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 Hr(){return this.rgb().formatHex()}function Gr(){return this.rgb().formatRgb()}function Wr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Tr.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Vr(t):3===r?new Xr(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Yr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Yr(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=qr.exec(e))?new Xr(t[1],t[2],t[3],1):(t=Nr.exec(e))?new Xr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Fr.exec(e))?Yr(t[1],t[2],t[3],t[4]):(t=zr.exec(e))?Yr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=jr.exec(e))?rn(t[1],t[2]/100,t[3]/100,1):(t=$r.exec(e))?rn(t[1],t[2]/100,t[3]/100,t[4]):Br.hasOwnProperty(e)?Vr(Br[e]):"transparent"===e?new Xr(NaN,NaN,NaN,0):null}function Vr(e){return new Xr(e>>16&255,e>>8&255,255&e,1)}function Yr(e,t,r,n){return n<=0&&(e=t=r=NaN),new Xr(e,t,r,n)}function Ur(e){return e instanceof Mr||(e=Wr(e)),e?new Xr((e=e.rgb()).r,e.g,e.b,e.opacity):new Xr}function Kr(e,t,r,n){return 1===arguments.length?Ur(e):new Xr(e,t,r,null==n?1:n)}function Xr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Jr(){return`#${tn(this.r)}${tn(this.g)}${tn(this.b)}`}function Zr(){const e=Qr(this.opacity);return`${1===e?"rgb(":"rgba("}${en(this.r)}, ${en(this.g)}, ${en(this.b)}${1===e?")":`, ${e})`}`}function Qr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function en(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tn(e){return((e=en(e))<16?"0":"")+e.toString(16)}function rn(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new on(e,t,r,n)}function nn(e){if(e instanceof on)return new on(e.h,e.s,e.l,e.opacity);if(e instanceof Mr||(e=Wr(e)),!e)return new on;if(e instanceof on)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new on(a,l,s,e.opacity)}function on(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function an(e){return(e=(e||0)%360)<0?e+360:e}function ln(e){return Math.max(0,Math.min(1,e||0))}function sn(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ar(Mr,Wr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hr,formatHex:Hr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nn(this).formatHsl()},formatRgb:Gr,toString:Gr}),Ar(Xr,Kr,Ir(Mr,{brighter(e){return e=null==e?Pr:Math.pow(Pr,e),new Xr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Dr:Math.pow(Dr,e),new Xr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xr(en(this.r),en(this.g),en(this.b),Qr(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:Jr,formatHex:Jr,formatHex8:function(){return`#${tn(this.r)}${tn(this.g)}${tn(this.b)}${tn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zr,toString:Zr})),Ar(on,(function(e,t,r,n){return 1===arguments.length?nn(e):new on(e,t,r,null==n?1:n)}),Ir(Mr,{brighter(e){return e=null==e?Pr:Math.pow(Pr,e),new on(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Dr:Math.pow(Dr,e),new on(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 Xr(sn(e>=240?e-240:e+120,o,n),sn(e,o,n),sn(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new on(an(this.h),ln(this.s),ln(this.l),Qr(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=Qr(this.opacity);return`${1===e?"hsl(":"hsla("}${an(this.h)}, ${100*ln(this.s)}%, ${100*ln(this.l)}%${1===e?")":`, ${e})`}`}}));const un=Math.PI/180,cn=180/Math.PI,dn=.96422,pn=1,fn=.82521,hn=4/29,mn=6/29,gn=3*mn*mn,bn=mn*mn*mn;function vn(e){if(e instanceof yn)return new yn(e.l,e.a,e.b,e.opacity);if(e instanceof Rn)return Ln(e);e instanceof Xr||(e=Ur(e));var t,r,n=Cn(e.r),o=Cn(e.g),i=Cn(e.b),a=xn((.2225045*n+.7168786*o+.0606169*i)/pn);return n===o&&o===i?t=r=a:(t=xn((.4360747*n+.3850649*o+.1430804*i)/dn),r=xn((.0139322*n+.0971045*o+.7141733*i)/fn)),new yn(116*a-16,500*(t-a),200*(a-r),e.opacity)}function yn(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function xn(e){return e>bn?Math.pow(e,1/3):e/gn+hn}function Sn(e){return e>mn?e*e*e:gn*(e-hn)}function En(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Cn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function wn(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Rn)return new Rn(e.h,e.c,e.l,e.opacity);if(e instanceof yn||(e=vn(e)),0===e.a&&0===e.b)return new Rn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*cn;return new Rn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Rn(e,t,r,null==n?1:n)}function Rn(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Ln(e){if(isNaN(e.h))return new yn(e.l,0,0,e.opacity);var t=e.h*un;return new yn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ar(yn,(function(e,t,r,n){return 1===arguments.length?vn(e):new yn(e,t,r,null==n?1:n)}),Ir(Mr,{brighter(e){return new yn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new yn(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 Xr(En(3.1338561*(t=dn*Sn(t))-1.6168667*(e=pn*Sn(e))-.4906146*(r=fn*Sn(r))),En(-.9787684*t+1.9161415*e+.033454*r),En(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ar(Rn,wn,Ir(Mr,{brighter(e){return new Rn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Rn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ln(this).rgb()}}));const An=e=>{if(e){const t=Kr(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},In=(e,t,r,n)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==r?void 0:r(e),u=null==n?void 0:n(e),c=s||i||u,d=(e=>!!e&&0===Kr(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:An(d?l:c),isTransparent:d}};function Mn(e,n){const o=t((()=>({isLoading:!0})),n),[i,a]=r((async()=>{try{return await e()}finally{o.isLoading=!1}}),n);return[i,o.isLoading,a]}var Dn=Object.prototype.hasOwnProperty,Pn=Object.prototype.toString,_n=Object.defineProperty,On=Object.getOwnPropertyDescriptor,kn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Pn.call(e)},Tn=function(e){if(!e||"[object Object]"!==Pn.call(e))return!1;var t,r=Dn.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Dn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Dn.call(e,t)},qn=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},Nn=function(e,t){if("__proto__"===t){if(!Dn.call(e,t))return;if(On)return On(e,t).value}return e[t]};function Fn(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function zn(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function jn(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(r in t)n=Nn(l,r),l!==(o=Nn(t,r))&&(c&&o&&(Tn(o)||(i=kn(o)))?(i?(i=!1,a=n&&kn(n)?n:[]):a=n&&Tn(n)?n:{},qn(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&qn(l,{name:r,newValue:o}));return l}));var $n=1/.7,Bn="\\s*([+-]?\\d+)\\s*",Hn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wn=/^#([0-9a-f]{3,8})$/,Vn=new RegExp(`^rgb\\(${Bn},${Bn},${Bn}\\)$`),Yn=new RegExp(`^rgb\\(${Gn},${Gn},${Gn}\\)$`),Un=new RegExp(`^rgba\\(${Bn},${Bn},${Bn},${Hn}\\)$`),Kn=new RegExp(`^rgba\\(${Gn},${Gn},${Gn},${Hn}\\)$`),Xn=new RegExp(`^hsl\\(${Hn},${Gn},${Gn}\\)$`),Jn=new RegExp(`^hsla\\(${Hn},${Gn},${Gn},${Hn}\\)$`),Zn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Qn(){return this.rgb().formatHex()}function eo(){return this.rgb().formatRgb()}function to(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Wn.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?ro(t):3===r?new ao(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?no(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?no(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=Vn.exec(e))?new ao(t[1],t[2],t[3],1):(t=Yn.exec(e))?new ao(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Un.exec(e))?no(t[1],t[2],t[3],t[4]):(t=Kn.exec(e))?no(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Xn.exec(e))?fo(t[1],t[2]/100,t[3]/100,1):(t=Jn.exec(e))?fo(t[1],t[2]/100,t[3]/100,t[4]):Zn.hasOwnProperty(e)?ro(Zn[e]):"transparent"===e?new ao(NaN,NaN,NaN,0):null}function ro(e){return new ao(e>>16&255,e>>8&255,255&e,1)}function no(e,t,r,n){return n<=0&&(e=t=r=NaN),new ao(e,t,r,n)}function oo(e){return e instanceof jn||(e=to(e)),e?new ao((e=e.rgb()).r,e.g,e.b,e.opacity):new ao}function io(e,t,r,n){return 1===arguments.length?oo(e):new ao(e,t,r,null==n?1:n)}function ao(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function lo(){return`#${po(this.r)}${po(this.g)}${po(this.b)}`}function so(){const e=uo(this.opacity);return`${1===e?"rgb(":"rgba("}${co(this.r)}, ${co(this.g)}, ${co(this.b)}${1===e?")":`, ${e})`}`}function uo(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function co(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function po(e){return((e=co(e))<16?"0":"")+e.toString(16)}function fo(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new mo(e,t,r,n)}function ho(e){if(e instanceof mo)return new mo(e.h,e.s,e.l,e.opacity);if(e instanceof jn||(e=to(e)),!e)return new mo;if(e instanceof mo)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new mo(a,l,s,e.opacity)}function mo(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function go(e){return(e=(e||0)%360)<0?e+360:e}function bo(e){return Math.max(0,Math.min(1,e||0))}function vo(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Fn(jn,to,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qn,formatHex:Qn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ho(this).formatHsl()},formatRgb:eo,toString:eo}),Fn(ao,io,zn(jn,{brighter(e){return e=null==e?$n:Math.pow($n,e),new ao(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ao(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ao(co(this.r),co(this.g),co(this.b),uo(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:lo,formatHex:lo,formatHex8:function(){return`#${po(this.r)}${po(this.g)}${po(this.b)}${po(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:so,toString:so})),Fn(mo,(function(e,t,r,n){return 1===arguments.length?ho(e):new mo(e,t,r,null==n?1:n)}),zn(jn,{brighter(e){return e=null==e?$n:Math.pow($n,e),new mo(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new mo(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 ao(vo(e>=240?e-240:e+120,o,n),vo(e,o,n),vo(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new mo(go(this.h),bo(this.s),bo(this.l),uo(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=uo(this.opacity);return`${1===e?"hsl(":"hsla("}${go(this.h)}, ${100*bo(this.s)}%, ${100*bo(this.l)}%${1===e?")":`, ${e})`}`}}));const yo=Math.PI/180,xo=180/Math.PI,So=4/29,Eo=6/29,Co=3*Eo*Eo;function wo(e){if(e instanceof Ro)return new Ro(e.l,e.a,e.b,e.opacity);if(e instanceof Do)return Po(e);e instanceof ao||(e=oo(e));var t,r,n=Mo(e.r),o=Mo(e.g),i=Mo(e.b),a=Lo((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Lo((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Lo((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ro(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ro(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Lo(e){return e>.008856451679035631?Math.pow(e,1/3):e/Co+So}function Ao(e){return e>Eo?e*e*e:Co*(e-So)}function Io(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Mo(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Do(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Po(e){if(isNaN(e.h))return new Ro(e.l,0,0,e.opacity);var t=e.h*yo;return new Ro(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Fn(Ro,(function(e,t,r,n){return 1===arguments.length?wo(e):new Ro(e,t,r,null==n?1:n)}),zn(jn,{brighter(e){return new Ro(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ro(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 ao(Io(3.1338561*(t=.96422*Ao(t))-1.6168667*(e=1*Ao(e))-.4906146*(r=.82521*Ao(r))),Io(-.9787684*t+1.9161415*e+.033454*r),Io(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Fn(Do,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Do)return new Do(e.h,e.c,e.l,e.opacity);if(e instanceof Ro||(e=wo(e)),0===e.a&&0===e.b)return new Do(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*xo;return new Do(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Do(e,t,r,null==n?1:n)}),zn(jn,{brighter(e){return new Do(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Do(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Po(this).rgb()}}));var _o,Oo=e=>()=>e;function ko(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Oo(isNaN(e)?t:e)}function To(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 qo(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 No(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=zo)):void 0===t&&(t=Fo);for(var r,n,o,i,a,l=new Bo(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Bo(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore($o)}function Fo(e){return e.children}function zo(e){return Array.isArray(e)?e[1]:null}function jo(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function $o(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Bo(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var r=function(e){return 1==(e=+e)?ko: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):Oo(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=io(e)).r,(t=io(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=ko(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),Bo.prototype=No.prototype={constructor:Bo,count:function(){return this.eachAfter(qo)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return No(this).eachBefore(jo)},[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)}},_o=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 r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",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(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},Do({exports:{}});const zo=3,$o="N";function jo(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function Go({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=zo}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=v((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=Mo(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=Mo((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=jo(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a($o).width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var Bo,Ho=k;Bo=Ho.createRoot,Ho.hydrateRoot;function Wo(e,t){const[r,n]=y(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Vo={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 Yo=({translator:e})=>(v((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Vo).forEach((t=>{e.add(Vo[t])}))}}(e)),[e]),e);var Uo={exports:{}},Ko={},Xo=b,Jo=Symbol.for("react.element"),Zo=Symbol.for("react.fragment"),Qo=Object.prototype.hasOwnProperty,ei=Xo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ti={key:!0,ref:!0,__self:!0,__source:!0};function ri(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)Qo.call(t,n)&&!ti.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:Jo,type:e,key:i,ref:a,props:o,_owner:ei.current}}Ko.Fragment=Zo,Ko.jsx=ri,Ko.jsxs=ri,Uo.exports=Ko;var ni=Uo.exports;function oi(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 ii=Object.freeze({__proto__:null,default:oi}),ai="$$material";function li(){return li=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},li.apply(this,arguments)}function si(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 ui=function(){return ui=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},ui.apply(this,arguments)};function ci(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 di="-ms-",pi="-moz-",fi="-webkit-",hi="comm",mi="rule",gi="decl",bi="@import",vi="@keyframes",yi="@layer",xi=Math.abs,Si=String.fromCharCode,Ei=Object.assign;function Ci(e){return e.trim()}function wi(e,t){return(e=t.exec(e))?e[0]:e}function Ri(e,t,r){return e.replace(t,r)}function Li(e,t,r){return e.indexOf(t,r)}function Ai(e,t){return 0|e.charCodeAt(t)}function Di(e,t,r){return e.slice(t,r)}function _i(e){return e.length}function Ii(e){return e.length}function Mi(e,t){return t.push(e),e}function Oi(e,t){return e.filter((function(e){return!wi(e,t)}))}var Pi=1,ki=1,Ti=0,qi=0,Ni=0,Fi="";function zi(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Pi,column:ki,length:a,return:"",siblings:l}}function $i(e,t){return Ei(zi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ji(e){for(;e.root;)e=$i(e.root,{children:[e]});Mi(e,e.siblings)}function Gi(){return Ni=qi>0?Ai(Fi,--qi):0,ki--,10===Ni&&(ki=1,Pi--),Ni}function Bi(){return Ni=qi<Ti?Ai(Fi,qi++):0,ki++,10===Ni&&(ki=1,Pi++),Ni}function Hi(){return Ai(Fi,qi)}function Wi(){return qi}function Vi(e,t){return Di(Fi,e,t)}function Yi(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 Ui(e){return Ci(Vi(qi-1,Ji(91===e?e+2:40===e?e+1:e)))}function Ki(e){for(;(Ni=Hi())&&Ni<33;)Bi();return Yi(e)>2||Yi(Ni)>3?"":" "}function Xi(e,t){for(;--t&&Bi()&&!(Ni<48||Ni>102||Ni>57&&Ni<65||Ni>70&&Ni<97););return Vi(e,Wi()+(t<6&&32==Hi()&&32==Bi()))}function Ji(e){for(;Bi();)switch(Ni){case e:return qi;case 34:case 39:34!==e&&39!==e&&Ji(Ni);break;case 40:41===e&&Ji(e);break;case 92:Bi()}return qi}function Zi(e,t){for(;Bi()&&e+Ni!==57&&(e+Ni!==84||47!==Hi()););return"/*"+Vi(t,qi-1)+"*"+Si(47===e?e:Bi())}function Qi(e){for(;!Yi(Hi());)Bi();return Vi(e,qi)}function ea(e){return function(e){return Fi="",e}(ta("",null,null,null,[""],e=function(e){return Pi=ki=1,Ti=_i(Fi=e),qi=0,[]}(e),0,[0],e))}function ta(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(h=v,v=Bi()){case 40:if(108!=h&&58==Ai(C,d-1)){-1!=Li(C+=Ri(Ui(v),"&","&\f"),"&\f",xi(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Ui(v);break;case 9:case 10:case 13:case 32:C+=Ki(h);break;case 92:C+=Xi(Wi()-1,7);continue;case 47:switch(Hi()){case 42:case 47:Mi(na(Zi(Bi(),Wi()),t,r,s),s);break;default:C+="/"}break;case 123*m:l[u++]=_i(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Ri(C,/\f/g,"")),f>0&&_i(C)-d&&Mi(f>32?oa(C+";",n,r,d-1,s):oa(Ri(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(Mi(E=ra(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)ta(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Ai(C,3)?100:p){case 100:case 108:case 109:case 115:ta(e,E,E,n&&Mi(ra(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:ta(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+_i(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Gi())continue;switch(C+=Si(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(_i(C)-1)*b,b=1;break;case 64:45===Hi()&&(C+=Ui(Bi())),p=Hi(),c=d=_i(y=C+=Qi(Wi())),v++;break;case 45:45===h&&2==_i(C)&&(m=0)}}return i}function ra(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Ii(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=Di(e,p+1,p=xi(g=a[m])),x=e;v<h;++v)(x=Ci(g>0?f[v]+" "+y:Ri(y,/&\f/g,f[v])))&&(s[b++]=x);return zi(e,t,r,0===o?mi:l,s,u,c,d)}function na(e,t,r,n){return zi(e,t,r,hi,Si(Ni),Di(e,2,-2),0,n)}function oa(e,t,r,n,o){return zi(e,t,r,gi,Di(e,0,n),Di(e,n+1,-1),n,o)}function ia(e,t,r){switch(function(e,t){return 45^Ai(e,0)?(((t<<2^Ai(e,0))<<2^Ai(e,1))<<2^Ai(e,2))<<2^Ai(e,3):0}(e,t)){case 5103:return fi+"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 fi+e+e;case 4789:return pi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fi+e+pi+e+di+e+e;case 5936:switch(Ai(e,t+11)){case 114:return fi+e+di+Ri(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fi+e+di+Ri(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fi+e+di+Ri(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return fi+e+di+e+e;case 6165:return fi+e+di+"flex-"+e+e;case 5187:return fi+e+Ri(e,/(\w+).+(:[^]+)/,fi+"box-$1$2"+di+"flex-$1$2")+e;case 5443:return fi+e+di+"flex-item-"+Ri(e,/flex-|-self/g,"")+(wi(e,/flex-|baseline/)?"":di+"grid-row-"+Ri(e,/flex-|-self/g,""))+e;case 4675:return fi+e+di+"flex-line-pack"+Ri(e,/align-content|flex-|-self/g,"")+e;case 5548:return fi+e+di+Ri(e,"shrink","negative")+e;case 5292:return fi+e+di+Ri(e,"basis","preferred-size")+e;case 6060:return fi+"box-"+Ri(e,"-grow","")+fi+e+di+Ri(e,"grow","positive")+e;case 4554:return fi+Ri(e,/([^-])(transform)/g,"$1"+fi+"$2")+e;case 6187:return Ri(Ri(Ri(e,/(zoom-|grab)/,fi+"$1"),/(image-set)/,fi+"$1"),e,"")+e;case 5495:case 3959:return Ri(e,/(image-set\([^]*)/,fi+"$1$`$1");case 4968:return Ri(Ri(e,/(.+:)(flex-)?(.*)/,fi+"box-pack:$3"+di+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fi+e+e;case 4200:if(!wi(e,/flex-|baseline/))return di+"grid-column-align"+Di(e,t)+e;break;case 2592:case 3360:return di+Ri(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,wi(e.props,/grid-\w+-end/)}))?~Li(e+(r=r[t].value),"span",0)?e:di+Ri(e,"-start","")+e+di+"grid-row-span:"+(~Li(r,"span",0)?wi(r,/\d+/):+wi(r,/\d+/)-+wi(e,/\d+/))+";":di+Ri(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return wi(e.props,/grid-\w+-start/)}))?e:di+Ri(Ri(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ri(e,/(.+)-inline(.+)/,fi+"$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(_i(e)-1-t>6)switch(Ai(e,t+1)){case 109:if(45!==Ai(e,t+4))break;case 102:return Ri(e,/(.+:)(.+)-([^]+)/,"$1"+fi+"$2-$3$1"+pi+(108==Ai(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Li(e,"stretch",0)?ia(Ri(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ri(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return di+r+":"+n+l+(o?di+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===Ai(e,t+6))return Ri(e,":",":"+fi)+e;break;case 6444:switch(Ai(e,45===Ai(e,14)?18:11)){case 120:return Ri(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+fi+(45===Ai(e,14)?"inline-":"")+"box$3$1"+fi+"$2$3$1"+di+"$2box$3")+e;case 100:return Ri(e,":",":"+di)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ri(e,"scroll-","scroll-snap-")+e}return e}function aa(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function la(e,t,r,n){switch(e.type){case yi:if(e.children.length)break;case bi:case gi:return e.return=e.return||e.value;case hi:return"";case vi:return e.return=e.value+"{"+aa(e.children,n)+"}";case mi:if(!_i(e.value=e.props.join(",")))return""}return _i(r=aa(e.children,n))?e.return=e.value+"{"+r+"}":""}function sa(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case gi:return void(e.return=ia(e.value,e.length,r));case vi:return aa([$i(e,{value:Ri(e.value,"@","@"+fi)})],n);case mi:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(wi(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ji($i(e,{props:[Ri(t,/:(read-\w+)/,":"+pi+"$1")]})),ji($i(e,{props:[t]})),Ei(e,{props:Oi(r,n)});break;case"::placeholder":ji($i(e,{props:[Ri(t,/:(plac\w+)/,":"+fi+"input-$1")]})),ji($i(e,{props:[Ri(t,/:(plac\w+)/,":"+pi+"$1")]})),ji($i(e,{props:[Ri(t,/:(plac\w+)/,di+"input-$1")]})),ji($i(e,{props:[t]})),Ei(e,{props:Oi(r,n)})}return""}))}}var ua={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},ca="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",da="active",pa="data-styled-version",fa="6.1.8",ha="/*!sc*/\n",ma="undefined"!=typeof window&&"HTMLElement"in window,ga=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)),ba={},va=Object.freeze([]),ya=Object.freeze({});function xa(e,t,r){return void 0===r&&(r=ya),e.theme!==r.theme&&e.theme||t||r.theme}var Sa=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"]),Ea=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ca=/(^-|-$)/g;function wa(e){return e.replace(Ea,"-").replace(Ca,"")}var Ra=/(a)(d)/gi,La=52,Aa=function(e){return String.fromCharCode(e+(e>25?39:97))};function Da(e){var t,r="";for(t=Math.abs(e);t>La;t=t/La|0)r=Aa(t%La)+r;return(Aa(t%La)+r).replace(Ra,"$1-$2")}var _a,Ia=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ma=function(e){return Ia(5381,e)};function Oa(e){return Da(Ma(e)>>>0)}function Pa(e){return"string"==typeof e&&!0}var ka="function"==typeof Symbol&&Symbol.for,Ta=ka?Symbol.for("react.memo"):60115,qa=ka?Symbol.for("react.forward_ref"):60112,Na={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Fa={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},za={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$a=((_a={})[qa]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_a[Ta]=za,_a);function ja(e){return("type"in(t=e)&&t.type.$$typeof)===Ta?za:"$$typeof"in e?$a[e.$$typeof]:Na;var t}var Ga=Object.defineProperty,Ba=Object.getOwnPropertyNames,Ha=Object.getOwnPropertySymbols,Wa=Object.getOwnPropertyDescriptor,Va=Object.getPrototypeOf,Ya=Object.prototype;function Ua(e,t,r){if("string"!=typeof t){if(Ya){var n=Va(t);n&&n!==Ya&&Ua(e,n,r)}var o=Ba(t);Ha&&(o=o.concat(Ha(t)));for(var i=ja(e),a=ja(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Fa||r&&r[s]||a&&s in a||i&&s in i)){var u=Wa(t,s);try{Ga(e,s,u)}catch(e){}}}}return e}function Ka(e){return"function"==typeof e}function Xa(e){return"object"==typeof e&&"styledComponentId"in e}function Ja(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Za(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 Qa(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function el(e,t,r){if(void 0===r&&(r=!1),!r&&!Qa(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=el(e[n],t[n]);else if(Qa(t))for(var n in t)e[n]=el(e[n],t[n]);return e}function tl(e,t){Object.defineProperty(e,"toString",{value:t})}function rl(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 nl=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 rl(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(ha);return t},e}(),ol=new Map,il=new Map,al=1,ll=function(e){if(ol.has(e))return ol.get(e);for(;il.has(al);)al++;var t=al++;return ol.set(e,t),il.set(t,e),t},sl=function(e,t){al=t+1,ol.set(e,t),il.set(t,e)},ul="style[".concat(ca,"][").concat(pa,'="').concat(fa,'"]'),cl=new RegExp("^".concat(ca,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),dl=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)},pl=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(ha),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(cl);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(sl(c,u),dl(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var fl=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ca,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(ca,da),n.setAttribute(pa,fa);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},hl=function(){function e(e){this.element=fl(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 rl(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=fl(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}(),gl=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}(),bl=ma,vl={isServer:!ma,useCSSOMInjection:!ga},yl=function(){function e(e,t,r){void 0===e&&(e=ya),void 0===t&&(t={});var n=this;this.options=ui(ui({},vl),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&ma&&bl&&(bl=!1,function(e){for(var t=document.querySelectorAll(ul),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(ca)!==da&&(pl(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),tl(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return il.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||0===a.length)return"continue";var l="".concat(ca,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(ha)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return ll(e)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(ui(ui({},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 gl(r):t?new hl(r):new ml(r)}(this.options),new nl(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(ll(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(ll(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(ll(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),xl=/&/g,Sl=/^\s*\/\/.*$/gm;function El(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=El(e.children,t)),e}))}var Cl=new yl,wl=function(e){var t,r,n,o=void 0===e?ya:e,i=o.options,a=void 0===i?ya:i,l=o.plugins,s=void 0===l?va:l,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===mi&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(xl,r).replace(n,u))})),a.prefix&&c.push(sa),c.push(la);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var s=e.replace(Sl,""),u=ea(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=El(u,a.namespace));var d,p=[];return aa(u,function(e){var t=Ii(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||rl(15),Ia(e,t.name)}),5381).toString():"",d}(),Rl=b.createContext({shouldForwardProp:void 0,styleSheet:Cl,stylis:wl});function Ll(){return x(Rl)}Rl.Consumer;var Al=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,tl(this,(function(){throw rl(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=wl),this.name+e.hash},e}(),Dl=function(e){return e>="A"&&e<="Z"};function _l(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Dl(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Il=function(e){return null==e||!1===e||""===e},Ml=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Il(i)&&(Array.isArray(i)&&i.isCss||Ka(i)?n.push("".concat(_l(o),":"),i,";"):Qa(i)?n.push.apply(n,ci(ci(["".concat(o," {")],Ml(i),!1),["}"],!1)):n.push("".concat(_l(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in ua||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ol(e,t,r,n){return Il(e)?[]:Xa(e)?[".".concat(e.styledComponentId)]:Ka(e)?!Ka(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Ol(e(t),t,r,n):e instanceof Al?r?(e.inject(r,n),[e.getName(n)]):[e]:Qa(e)?Ml(e):Array.isArray(e)?Array.prototype.concat.apply(va,e.map((function(e){return Ol(e,t,r,n)}))):[e.toString()];var o}function Pl(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ka(r)&&!Xa(r))return!1}return!0}var kl=Ma(fa),Tl=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Pl(e),this.componentId=t,this.baseHash=Ia(kl,t),this.baseStyle=r,yl.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=Ja(n,this.staticRulesId);else{var o=Za(Ol(this.rules,e,t,r)),i=Da(Ia(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=Ja(n,i),this.staticRulesId=i}else{for(var l=Ia(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=Za(Ol(c,e,t,r));l=Ia(l,d+u),s+=d}}if(s){var p=Da(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=Ja(n,p)}}return n},e}(),ql=b.createContext(void 0);ql.Consumer;var Nl={};new Set;function Fl(e,t,r){var n=Xa(e),o=e,i=!Pa(e),a=t.attrs,l=void 0===a?va:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":wa(e);Nl[r]=(Nl[r]||0)+1;var n="".concat(r,"-").concat(Oa(fa+r+Nl[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Pa(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(wa(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,h=t.shouldForwardProp;if(n&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var v=new Tl(r,p,n?o.componentStyle:void 0);function y(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=b.useContext(ql),c=Ll(),d=e.shouldForwardProp||c.shouldForwardProp,p=xa(t,u,i)||ya,f=function(e,t,r){for(var n,o=ui(ui({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Ka(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?Ja(o[l],a[l]):"style"===l?ui(ui({},o[l]),a[l]):a[l]}return t.className&&(o.className=Ja(o.className,t.className)),o}(n,t,p),h=f.as||s,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var v=function(e,t){var r=Ll();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),y=Ja(a,l);return v&&(y+=" "+v),f.className&&(y+=" "+f.className),m[Pa(h)&&!Sa.has(h)?"class":"className"]=y,m.ref=r,S(h,m)}(x,e,t)}y.displayName=d;var x=b.forwardRef(y);return x.attrs=f,x.componentStyle=v,x.displayName=d,x.shouldForwardProp=h,x.foldedComponentIds=n?Ja(o.foldedComponentIds,o.styledComponentId):"",x.styledComponentId=p,x.target=n?o.target:e,Object.defineProperty(x,"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++)el(e,o[n],!0);return e}({},o.defaultProps,e):e}}),tl(x,(function(){return".".concat(x.styledComponentId)})),i&&Ua(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),x}function zl(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 $l=function(e){return Object.assign(e,{isCss:!0})};function jl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ka(e)||Qa(e))return $l(Ol(zl(va,ci([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ol(n):$l(Ol(zl(n,t)))}function Gl(e,t,r){if(void 0===r&&(r=ya),!t)throw rl(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,jl.apply(void 0,ci([n],o,!1)))};return n.attrs=function(n){return Gl(e,t,ui(ui({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Gl(e,t,ui(ui({},r),n))},n}var Bl=function(e){return Gl(Fl,e)},Hl=Bl;Sa.forEach((function(e){Hl[e]=Bl(e)}));var Wl=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Pl(e),yl.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Za(Ol(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&&yl.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Vl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=jl.apply(void 0,ci([e],t,!1)),o="sc-global-".concat(Oa(JSON.stringify(n))),i=new Wl(n,o),a=function(e){var t=Ll(),r=b.useContext(ql),n=b.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,ba,r,o);else{var l=ui(ui({},t),{theme:xa(t,n,a.defaultProps)});i.renderStyles(e,l,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};return b.memo(a)}function Yl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Za(jl.apply(void 0,ci([e],t,!1))),o=Oa(n);return new Al(o,n)}var Ul={exports:{}};function Kl(){}function Xl(){}Xl.resetWarningCache=Kl;Ul.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:Xl,resetWarningCache:Kl};return r.PropTypes=r,r}();var Jl=T(Ul.exports);function Zl(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}Zl.propTypes={children:Jl.node,injectFirst:Jl.bool};const Ql=Vl((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 es=Ql;
11
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",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(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},_o({exports:{}});const Ho=3,Go="N";function Wo(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function Vo({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Ho}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=x((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=To(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=To((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=Wo(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(Go).width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var Yo,Uo=q;Yo=Uo.createRoot,Uo.hydrateRoot;function Ko(e,t){const[r,n]=S(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Xo={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 Jo=({translator:e})=>(x((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Xo).forEach((t=>{e.add(Xo[t])}))}}(e)),[e]),e);var Zo={exports:{}},Qo={},ei=y,ti=Symbol.for("react.element"),ri=Symbol.for("react.fragment"),ni=Object.prototype.hasOwnProperty,oi=ei.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ii={key:!0,ref:!0,__self:!0,__source:!0};function ai(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)ni.call(t,n)&&!ii.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:ti,type:e,key:i,ref:a,props:o,_owner:oi.current}}Qo.Fragment=ri,Qo.jsx=ai,Qo.jsxs=ai,Zo.exports=Qo;var li=Zo.exports;function si(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 ui=Object.freeze({__proto__:null,default:si}),ci="$$material";function di(){return di=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},di.apply(this,arguments)}function pi(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 fi=function(){return fi=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},fi.apply(this,arguments)};function hi(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 mi="-ms-",gi="-moz-",bi="-webkit-",vi="comm",yi="rule",xi="decl",Si="@import",Ei="@keyframes",Ci="@layer",wi=Math.abs,Ri=String.fromCharCode,Li=Object.assign;function Ai(e){return e.trim()}function Ii(e,t){return(e=t.exec(e))?e[0]:e}function Mi(e,t,r){return e.replace(t,r)}function Di(e,t,r){return e.indexOf(t,r)}function Pi(e,t){return 0|e.charCodeAt(t)}function _i(e,t,r){return e.slice(t,r)}function Oi(e){return e.length}function ki(e){return e.length}function Ti(e,t){return t.push(e),e}function qi(e,t){return e.filter((function(e){return!Ii(e,t)}))}var Ni=1,Fi=1,zi=0,ji=0,$i=0,Bi="";function Hi(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ni,column:Fi,length:a,return:"",siblings:l}}function Gi(e,t){return Li(Hi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Wi(e){for(;e.root;)e=Gi(e.root,{children:[e]});Ti(e,e.siblings)}function Vi(){return $i=ji>0?Pi(Bi,--ji):0,Fi--,10===$i&&(Fi=1,Ni--),$i}function Yi(){return $i=ji<zi?Pi(Bi,ji++):0,Fi++,10===$i&&(Fi=1,Ni++),$i}function Ui(){return Pi(Bi,ji)}function Ki(){return ji}function Xi(e,t){return _i(Bi,e,t)}function Ji(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 Zi(e){return Ai(Xi(ji-1,ta(91===e?e+2:40===e?e+1:e)))}function Qi(e){for(;($i=Ui())&&$i<33;)Yi();return Ji(e)>2||Ji($i)>3?"":" "}function ea(e,t){for(;--t&&Yi()&&!($i<48||$i>102||$i>57&&$i<65||$i>70&&$i<97););return Xi(e,Ki()+(t<6&&32==Ui()&&32==Yi()))}function ta(e){for(;Yi();)switch($i){case e:return ji;case 34:case 39:34!==e&&39!==e&&ta($i);break;case 40:41===e&&ta(e);break;case 92:Yi()}return ji}function ra(e,t){for(;Yi()&&e+$i!==57&&(e+$i!==84||47!==Ui()););return"/*"+Xi(t,ji-1)+"*"+Ri(47===e?e:Yi())}function na(e){for(;!Ji(Ui());)Yi();return Xi(e,ji)}function oa(e){return function(e){return Bi="",e}(ia("",null,null,null,[""],e=function(e){return Ni=Fi=1,zi=Oi(Bi=e),ji=0,[]}(e),0,[0],e))}function ia(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(h=v,v=Yi()){case 40:if(108!=h&&58==Pi(C,d-1)){-1!=Di(C+=Mi(Zi(v),"&","&\f"),"&\f",wi(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Zi(v);break;case 9:case 10:case 13:case 32:C+=Qi(h);break;case 92:C+=ea(Ki()-1,7);continue;case 47:switch(Ui()){case 42:case 47:Ti(la(ra(Yi(),Ki()),t,r,s),s);break;default:C+="/"}break;case 123*m:l[u++]=Oi(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Mi(C,/\f/g,"")),f>0&&Oi(C)-d&&Ti(f>32?sa(C+";",n,r,d-1,s):sa(Mi(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(Ti(E=aa(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)ia(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Pi(C,3)?100:p){case 100:case 108:case 109:case 115:ia(e,E,E,n&&Ti(aa(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:ia(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Oi(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Vi())continue;switch(C+=Ri(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Oi(C)-1)*b,b=1;break;case 64:45===Ui()&&(C+=Zi(Yi())),p=Ui(),c=d=Oi(y=C+=na(Ki())),v++;break;case 45:45===h&&2==Oi(C)&&(m=0)}}return i}function aa(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=ki(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=_i(e,p+1,p=wi(g=a[m])),x=e;v<h;++v)(x=Ai(g>0?f[v]+" "+y:Mi(y,/&\f/g,f[v])))&&(s[b++]=x);return Hi(e,t,r,0===o?yi:l,s,u,c,d)}function la(e,t,r,n){return Hi(e,t,r,vi,Ri($i),_i(e,2,-2),0,n)}function sa(e,t,r,n,o){return Hi(e,t,r,xi,_i(e,0,n),_i(e,n+1,-1),n,o)}function ua(e,t,r){switch(function(e,t){return 45^Pi(e,0)?(((t<<2^Pi(e,0))<<2^Pi(e,1))<<2^Pi(e,2))<<2^Pi(e,3):0}(e,t)){case 5103:return bi+"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 bi+e+e;case 4789:return gi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bi+e+gi+e+mi+e+e;case 5936:switch(Pi(e,t+11)){case 114:return bi+e+mi+Mi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bi+e+mi+Mi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bi+e+mi+Mi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return bi+e+mi+e+e;case 6165:return bi+e+mi+"flex-"+e+e;case 5187:return bi+e+Mi(e,/(\w+).+(:[^]+)/,bi+"box-$1$2"+mi+"flex-$1$2")+e;case 5443:return bi+e+mi+"flex-item-"+Mi(e,/flex-|-self/g,"")+(Ii(e,/flex-|baseline/)?"":mi+"grid-row-"+Mi(e,/flex-|-self/g,""))+e;case 4675:return bi+e+mi+"flex-line-pack"+Mi(e,/align-content|flex-|-self/g,"")+e;case 5548:return bi+e+mi+Mi(e,"shrink","negative")+e;case 5292:return bi+e+mi+Mi(e,"basis","preferred-size")+e;case 6060:return bi+"box-"+Mi(e,"-grow","")+bi+e+mi+Mi(e,"grow","positive")+e;case 4554:return bi+Mi(e,/([^-])(transform)/g,"$1"+bi+"$2")+e;case 6187:return Mi(Mi(Mi(e,/(zoom-|grab)/,bi+"$1"),/(image-set)/,bi+"$1"),e,"")+e;case 5495:case 3959:return Mi(e,/(image-set\([^]*)/,bi+"$1$`$1");case 4968:return Mi(Mi(e,/(.+:)(flex-)?(.*)/,bi+"box-pack:$3"+mi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bi+e+e;case 4200:if(!Ii(e,/flex-|baseline/))return mi+"grid-column-align"+_i(e,t)+e;break;case 2592:case 3360:return mi+Mi(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Ii(e.props,/grid-\w+-end/)}))?~Di(e+(r=r[t].value),"span",0)?e:mi+Mi(e,"-start","")+e+mi+"grid-row-span:"+(~Di(r,"span",0)?Ii(r,/\d+/):+Ii(r,/\d+/)-+Ii(e,/\d+/))+";":mi+Mi(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Ii(e.props,/grid-\w+-start/)}))?e:mi+Mi(Mi(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Mi(e,/(.+)-inline(.+)/,bi+"$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(Oi(e)-1-t>6)switch(Pi(e,t+1)){case 109:if(45!==Pi(e,t+4))break;case 102:return Mi(e,/(.+:)(.+)-([^]+)/,"$1"+bi+"$2-$3$1"+gi+(108==Pi(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Di(e,"stretch",0)?ua(Mi(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Mi(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return mi+r+":"+n+l+(o?mi+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===Pi(e,t+6))return Mi(e,":",":"+bi)+e;break;case 6444:switch(Pi(e,45===Pi(e,14)?18:11)){case 120:return Mi(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+bi+(45===Pi(e,14)?"inline-":"")+"box$3$1"+bi+"$2$3$1"+mi+"$2box$3")+e;case 100:return Mi(e,":",":"+mi)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Mi(e,"scroll-","scroll-snap-")+e}return e}function ca(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function da(e,t,r,n){switch(e.type){case Ci:if(e.children.length)break;case Si:case xi:return e.return=e.return||e.value;case vi:return"";case Ei:return e.return=e.value+"{"+ca(e.children,n)+"}";case yi:if(!Oi(e.value=e.props.join(",")))return""}return Oi(r=ca(e.children,n))?e.return=e.value+"{"+r+"}":""}function pa(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case xi:return void(e.return=ua(e.value,e.length,r));case Ei:return ca([Gi(e,{value:Mi(e.value,"@","@"+bi)})],n);case yi:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Ii(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Wi(Gi(e,{props:[Mi(t,/:(read-\w+)/,":"+gi+"$1")]})),Wi(Gi(e,{props:[t]})),Li(e,{props:qi(r,n)});break;case"::placeholder":Wi(Gi(e,{props:[Mi(t,/:(plac\w+)/,":"+bi+"input-$1")]})),Wi(Gi(e,{props:[Mi(t,/:(plac\w+)/,":"+gi+"$1")]})),Wi(Gi(e,{props:[Mi(t,/:(plac\w+)/,mi+"input-$1")]})),Wi(Gi(e,{props:[t]})),Li(e,{props:qi(r,n)})}return""}))}}var fa={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},ha="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ma="active",ga="data-styled-version",ba="6.1.8",va="/*!sc*/\n",ya="undefined"!=typeof window&&"HTMLElement"in window,xa=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)),Sa={},Ea=Object.freeze([]),Ca=Object.freeze({});function wa(e,t,r){return void 0===r&&(r=Ca),e.theme!==r.theme&&e.theme||t||r.theme}var Ra=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"]),La=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Aa=/(^-|-$)/g;function Ia(e){return e.replace(La,"-").replace(Aa,"")}var Ma=/(a)(d)/gi,Da=52,Pa=function(e){return String.fromCharCode(e+(e>25?39:97))};function _a(e){var t,r="";for(t=Math.abs(e);t>Da;t=t/Da|0)r=Pa(t%Da)+r;return(Pa(t%Da)+r).replace(Ma,"$1-$2")}var Oa,ka=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ta=function(e){return ka(5381,e)};function qa(e){return _a(Ta(e)>>>0)}function Na(e){return"string"==typeof e&&!0}var Fa="function"==typeof Symbol&&Symbol.for,za=Fa?Symbol.for("react.memo"):60115,ja=Fa?Symbol.for("react.forward_ref"):60112,$a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ba={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ha={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ga=((Oa={})[ja]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Oa[za]=Ha,Oa);function Wa(e){return("type"in(t=e)&&t.type.$$typeof)===za?Ha:"$$typeof"in e?Ga[e.$$typeof]:$a;var t}var Va=Object.defineProperty,Ya=Object.getOwnPropertyNames,Ua=Object.getOwnPropertySymbols,Ka=Object.getOwnPropertyDescriptor,Xa=Object.getPrototypeOf,Ja=Object.prototype;function Za(e,t,r){if("string"!=typeof t){if(Ja){var n=Xa(t);n&&n!==Ja&&Za(e,n,r)}var o=Ya(t);Ua&&(o=o.concat(Ua(t)));for(var i=Wa(e),a=Wa(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Ba||r&&r[s]||a&&s in a||i&&s in i)){var u=Ka(t,s);try{Va(e,s,u)}catch(e){}}}}return e}function Qa(e){return"function"==typeof e}function el(e){return"object"==typeof e&&"styledComponentId"in e}function tl(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function rl(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 nl(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ol(e,t,r){if(void 0===r&&(r=!1),!r&&!nl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ol(e[n],t[n]);else if(nl(t))for(var n in t)e[n]=ol(e[n],t[n]);return e}function il(e,t){Object.defineProperty(e,"toString",{value:t})}function al(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 ll=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 al(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(va);return t},e}(),sl=new Map,ul=new Map,cl=1,dl=function(e){if(sl.has(e))return sl.get(e);for(;ul.has(cl);)cl++;var t=cl++;return sl.set(e,t),ul.set(t,e),t},pl=function(e,t){cl=t+1,sl.set(e,t),ul.set(t,e)},fl="style[".concat(ha,"][").concat(ga,'="').concat(ba,'"]'),hl=new RegExp("^".concat(ha,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ml=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)},gl=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(va),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(hl);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(pl(c,u),ml(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var bl=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ha,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(ha,ma),n.setAttribute(ga,ba);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},vl=function(){function e(e){this.element=bl(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 al(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}(),yl=function(){function e(e){this.element=bl(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}(),xl=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}(),Sl=ya,El={isServer:!ya,useCSSOMInjection:!xa},Cl=function(){function e(e,t,r){void 0===e&&(e=Ca),void 0===t&&(t={});var n=this;this.options=fi(fi({},El),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&ya&&Sl&&(Sl=!1,function(e){for(var t=document.querySelectorAll(fl),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(ha)!==ma&&(gl(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),il(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return ul.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||0===a.length)return"continue";var l="".concat(ha,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(va)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return dl(e)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(fi(fi({},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 xl(r):t?new vl(r):new yl(r)}(this.options),new ll(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(dl(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(dl(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(dl(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),wl=/&/g,Rl=/^\s*\/\/.*$/gm;function Ll(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=Ll(e.children,t)),e}))}var Al=new Cl,Il=function(e){var t,r,n,o=void 0===e?Ca:e,i=o.options,a=void 0===i?Ca:i,l=o.plugins,s=void 0===l?Ea:l,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===yi&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(wl,r).replace(n,u))})),a.prefix&&c.push(pa),c.push(da);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var s=e.replace(Rl,""),u=oa(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Ll(u,a.namespace));var d,p=[];return ca(u,function(e){var t=ki(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||al(15),ka(e,t.name)}),5381).toString():"",d}(),Ml=y.createContext({shouldForwardProp:void 0,styleSheet:Al,stylis:Il});function Dl(){return E(Ml)}Ml.Consumer;var Pl=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Il);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,il(this,(function(){throw al(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Il),this.name+e.hash},e}(),_l=function(e){return e>="A"&&e<="Z"};function Ol(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;_l(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var kl=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)&&!kl(i)&&(Array.isArray(i)&&i.isCss||Qa(i)?n.push("".concat(Ol(o),":"),i,";"):nl(i)?n.push.apply(n,hi(hi(["".concat(o," {")],Tl(i),!1),["}"],!1)):n.push("".concat(Ol(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in fa||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function ql(e,t,r,n){return kl(e)?[]:el(e)?[".".concat(e.styledComponentId)]:Qa(e)?!Qa(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ql(e(t),t,r,n):e instanceof Pl?r?(e.inject(r,n),[e.getName(n)]):[e]:nl(e)?Tl(e):Array.isArray(e)?Array.prototype.concat.apply(Ea,e.map((function(e){return ql(e,t,r,n)}))):[e.toString()];var o}function Nl(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Qa(r)&&!el(r))return!1}return!0}var Fl=Ta(ba),zl=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Nl(e),this.componentId=t,this.baseHash=ka(Fl,t),this.baseStyle=r,Cl.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=tl(n,this.staticRulesId);else{var o=rl(ql(this.rules,e,t,r)),i=_a(ka(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=tl(n,i),this.staticRulesId=i}else{for(var l=ka(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=rl(ql(c,e,t,r));l=ka(l,d+u),s+=d}}if(s){var p=_a(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=tl(n,p)}}return n},e}(),jl=y.createContext(void 0);jl.Consumer;var $l={};new Set;function Bl(e,t,r){var n=el(e),o=e,i=!Na(e),a=t.attrs,l=void 0===a?Ea:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Ia(e);$l[r]=($l[r]||0)+1;var n="".concat(r,"-").concat(qa(ba+r+$l[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Na(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Ia(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,h=t.shouldForwardProp;if(n&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var b=new zl(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,l=e.styledComponentId,s=e.target,u=y.useContext(jl),c=Dl(),d=e.shouldForwardProp||c.shouldForwardProp,p=wa(t,u,i)||Ca,f=function(e,t,r){for(var n,o=fi(fi({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Qa(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?tl(o[l],a[l]):"style"===l?fi(fi({},o[l]),a[l]):a[l]}return t.className&&(o.className=tl(o.className,t.className)),o}(n,t,p),h=f.as||s,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var b=function(e,t){var r=Dl();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=tl(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[Na(h)&&!Ra.has(h)?"class":"className"]=v,m.ref=r,C(h,m)}(x,e,t)}v.displayName=d;var x=y.forwardRef(v);return x.attrs=f,x.componentStyle=b,x.displayName=d,x.shouldForwardProp=h,x.foldedComponentIds=n?tl(o.foldedComponentIds,o.styledComponentId):"",x.styledComponentId=p,x.target=n?o.target:e,Object.defineProperty(x,"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++)ol(e,o[n],!0);return e}({},o.defaultProps,e):e}}),il(x,(function(){return".".concat(x.styledComponentId)})),i&&Za(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),x}function Hl(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 Gl=function(e){return Object.assign(e,{isCss:!0})};function Wl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Qa(e)||nl(e))return Gl(ql(Hl(Ea,hi([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ql(n):Gl(ql(Hl(n,t)))}function Vl(e,t,r){if(void 0===r&&(r=Ca),!t)throw al(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Wl.apply(void 0,hi([n],o,!1)))};return n.attrs=function(n){return Vl(e,t,fi(fi({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Vl(e,t,fi(fi({},r),n))},n}var Yl=function(e){return Vl(Bl,e)},Ul=Yl;Ra.forEach((function(e){Ul[e]=Yl(e)}));var Kl=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Nl(e),Cl.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(rl(ql(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&&Cl.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Xl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Wl.apply(void 0,hi([e],t,!1)),o="sc-global-".concat(qa(JSON.stringify(n))),i=new Kl(n,o),a=function(e){var t=Dl(),r=y.useContext(jl),n=y.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Sa,r,o);else{var l=fi(fi({},t),{theme:wa(t,n,a.defaultProps)});i.renderStyles(e,l,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};return y.memo(a)}function Jl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=rl(Wl.apply(void 0,hi([e],t,!1))),o=qa(n);return new Pl(o,n)}var Zl={exports:{}};function Ql(){}function es(){}es.resetWarningCache=Ql;Zl.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:es,resetWarningCache:Ql};return r.PropTypes=r,r}();var ts=N(Zl.exports);function rs(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}rs.propTypes={children:ts.node,injectFirst:ts.bool};const ns=Xl((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 os=ns;
12
12
  /**
13
- * @mui/styled-engine-sc v6.0.0-alpha.17
13
+ * @mui/styled-engine-sc v6.0.0-alpha.18
14
14
  *
15
15
  * @license MIT
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 ts(e,t){let r;return r=t?Hl(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Hl(e),r}Ql.propTypes={defaultTheme:Jl.object,styles:Jl.oneOfType([Jl.array,Jl.string,Jl.object,Jl.func])};var rs=Object.freeze({__proto__:null,GlobalStyles:es,StyledEngineProvider:Zl,ThemeContext:ql,css:jl,default:ts,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:Yl});function ns(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 os(e){if(!ns(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=os(e[r])})),t}function is(e,t,r={clone:!0}){const n=r.clone?li({},e):e;return ns(e)&&ns(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(ns(t[o])&&o in e&&ns(e[o])?n[o]=is(e[o],t[o],r):r.clone?n[o]=ns(t[o])?os(t[o]):t[o]:n[o]=t[o])})),n}var as=Object.freeze({__proto__:null,default:is,isPlainObject:ns});const ls=["values","unit","step"],ss=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)=>li({},e,{[t.key]:t.val})),{})};function us(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=si(e,ls),i=ss(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return li({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var cs={borderRadius:4};function ds(e,t){return t?is(e,t,{clone:!1}):e}const ps={xs:0,sm:600,md:900,lg:1200,xl:1536},fs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ps[e]}px)`};function hs(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||fs;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||fs;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||ps).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function ms(e){if("string"!=typeof e)throw new Error(oi(7));return e.charAt(0).toUpperCase()+e.slice(1)}var gs=Object.freeze({__proto__:null,default:ms});function bs(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 vs(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:bs(e,r)||n,t&&(o=t(o,n,e)),o}function ys(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=bs(e.theme,n)||{};return hs(e,i,(e=>{let n=vs(a,o,e);return e===n&&"string"==typeof e&&(n=vs(a,o,`${t}${"default"===e?"":ms(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const xs={m:"margin",p:"padding"},Ss={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Es={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Cs=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Es[e])return[e];e=Es[e]}const[t,r]=e.split(""),n=xs[t],o=Ss[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),ws=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Rs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ls(e,t,r,n){var o;const i=null!=(o=bs(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 As(e){return Ls(e,"spacing",8)}function Ds(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 _s(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Ds(t,r),e)),{})}(Cs(r),n);return hs(e,e[r],o)}function Is(e,t){const r=As(e.theme);return Object.keys(e).map((n=>_s(e,t,n,r))).reduce(ds,{})}function Ms(e){return Is(e,ws)}function Os(e){return Is(e,Rs)}function Ps(...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]?ds(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ks(e){return"number"!=typeof e?e:`${e}px solid`}function Ts(e,t){return ys({prop:e,themeKey:"borders",transform:t})}Ms.propTypes={},Ms.filterProps=ws,Os.propTypes={},Os.filterProps=Rs;const qs=Ts("border",ks),Ns=Ts("borderTop",ks),Fs=Ts("borderRight",ks),zs=Ts("borderBottom",ks),$s=Ts("borderLeft",ks),js=Ts("borderColor"),Gs=Ts("borderTopColor"),Bs=Ts("borderRightColor"),Hs=Ts("borderBottomColor"),Ws=Ts("borderLeftColor"),Vs=Ts("outline",ks),Ys=Ts("outlineColor"),Us=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ls(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ds(t,e)});return hs(e,e.borderRadius,r)}return null};Us.propTypes={},Us.filterProps=["borderRadius"],Ps(qs,Ns,Fs,zs,$s,js,Gs,Bs,Hs,Ws,Us,Vs,Ys);const Ks=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ls(e.theme,"spacing",8),r=e=>({gap:Ds(t,e)});return hs(e,e.gap,r)}return null};Ks.propTypes={},Ks.filterProps=["gap"];const Xs=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ls(e.theme,"spacing",8),r=e=>({columnGap:Ds(t,e)});return hs(e,e.columnGap,r)}return null};Xs.propTypes={},Xs.filterProps=["columnGap"];const Js=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ls(e.theme,"spacing",8),r=e=>({rowGap:Ds(t,e)});return hs(e,e.rowGap,r)}return null};Js.propTypes={},Js.filterProps=["rowGap"];function Zs(e,t){return"grey"===t?t:e}Ps(Ks,Xs,Js,ys({prop:"gridColumn"}),ys({prop:"gridRow"}),ys({prop:"gridAutoFlow"}),ys({prop:"gridAutoColumns"}),ys({prop:"gridAutoRows"}),ys({prop:"gridTemplateColumns"}),ys({prop:"gridTemplateRows"}),ys({prop:"gridTemplateAreas"}),ys({prop:"gridArea"}));function Qs(e){return e<=1&&0!==e?100*e+"%":e}Ps(ys({prop:"color",themeKey:"palette",transform:Zs}),ys({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zs}),ys({prop:"backgroundColor",themeKey:"palette",transform:Zs}));const eu=ys({prop:"width",transform:Qs}),tu=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])||ps[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:Qs(t)}};return hs(e,e.maxWidth,t)}return null};tu.filterProps=["maxWidth"];const ru=ys({prop:"minWidth",transform:Qs}),nu=ys({prop:"height",transform:Qs}),ou=ys({prop:"maxHeight",transform:Qs}),iu=ys({prop:"minHeight",transform:Qs});ys({prop:"size",cssProperty:"width",transform:Qs}),ys({prop:"size",cssProperty:"height",transform:Qs});Ps(eu,tu,ru,nu,ou,iu,ys({prop:"boxSizing"}));var au={border:{themeKey:"borders",transform:ks},borderTop:{themeKey:"borders",transform:ks},borderRight:{themeKey:"borders",transform:ks},borderBottom:{themeKey:"borders",transform:ks},borderLeft:{themeKey:"borders",transform:ks},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ks},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Us},color:{themeKey:"palette",transform:Zs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zs},backgroundColor:{themeKey:"palette",transform:Zs},p:{style:Os},pt:{style:Os},pr:{style:Os},pb:{style:Os},pl:{style:Os},px:{style:Os},py:{style:Os},padding:{style:Os},paddingTop:{style:Os},paddingRight:{style:Os},paddingBottom:{style:Os},paddingLeft:{style:Os},paddingX:{style:Os},paddingY:{style:Os},paddingInline:{style:Os},paddingInlineStart:{style:Os},paddingInlineEnd:{style:Os},paddingBlock:{style:Os},paddingBlockStart:{style:Os},paddingBlockEnd:{style:Os},m:{style:Ms},mt:{style:Ms},mr:{style:Ms},mb:{style:Ms},ml:{style:Ms},mx:{style:Ms},my:{style:Ms},margin:{style:Ms},marginTop:{style:Ms},marginRight:{style:Ms},marginBottom:{style:Ms},marginLeft:{style:Ms},marginX:{style:Ms},marginY:{style:Ms},marginInline:{style:Ms},marginInlineStart:{style:Ms},marginInlineEnd:{style:Ms},marginBlock:{style:Ms},marginBlockStart:{style:Ms},marginBlockEnd:{style:Ms},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:Ks},rowGap:{style:Js},columnGap:{style:Xs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qs},maxWidth:{style:tu},minWidth:{transform:Qs},height:{transform:Qs},maxHeight:{transform:Qs},minHeight:{transform:Qs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function lu(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=bs(r,l)||{};if(u)return u(o);return hs(o,t,(t=>{let r=vs(c,s,t);return t===r&&"string"==typeof t&&(r=vs(c,s,`${e}${"default"===t?"":ms(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:au;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=ds(s,e(r,o,i,a));else{const e=hs({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=ds(s,e):s[r]=t({sx:o,theme:i})}else s=ds(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const su=lu();su.filterProps=["sx"];var uu=su;function cu(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 du=["breakpoints","palette","spacing","shape"];function pu(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=si(e,du),l=us(r),s=function(e=8){if(e.mui)return e;const t=As({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=is({breakpoints:l,direction:"ltr",components:{},palette:li({mode:"light"},n),spacing:s,shape:li({},cs,i)},a);return u.applyStyles=cu,u=t.reduce(((e,t)=>is(e,t)),u),u.unstable_sxConfig=li({},au,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return uu({sx:e,theme:this})},u}var fu=Object.freeze({__proto__:null,default:pu,private_createBreakpoints:us,unstable_applyStyles:cu});function hu(e=null){const t=g.useContext(ql);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const mu=pu();const gu=["sx"],bu=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:au;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function vu(e){const{sx:t}=e,r=si(e,gu),{systemProps:n,otherProps:o}=bu(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return ns(r)?li({},n,r):n}:li({},n,t),li({},o,{sx:i})}var yu=Object.freeze({__proto__:null,default:uu,extendSxProp:vu,unstable_createStyleFunctionSx:lu,unstable_defaultSxConfig:au});const xu=e=>e;var Su=(()=>{let e=xu;return{configure(t){e=t},generate:t=>e(t),reset(){e=xu}}})();function Eu(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=Eu(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Cu(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Eu(e))&&(n&&(n+=" "),n+=t);return n}const wu=["className","component"];const Ru={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};var Lu,Au={exports:{}},Du={},_u=Symbol.for("react.element"),Iu=Symbol.for("react.portal"),Mu=Symbol.for("react.fragment"),Ou=Symbol.for("react.strict_mode"),Pu=Symbol.for("react.profiler"),ku=Symbol.for("react.provider"),Tu=Symbol.for("react.context"),qu=Symbol.for("react.server_context"),Nu=Symbol.for("react.forward_ref"),Fu=Symbol.for("react.suspense"),zu=Symbol.for("react.suspense_list"),$u=Symbol.for("react.memo"),ju=Symbol.for("react.lazy"),Gu=Symbol.for("react.offscreen");function Bu(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _u:switch(e=e.type){case Mu:case Pu:case Ou:case Fu:case zu:return e;default:switch(e=e&&e.$$typeof){case qu:case Tu:case Nu:case ju:case $u:case ku:return e;default:return t}}case Iu:return t}}}Lu=Symbol.for("react.module.reference"),Du.ContextConsumer=Tu,Du.ContextProvider=ku,Du.Element=_u,Du.ForwardRef=Nu,Du.Fragment=Mu,Du.Lazy=ju,Du.Memo=$u,Du.Portal=Iu,Du.Profiler=Pu,Du.StrictMode=Ou,Du.Suspense=Fu,Du.SuspenseList=zu,Du.isAsyncMode=function(){return!1},Du.isConcurrentMode=function(){return!1},Du.isContextConsumer=function(e){return Bu(e)===Tu},Du.isContextProvider=function(e){return Bu(e)===ku},Du.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_u},Du.isForwardRef=function(e){return Bu(e)===Nu},Du.isFragment=function(e){return Bu(e)===Mu},Du.isLazy=function(e){return Bu(e)===ju},Du.isMemo=function(e){return Bu(e)===$u},Du.isPortal=function(e){return Bu(e)===Iu},Du.isProfiler=function(e){return Bu(e)===Pu},Du.isStrictMode=function(e){return Bu(e)===Ou},Du.isSuspense=function(e){return Bu(e)===Fu},Du.isSuspenseList=function(e){return Bu(e)===zu},Du.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Mu||e===Pu||e===Ou||e===Fu||e===zu||e===Gu||"object"==typeof e&&null!==e&&(e.$$typeof===ju||e.$$typeof===$u||e.$$typeof===ku||e.$$typeof===Tu||e.$$typeof===Nu||e.$$typeof===Lu||void 0!==e.getModuleId)},Du.typeOf=Bu,Au.exports=Du;var Hu=Au.exports;const Wu=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Vu(e){const t=`${e}`.match(Wu);return t&&t[1]||""}function Yu(e,t=""){return e.displayName||e.name||Vu(e)||t}function Uu(e,t,r){const n=Yu(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Ku=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Yu(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Hu.ForwardRef:return Uu(e,e.render,"ForwardRef");case Hu.Memo:return Uu(e,e.type,"memo");default:return}}},getFunctionName:Vu});function Xu(e,t){const r=li({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=li({},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]=li({},i),Object.keys(o).forEach((e=>{r[n][e]=Xu(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}var Ju="undefined"!=typeof window?g.useLayoutEffect:g.useEffect;function Zu(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Qu=Object.freeze({__proto__:null,default:Zu});function ec(e){if(e.type)return e;if("#"===e.charAt(0))return ec(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(oi(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(oi(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function tc(e,t){return e=ec(e),t=function(e,t=0,r=1){return Zu(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 rc(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function nc(e){return e&&e.ownerDocument||document}function oc(e){return nc(e).defaultView||window}function ic(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function ac(e){const t=g.useRef(e);return Ju((()=>{t.current=e})),g.useRef(((...e)=>(0,t.current)(...e))).current}function lc(...e){return g.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{ic(e,t)}))}),e)}function sc(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 uc=g.createContext(null);function cc(){return g.useContext(uc)}var dc="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function pc(e){const{children:t,theme:r}=e,n=cc(),o=g.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return li({},e,t)}(n,r);return null!=e&&(e[dc]=null!==n),e}),[r,n]);return ni.jsx(uc.Provider,{value:o,children:t})}const fc={};function hc(e,t,r,n=!1){return g.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?li({},t,{[e]:i}):i;return n?()=>a:a}return li({},t,e?{[e]:r}:r)}),[e,t,r,n])}function mc(e){const{children:t,theme:r,themeId:n}=e,o=hu(fc),i=cc()||fc,a=hc(n,o,r),l=hc(n,i,r,!0);return ni.jsx(pc,{theme:l,children:ni.jsx(ql.Provider,{value:a,children:t})})}var gc,bc={},vc={exports:{}};(gc=vc).exports=function(e){return e&&e.__esModule?e:{default:e}},gc.exports.__esModule=!0,gc.exports.default=gc.exports;var yc=vc.exports,xc=q(ii),Sc=q(Qu),Ec=yc;Object.defineProperty(bc,"__esModule",{value:!0}),bc.alpha=Tc,bc.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Ic(e),a=Ic(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Oc({type:"rgb",values:l})},bc.colorChannel=void 0;var Cc=bc.darken=qc;bc.decomposeColor=Ic,bc.emphasize=function(e,t=.15){return kc(e)>.5?qc(e,t):Nc(e,t)};var wc=bc.getContrastRatio=function(e,t){const r=kc(e),n=kc(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};bc.getLuminance=kc,bc.hexToRgb=_c,bc.hslToRgb=Pc;var Rc=bc.lighten=Nc;bc.private_safeAlpha=function(e,t,r){try{return Tc(e,t)}catch(t){return e}},bc.private_safeColorChannel=void 0,bc.private_safeDarken=function(e,t,r){try{return qc(e,t)}catch(t){return e}},bc.private_safeEmphasize=function e(t,r,n){try{return e(t,r)}catch(e){return t}},bc.private_safeLighten=function(e,t,r){try{return Nc(e,t)}catch(t){return e}},bc.recomposeColor=Oc,bc.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Ic(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 Lc=Ec(xc),Ac=Ec(Sc);function Dc(e,t=0,r=1){return(0,Ac.default)(e,t,r)}function _c(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 Ic(e){if(e.type)return e;if("#"===e.charAt(0))return Ic(_c(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Lc.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,Lc.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Mc=e=>{const t=Ic(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};bc.colorChannel=Mc;function Oc(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 Pc(e){e=Ic(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Oc({type:l,values:s})}function kc(e){let t="hsl"===(e=Ic(e)).type||"hsla"===e.type?Ic(Pc(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 Tc(e,t){return e=Ic(e),t=Dc(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Oc(e)}function qc(e,t){if(e=Ic(e),t=Dc(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 Oc(e)}function Nc(e,t){if(e=Ic(e),t=Dc(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 Oc(e)}bc.private_safeColorChannel=(e,t)=>{try{return Mc(e)}catch(t){return e}};var Fc={black:"#000",white:"#fff"};var zc={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 $c={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 jc={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 Gc={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 Bc={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 Hc={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 Wc={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 Vc=["mode","contrastThreshold","tonalOffset"],Yc={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:Fc.white,default:Fc.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}},Uc={text:{primary:Fc.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:Fc.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 Kc(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=Rc(e.main,o):"dark"===t&&(e.dark=Cc(e.main,i)))}function Xc(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=si(e,Vc),i=e.primary||function(e="light"){return"dark"===e?{main:Bc[200],light:Bc[50],dark:Bc[400]}:{main:Bc[700],light:Bc[400],dark:Bc[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:$c[200],light:$c[50],dark:$c[400]}:{main:$c[500],light:$c[300],dark:$c[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:jc[500],light:jc[300],dark:jc[700]}:{main:jc[700],light:jc[400],dark:jc[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Hc[400],light:Hc[300],dark:Hc[700]}:{main:Hc[700],light:Hc[500],dark:Hc[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Wc[400],light:Wc[300],dark:Wc[700]}:{main:Wc[800],light:Wc[500],dark:Wc[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Gc[400],light:Gc[300],dark:Gc[700]}:{main:"#ed6c02",light:Gc[500],dark:Gc[900]}}(t);function d(e){return wc(e,Uc.text.primary)>=r?Uc.text.primary:Yc.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=li({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(oi(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(oi(12,t?` (${t})`:"",JSON.stringify(e.main)));return Kc(e,"light",o,n),Kc(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Uc,light:Yc};return is(li({common:li({},Fc),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:zc,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Jc=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Zc={textTransform:"uppercase"},Qc='"Roboto", "Helvetica", "Arial", sans-serif';function ed(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Qc,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=si(r,Jc),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return li({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Qc?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Zc),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Zc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return is(li({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function td(...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 rd=["none",td(0,2,1,-1,0,1,1,0,0,1,3,0),td(0,3,1,-2,0,2,2,0,0,1,5,0),td(0,3,3,-2,0,3,4,0,0,1,8,0),td(0,2,4,-1,0,4,5,0,0,1,10,0),td(0,3,5,-1,0,5,8,0,0,1,14,0),td(0,3,5,-1,0,6,10,0,0,1,18,0),td(0,4,5,-2,0,7,10,1,0,2,16,1),td(0,5,5,-3,0,8,10,1,0,3,14,2),td(0,5,6,-3,0,9,12,1,0,3,16,2),td(0,6,6,-3,0,10,14,1,0,4,18,3),td(0,6,7,-4,0,11,15,1,0,4,20,3),td(0,7,8,-4,0,12,17,2,0,5,22,4),td(0,7,8,-4,0,13,19,2,0,5,24,4),td(0,7,9,-4,0,14,21,2,0,5,26,4),td(0,8,9,-5,0,15,22,2,0,6,28,5),td(0,8,10,-5,0,16,24,2,0,6,30,5),td(0,8,11,-5,0,17,26,2,0,6,32,5),td(0,9,11,-5,0,18,28,2,0,7,34,6),td(0,9,12,-6,0,19,29,2,0,7,36,6),td(0,10,13,-6,0,20,31,3,0,8,38,7),td(0,10,13,-6,0,21,33,3,0,8,40,7),td(0,10,14,-6,0,22,35,3,0,8,42,7),td(0,11,14,-7,0,23,36,3,0,9,44,8),td(0,11,15,-7,0,24,38,3,0,9,46,8)];const nd=["duration","easing","delay"],od={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)"},id={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ad(e){return`${Math.round(e)}ms`}function ld(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function sd(e){const t=li({},od,e.easing),r=li({},id,e.duration);return li({getAutoHeightDuration:ld,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return si(n,nd),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ad(o)} ${i} ${"string"==typeof a?a:ad(a)}`)).join(",")}},e,{easing:t,duration:r})}var ud={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const cd=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dd(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=si(e,cd);if(e.vars)throw new Error(oi(18));const l=Xc(n),s=pu(e);let u=is(s,{mixins:(c=s.breakpoints,d=r,li({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:rd.slice(),typography:ed(l,i),transitions:sd(o),zIndex:li({},ud)});var c,d;return u=is(u,a),u=t.reduce(((e,t)=>is(e,t)),u),u.unstable_sxConfig=li({},au,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return uu({sx:e,theme:this})},u}var pd,fd=dd(),hd={},md={exports:{}};var gd,bd={exports:{}};var vd=q(rs),yd=q(as),xd=q(gs),Sd=q(Ku),Ed=q(fu),Cd=q(yu),wd=yc;Object.defineProperty(hd,"__esModule",{value:!0});var Rd=hd.default=function(e={}){const{themeId:t,defaultTheme:r=Fd,rootShouldForwardProp:n=Nd,slotShouldForwardProp:o=Nd}=e,i=e=>(0,Od.default)((0,Ad.default)({},e,{theme:$d((0,Ad.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,_d.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=jd(zd(s))}=a,p=(0,Dd.default)(a,Td),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Nd;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,_d.default)(e,(0,Ad.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Id.isPlainObject)(e)?n=>Gd(e,(0,Ad.default)({},n,{theme:$d({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=$d((0,Ad.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Gd(r,(0,Ad.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=$d((0,Ad.default)({},e,{defaultTheme:r,themeId:t}));return Gd({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,Ad.default)({},e,{theme:o}))})),h||s.push(i);const u=s.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,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}},Ld=hd.shouldForwardProp=Nd;hd.systemDefaultTheme=void 0;var Ad=wd((pd||(pd=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}(md)),md.exports)),Dd=wd((gd||(gd=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}(bd)),bd.exports)),_d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=qd(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}(vd),Id=yd;wd(xd),wd(Sd);var Md=wd(Ed),Od=wd(Cd);const Pd=["ownerState"],kd=["variants"],Td=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function qd(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(qd=function(e){return e?r:t})(e)}function Nd(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Fd=hd.systemDefaultTheme=(0,Md.default)(),zd=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function $d({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function jd(e){return e?(t,r)=>r[e]:null}function Gd(e,t){let{ownerState:r}=t,n=(0,Dd.default)(t,Pd);const o="function"==typeof e?e((0,Ad.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Gd(e,(0,Ad.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Dd.default)(o,kd);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Ad.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,Ad.default)({ownerState:r},n,r)):e.style))})),t}return o}var Bd=Rd({themeId:ai,defaultTheme:fd,rootShouldForwardProp:e=>Ld(e)&&"classes"!==e});const Hd=["theme"];function Wd(e){let{theme:t}=e,r=si(e,Hd);const n=t[ai];return ni.jsx(mc,li({},r,{themeId:n?ai:void 0,theme:n||t}))}function Vd(e){if(e.type)return e;if("#"===e.charAt(0))return Vd(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 Yd(e,t){return e=Vd(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}const Ud={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"},Kd={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",...Ud,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)"},Xd=12,Jd=14,Zd=16,Qd=24,ep=3,tp=300,rp=400,np=600,op=700,ip={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Yd(Kd.GREYSCALE_0,.05),Yd(Kd.GREEN_PALE,.5),Yd(Kd.BLUE_PALE,.5),Yd(Kd.GREEN_PALE,.5),Yd(Kd.BLUE_PALE,.5),Yd(Kd.GREEN_PALE,.5),Yd(Kd.BLUE_PALE,.5);var ap;function lp(){return lp=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},lp.apply(this,arguments)}Yd(Kd.GREEN_PALE,.5),Yd(Kd.BLUE_PALE,.5),Yd(Kd.GREEN_PALE,.5),Yd(Kd.BLUE_PALE,.5);var sp,up=function(e){return g.createElement("svg",lp({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),ap||(ap=g.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function cp(){return cp=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},cp.apply(this,arguments)}var dp=function(e){return g.createElement("svg",cp({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),sp||(sp=g.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 pp({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return b.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var fp=(e={})=>b.createElement(pp,{...e},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},b.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),b.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),hp=(e={})=>b.createElement(pp,{...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),b.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),mp=(e={})=>b.createElement(pp,{fontSize:"medium",...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},b.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),gp=(e={})=>b.createElement(pp,{fontSize:"medium",...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),b.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"}))),bp=({className:e})=>b.createElement(pp,{fontSize:"small",className:e},b.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},b.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},b.createElement("g",{transform:"translate(4.324187, 1.300372)"},b.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),b.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));var vp={black:"#000",white:"#fff"};var yp={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 xp={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 Sp={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 Ep={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 Cp={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 wp={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 Rp={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 Lp(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 Ap="$$material";const Dp=Vl((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 _p=Dp;
19
+ function is(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ul(e),r}ns.propTypes={defaultTheme:ts.object,styles:ts.oneOfType([ts.array,ts.string,ts.object,ts.func])};var as=Object.freeze({__proto__:null,GlobalStyles:os,StyledEngineProvider:rs,ThemeContext:jl,css:Wl,default:is,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:Jl});function ls(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 ss(e){if(!ls(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=ss(e[r])})),t}function us(e,t,r={clone:!0}){const n=r.clone?di({},e):e;return ls(e)&&ls(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(ls(t[o])&&o in e&&ls(e[o])?n[o]=us(e[o],t[o],r):r.clone?n[o]=ls(t[o])?ss(t[o]):t[o]:n[o]=t[o])})),n}var cs=Object.freeze({__proto__:null,default:us,isPlainObject:ls});const ds=["values","unit","step"],ps=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)=>di({},e,{[t.key]:t.val})),{})};function fs(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=pi(e,ds),i=ps(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return di({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var hs={borderRadius:4};function ms(e,t){return t?us(e,t,{clone:!1}):e}const gs={xs:0,sm:600,md:900,lg:1200,xl:1536},bs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gs[e]}px)`};function vs(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||bs;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||bs;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||gs).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function ys(e){if("string"!=typeof e)throw new Error(si(7));return e.charAt(0).toUpperCase()+e.slice(1)}var xs=Object.freeze({__proto__:null,default:ys});function Ss(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 Es(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Ss(e,r)||n,t&&(o=t(o,n,e)),o}function Cs(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=Ss(e.theme,n)||{};return vs(e,i,(e=>{let n=Es(a,o,e);return e===n&&"string"==typeof e&&(n=Es(a,o,`${t}${"default"===e?"":ys(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const ws={m:"margin",p:"padding"},Rs={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ls={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},As=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Ls[e])return[e];e=Ls[e]}const[t,r]=e.split(""),n=ws[t],o=Rs[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Is=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ms=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ds(e,t,r,n){var o;const i=null!=(o=Ss(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 Ps(e){return Ds(e,"spacing",8)}function _s(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 Os(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=_s(t,r),e)),{})}(As(r),n);return vs(e,e[r],o)}function ks(e,t){const r=Ps(e.theme);return Object.keys(e).map((n=>Os(e,t,n,r))).reduce(ms,{})}function Ts(e){return ks(e,Is)}function qs(e){return ks(e,Ms)}function Ns(...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]?ms(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Fs(e){return"number"!=typeof e?e:`${e}px solid`}function zs(e,t){return Cs({prop:e,themeKey:"borders",transform:t})}Ts.propTypes={},Ts.filterProps=Is,qs.propTypes={},qs.filterProps=Ms;const js=zs("border",Fs),$s=zs("borderTop",Fs),Bs=zs("borderRight",Fs),Hs=zs("borderBottom",Fs),Gs=zs("borderLeft",Fs),Ws=zs("borderColor"),Vs=zs("borderTopColor"),Ys=zs("borderRightColor"),Us=zs("borderBottomColor"),Ks=zs("borderLeftColor"),Xs=zs("outline",Fs),Js=zs("outlineColor"),Zs=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ds(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:_s(t,e)});return vs(e,e.borderRadius,r)}return null};Zs.propTypes={},Zs.filterProps=["borderRadius"],Ns(js,$s,Bs,Hs,Gs,Ws,Vs,Ys,Us,Ks,Zs,Xs,Js);const Qs=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ds(e.theme,"spacing",8),r=e=>({gap:_s(t,e)});return vs(e,e.gap,r)}return null};Qs.propTypes={},Qs.filterProps=["gap"];const eu=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ds(e.theme,"spacing",8),r=e=>({columnGap:_s(t,e)});return vs(e,e.columnGap,r)}return null};eu.propTypes={},eu.filterProps=["columnGap"];const tu=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ds(e.theme,"spacing",8),r=e=>({rowGap:_s(t,e)});return vs(e,e.rowGap,r)}return null};tu.propTypes={},tu.filterProps=["rowGap"];function ru(e,t){return"grey"===t?t:e}Ns(Qs,eu,tu,Cs({prop:"gridColumn"}),Cs({prop:"gridRow"}),Cs({prop:"gridAutoFlow"}),Cs({prop:"gridAutoColumns"}),Cs({prop:"gridAutoRows"}),Cs({prop:"gridTemplateColumns"}),Cs({prop:"gridTemplateRows"}),Cs({prop:"gridTemplateAreas"}),Cs({prop:"gridArea"}));function nu(e){return e<=1&&0!==e?100*e+"%":e}Ns(Cs({prop:"color",themeKey:"palette",transform:ru}),Cs({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ru}),Cs({prop:"backgroundColor",themeKey:"palette",transform:ru}));const ou=Cs({prop:"width",transform:nu}),iu=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])||gs[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:nu(t)}};return vs(e,e.maxWidth,t)}return null};iu.filterProps=["maxWidth"];const au=Cs({prop:"minWidth",transform:nu}),lu=Cs({prop:"height",transform:nu}),su=Cs({prop:"maxHeight",transform:nu}),uu=Cs({prop:"minHeight",transform:nu});Cs({prop:"size",cssProperty:"width",transform:nu}),Cs({prop:"size",cssProperty:"height",transform:nu});Ns(ou,iu,au,lu,su,uu,Cs({prop:"boxSizing"}));var cu={border:{themeKey:"borders",transform:Fs},borderTop:{themeKey:"borders",transform:Fs},borderRight:{themeKey:"borders",transform:Fs},borderBottom:{themeKey:"borders",transform:Fs},borderLeft:{themeKey:"borders",transform:Fs},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fs},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zs},color:{themeKey:"palette",transform:ru},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ru},backgroundColor:{themeKey:"palette",transform:ru},p:{style:qs},pt:{style:qs},pr:{style:qs},pb:{style:qs},pl:{style:qs},px:{style:qs},py:{style:qs},padding:{style:qs},paddingTop:{style:qs},paddingRight:{style:qs},paddingBottom:{style:qs},paddingLeft:{style:qs},paddingX:{style:qs},paddingY:{style:qs},paddingInline:{style:qs},paddingInlineStart:{style:qs},paddingInlineEnd:{style:qs},paddingBlock:{style:qs},paddingBlockStart:{style:qs},paddingBlockEnd:{style:qs},m:{style:Ts},mt:{style:Ts},mr:{style:Ts},mb:{style:Ts},ml:{style:Ts},mx:{style:Ts},my:{style:Ts},margin:{style:Ts},marginTop:{style:Ts},marginRight:{style:Ts},marginBottom:{style:Ts},marginLeft:{style:Ts},marginX:{style:Ts},marginY:{style:Ts},marginInline:{style:Ts},marginInlineStart:{style:Ts},marginInlineEnd:{style:Ts},marginBlock:{style:Ts},marginBlockStart:{style:Ts},marginBlockEnd:{style:Ts},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:Qs},rowGap:{style:tu},columnGap:{style:eu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:nu},maxWidth:{style:iu},minWidth:{transform:nu},height:{transform:nu},maxHeight:{transform:nu},minHeight:{transform:nu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function du(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Ss(r,l)||{};if(u)return u(o);return vs(o,t,(t=>{let r=Es(c,s,t);return t===r&&"string"==typeof t&&(r=Es(c,s,`${e}${"default"===t?"":ys(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:cu;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=ms(s,e(r,o,i,a));else{const e=vs({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=ms(s,e):s[r]=t({sx:o,theme:i})}else s=ms(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const pu=du();pu.filterProps=["sx"];var fu=pu;function hu(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 mu=["breakpoints","palette","spacing","shape"];function gu(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=pi(e,mu),l=fs(r),s=function(e=8){if(e.mui)return e;const t=Ps({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=us({breakpoints:l,direction:"ltr",components:{},palette:di({mode:"light"},n),spacing:s,shape:di({},hs,i)},a);return u.applyStyles=hu,u=t.reduce(((e,t)=>us(e,t)),u),u.unstable_sxConfig=di({},cu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return fu({sx:e,theme:this})},u}var bu=Object.freeze({__proto__:null,default:gu,private_createBreakpoints:fs,unstable_applyStyles:hu});function vu(e=null){const t=v.useContext(jl);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const yu=gu();function xu(e=yu){return vu(e)}const Su=["sx"],Eu=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:cu;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function Cu(e){const{sx:t}=e,r=pi(e,Su),{systemProps:n,otherProps:o}=Eu(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return ls(r)?di({},n,r):n}:di({},n,t),di({},o,{sx:i})}var wu=Object.freeze({__proto__:null,default:fu,extendSxProp:Cu,unstable_createStyleFunctionSx:du,unstable_defaultSxConfig:cu});const Ru=e=>e;var Lu=(()=>{let e=Ru;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ru}}})();function Au(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=Au(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Iu(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Au(e))&&(n&&(n+=" "),n+=t);return n}const Mu=["className","component"];const Du={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 Pu(e,t,r="Mui"){const n=Du[t];return n?`${r}-${n}`:`${Lu.generate(e)}-${t}`}function _u(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Pu(e,t,r)})),n}var Ou,ku={exports:{}},Tu={},qu=Symbol.for("react.element"),Nu=Symbol.for("react.portal"),Fu=Symbol.for("react.fragment"),zu=Symbol.for("react.strict_mode"),ju=Symbol.for("react.profiler"),$u=Symbol.for("react.provider"),Bu=Symbol.for("react.context"),Hu=Symbol.for("react.server_context"),Gu=Symbol.for("react.forward_ref"),Wu=Symbol.for("react.suspense"),Vu=Symbol.for("react.suspense_list"),Yu=Symbol.for("react.memo"),Uu=Symbol.for("react.lazy"),Ku=Symbol.for("react.offscreen");function Xu(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case qu:switch(e=e.type){case Fu:case ju:case zu:case Wu:case Vu:return e;default:switch(e=e&&e.$$typeof){case Hu:case Bu:case Gu:case Uu:case Yu:case $u:return e;default:return t}}case Nu:return t}}}Ou=Symbol.for("react.module.reference"),Tu.ContextConsumer=Bu,Tu.ContextProvider=$u,Tu.Element=qu,Tu.ForwardRef=Gu,Tu.Fragment=Fu,Tu.Lazy=Uu,Tu.Memo=Yu,Tu.Portal=Nu,Tu.Profiler=ju,Tu.StrictMode=zu,Tu.Suspense=Wu,Tu.SuspenseList=Vu,Tu.isAsyncMode=function(){return!1},Tu.isConcurrentMode=function(){return!1},Tu.isContextConsumer=function(e){return Xu(e)===Bu},Tu.isContextProvider=function(e){return Xu(e)===$u},Tu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===qu},Tu.isForwardRef=function(e){return Xu(e)===Gu},Tu.isFragment=function(e){return Xu(e)===Fu},Tu.isLazy=function(e){return Xu(e)===Uu},Tu.isMemo=function(e){return Xu(e)===Yu},Tu.isPortal=function(e){return Xu(e)===Nu},Tu.isProfiler=function(e){return Xu(e)===ju},Tu.isStrictMode=function(e){return Xu(e)===zu},Tu.isSuspense=function(e){return Xu(e)===Wu},Tu.isSuspenseList=function(e){return Xu(e)===Vu},Tu.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Fu||e===ju||e===zu||e===Wu||e===Vu||e===Ku||"object"==typeof e&&null!==e&&(e.$$typeof===Uu||e.$$typeof===Yu||e.$$typeof===$u||e.$$typeof===Bu||e.$$typeof===Gu||e.$$typeof===Ou||void 0!==e.getModuleId)},Tu.typeOf=Xu,ku.exports=Tu;var Ju=ku.exports;const Zu=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Qu(e){const t=`${e}`.match(Zu);return t&&t[1]||""}function ec(e,t=""){return e.displayName||e.name||Qu(e)||t}function tc(e,t,r){const n=ec(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var rc=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return ec(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ju.ForwardRef:return tc(e,e.render,"ForwardRef");case Ju.Memo:return tc(e,e.type,"memo");default:return}}},getFunctionName:Qu});function nc(e,t){const r=di({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=di({},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]=di({},i),Object.keys(o).forEach((e=>{r[n][e]=nc(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function oc({props:e,name:t,defaultTheme:r,themeId:n}){let o=xu(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?nc(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}var ic="undefined"!=typeof window?v.useLayoutEffect:v.useEffect;function ac(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var lc=Object.freeze({__proto__:null,default:ac});function sc(e){if(e.type)return e;if("#"===e.charAt(0))return sc(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(si(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(si(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function uc(e,t){return e=sc(e),t=function(e,t=0,r=1){return ac(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 cc(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function dc(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function pc(e){return e&&e.ownerDocument||document}function fc(e){return pc(e).defaultView||window}function hc(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function mc(e){const t=v.useRef(e);return ic((()=>{t.current=e})),v.useRef(((...e)=>(0,t.current)(...e))).current}function gc(...e){return v.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{hc(e,t)}))}),e)}const bc={};const vc=[];let yc=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 xc(){const e=function(e,t){const r=v.useRef(bc);return r.current===bc&&(r.current=e(t)),r}(yc.create).current;var t;return t=e.disposeEffect,v.useEffect(t,vc),e}let Sc=!0,Ec=!1;const Cc=new yc,wc={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 Rc(e){e.metaKey||e.altKey||e.ctrlKey||(Sc=!0)}function Lc(){Sc=!1}function Ac(){"hidden"===this.visibilityState&&Ec&&(Sc=!0)}function Ic(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Sc||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!wc[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Mc(){const e=v.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Rc,!0),t.addEventListener("mousedown",Lc,!0),t.addEventListener("pointerdown",Lc,!0),t.addEventListener("touchstart",Lc,!0),t.addEventListener("visibilitychange",Ac,!0))}),[]),t=v.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ic(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Ec=!0,Cc.start(100,(()=>{Ec=!1})),t.current=!1,!0)},ref:e}}function Dc(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Pc(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 _c=v.createContext(null);function Oc(){return v.useContext(_c)}var kc="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Tc(e){const{children:t,theme:r}=e,n=Oc(),o=v.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return di({},e,t)}(n,r);return null!=e&&(e[kc]=null!==n),e}),[r,n]);return li.jsx(_c.Provider,{value:o,children:t})}const qc=["value"],Nc=v.createContext();function Fc(e){let{value:t}=e,r=pi(e,qc);return li.jsx(Nc.Provider,di({value:null==t||t},r))}const zc={};function jc(e,t,r,n=!1){return v.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?di({},t,{[e]:i}):i;return n?()=>a:a}return di({},t,e?{[e]:r}:r)}),[e,t,r,n])}function $c(e){const{children:t,theme:r,themeId:n}=e,o=vu(zc),i=Oc()||zc,a=jc(n,o,r),l=jc(n,i,r,!0),s="rtl"===a.direction;return li.jsx(Tc,{theme:l,children:li.jsx(jl.Provider,{value:a,children:li.jsx(Fc,{value:s,children:t})})})}var Bc,Hc={},Gc={exports:{}};(Bc=Gc).exports=function(e){return e&&e.__esModule?e:{default:e}},Bc.exports.__esModule=!0,Bc.exports.default=Bc.exports;var Wc=Gc.exports,Vc=F(ui),Yc=F(lc),Uc=Wc;Object.defineProperty(Hc,"__esModule",{value:!0});var Kc=Hc.alpha=sd;Hc.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=nd(e),a=nd(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return id({type:"rgb",values:l})},Hc.colorChannel=void 0;var Xc=Hc.darken=ud;Hc.decomposeColor=nd,Hc.emphasize=function(e,t=.15){return ld(e)>.5?ud(e,t):cd(e,t)};var Jc=Hc.getContrastRatio=function(e,t){const r=ld(e),n=ld(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Hc.getLuminance=ld,Hc.hexToRgb=rd,Hc.hslToRgb=ad;var Zc=Hc.lighten=cd;Hc.private_safeAlpha=function(e,t,r){try{return sd(e,t)}catch(t){return e}},Hc.private_safeColorChannel=void 0,Hc.private_safeDarken=function(e,t,r){try{return ud(e,t)}catch(t){return e}},Hc.private_safeEmphasize=function e(t,r,n){try{return e(t,r)}catch(e){return t}},Hc.private_safeLighten=function(e,t,r){try{return cd(e,t)}catch(t){return e}},Hc.recomposeColor=id,Hc.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=nd(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 Qc=Uc(Vc),ed=Uc(Yc);function td(e,t=0,r=1){return(0,ed.default)(e,t,r)}function rd(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 nd(e){if(e.type)return e;if("#"===e.charAt(0))return nd(rd(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Qc.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,Qc.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const od=e=>{const t=nd(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Hc.colorChannel=od;function id(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function ad(e){e=nd(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),id({type:l,values:s})}function ld(e){let t="hsl"===(e=nd(e)).type||"hsla"===e.type?nd(ad(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 sd(e,t){return e=nd(e),t=td(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,id(e)}function ud(e,t){if(e=nd(e),t=td(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 id(e)}function cd(e,t){if(e=nd(e),t=td(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 id(e)}Hc.private_safeColorChannel=(e,t)=>{try{return od(e)}catch(t){return e}};var dd={black:"#000",white:"#fff"};var pd={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 fd={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 hd={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 md={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 gd={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 bd={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 vd={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 yd=["mode","contrastThreshold","tonalOffset"],xd={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:dd.white,default:dd.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}},Sd={text:{primary:dd.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:dd.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 Ed(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=Zc(e.main,o):"dark"===t&&(e.dark=Xc(e.main,i)))}function Cd(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=pi(e,yd),i=e.primary||function(e="light"){return"dark"===e?{main:gd[200],light:gd[50],dark:gd[400]}:{main:gd[700],light:gd[400],dark:gd[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:fd[200],light:fd[50],dark:fd[400]}:{main:fd[500],light:fd[300],dark:fd[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:hd[500],light:hd[300],dark:hd[700]}:{main:hd[700],light:hd[400],dark:hd[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:bd[400],light:bd[300],dark:bd[700]}:{main:bd[700],light:bd[500],dark:bd[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:vd[400],light:vd[300],dark:vd[700]}:{main:vd[800],light:vd[500],dark:vd[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:md[400],light:md[300],dark:md[700]}:{main:"#ed6c02",light:md[500],dark:md[900]}}(t);function d(e){return Jc(e,Sd.text.primary)>=r?Sd.text.primary:xd.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=di({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(si(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(si(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ed(e,"light",o,n),Ed(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Sd,light:xd};return us(di({common:di({},dd),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:pd,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const wd=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Rd={textTransform:"uppercase"},Ld='"Roboto", "Helvetica", "Arial", sans-serif';function Ad(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Ld,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=pi(r,wd),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return di({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Ld?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Rd),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Rd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return us(di({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Id(...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 Md=["none",Id(0,2,1,-1,0,1,1,0,0,1,3,0),Id(0,3,1,-2,0,2,2,0,0,1,5,0),Id(0,3,3,-2,0,3,4,0,0,1,8,0),Id(0,2,4,-1,0,4,5,0,0,1,10,0),Id(0,3,5,-1,0,5,8,0,0,1,14,0),Id(0,3,5,-1,0,6,10,0,0,1,18,0),Id(0,4,5,-2,0,7,10,1,0,2,16,1),Id(0,5,5,-3,0,8,10,1,0,3,14,2),Id(0,5,6,-3,0,9,12,1,0,3,16,2),Id(0,6,6,-3,0,10,14,1,0,4,18,3),Id(0,6,7,-4,0,11,15,1,0,4,20,3),Id(0,7,8,-4,0,12,17,2,0,5,22,4),Id(0,7,8,-4,0,13,19,2,0,5,24,4),Id(0,7,9,-4,0,14,21,2,0,5,26,4),Id(0,8,9,-5,0,15,22,2,0,6,28,5),Id(0,8,10,-5,0,16,24,2,0,6,30,5),Id(0,8,11,-5,0,17,26,2,0,6,32,5),Id(0,9,11,-5,0,18,28,2,0,7,34,6),Id(0,9,12,-6,0,19,29,2,0,7,36,6),Id(0,10,13,-6,0,20,31,3,0,8,38,7),Id(0,10,13,-6,0,21,33,3,0,8,40,7),Id(0,10,14,-6,0,22,35,3,0,8,42,7),Id(0,11,14,-7,0,23,36,3,0,9,44,8),Id(0,11,15,-7,0,24,38,3,0,9,46,8)];const Dd=["duration","easing","delay"],Pd={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)"},_d={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Od(e){return`${Math.round(e)}ms`}function kd(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Td(e){const t=di({},Pd,e.easing),r=di({},_d,e.duration);return di({getAutoHeightDuration:kd,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return pi(n,Dd),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Od(o)} ${i} ${"string"==typeof a?a:Od(a)}`)).join(",")}},e,{easing:t,duration:r})}var qd={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Nd=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fd(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=pi(e,Nd);if(e.vars)throw new Error(si(18));const l=Cd(n),s=gu(e);let u=us(s,{mixins:(c=s.breakpoints,d=r,di({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Md.slice(),typography:Ad(l,i),transitions:Td(o),zIndex:di({},qd)});var c,d;return u=us(u,a),u=t.reduce(((e,t)=>us(e,t)),u),u.unstable_sxConfig=di({},cu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return fu({sx:e,theme:this})},u}var zd=Fd();function jd(){const e=xu(zd);return e[ci]||e}function $d({props:e,name:t}){return oc({props:e,name:t,defaultTheme:zd,themeId:ci})}var Bd,Hd={},Gd={exports:{}};var Wd,Vd={exports:{}};var Yd=F(as),Ud=F(cs),Kd=F(xs),Xd=F(rc),Jd=F(bu),Zd=F(wu),Qd=Wc;Object.defineProperty(Hd,"__esModule",{value:!0});var ep=Hd.default=function(e={}){const{themeId:t,defaultTheme:r=pp,rootShouldForwardProp:n=dp,slotShouldForwardProp:o=dp}=e,i=e=>(0,ap.default)((0,tp.default)({},e,{theme:hp((0,tp.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,np.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=mp(fp(s))}=a,p=(0,rp.default)(a,up),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=dp;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,np.default)(e,(0,tp.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,op.isPlainObject)(e)?n=>gp(e,(0,tp.default)({},n,{theme:hp({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=hp((0,tp.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=gp(r,(0,tp.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=hp((0,tp.default)({},e,{defaultTheme:r,themeId:t}));return gp({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,tp.default)({},e,{theme:o}))})),h||s.push(i);const u=s.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,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};Hd.shouldForwardProp=dp,Hd.systemDefaultTheme=void 0;var tp=Qd((Bd||(Bd=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}(Gd)),Gd.exports)),rp=Qd((Wd||(Wd=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}(Vd)),Vd.exports)),np=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=cp(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}(Yd),op=Ud;Qd(Kd),Qd(Xd);var ip=Qd(Jd),ap=Qd(Zd);const lp=["ownerState"],sp=["variants"],up=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function cp(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(cp=function(e){return e?r:t})(e)}function dp(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const pp=Hd.systemDefaultTheme=(0,ip.default)(),fp=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function hp({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function mp(e){return e?(t,r)=>r[e]:null}function gp(e,t){let{ownerState:r}=t,n=(0,rp.default)(t,lp);const o="function"==typeof e?e((0,tp.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>gp(e,(0,tp.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,rp.default)(o,sp);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,tp.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,tp.default)({ownerState:r},n,r)):e.style))})),t}return o}var bp=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var vp=ep({themeId:ci,defaultTheme:zd,rootShouldForwardProp:bp});const yp=["theme"];function xp(e){let{theme:t}=e,r=pi(e,yp);const n=t[ci];return li.jsx($c,di({},r,{themeId:n?ci:void 0,theme:n||t}))}var Sp=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ep(e){if(e.type)return e;if("#"===e.charAt(0))return Ep(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 Cp(e,t){return e=Ep(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 wp(e,t){return wp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wp(e,t)}function Rp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wp(e,t)}const Lp={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"},Ap={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",...Lp,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)"},Ip=12,Mp=14,Dp=16,Pp=24,_p=3,Op=300,kp=400,Tp=600,qp=700,Np={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Cp(Ap.GREYSCALE_0,.05),Cp(Ap.GREEN_PALE,.5),Cp(Ap.BLUE_PALE,.5),Cp(Ap.GREEN_PALE,.5),Cp(Ap.BLUE_PALE,.5),Cp(Ap.GREEN_PALE,.5),Cp(Ap.BLUE_PALE,.5);var Fp;function zp(){return zp=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},zp.apply(this,arguments)}Cp(Ap.GREEN_PALE,.5),Cp(Ap.BLUE_PALE,.5),Cp(Ap.GREEN_PALE,.5),Cp(Ap.BLUE_PALE,.5);var jp,$p=function(e){return v.createElement("svg",zp({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Fp||(Fp=v.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Bp(){return Bp=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},Bp.apply(this,arguments)}var Hp=function(e){return v.createElement("svg",Bp({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),jp||(jp=v.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 Gp({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return y.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 Wp=(e={})=>y.createElement(Gp,{...e},y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},y.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),y.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"}))),Vp=(e={})=>y.createElement(Gp,{...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),y.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Yp=(e={})=>y.createElement(Gp,{fontSize:"medium",...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},y.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Up=(e={})=>y.createElement(Gp,{fontSize:"medium",...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),y.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"}))),Kp=({className:e})=>y.createElement(Gp,{fontSize:"small",className:e},y.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},y.createElement("g",{transform:"translate(4.324187, 1.300372)"},y.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"}),y.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 Xp={black:"#000",white:"#fff"};var Jp={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 Zp={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 Qp={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 ef={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 tf={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 rf={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 nf={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 of(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 af="$$material";function lf(){return lf=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},lf.apply(this,arguments)}function sf(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 uf=Xl((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 cf=uf;
20
20
  /**
21
- * @mui/styled-engine-sc v6.0.0-alpha.16
21
+ * @mui/styled-engine-sc v6.0.0-alpha.17
22
22
  *
23
23
  * @license MIT
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
26
  */
27
- function Ip(e,t){let r;return r=t?Hl(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Hl(e),r}Dp.propTypes={defaultTheme:Jl.object,styles:Jl.oneOfType([Jl.array,Jl.string,Jl.object,Jl.func])};const Mp=["values","unit","step"],Op=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)=>li({},e,{[t.key]:t.val})),{})};var Pp={borderRadius:4};function kp(e,t){return t?is(e,t,{clone:!1}):e}const Tp={xs:0,sm:600,md:900,lg:1200,xl:1536},qp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Tp[e]}px)`};function Np(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||qp;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||qp;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Tp).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Fp(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 zp(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Fp(e,r)||n,t&&(o=t(o,n,e)),o}function $p(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=Fp(e.theme,n)||{};return Np(e,i,(e=>{let n=zp(a,o,e);return e===n&&"string"==typeof e&&(n=zp(a,o,`${t}${"default"===e?"":ms(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const jp={m:"margin",p:"padding"},Gp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Bp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hp=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Bp[e])return[e];e=Bp[e]}const[t,r]=e.split(""),n=jp[t],o=Gp[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Wp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Yp(e,t,r,n){var o;const i=null!=(o=Fp(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 Up(e){return Yp(e,"spacing",8)}function Kp(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 Xp(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Kp(t,r),e)),{})}(Hp(r),n);return Np(e,e[r],o)}function Jp(e,t){const r=Up(e.theme);return Object.keys(e).map((n=>Xp(e,t,n,r))).reduce(kp,{})}function Zp(e){return Jp(e,Wp)}function Qp(e){return Jp(e,Vp)}function ef(...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]?kp(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function tf(e){return"number"!=typeof e?e:`${e}px solid`}function rf(e,t){return $p({prop:e,themeKey:"borders",transform:t})}Zp.propTypes={},Zp.filterProps=Wp,Qp.propTypes={},Qp.filterProps=Vp;const nf=rf("border",tf),of=rf("borderTop",tf),af=rf("borderRight",tf),lf=rf("borderBottom",tf),sf=rf("borderLeft",tf),uf=rf("borderColor"),cf=rf("borderTopColor"),df=rf("borderRightColor"),pf=rf("borderBottomColor"),ff=rf("borderLeftColor"),hf=rf("outline",tf),mf=rf("outlineColor"),gf=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Yp(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Kp(t,e)});return Np(e,e.borderRadius,r)}return null};gf.propTypes={},gf.filterProps=["borderRadius"],ef(nf,of,af,lf,sf,uf,cf,df,pf,ff,gf,hf,mf);const bf=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Yp(e.theme,"spacing",8),r=e=>({gap:Kp(t,e)});return Np(e,e.gap,r)}return null};bf.propTypes={},bf.filterProps=["gap"];const vf=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Yp(e.theme,"spacing",8),r=e=>({columnGap:Kp(t,e)});return Np(e,e.columnGap,r)}return null};vf.propTypes={},vf.filterProps=["columnGap"];const yf=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Yp(e.theme,"spacing",8),r=e=>({rowGap:Kp(t,e)});return Np(e,e.rowGap,r)}return null};yf.propTypes={},yf.filterProps=["rowGap"];function xf(e,t){return"grey"===t?t:e}ef(bf,vf,yf,$p({prop:"gridColumn"}),$p({prop:"gridRow"}),$p({prop:"gridAutoFlow"}),$p({prop:"gridAutoColumns"}),$p({prop:"gridAutoRows"}),$p({prop:"gridTemplateColumns"}),$p({prop:"gridTemplateRows"}),$p({prop:"gridTemplateAreas"}),$p({prop:"gridArea"}));function Sf(e){return e<=1&&0!==e?100*e+"%":e}ef($p({prop:"color",themeKey:"palette",transform:xf}),$p({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xf}),$p({prop:"backgroundColor",themeKey:"palette",transform:xf}));const Ef=$p({prop:"width",transform:Sf}),Cf=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])||Tp[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:Sf(t)}};return Np(e,e.maxWidth,t)}return null};Cf.filterProps=["maxWidth"];const wf=$p({prop:"minWidth",transform:Sf}),Rf=$p({prop:"height",transform:Sf}),Lf=$p({prop:"maxHeight",transform:Sf}),Af=$p({prop:"minHeight",transform:Sf});$p({prop:"size",cssProperty:"width",transform:Sf}),$p({prop:"size",cssProperty:"height",transform:Sf});ef(Ef,Cf,wf,Rf,Lf,Af,$p({prop:"boxSizing"}));var Df={border:{themeKey:"borders",transform:tf},borderTop:{themeKey:"borders",transform:tf},borderRight:{themeKey:"borders",transform:tf},borderBottom:{themeKey:"borders",transform:tf},borderLeft:{themeKey:"borders",transform:tf},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tf},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gf},color:{themeKey:"palette",transform:xf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xf},backgroundColor:{themeKey:"palette",transform:xf},p:{style:Qp},pt:{style:Qp},pr:{style:Qp},pb:{style:Qp},pl:{style:Qp},px:{style:Qp},py:{style:Qp},padding:{style:Qp},paddingTop:{style:Qp},paddingRight:{style:Qp},paddingBottom:{style:Qp},paddingLeft:{style:Qp},paddingX:{style:Qp},paddingY:{style:Qp},paddingInline:{style:Qp},paddingInlineStart:{style:Qp},paddingInlineEnd:{style:Qp},paddingBlock:{style:Qp},paddingBlockStart:{style:Qp},paddingBlockEnd:{style:Qp},m:{style:Zp},mt:{style:Zp},mr:{style:Zp},mb:{style:Zp},ml:{style:Zp},mx:{style:Zp},my:{style:Zp},margin:{style:Zp},marginTop:{style:Zp},marginRight:{style:Zp},marginBottom:{style:Zp},marginLeft:{style:Zp},marginX:{style:Zp},marginY:{style:Zp},marginInline:{style:Zp},marginInlineStart:{style:Zp},marginInlineEnd:{style:Zp},marginBlock:{style:Zp},marginBlockStart:{style:Zp},marginBlockEnd:{style:Zp},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:bf},rowGap:{style:yf},columnGap:{style:vf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Sf},maxWidth:{style:Cf},minWidth:{transform:Sf},height:{transform:Sf},maxHeight:{transform:Sf},minHeight:{transform:Sf},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const _f=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Fp(r,l)||{};if(u)return u(o);return Np(o,t,(t=>{let r=zp(c,s,t);return t===r&&"string"==typeof t&&(r=zp(c,s,`${e}${"default"===t?"":ms(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:Df;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=kp(s,e(r,o,i,a));else{const e=Np({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=kp(s,e):s[r]=t({sx:o,theme:i})}else s=kp(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();_f.filterProps=["sx"];var If=_f;function Mf(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 Of=["breakpoints","palette","spacing","shape"];function Pf(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=si(e,Of),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=si(e,Mp),i=Op(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return li({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),s=function(e=8){if(e.mui)return e;const t=Up({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=is({breakpoints:l,direction:"ltr",components:{},palette:li({mode:"light"},n),spacing:s,shape:li({},Pp,i)},a);return u.applyStyles=Mf,u=t.reduce(((e,t)=>is(e,t)),u),u.unstable_sxConfig=li({},Df,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return If({sx:e,theme:this})},u}function kf(e=null){const t=g.useContext(ql);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Tf=Pf();function qf(e=Tf){return kf(e)}function Nf({styles:e,themeId:t,defaultTheme:r={}}){const n=qf(r),o="function"==typeof e?e(t&&n[t]||n):e;return ni.jsx(_p,{styles:o})}const Ff=["sx"],zf=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Df;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function $f(e){const{sx:t}=e,r=si(e,Ff),{systemProps:n,otherProps:o}=zf(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return ns(r)?li({},n,r):n}:li({},n,t),li({},o,{sx:i})}const jf=["className","component"];const Gf=["ownerState"],Bf=["variants"],Hf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Wf(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Vf=Pf(),Yf=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Uf({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Kf(e){return e?(t,r)=>r[e]:null}function Xf(e,t){let{ownerState:r}=t,n=si(t,Gf);const o="function"==typeof e?e(li({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Xf(e,li({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=si(o,Bf);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(li({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(li({ownerState:r},n)):e.style))})),t}return o}function Jf(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?Xu(t.components[r].defaultProps,n):n}function Zf(e,t=0,r=1){return Zu(e,t,r)}function Qf(e){if(e.type)return e;if("#"===e.charAt(0))return Qf(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(oi(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(oi(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function eh(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 th(e){let t="hsl"===(e=Qf(e)).type||"hsla"===e.type?Qf(function(e){e=Qf(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),eh({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 rh(e,t){return e=Qf(e),t=Zf(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,eh(e)}function nh(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 oh(e){if(!nh(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=oh(e[r])})),t}function ih(e,t,r={clone:!0}){const n=r.clone?li({},e):e;return nh(e)&&nh(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(nh(t[o])&&o in e&&nh(e[o])?n[o]=ih(e[o],t[o],r):r.clone?n[o]=nh(t[o])?oh(t[o]):t[o]:n[o]=t[o])})),n}function ah(e){if("string"!=typeof e)throw new Error(Lp(7));return e.charAt(0).toUpperCase()+e.slice(1)}function lh(e){return e&&e.ownerDocument||document}function sh(e){return lh(e).defaultView||window}var uh="undefined"!=typeof window?g.useLayoutEffect:g.useEffect;let ch=0;const dh=g["useId".toString()];function ph(e){if(void 0!==dh){const t=dh();return null!=e?e:t}return function(e){const[t,r]=g.useState(e),n=e||t;return g.useEffect((()=>{null==t&&(ch+=1,r(`mui-${ch}`))}),[t]),n}(e)}function fh({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=g.useRef(void 0!==e),[i,a]=g.useState(t);return[o?e:i,g.useCallback((e=>{o||a(e)}),[])]}function hh(e){const t=g.useRef(e);return uh((()=>{t.current=e})),g.useRef(((...e)=>(0,t.current)(...e))).current}function mh(...e){return g.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 gh{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new gh}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let bh=!0,vh=!1;const yh=new gh,xh={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 Sh(e){e.metaKey||e.altKey||e.ctrlKey||(bh=!0)}function Eh(){bh=!1}function Ch(){"hidden"===this.visibilityState&&vh&&(bh=!0)}function wh(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return bh||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!xh[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Rh(){const e=g.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Sh,!0),t.addEventListener("mousedown",Eh,!0),t.addEventListener("pointerdown",Eh,!0),t.addEventListener("touchstart",Eh,!0),t.addEventListener("visibilitychange",Ch,!0))}),[]),t=g.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!wh(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(vh=!0,yh.start(100,(()=>{vh=!1})),t.current=!1,!0)},ref:e}}function Lh(e,t){const r=li({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=li({},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]=li({},i),Object.keys(o).forEach((e=>{r[n][e]=Lh(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Ah=e=>e;var Dh=(()=>{let e=Ah;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ah}}})();const _h={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 Ih(e,t,r="Mui"){const n=_h[t];return n?`${r}-${n}`:`${Dh.generate(e)}-${t}`}function Mh(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Ih(e,t,r)})),n}const Oh=["mode","contrastThreshold","tonalOffset"],Ph={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:vp.white,default:vp.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}},kh={text:{primary:vp.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:vp.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 Th(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=Qf(e),t=Zf(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 eh(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Qf(e),t=Zf(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 eh(e)}(e.main,i)))}function qh(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=si(e,Oh),i=e.primary||function(e="light"){return"dark"===e?{main:Sp[200],light:Sp[50],dark:Sp[400]}:{main:Sp[700],light:Sp[400],dark:Sp[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:xp[200],light:xp[50],dark:xp[400]}:{main:xp[500],light:xp[300],dark:xp[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:yp[500],light:yp[300],dark:yp[700]}:{main:yp[700],light:yp[400],dark:yp[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ep[400],light:Ep[300],dark:Ep[700]}:{main:Ep[700],light:Ep[500],dark:Ep[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Cp[400],light:Cp[300],dark:Cp[700]}:{main:Cp[800],light:Cp[500],dark:Cp[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:wp[400],light:wp[300],dark:wp[700]}:{main:"#ed6c02",light:wp[500],dark:wp[900]}}(t);function d(e){const t=function(e,t){const r=th(e),n=th(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,kh.text.primary)>=r?kh.text.primary:Ph.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=li({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Lp(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Lp(12,t?` (${t})`:"",JSON.stringify(e.main)));return Th(e,"light",o,n),Th(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:kh,light:Ph};return ih(li({common:li({},vp),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:Rp,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Nh=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Fh={textTransform:"uppercase"},zh='"Roboto", "Helvetica", "Arial", sans-serif';function $h(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=zh,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=si(r,Nh),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return li({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===zh?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Fh),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Fh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ih(li({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function jh(...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 Gh=["none",jh(0,2,1,-1,0,1,1,0,0,1,3,0),jh(0,3,1,-2,0,2,2,0,0,1,5,0),jh(0,3,3,-2,0,3,4,0,0,1,8,0),jh(0,2,4,-1,0,4,5,0,0,1,10,0),jh(0,3,5,-1,0,5,8,0,0,1,14,0),jh(0,3,5,-1,0,6,10,0,0,1,18,0),jh(0,4,5,-2,0,7,10,1,0,2,16,1),jh(0,5,5,-3,0,8,10,1,0,3,14,2),jh(0,5,6,-3,0,9,12,1,0,3,16,2),jh(0,6,6,-3,0,10,14,1,0,4,18,3),jh(0,6,7,-4,0,11,15,1,0,4,20,3),jh(0,7,8,-4,0,12,17,2,0,5,22,4),jh(0,7,8,-4,0,13,19,2,0,5,24,4),jh(0,7,9,-4,0,14,21,2,0,5,26,4),jh(0,8,9,-5,0,15,22,2,0,6,28,5),jh(0,8,10,-5,0,16,24,2,0,6,30,5),jh(0,8,11,-5,0,17,26,2,0,6,32,5),jh(0,9,11,-5,0,18,28,2,0,7,34,6),jh(0,9,12,-6,0,19,29,2,0,7,36,6),jh(0,10,13,-6,0,20,31,3,0,8,38,7),jh(0,10,13,-6,0,21,33,3,0,8,40,7),jh(0,10,14,-6,0,22,35,3,0,8,42,7),jh(0,11,14,-7,0,23,36,3,0,9,44,8),jh(0,11,15,-7,0,24,38,3,0,9,46,8)];const Bh=["duration","easing","delay"],Hh={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)"},Wh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Vh(e){return`${Math.round(e)}ms`}function Yh(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Uh(e){const t=li({},Hh,e.easing),r=li({},Wh,e.duration);return li({getAutoHeightDuration:Yh,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return si(n,Bh),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Vh(o)} ${i} ${"string"==typeof a?a:Vh(a)}`)).join(",")}},e,{easing:t,duration:r})}var Kh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Xh=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Jh(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=si(e,Xh);if(e.vars)throw new Error(Lp(18));const l=qh(n),s=Pf(e);let u=ih(s,{mixins:(c=s.breakpoints,d=r,li({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Gh.slice(),typography:$h(l,i),transitions:Uh(o),zIndex:li({},Kh),applyDarkStyles(e){if(this.vars){return{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=ih(u,a),u=t.reduce(((e,t)=>ih(e,t)),u),u.unstable_sxConfig=li({},Df,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return If({sx:e,theme:this})},u}var Zh=Jh();function Qh(){const e=qf(Zh);return e[Ap]||e}function em({props:e,name:t}){return function({props:e,name:t,defaultTheme:r,themeId:n}){let o=qf(r);return n&&(o=o[n]||o),Jf({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:Zh,themeId:Ap})}const tm=e=>Wf(e)&&"classes"!==e,rm=Wf,nm=function(e={}){const{themeId:t,defaultTheme:r=Vf,rootShouldForwardProp:n=Wf,slotShouldForwardProp:o=Wf}=e,i=e=>If(li({},e,{theme:Uf(li({},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:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Kf(Yf(s))}=a,p=si(a,Hf),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Wf;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=Ip(e,li({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||ns(e)?n=>Xf(e,li({},n,{theme:Uf({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=Uf(li({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Xf(r,li({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Uf(li({},e,{defaultTheme:r,themeId:t}));return Xf({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},li({},e,{theme:o}))})),h||s.push(i);const u=s.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,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Ap,defaultTheme:Zh,rootShouldForwardProp:tm});var om=nm;var im=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function am(e){return Ih("MuiSvgIcon",e)}Mh("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lm=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],sm=om("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${ah(r.color)}`],t[`fontSize${ah(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(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==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),um=g.forwardRef((function(e,t){const r=em({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=si(r,lm),f=g.isValidElement(n)&&"svg"===n.type,h=li({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const b=(e=>{const{color:t,fontSize:r,classes:n}=e;return sc({root:["root","inherit"!==t&&`color${ah(t)}`,`fontSize${ah(r)}`]},am,n)})(h);return ni.jsxs(sm,li({as:a,className:Cu(b.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,c?ni.jsx("title",{children:c}):null]}))}));um.muiName="SvgIcon";var cm=um;function dm(e,t){return dm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dm(e,t)}function pm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dm(e,t)}var fm=!1,hm=b.createContext(null),mm="unmounted",gm="exited",bm="entering",vm="entered",ym="exiting",xm=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=gm,n.appearStatus=bm):o=vm:o=t.unmountOnExit||t.mountOnEnter?mm:gm,n.state={status:o},n.nextCallback=null,n}pm(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===mm?{status:gm}: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!==bm&&r!==vm&&(t=bm):r!==bm&&r!==vm||(t=ym)}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===bm){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:k.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===gm&&this.setState({status:mm})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[k.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||fm?this.safeSetState({status:vm},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:bm},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:vm},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:k.findDOMNode(this);t&&!fm?(this.props.onExit(n),this.safeSetState({status:ym},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:gm},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:gm},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:k.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===mm)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=si(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(hm.Provider,{value:null},"function"==typeof r?r(e,n):b.cloneElement(b.Children.only(r),n))},t}(b.Component);function Sm(){}xm.contextType=hm,xm.propTypes={},xm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Sm,onEntering:Sm,onEntered:Sm,onExit:Sm,onExiting:Sm,onExited:Sm},xm.UNMOUNTED=mm,xm.EXITED=gm,xm.ENTERING=bm,xm.ENTERED=vm,xm.EXITING=ym;var Em=xm;function Cm(e,t){var r=Object.create(null);return e&&E.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&C(e)?t(e):e}(e)})),r}function wm(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Rm(e,t,r){var n=Cm(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(C(a)){var l=i in t,s=i in n,u=t[i],c=C(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&C(u)&&(o[i]=w(a,{onExited:r.bind(null,a),in:u.props.in,exit:wm(a,"exit",e),enter:wm(a,"enter",e)})):o[i]=w(a,{in:!1}):o[i]=w(a,{onExited:r.bind(null,a),in:!0,exit:wm(a,"exit",e),enter:wm(a,"enter",e)})}})),o}var Lm=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Am=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}pm(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,Cm(r.children,(function(e){return w(e,{onExited:n.bind(null,e),in:!0,appear:wm(e,"appear",r),enter:wm(e,"enter",r),exit:wm(e,"exit",r)})}))):Rm(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Cm(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=li({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=si(e,["component","childFactory"]),o=this.state.contextValue,i=Lm(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?b.createElement(hm.Provider,{value:o},i):b.createElement(hm.Provider,{value:o},b.createElement(t,n,i))},t}(b.Component);Am.propTypes={},Am.defaultProps={component:"div",childFactory:function(e){return e}};var Dm=Am;const _m=e=>e.scrollTop;function Im(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 Mm(e){return Ih("MuiPaper",e)}Mh("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 Om=["className","component","elevation","square","variant"],Pm=om("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 li({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&&li({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${rh("#fff",im(t.elevation))}, ${rh("#fff",im(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var km=g.forwardRef((function(e,t){const r=em({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=si(r,Om),u=li({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return sc({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Mm,o)})(u);return ni.jsx(Pm,li({as:o,ownerState:u,className:Cu(c.root,n),ref:t},s))}));function Tm(e){return"string"==typeof e}function qm(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 Nm(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 Fm=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zm(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=si(e,Fm),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Cu(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=li({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=li({},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=qm(li({},o,n)),l=Nm(n),s=Nm(o),u=t(a),c=Cu(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=li({},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=li({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(li({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Tm(e)?t:li({},t,{ownerState:li({},t.ownerState,r)})}(r,li({},s,{ref:lc(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var $m=Mh("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const jm=["center","classes","className"];let Gm,Bm,Hm,Wm,Vm=e=>e;const Ym=Yl(Gm||(Gm=Vm`
27
+ function df(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ul(e),r}uf.propTypes={defaultTheme:ts.object,styles:ts.oneOfType([ts.array,ts.string,ts.object,ts.func])};const pf=["values","unit","step"],ff=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)=>di({},e,{[t.key]:t.val})),{})};var hf={borderRadius:4};function mf(e,t){return t?us(e,t,{clone:!1}):e}const gf={xs:0,sm:600,md:900,lg:1200,xl:1536},bf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gf[e]}px)`};function vf(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||bf;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||bf;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||gf).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function yf(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 xf(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:yf(e,r)||n,t&&(o=t(o,n,e)),o}function Sf(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=yf(e.theme,n)||{};return vf(e,i,(e=>{let n=xf(a,o,e);return e===n&&"string"==typeof e&&(n=xf(a,o,`${t}${"default"===e?"":ys(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Ef={m:"margin",p:"padding"},Cf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Rf=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!wf[e])return[e];e=wf[e]}const[t,r]=e.split(""),n=Ef[t],o=Cf[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Lf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Af=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function If(e,t,r,n){var o;const i=null!=(o=yf(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 Mf(e){return If(e,"spacing",8)}function Df(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 Pf(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Df(t,r),e)),{})}(Rf(r),n);return vf(e,e[r],o)}function _f(e,t){const r=Mf(e.theme);return Object.keys(e).map((n=>Pf(e,t,n,r))).reduce(mf,{})}function Of(e){return _f(e,Lf)}function kf(e){return _f(e,Af)}function Tf(...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]?mf(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function qf(e){return"number"!=typeof e?e:`${e}px solid`}function Nf(e,t){return Sf({prop:e,themeKey:"borders",transform:t})}Of.propTypes={},Of.filterProps=Lf,kf.propTypes={},kf.filterProps=Af;const Ff=Nf("border",qf),zf=Nf("borderTop",qf),jf=Nf("borderRight",qf),$f=Nf("borderBottom",qf),Bf=Nf("borderLeft",qf),Hf=Nf("borderColor"),Gf=Nf("borderTopColor"),Wf=Nf("borderRightColor"),Vf=Nf("borderBottomColor"),Yf=Nf("borderLeftColor"),Uf=Nf("outline",qf),Kf=Nf("outlineColor"),Xf=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=If(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Df(t,e)});return vf(e,e.borderRadius,r)}return null};Xf.propTypes={},Xf.filterProps=["borderRadius"],Tf(Ff,zf,jf,$f,Bf,Hf,Gf,Wf,Vf,Yf,Xf,Uf,Kf);const Jf=e=>{if(void 0!==e.gap&&null!==e.gap){const t=If(e.theme,"spacing",8),r=e=>({gap:Df(t,e)});return vf(e,e.gap,r)}return null};Jf.propTypes={},Jf.filterProps=["gap"];const Zf=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=If(e.theme,"spacing",8),r=e=>({columnGap:Df(t,e)});return vf(e,e.columnGap,r)}return null};Zf.propTypes={},Zf.filterProps=["columnGap"];const Qf=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=If(e.theme,"spacing",8),r=e=>({rowGap:Df(t,e)});return vf(e,e.rowGap,r)}return null};Qf.propTypes={},Qf.filterProps=["rowGap"];function eh(e,t){return"grey"===t?t:e}Tf(Jf,Zf,Qf,Sf({prop:"gridColumn"}),Sf({prop:"gridRow"}),Sf({prop:"gridAutoFlow"}),Sf({prop:"gridAutoColumns"}),Sf({prop:"gridAutoRows"}),Sf({prop:"gridTemplateColumns"}),Sf({prop:"gridTemplateRows"}),Sf({prop:"gridTemplateAreas"}),Sf({prop:"gridArea"}));function th(e){return e<=1&&0!==e?100*e+"%":e}Tf(Sf({prop:"color",themeKey:"palette",transform:eh}),Sf({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:eh}),Sf({prop:"backgroundColor",themeKey:"palette",transform:eh}));const rh=Sf({prop:"width",transform:th}),nh=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])||gf[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:th(t)}};return vf(e,e.maxWidth,t)}return null};nh.filterProps=["maxWidth"];const oh=Sf({prop:"minWidth",transform:th}),ih=Sf({prop:"height",transform:th}),ah=Sf({prop:"maxHeight",transform:th}),lh=Sf({prop:"minHeight",transform:th});Sf({prop:"size",cssProperty:"width",transform:th}),Sf({prop:"size",cssProperty:"height",transform:th});Tf(rh,nh,oh,ih,ah,lh,Sf({prop:"boxSizing"}));var sh={border:{themeKey:"borders",transform:qf},borderTop:{themeKey:"borders",transform:qf},borderRight:{themeKey:"borders",transform:qf},borderBottom:{themeKey:"borders",transform:qf},borderLeft:{themeKey:"borders",transform:qf},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qf},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xf},color:{themeKey:"palette",transform:eh},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:eh},backgroundColor:{themeKey:"palette",transform:eh},p:{style:kf},pt:{style:kf},pr:{style:kf},pb:{style:kf},pl:{style:kf},px:{style:kf},py:{style:kf},padding:{style:kf},paddingTop:{style:kf},paddingRight:{style:kf},paddingBottom:{style:kf},paddingLeft:{style:kf},paddingX:{style:kf},paddingY:{style:kf},paddingInline:{style:kf},paddingInlineStart:{style:kf},paddingInlineEnd:{style:kf},paddingBlock:{style:kf},paddingBlockStart:{style:kf},paddingBlockEnd:{style:kf},m:{style:Of},mt:{style:Of},mr:{style:Of},mb:{style:Of},ml:{style:Of},mx:{style:Of},my:{style:Of},margin:{style:Of},marginTop:{style:Of},marginRight:{style:Of},marginBottom:{style:Of},marginLeft:{style:Of},marginX:{style:Of},marginY:{style:Of},marginInline:{style:Of},marginInlineStart:{style:Of},marginInlineEnd:{style:Of},marginBlock:{style:Of},marginBlockStart:{style:Of},marginBlockEnd:{style:Of},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:Jf},rowGap:{style:Qf},columnGap:{style:Zf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:th},maxWidth:{style:nh},minWidth:{transform:th},height:{transform:th},maxHeight:{transform:th},minHeight:{transform:th},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const uh=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=yf(r,l)||{};if(u)return u(o);return vf(o,t,(t=>{let r=xf(c,s,t);return t===r&&"string"==typeof t&&(r=xf(c,s,`${e}${"default"===t?"":ys(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:sh;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=mf(s,e(r,o,i,a));else{const e=vf({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=mf(s,e):s[r]=t({sx:o,theme:i})}else s=mf(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();uh.filterProps=["sx"];var ch=uh;function dh(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 ph=["breakpoints","palette","spacing","shape"];function fh(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=pi(e,ph),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=pi(e,pf),i=ff(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return di({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),s=function(e=8){if(e.mui)return e;const t=Mf({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=us({breakpoints:l,direction:"ltr",components:{},palette:di({mode:"light"},n),spacing:s,shape:di({},hf,i)},a);return u.applyStyles=dh,u=t.reduce(((e,t)=>us(e,t)),u),u.unstable_sxConfig=di({},sh,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ch({sx:e,theme:this})},u}function hh(e=null){const t=v.useContext(jl);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const mh=fh();function gh(e=mh){return hh(e)}function bh({styles:e,themeId:t,defaultTheme:r={}}){const n=gh(r),o="function"==typeof e?e(t&&n[t]||n):e;return li.jsx(cf,{styles:o})}const vh=["sx"],yh=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:sh;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function xh(e){const{sx:t}=e,r=pi(e,vh),{systemProps:n,otherProps:o}=yh(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return ls(r)?di({},n,r):n}:di({},n,t),di({},o,{sx:i})}const Sh=["className","component"];const Eh=["ownerState"],Ch=["variants"],wh=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Rh(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Lh=fh(),Ah=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ih({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Mh(e){return e?(t,r)=>r[e]:null}function Dh(e,t){let{ownerState:r}=t,n=pi(t,Eh);const o="function"==typeof e?e(di({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Dh(e,di({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=pi(o,Ch);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(di({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(di({ownerState:r},n)):e.style))})),t}return o}function Ph({props:e,name:t,defaultTheme:r,themeId:n}){let o=gh(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?nc(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function _h(e,t=0,r=1){return ac(e,t,r)}function Oh(e){if(e.type)return e;if("#"===e.charAt(0))return Oh(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(si(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(si(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function kh(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 Th(e){let t="hsl"===(e=Oh(e)).type||"hsla"===e.type?Oh(function(e){e=Oh(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),kh({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 qh(e,t){return e=Oh(e),t=_h(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,kh(e)}function Nh(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 Fh(e){if(!Nh(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Fh(e[r])})),t}function zh(e,t,r={clone:!0}){const n=r.clone?di({},e):e;return Nh(e)&&Nh(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Nh(t[o])&&o in e&&Nh(e[o])?n[o]=zh(e[o],t[o],r):r.clone?n[o]=Nh(t[o])?Fh(t[o]):t[o]:n[o]=t[o])})),n}function jh(e){if("string"!=typeof e)throw new Error(of(7));return e.charAt(0).toUpperCase()+e.slice(1)}function $h(e){return e&&e.ownerDocument||document}function Bh(e){return $h(e).defaultView||window}var Hh="undefined"!=typeof window?v.useLayoutEffect:v.useEffect;let Gh=0;const Wh=v["useId".toString()];function Vh(e){if(void 0!==Wh){const t=Wh();return null!=e?e:t}return function(e){const[t,r]=v.useState(e),n=e||t;return v.useEffect((()=>{null==t&&(Gh+=1,r(`mui-${Gh}`))}),[t]),n}(e)}function Yh({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=v.useRef(void 0!==e),[i,a]=v.useState(t);return[o?e:i,v.useCallback((e=>{o||a(e)}),[])]}function Uh(e){const t=v.useRef(e);return Hh((()=>{t.current=e})),v.useRef(((...e)=>(0,t.current)(...e))).current}function Kh(...e){return v.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 Xh{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Xh}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Jh=!0,Zh=!1;const Qh=new Xh,em={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 tm(e){e.metaKey||e.altKey||e.ctrlKey||(Jh=!0)}function rm(){Jh=!1}function nm(){"hidden"===this.visibilityState&&Zh&&(Jh=!0)}function om(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Jh||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!em[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function im(){const e=v.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",tm,!0),t.addEventListener("mousedown",rm,!0),t.addEventListener("pointerdown",rm,!0),t.addEventListener("touchstart",rm,!0),t.addEventListener("visibilitychange",nm,!0))}),[]),t=v.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!om(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Zh=!0,Qh.start(100,(()=>{Zh=!1})),t.current=!1,!0)},ref:e}}function am(e,t){const r=di({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=di({},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]=di({},i),Object.keys(o).forEach((e=>{r[n][e]=am(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const lm=e=>e;var sm=(()=>{let e=lm;return{configure(t){e=t},generate:t=>e(t),reset(){e=lm}}})();const um={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 cm(e,t,r="Mui"){const n=um[t];return n?`${r}-${n}`:`${sm.generate(e)}-${t}`}function dm(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=cm(e,t,r)})),n}const pm=["mode","contrastThreshold","tonalOffset"],fm={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:Xp.white,default:Xp.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}},hm={text:{primary:Xp.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:Xp.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 mm(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=Oh(e),t=_h(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 kh(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Oh(e),t=_h(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 kh(e)}(e.main,i)))}function gm(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=sf(e,pm),i=e.primary||function(e="light"){return"dark"===e?{main:Qp[200],light:Qp[50],dark:Qp[400]}:{main:Qp[700],light:Qp[400],dark:Qp[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Zp[200],light:Zp[50],dark:Zp[400]}:{main:Zp[500],light:Zp[300],dark:Zp[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Jp[500],light:Jp[300],dark:Jp[700]}:{main:Jp[700],light:Jp[400],dark:Jp[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ef[400],light:ef[300],dark:ef[700]}:{main:ef[700],light:ef[500],dark:ef[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:tf[400],light:tf[300],dark:tf[700]}:{main:tf[800],light:tf[500],dark:tf[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:rf[400],light:rf[300],dark:rf[700]}:{main:"#ed6c02",light:rf[500],dark:rf[900]}}(t);function d(e){const t=function(e,t){const r=Th(e),n=Th(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,hm.text.primary)>=r?hm.text.primary:fm.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=lf({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(of(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(of(12,t?` (${t})`:"",JSON.stringify(e.main)));return mm(e,"light",o,n),mm(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:hm,light:fm};return zh(lf({common:lf({},Xp),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:nf,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const bm=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const vm={textTransform:"uppercase"},ym='"Roboto", "Helvetica", "Arial", sans-serif';function xm(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=ym,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=sf(r,bm),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return lf({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===ym?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,vm),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,vm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return zh(lf({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Sm(...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 Em=["none",Sm(0,2,1,-1,0,1,1,0,0,1,3,0),Sm(0,3,1,-2,0,2,2,0,0,1,5,0),Sm(0,3,3,-2,0,3,4,0,0,1,8,0),Sm(0,2,4,-1,0,4,5,0,0,1,10,0),Sm(0,3,5,-1,0,5,8,0,0,1,14,0),Sm(0,3,5,-1,0,6,10,0,0,1,18,0),Sm(0,4,5,-2,0,7,10,1,0,2,16,1),Sm(0,5,5,-3,0,8,10,1,0,3,14,2),Sm(0,5,6,-3,0,9,12,1,0,3,16,2),Sm(0,6,6,-3,0,10,14,1,0,4,18,3),Sm(0,6,7,-4,0,11,15,1,0,4,20,3),Sm(0,7,8,-4,0,12,17,2,0,5,22,4),Sm(0,7,8,-4,0,13,19,2,0,5,24,4),Sm(0,7,9,-4,0,14,21,2,0,5,26,4),Sm(0,8,9,-5,0,15,22,2,0,6,28,5),Sm(0,8,10,-5,0,16,24,2,0,6,30,5),Sm(0,8,11,-5,0,17,26,2,0,6,32,5),Sm(0,9,11,-5,0,18,28,2,0,7,34,6),Sm(0,9,12,-6,0,19,29,2,0,7,36,6),Sm(0,10,13,-6,0,20,31,3,0,8,38,7),Sm(0,10,13,-6,0,21,33,3,0,8,40,7),Sm(0,10,14,-6,0,22,35,3,0,8,42,7),Sm(0,11,14,-7,0,23,36,3,0,9,44,8),Sm(0,11,15,-7,0,24,38,3,0,9,46,8)];const Cm=["duration","easing","delay"],wm={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)"},Rm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Lm(e){return`${Math.round(e)}ms`}function Am(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Im(e){const t=lf({},wm,e.easing),r=lf({},Rm,e.duration);return lf({getAutoHeightDuration:Am,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return sf(n,Cm),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Lm(o)} ${i} ${"string"==typeof a?a:Lm(a)}`)).join(",")}},e,{easing:t,duration:r})}var Mm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Dm=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Pm(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=sf(e,Dm);if(e.vars)throw new Error(of(18));const l=gm(n),s=fh(e);let u=zh(s,{mixins:(c=s.breakpoints,d=r,lf({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Em.slice(),typography:xm(l,i),transitions:Im(o),zIndex:lf({},Mm),applyDarkStyles(e){if(this.vars){return{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=zh(u,a),u=t.reduce(((e,t)=>zh(e,t)),u),u.unstable_sxConfig=lf({},sh,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ch({sx:e,theme:this})},u}var _m=Pm();function Om(){const e=gh(_m);return e[af]||e}function km({props:e,name:t}){return Ph({props:e,name:t,defaultTheme:_m,themeId:af})}const Tm=e=>Rh(e)&&"classes"!==e,qm=Rh,Nm=function(e={}){const{themeId:t,defaultTheme:r=Lh,rootShouldForwardProp:n=Rh,slotShouldForwardProp:o=Rh}=e,i=e=>ch(di({},e,{theme:Ih(di({},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:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Mh(Ah(s))}=a,p=pi(a,wh),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Rh;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=df(e,di({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||ls(e)?n=>Dh(e,di({},n,{theme:Ih({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=Ih(di({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Dh(r,di({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Ih(di({},e,{defaultTheme:r,themeId:t}));return Dh({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},di({},e,{theme:o}))})),h||s.push(i);const u=s.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,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:af,defaultTheme:_m,rootShouldForwardProp:Tm});var Fm=Nm;var zm=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function jm(e){return cm("MuiSvgIcon",e)}dm("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Bm=Fm("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${jh(r.color)}`],t[`fontSize${jh(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(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==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),Hm=v.forwardRef((function(e,t){const r=km({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=sf(r,$m),f=v.isValidElement(n)&&"svg"===n.type,h=lf({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Pc({root:["root","inherit"!==t&&`color${jh(t)}`,`fontSize${jh(r)}`]},jm,n)})(h);return li.jsxs(Bm,lf({as:a,className:Iu(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,c?li.jsx("title",{children:c}):null]}))}));Hm.muiName="SvgIcon";var Gm=Hm;var Wm=!1,Vm=y.createContext(null),Ym="unmounted",Um="exited",Km="entering",Xm="entered",Jm="exiting",Zm=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=Um,n.appearStatus=Km):o=Xm:o=t.unmountOnExit||t.mountOnEnter?Ym:Um,n.state={status:o},n.nextCallback=null,n}Rp(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ym?{status:Um}: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!==Km&&r!==Xm&&(t=Km):r!==Km&&r!==Xm||(t=Jm)}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===Km){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:q.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Um&&this.setState({status:Ym})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[q.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||Wm?this.safeSetState({status:Xm},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Km},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Xm},(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:q.findDOMNode(this);t&&!Wm?(this.props.onExit(n),this.safeSetState({status:Jm},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Um},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Um},(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:q.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===Ym)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=pi(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(Vm.Provider,{value:null},"function"==typeof r?r(e,n):y.cloneElement(y.Children.only(r),n))},t}(y.Component);function Qm(){}Zm.contextType=Vm,Zm.propTypes={},Zm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qm,onEntering:Qm,onEntered:Qm,onExit:Qm,onExiting:Qm,onExited:Qm},Zm.UNMOUNTED=Ym,Zm.EXITED=Um,Zm.ENTERING=Km,Zm.ENTERED=Xm,Zm.EXITING=Jm;var eg=Zm;function tg(e,t){var r=Object.create(null);return e&&w.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&R(e)?t(e):e}(e)})),r}function rg(e,t,r){return null!=r[t]?r[t]:e.props[t]}function ng(e,t,r){var n=tg(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(R(a)){var l=i in t,s=i in n,u=t[i],c=R(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&R(u)&&(o[i]=L(a,{onExited:r.bind(null,a),in:u.props.in,exit:rg(a,"exit",e),enter:rg(a,"enter",e)})):o[i]=L(a,{in:!1}):o[i]=L(a,{onExited:r.bind(null,a),in:!0,exit:rg(a,"exit",e),enter:rg(a,"enter",e)})}})),o}var og=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ig=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}Rp(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,tg(r.children,(function(e){return L(e,{onExited:n.bind(null,e),in:!0,appear:rg(e,"appear",r),enter:rg(e,"enter",r),exit:rg(e,"exit",r)})}))):ng(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=tg(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=di({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=pi(e,["component","childFactory"]),o=this.state.contextValue,i=og(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?y.createElement(Vm.Provider,{value:o},i):y.createElement(Vm.Provider,{value:o},y.createElement(t,n,i))},t}(y.Component);ig.propTypes={},ig.defaultProps={component:"div",childFactory:function(e){return e}};var ag=ig;const lg=e=>e.scrollTop;function sg(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 ug(e){return cm("MuiPaper",e)}dm("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 cg=["className","component","elevation","square","variant"],dg=Fm("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 lf({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&&lf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${qh("#fff",zm(t.elevation))}, ${qh("#fff",zm(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var pg=v.forwardRef((function(e,t){const r=km({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=sf(r,cg),u=lf({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Pc({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},ug,o)})(u);return li.jsx(dg,lf({as:o,ownerState:u,className:Iu(c.root,n),ref:t},s))}));function fg(e){return"string"==typeof e}function hg(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 mg(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 gg=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function bg(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=pi(e,gg),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Iu(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=di({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=di({},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=hg(di({},o,n)),l=mg(n),s=mg(o),u=t(a),c=Iu(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=di({},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=di({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(di({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||fg(e)?t:di({},t,{ownerState:di({},t.ownerState,r)})}(r,di({},s,{ref:gc(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var vg=dm("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const yg=["center","classes","className"];let xg,Sg,Eg,Cg,wg=e=>e;const Rg=Jl(xg||(xg=wg`
28
+ 0% {
29
+ transform: scale(0);
30
+ opacity: 0.1;
31
+ }
32
+
33
+ 100% {
34
+ transform: scale(1);
35
+ opacity: 0.3;
36
+ }
37
+ `)),Lg=Jl(Sg||(Sg=wg`
38
+ 0% {
39
+ opacity: 1;
40
+ }
41
+
42
+ 100% {
43
+ opacity: 0;
44
+ }
45
+ `)),Ag=Jl(Eg||(Eg=wg`
46
+ 0% {
47
+ transform: scale(1);
48
+ }
49
+
50
+ 50% {
51
+ transform: scale(0.92);
52
+ }
53
+
54
+ 100% {
55
+ transform: scale(1);
56
+ }
57
+ `)),Ig=Fm("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Mg=Fm((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=v.useState(!1),p=Iu(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Iu(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),v.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),li.jsx("span",{className:p,style:f,children:li.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Cg||(Cg=wg`
58
+ opacity: 0;
59
+ position: absolute;
60
+
61
+ &.${0} {
62
+ opacity: 0.3;
63
+ transform: scale(1);
64
+ animation-name: ${0};
65
+ animation-duration: ${0}ms;
66
+ animation-timing-function: ${0};
67
+ }
68
+
69
+ &.${0} {
70
+ animation-duration: ${0}ms;
71
+ }
72
+
73
+ & .${0} {
74
+ opacity: 1;
75
+ display: block;
76
+ width: 100%;
77
+ height: 100%;
78
+ border-radius: 50%;
79
+ background-color: currentColor;
80
+ }
81
+
82
+ & .${0} {
83
+ opacity: 0;
84
+ animation-name: ${0};
85
+ animation-duration: ${0}ms;
86
+ animation-timing-function: ${0};
87
+ }
88
+
89
+ & .${0} {
90
+ position: absolute;
91
+ /* @noflip */
92
+ left: 0px;
93
+ top: 0;
94
+ animation-name: ${0};
95
+ animation-duration: 2500ms;
96
+ animation-timing-function: ${0};
97
+ animation-iteration-count: infinite;
98
+ animation-delay: 200ms;
99
+ }
100
+ `),vg.rippleVisible,Rg,550,(({theme:e})=>e.transitions.easing.easeInOut),vg.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),vg.child,vg.childLeaving,Lg,550,(({theme:e})=>e.transitions.easing.easeInOut),vg.childPulsate,Ag,(({theme:e})=>e.transitions.easing.easeInOut));var Dg=v.forwardRef((function(e,t){const r=km({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=sf(r,yg),[l,s]=v.useState([]),u=v.useRef(0),c=v.useRef(null);v.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=v.useRef(!1),p=v.useRef(0),f=v.useRef(null),h=v.useRef(null);v.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=v.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,li.jsx(Mg,{classes:{ripple:Iu(o.ripple,vg.ripple),rippleVisible:Iu(o.rippleVisible,vg.rippleVisible),ripplePulsate:Iu(o.ripplePulsate,vg.ripplePulsate),child:Iu(o.child,vg.child),childLeaving:Iu(o.childLeaving,vg.childLeaving),childPulsate:Iu(o.childPulsate,vg.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=v.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m]),b=v.useCallback((()=>{g({},{pulsate:!0})}),[g]),y=v.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{y(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return v.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:y})),[b,g,y]),li.jsx(Ig,lf({className:Iu(vg.root,o.root,i),ref:h},a,{children:li.jsx(ag,{component:null,exit:!0,children:l})}))}));function Pg(e){return cm("MuiButtonBase",e)}var _g=dm("MuiButtonBase",["root","disabled","focusVisible"]);const Og=["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"],kg=Fm("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"},[`&.${_g.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Tg=v.forwardRef((function(e,t){const r=km({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=r,_=sf(r,Og),O=v.useRef(null),k=v.useRef(null),T=Kh(k,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=im(),[j,$]=v.useState(!1);s&&j&&$(!1),v.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[B,H]=v.useState(!1);v.useEffect((()=>{H(!0)}),[]);const G=B&&!u&&!s;function W(e,t,r=c){return Uh((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}v.useEffect((()=>{j&&d&&!u&&B&&k.current.pulsate()}),[u,d,j,B]);const V=W("start",E),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Uh((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),y&&y(e)),b&&b(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=v.useRef(!1),oe=Uh((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(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=Uh((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Kh(t,z,O),ue=lf({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Pc({root:["root",t&&"disabled",r&&"focusVisible"]},Pg,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return li.jsxs(kg,lf({as:ae,className:Iu(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:P},le,_,{children:[i,G?li.jsx(Dg,lf({ref:T,center:o},M)):null]}))}));var qg=Tg;function Ng(e){return cm("MuiTypography",e)}dm("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Fg=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],zg=Fm("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${jh(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>lf({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}))),jg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},$g={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Bg=v.forwardRef((function(e,t){const r=km({props:e,name:"MuiTypography"}),n=(e=>$g[e]||e)(r.color),o=xh(lf({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=jg}=o,f=sf(o,Fg),h=lf({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||jg[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Pc({root:["root",i,"inherit"!==e.align&&`align${jh(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Ng,a)})(h);return li.jsx(zg,lf({as:m,ref:t,ownerState:h,className:Iu(g.root,a)},f))}));var Hg=Bg;const Gg=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Wg(e){const t=[],r=[];return Array.from(e.querySelectorAll(Gg)).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 Vg(){return!0}function Yg(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Wg,isEnabled:a=Vg,open:l}=e,s=v.useRef(!1),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),p=v.useRef(null),f=v.useRef(!1),h=v.useRef(null),m=gc(t.ref,h),g=v.useRef(null);v.useEffect((()=>{l&&h.current&&(f.current=!r)}),[r,l]),v.useEffect((()=>{if(!l||!h.current)return;const e=pc(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),v.useEffect((()=>{if(!l||!h.current)return;const e=pc(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.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=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return li.jsxs(v.Fragment,{children:[li.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),li.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Ug=v.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=v.useState(null),l=gc(v.isValidElement(r)?r.ref:null,t);if(ic((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),ic((()=>{if(i&&!o)return hc(t,i),()=>{hc(t,null)}}),[t,i,o]),o){if(v.isValidElement(r)){const e={ref:l};return v.cloneElement(r,e)}return li.jsx(v.Fragment,{children:r})}return li.jsx(v.Fragment,{children:i?T.createPortal(r,i):i})}));function Kg(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Xg(e){return parseInt(fc(e).getComputedStyle(e).paddingRight,10)||0}function Jg(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&&Kg(e,o)}))}function Zg(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Qg(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=pc(e);return t.body===e?fc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Dc(pc(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Xg(n)+e}px`;const t=pc(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Xg(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=pc(n).body;else{const t=n.parentElement,r=fc(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 eb=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&&Kg(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);Jg(t,e.mount,e.modalRef,n,!0);const o=Zg(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=Zg(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Qg(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Zg(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&&Kg(e.modalRef,t),Jg(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&&Kg(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function tb(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=eb,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=v.useRef({}),f=v.useRef(null),h=v.useRef(null),m=gc(h,d),[g,b]=v.useState(!c),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=mc((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||pc(f.current).body;o.add(S(),e),h.current&&E()})),w=v.useCallback((()=>o.isTopModal(S())),[o]),R=mc((e=>{f.current=e,e&&(c&&w()?E():h.current&&Kg(h.current,x))})),L=v.useCallback((()=>{o.remove(S(),x)}),[x,o]);v.useEffect((()=>()=>{L()}),[L]),v.useEffect((()=>{c?C():y&&i||L()}),[c,L,y,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=hg(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=di({},r,t);return di({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>di({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:cc((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:cc((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:y}}const rb=["onChange","maxRows","minRows","style","value"];function nb(e){return parseInt(e,10)||0}const ob={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function ib(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const ab=v.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=pi(e,rb),{current:s}=v.useRef(null!=a),u=v.useRef(null),c=gc(t,u),d=v.useRef(null),p=v.useRef(0),[f,h]=v.useState({outerHeightStyle:0}),m=v.useCallback((()=>{const t=u.current,r=fc(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,l=nb(r.paddingBottom)+nb(r.paddingTop),s=nb(r.borderBottomWidth)+nb(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),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=v.useCallback((()=>{const e=m();ib(e)||h((t=>g(t,e)))}),[m]);ic((()=>{const e=()=>{p.current=0,(()=>{const e=m();ib(e)||T.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=dc(e),r=u.current,n=fc(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()}}),[m]),ic((()=>{b()})),v.useEffect((()=>{p.current=0}),[a]);return li.jsxs(v.Fragment,{children:[li.jsx("textarea",di({value:a,onChange:e=>{p.current=0,s||b(),r&&r(e)},ref:c,rows:o,style:di({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),li.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:di({},ob,i,{paddingTop:0,paddingBottom:0})})]})}));function lb({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 sb=v.createContext(void 0);function ub(){return v.useContext(sb)}function cb(e){return li.jsx(bh,lf({},e,{defaultTheme:_m,themeId:af}))}function db(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function pb(e,t=!1){return e&&(db(e.value)&&""!==e.value||t&&db(e.defaultValue)&&""!==e.defaultValue)}function fb(e){return cm("MuiInputBase",e)}var hb=dm("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const mb=["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"],gb=(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${jh(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},bb=(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]},vb=Fm("div",{name:"MuiInputBase",slot:"Root",overridesResolver:gb})((({theme:e,ownerState:t})=>lf({},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",[`&.${hb.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&lf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),yb=Fm("input",{name:"MuiInputBase",slot:"Input",overridesResolver:bb})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=lf({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 lf({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] + .${hb.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},[`&.${hb.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"})})),xb=li.jsx(cb,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Sb=v.forwardRef((function(e,t){var r;const n=km({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:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:y,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:A,onKeyDown:I,onKeyUp:M,placeholder:D,readOnly:P,renderSuffix:_,rows:O,slotProps:k={},slots:T={},startAdornment:q,type:N="text",value:F}=n,z=sf(n,mb),j=null!=b.value?b.value:F,{current:$}=v.useRef(null!=j),B=v.useRef(),H=v.useCallback((e=>{}),[]),G=Kh(B,y,b.ref,H),[W,V]=v.useState(!1),Y=ub(),U=lb({props:n,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:W,v.useEffect((()=>{!Y&&d&&W&&(V(!1),w&&w())}),[Y,d,W,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=v.useCallback((e=>{pb(e)?K&&K():X&&X()}),[K,X]);Hh((()=>{$&&J({value:j})}),[j,J,$]);v.useEffect((()=>{J(B.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=lf(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=ab);v.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=lf({},n,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:Y,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:E,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return Pc({root:["root",`color${jh(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${jh(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},fb,t)})(ee),re=T.root||s.Root||vb,ne=k.root||u.root||{},oe=T.input||s.Input||yb;return Q=lf({},Q,null!=(r=k.input)?r:u.input),li.jsxs(v.Fragment,{children:[!p&&xb,li.jsxs(re,lf({},ne,!fg(re)&&{ownerState:lf({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),L&&L(e)}},z,{className:Iu(te.root,ne.className,l,P&&"MuiInputBase-readOnly"),children:[q,li.jsx(sb.Provider,{value:null,children:li.jsx(oe,lf({ownerState:ee,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:C,placeholder:D,readOnly:P,required:U.required,rows:O,value:j,onKeyDown:I,onKeyUp:M,type:N},Q,!fg(oe)&&{as:Z,ownerState:lf({},ee,Q.ownerState)},{ref:G,className:Iu(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(of(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),f,_?_(lf({},U,{startAdornment:q})):null]}))]})}));var Eb=Sb;function Cb(e){return cm("MuiInput",e)}var wb=lf({},hb,dm("MuiInput",["root","underline","input"]));function Rb(e){return cm("MuiOutlinedInput",e)}var Lb=lf({},hb,dm("MuiOutlinedInput",["root","notchedOutline","input"]));function Ab(e){return cm("MuiFilledInput",e)}var Ib=lf({},hb,dm("MuiFilledInput",["root","underline","input"])),Mb=function(e,t){function r(r,n){return li.jsx(Gm,lf({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Gm.muiName,v.memo(v.forwardRef(r))}(li.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Db=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Pb={entering:{opacity:1},entered:{opacity:1}},_b=v.forwardRef((function(e,t){const r=Om(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=eg}=e,y=sf(e,Db),x=v.useRef(null),S=Kh(x,a.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{lg(e);const n=sg({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=sg({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),I=E(f);return li.jsx(b,lf({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:g},y,{children:(e,t)=>v.cloneElement(a,lf({style:lf({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Pb[e],m,a.props.style),ref:S},t))}))}));var Ob=_b;function kb(e){return cm("MuiBackdrop",e)}dm("MuiBackdrop",["root","invisible"]);const Tb=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],qb=Fm("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>lf({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"}))),Nb=v.forwardRef((function(e,t){var r,n,o;const i=km({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Ob,transitionDuration:g}=i,b=sf(i,Tb),v=lf({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Pc({root:["root",r&&"invisible"]},kb,t)})(v),x=null!=(r=f.root)?r:c.root;return li.jsx(m,lf({in:p,timeout:g},b,{children:li.jsx(qb,lf({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:s,className:Iu(y.root,l,null==x?void 0:x.className),ownerState:lf({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Fb=Nb;var zb=dm("MuiBox",["root"]);const jb=Pm(),$b=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=df("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ch);return v.forwardRef((function(e,a){const l=gh(r),s=xh(e),{className:u,component:c="div"}=s,d=pi(s,Sh);return li.jsx(i,di({as:c,ref:a,className:Iu(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:af,defaultTheme:jb,defaultClassName:zb.root,generateClassName:sm.generate});var Bb=$b;function Hb(e){return cm("MuiButton",e)}var Gb=dm("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 Wb=v.createContext({});var Vb=v.createContext(void 0);const Yb=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ub=e=>lf({},"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}}),Kb=Fm(qg,{shouldForwardProp:e=>Tm(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${jh(r.color)}`],t[`size${jh(r.size)}`],t[`${r.variant}Size${jh(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 lf({},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":lf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:qh(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})`:qh(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})`:qh(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":lf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Gb.focusVisible}`]:lf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Gb.disabled}`]:lf({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 ${qh(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"},[`&.${Gb.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Gb.disabled}`]:{boxShadow:"none"}})),Xb=Fm("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${jh(r.size)}`]]}})((({ownerState:e})=>lf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ub(e)))),Jb=Fm("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${jh(r.size)}`]]}})((({ownerState:e})=>lf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ub(e)))),Zb=v.forwardRef((function(e,t){const r=v.useContext(Wb),n=v.useContext(Vb),o=km({props:am(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:y="text"}=o,x=sf(o,Yb),S=lf({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:y}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return lf({},a,Pc({root:["root",i,`${i}${jh(t)}`,`size${jh(o)}`,`${i}Size${jh(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${jh(o)}`],endIcon:["endIcon",`iconSize${jh(o)}`]},Hb,a))})(S),C=g&&li.jsx(Xb,{className:E.startIcon,ownerState:S,children:g}),w=p&&li.jsx(Jb,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return li.jsxs(Kb,lf({ownerState:S,className:Iu(r.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Iu(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var Qb=Zb;function ev(e){return cm("MuiModal",e)}dm("MuiModal",["root","hidden","backdrop"]);const tv=["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"],rv=Fm("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})=>lf({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),nv=Fm(Fb,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ov=v.forwardRef((function(e,t){var r,n,o,i,a,l;const s=km({name:"MuiModal",props:e}),{BackdropComponent:u=nv,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=s,P=sf(s,tv),_=lf({},s,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:k,getTransitionProps:T,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=tb(lf({},_,{rootRef:t})),j=lf({},_,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Pc({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},ev,n)})(j),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=T();B.onEnter=e,B.onExited=t}const H=null!=(r=null!=(n=null==D?void 0:D.root)?n:g.Root)?r:rv,G=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,Y=bg({elementType:H,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:Iu(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=bg({elementType:G,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(lf({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Iu(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?li.jsx(Ug,{ref:q,container:h,disablePortal:E,children:li.jsxs(H,lf({},Y,{children:[!R&&u?li.jsx(G,lf({},U)):null,li.jsx(Yg,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:I,children:v.cloneElement(f,B)})]}))}):null}));var iv=ov;function av(e){return cm("MuiDivider",e)}var lv=dm("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const sv=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],uv=Fm("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})=>lf({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)`:qh(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})=>lf({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>lf({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>lf({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>lf({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),cv=Fm("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>lf({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)`}))),dv=v.forwardRef((function(e,t){const r=km({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=sf(r,sv),h=lf({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Pc({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},av,n)})(h);return li.jsx(uv,lf({as:a,className:Iu(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?li.jsx(cv,{className:m.wrapper,ownerState:h,children:o}):null}))}));dv.muiSkipListHighlight=!0;var pv=dv;const fv=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],hv=Fm(vb,{shouldForwardProp:e=>Tm(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...gb(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return lf({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}},[`&.${Ib.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ib.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ib.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ib.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(.${Ib.disabled}, .${Ib.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ib.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&lf({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}))})),mv=Fm(yb,{name:"MuiFilledInput",slot:"Input",overridesResolver:bb})((({theme:e,ownerState:t})=>lf({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}))),gv=v.forwardRef((function(e,t){var r,n,o,i;const a=km({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=sf(a,fv),g=lf({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return lf({},t,Pc({root:["root",!r&&"underline"],input:["input"]},Ab,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?zh(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:hv,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:mv;return li.jsx(Eb,lf({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));gv.muiName="Input";var bv=gv;const vv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function yv(e){return`scale(${e}, ${e**2})`}const xv={entering:{opacity:1,transform:yv(1)},entered:{opacity:1,transform:"none"}},Sv="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ev=v.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=eg}=e,g=sf(e,vv),b=v.useRef(),y=v.useRef(),x=Om(),S=v.useRef(null),E=Kh(S,o.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{lg(e);const{duration:r,delay:n,easing:o}=sg({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:Sv?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:r,easing:n}=sg({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Sv?o:.666*o,delay:Sv?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=yv(.75),c&&c(e)})),M=C(d);return v.useEffect((()=>()=>{clearTimeout(b.current)}),[]),li.jsx(m,lf({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&(b.current=setTimeout(e,y.current||0)),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>v.cloneElement(o,lf({style:lf({opacity:0,transform:yv(.75),visibility:"exited"!==e||a?void 0:"hidden"},xv[e],f,o.props.style),ref:E},t))}))}));Ev.muiSupportAuto=!0;var Cv=Ev;const wv=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Rv=Fm(vb,{shouldForwardProp:e=>Tm(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...gb(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})`),lf({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"},[`&.${wb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wb.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(.${wb.disabled}, .${wb.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${wb.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Lv=Fm(yb,{name:"MuiInput",slot:"Input",overridesResolver:bb})({}),Av=v.forwardRef((function(e,t){var r,n,o,i;const a=km({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=sf(a,wv),b=(e=>{const{classes:t,disableUnderline:r}=e;return lf({},t,Pc({root:["root",!r&&"underline"],input:["input"]},Cb,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?zh(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:s.Root)?r:Rv,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:Lv;return li.jsx(Eb,lf({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));Av.muiName="Input";var Iv=Av;function Mv(e){return cm("MuiLink",e)}var Dv=dm("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Pv={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var _v=({theme:e,ownerState:t})=>{const r=(e=>Pv[e]||e)(t.color),n=yf(e,`palette.${r}`,!1)||t.color,o=yf(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:qh(n,.4)};const Ov=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],kv=Fm(Hg,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${jh(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>lf({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&lf({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:_v({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"},[`&.${Dv.focusVisible}`]:{outline:"auto"}}))),Tv=v.forwardRef((function(e,t){const r=km({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=r,p=sf(r,Ov),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=im(),[b,y]=v.useState(!1),x=Kh(t,g),S=lf({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Pc({root:["root",`underline${jh(o)}`,"button"===r&&"button",n&&"focusVisible"]},Mv,t)})(S);return li.jsx(kv,lf({color:o,className:Iu(E.root,n),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&y(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&y(!0),l&&l(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(Pv).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var qv=Tv;var Nv=v.createContext({});function Fv(e){return cm("MuiList",e)}dm("MuiList",["root","padding","dense","subheader"]);const zv=["children","className","component","dense","disablePadding","subheader"],jv=Fm("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})=>lf({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var $v=v.forwardRef((function(e,t){const r=km({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=sf(r,zv),c=v.useMemo((()=>({dense:a})),[a]),d=lf({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Pc({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Fv,t)})(d);return li.jsx(Nv.Provider,{value:c,children:li.jsxs(jv,lf({as:i,className:Iu(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function Bv(e){return cm("MuiListItemIcon",e)}var Hv=dm("MuiListItemIcon",["root","alignItemsFlexStart"]);const Gv=["className"],Wv=Fm("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})=>lf({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Vv=v.forwardRef((function(e,t){const r=km({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=sf(r,Gv),i=lf({},r,{alignItems:v.useContext(Nv).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Pc({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Bv,r)})(i);return li.jsx(Wv,lf({className:Iu(a.root,n),ownerState:i,ref:t},o))}));var Yv=dm("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Uv=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Kv(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Xv(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Jv(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 Zv(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Jv(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Qv=v.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=sf(e,Uv),p=v.useRef(null),f=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Hh((()=>{n&&p.current.focus()}),[n]),v.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)}($h(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=Kh(p,t);let m=-1;v.Children.forEach(i,((e,t)=>{v.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=v.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),v.cloneElement(e,t)}return e}));return li.jsx($v,lf({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=$h(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Zv(t,n,s,l,Kv);else if("ArrowUp"===r)e.preventDefault(),Zv(t,n,s,l,Xv);else if("Home"===r)e.preventDefault(),Zv(t,null,s,l,Kv);else if("End"===r)e.preventDefault(),Zv(t,null,s,l,Xv);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&Jv(n,o);o.previousKeyMatched&&(s||Zv(t,n,!1,l,Kv,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function ey(e){return cm("MuiPopover",e)}dm("MuiPopover",["root","paper"]);const ty=["onEntering"],ry=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ny=["slotProps"];function oy(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function iy(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function ay(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function ly(e){return"function"==typeof e?e():e}const sy=Fm(iv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uy=Fm(pg,{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 cy=v.forwardRef((function(e,t){var r,n,o;const i=km({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:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Cv,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=sf(i.TransitionProps,ty),A=sf(i,ry),I=null!=(r=null==x?void 0:x.paper)?r:b,M=v.useRef(),D=Kh(M,I.ref),P=lf({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return Pc({root:["root"],paper:["paper"]},ey,t)})(P),O=v.useCallback((()=>{if("anchorPosition"===c)return u;const e=ly(l),t=(e&&1===e.nodeType?e:$h(M.current).body).getBoundingClientRect();return{top:t.top+oy(t,s.vertical),left:t.left+iy(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=v.useCallback((e=>({vertical:oy(e,S.vertical),horizontal:iy(e,S.horizontal)})),[S.horizontal,S.vertical]),T=v.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=k(t);if("none"===c)return{top:null,left:null,transformOrigin:ay(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Bh(ly(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:ay(r)}}),[l,c,O,k,m]),[q,N]=v.useState(g),F=v.useCallback((()=>{const e=M.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);v.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);v.useEffect((()=>{g&&F()})),v.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),v.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=Bh(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?$h(ly(l)).body:void 0),$=null!=(n=null==y?void 0:y.root)?n:sy,B=null!=(o=null==y?void 0:y.paper)?o:uy,H=bg({elementType:B,externalSlotProps:lf({},I,{style:q?I.style:lf({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:Iu(_.paper,null==I?void 0:I.className)}),G=bg({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:Iu(_.root,p)}),{slotProps:W}=G,V=sf(G,ny);return li.jsx($,lf({},V,!fg($)&&{slotProps:W,disableScrollLock:R},{children:li.jsx(E,lf({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:li.jsx(B,lf({},H,{children:d}))}))}))}));function dy(e){return cm("MuiMenu",e)}dm("MuiMenu",["root","paper","list"]);const py=["onEntering"],fy=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],hy={vertical:"top",horizontal:"right"},my={vertical:"top",horizontal:"left"},gy=Fm(cy,{shouldForwardProp:e=>Tm(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),by=Fm(uy,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),vy=Fm(Qv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var yy=v.forwardRef((function(e,t){var r,n;const o=km({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:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:y={}}=o,x=sf(o.TransitionProps,py),S=sf(o,fy),E=Om(),C="rtl"===E.direction,w=lf({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return Pc({root:["root"],paper:["paper"],list:["list"]},dy,t)})(w),L=i&&!s&&d,A=v.useRef(null);let I=-1;v.Children.map(a,((e,t)=>{v.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const M=null!=(r=b.paper)?r:by,D=null!=(n=y.paper)?n:p,P=bg({elementType:b.root,externalSlotProps:y.root,ownerState:w,className:[R.root,l]}),_=bg({elementType:M,externalSlotProps:D,ownerState:w,className:R.paper});return li.jsx(gy,lf({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?hy:my,slots:{paper:M,root:b.root},slotProps:{root:P,paper:_},open:d,ref:t,transitionDuration:h,TransitionProps:lf({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,E),m&&m(e,t)}},x),ownerState:w},S,{classes:f,children:li.jsx(vy,lf({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||s),autoFocusItem:L,variant:g},u,{className:Iu(R.list,u.className),children:a}))}))}));function xy(e){return cm("MuiMenuItem",e)}var Sy=dm("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Ey=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Cy=Fm(qg,{shouldForwardProp:e=>Tm(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})=>lf({},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"}},[`&.${Sy.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qh(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Sy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:qh(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Sy.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:qh(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})`:qh(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Sy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Sy.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${lv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${lv.inset}`]:{marginLeft:52},[`& .${Yv.root}`]:{marginTop:0,marginBottom:0},[`& .${Yv.inset}`]:{paddingLeft:36},[`& .${Hv.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&lf({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Hv.root} svg`]:{fontSize:"1.25rem"}}))));var wy=v.forwardRef((function(e,t){const r=km({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=sf(r,Ey),f=v.useContext(Nv),h=v.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=v.useRef(null);Hh((()=>{n&&m.current&&m.current.focus()}),[n]);const g=lf({},r,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return lf({},a,Pc({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},xy,a))})(r),y=Kh(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),li.jsx(Nv.Provider,{value:h,children:li.jsx(Cy,lf({ref:y,role:u,tabIndex:x,component:o,focusVisibleClassName:Iu(b.focusVisible,s),className:Iu(b.root,d)},p,{ownerState:g,classes:b}))})}));function Ry(e){return cm("MuiNativeSelect",e)}var Ly=dm("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Ay=["className","disabled","error","IconComponent","inputRef","variant"],Iy=({ownerState:e,theme:t})=>lf({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":lf({},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"},[`&.${Ly.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}}),My=Fm("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tm,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Ly.multiple}`]:t.multiple}]}})(Iy),Dy=({ownerState:e,theme:t})=>lf({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Ly.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Py=Fm("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${jh(r.variant)}`],r.open&&t.iconOpen]}})(Dy),_y=v.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=sf(e,Ay),u=lf({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Pc({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${jh(r)}`,i&&"iconOpen",n&&"disabled"]},Ry,t)})(u);return li.jsxs(v.Fragment,{children:[li.jsx(My,lf({ownerState:u,className:Iu(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:li.jsx(Py,{as:i,ownerState:u,className:c.icon})]})}));var Oy,ky=_y;const Ty=["children","classes","className","label","notched"],qy=Fm("fieldset",{shouldForwardProp:Tm})({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%"}),Ny=Fm("legend",{shouldForwardProp:Tm})((({ownerState:e,theme:t})=>lf({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&&lf({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 Fy=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],zy=Fm(vb,{shouldForwardProp:e=>Tm(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:gb})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return lf({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Lb.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Lb.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Lb.focused} .${Lb.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Lb.error} .${Lb.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Lb.disabled} .${Lb.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&lf({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),jy=Fm((function(e){const{className:t,label:r,notched:n}=e,o=sf(e,Ty),i=null!=r&&""!==r,a=lf({},e,{notched:n,withLabel:i});return li.jsx(qy,lf({"aria-hidden":!0,className:t,ownerState:a},o,{children:li.jsx(Ny,{ownerState:a,children:i?li.jsx("span",{children:r}):Oy||(Oy=li.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}})),$y=Fm(yb,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:bb})((({theme:e,ownerState:t})=>lf({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}))),By=v.forwardRef((function(e,t){var r,n,o,i,a;const l=km({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=sf(l,Fy),b=(e=>{const{classes:t}=e;return lf({},t,Pc({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Rb,t))})(l),y=ub(),x=lb({props:l,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=lf({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:m}),E=null!=(r=null!=(n=h.root)?n:s.Root)?r:zy,C=null!=(o=null!=(i=h.input)?i:s.Input)?o:$y;return li.jsx(Eb,lf({slots:{root:E,input:C},renderSuffix:e=>li.jsx(jy,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=li.jsxs(v.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:lf({},b,{notchedOutline:null})}))}));By.muiName="Input";var Hy=By;function Gy(e){return cm("MuiSelect",e)}var Wy,Vy=dm("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Yy=["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"],Uy=Fm("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Vy.select}`]:t.select},{[`&.${Vy.select}`]:t[r.variant]},{[`&.${Vy.error}`]:t.error},{[`&.${Vy.multiple}`]:t.multiple}]}})(Iy,{[`&.${Vy.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ky=Fm("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${jh(r.variant)}`],r.open&&t.iconOpen]}})(Dy),Xy=Fm("input",{shouldForwardProp:e=>qm(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 Jy(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Zy(e){return null==e||"string"==typeof e&&!e.trim()}const Qy=v.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:y,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:A,renderValue:I,SelectDisplayProps:M={},tabIndex:D,value:P,variant:_="standard"}=e,O=sf(e,Yy),[k,T]=Yh({controlled:P,default:c,name:"Select"}),[q,N]=Yh({controlled:L,default:u,name:"Select"}),F=v.useRef(null),z=v.useRef(null),[j,$]=v.useState(null),{current:B}=v.useRef(null!=L),[H,G]=v.useState(),W=Kh(t,m),V=v.useCallback((e=>{z.current=e,e&&$(e)}),[]),Y=null==j?void 0:j.parentNode;v.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),v.useEffect((()=>{u&&q&&j&&!B&&(G(a?null:Y.clientWidth),z.current.focus())}),[j,a]),v.useEffect((()=>{i&&z.current.focus()}),[i]),v.useEffect((()=>{if(!g)return;const e=$h(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?R&&R(t):C&&C(t),B||(G(a?null:Y.clientWidth),N(e))},K=v.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(y){r=Array.isArray(k)?k.slice():[];const t=k.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),k!==r&&(T(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),E(o,e)}y||U(!1,t)}},J=null!==j&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(pb({value:k})||p)&&(I?Z=I(k):te=!0);const re=K.map((e=>{if(!v.isValidElement(e))return null;let t;if(y){if(!Array.isArray(k))throw new Error(of(2));t=k.some((t=>Jy(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Jy(k,e.props.value),t&&te&&(Q=e.props.children);return v.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=y?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=Y.clientWidth),ne=void 0!==D?D:d?null:0;const ie=M.id||(x?`mui-component-select-${x}`:void 0),ae=lf({},e,{variant:_,value:k,open:J,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Pc({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${jh(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Gy,t)})(ae),se=lf({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Vh();return li.jsxs(v.Fragment,{children:[li.jsx(Uy,lf({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(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),U(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:x}}),S(e))},onFocus:w},M,{ownerState:ae,className:Iu(M.className,le.select,s),id:ie,children:Zy(Z)?Wy||(Wy=li.jsx("span",{className:"notranslate",children:"​"})):Z})),li.jsx(Xy,lf({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),li.jsx(Ky,{as:h,className:le.icon,ownerState:ae}),li.jsx(yy,lf({id:`menu-${x||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:lf({"aria-labelledby":g,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:lf({},b.slotProps,{paper:lf({},se,{style:lf({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var ex=Qy;const tx=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],rx=["root"],nx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Tm(e)&&"variant"!==e,slot:"Root"},ox=Fm(Iv,nx)(""),ix=Fm(Hy,nx)(""),ax=Fm(bv,nx)(""),lx=v.forwardRef((function(e,t){const r=km({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Mb,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=r,R=sf(r,tx),L=b?ky:ex,A=lb({props:r,muiFormControl:ub(),states:["variant","error"]}),I=A.variant||w,M=lf({},r,{variant:I,classes:i}),D=(e=>{const{classes:t}=e;return t})(M),P=sf(D,rx),_=d||{standard:li.jsx(ox,{ownerState:M}),outlined:li.jsx(ix,{label:f,ownerState:M}),filled:li.jsx(ax,{ownerState:M})}[I],O=Kh(t,_.ref);return li.jsx(v.Fragment,{children:v.cloneElement(_,lf({inputComponent:L,inputProps:lf({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:lf({id:c},C)},p,{classes:p?zh(P,p.classes):P},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:O,className:Iu(_.props.className,a,D.root)},!d&&{variant:I},R))})}));lx.muiName="Select";var sx=lx,ux=(e={})=>y.createElement(Gp,{...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("rect",{stroke:Ap.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const cx={MuiAccordion:{styleOverrides:{root:{backgroundColor:Ap.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Ap.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:y.createElement($p,{"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 ${Ap.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Ap.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Ap.MISC_FOCUS_BORDER}`,borderRadius:_p,backgroundColor:Ap.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 ${Ap.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Ap.WHITE,color:Ap.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:_p},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ap.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Ap.GREYSCALE_0_15,backgroundColor:Ap.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Ap.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ap.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Ap.GREEN_PALE},"&:active":{backgroundColor:Ap.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ap.GREEN_PALE,boxShadow:`0 0 0 3px ${qh(Ap.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Ap.BLUE_PALE},"&:active":{backgroundColor:Ap.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ap.BLUE_PALE,boxShadow:`0 0 0 3px ${qh(Ap.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:_p,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Ap.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ap.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Ap.GREYSCALE_0_15,backgroundColor:Ap.GREYSCALE_100_60,"&:active":{backgroundColor:Ap.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Ap.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ap.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Ap.PURPLE,"&.Mui-focusVisible":{borderColor:Ap.PURPLE,boxShadow:`0 0 0 3px ${qh(Ap.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Ap.GREEN,"&.Mui-focusVisible":{borderColor:Ap.GREEN,boxShadow:`0 0 0 3px ${qh(Ap.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Ap.BLUE,"&.Mui-focusVisible":{borderColor:Ap.BLUE,boxShadow:`0 0 0 3px ${qh(Ap.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Ap.ORANGE,"&.Mui-focusVisible":{borderColor:Ap.ORANGE,boxShadow:`0 0 0 3px ${qh(Ap.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Ap.RED,"&.Mui-focusVisible":{borderColor:Ap.RED,boxShadow:`0 0 0 3px ${qh(Ap.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Ap.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Ap.PURPLE_PALE},"&:active":{backgroundColor:Ap.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Ap.PURPLE_PALE,boxShadow:`0 0 0 3px ${qh(Ap.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Ap.GREEN_PALE},"&:active":{backgroundColor:Ap.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ap.GREEN_PALE,boxShadow:`0 0 0 3px ${qh(Ap.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Ap.BLUE_PALE},"&:active":{backgroundColor:Ap.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ap.BLUE_PALE,boxShadow:`0 0 0 3px ${qh(Ap.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Ap.ORANGE_PALE},"&:active":{backgroundColor:Ap.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Ap.ORANGE_PALE,boxShadow:`0 0 0 3px ${qh(Ap.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Ap.RED_PALE},"&:active":{backgroundColor:Ap.RED_DARK},"&.Mui-focusVisible":{borderColor:Ap.RED_PALE,boxShadow:`0 0 0 3px ${qh(Ap.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:Ap.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Ap.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:_p,boxShadow:`inset 0 0 0 2px ${Ap.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:y.createElement(Hp,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ip,borderRadius:_p,color:Ap.TEXT_PRIMARY,backgroundColor:Ap.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Ap.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Ap.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Ap.GREYSCALE_0_05,color:Ap.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Ap.GREEN,borderColor:Ap.GREEN},"&.MuiChip-outlinedInfo":{color:Ap.BLUE,borderColor:Ap.BLUE},"&.MuiChip-outlinedWarning":{color:Ap.ORANGE,borderColor:Ap.ORANGE},"&.MuiChip-outlinedError":{color:Ap.RED,borderColor:Ap.RED}},outlined:{border:`solid 1px ${Ap.GREYSCALE_0_15}`,backgroundColor:Ap.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:_p,boxShadow:"none",backgroundColor:Ap.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Ap.GREEN,borderColor:Ap.GREEN},outlinedSecondary:{color:Ap.BLUE,borderColor:Ap.BLUE},label:{fontFamily:Np.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:y.createElement(Hp,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:y.createElement($p,{"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:_p},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:_p,fontSize:Mp,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Ap.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Ap.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Ap.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Ap.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Ap.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:_p,border:`solid 1px ${Ap.GREYSCALE_0_15}`,color:Ap.GREYSCALE_0_60,marginRight:0,width:Pp,height:Pp},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Ap.GREYSCALE_0_15}`},clearIndicator:{borderRadius:_p,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Ap.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Mp}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ip,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Ap.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Ap.GREYSCALE_25,fontSize:Ip,fontFamily:Np.FONT_FAMILY,fontWeight:Tp,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Ap.TEXT_PRIMARY},"&.Mui-error":{color:Ap.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Ap.TEXT_SECONDARY,content:"'(optional)'",fontWeight:kp,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Ap.TEXT_SECONDARY,content:"'(required)'",fontWeight:kp,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Mp,lineHeight:"16px",backgroundColor:Ap.WHITE,borderRadius:_p,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ap.GREYSCALE_0_05}`,borderColor:Ap.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ap.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Ap.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Ap.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ap.RED}`,boxShadow:`0px 0px 0px 1px ${Ap.RED}, inset 0 2px 0 0 ${Ap.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ap.GREYSCALE_0_10}`,borderColor:Ap.GREYSCALE_0_10,backgroundColor:Ap.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Ap.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Ap.GREYSCALE_0_15,borderRadius:_p,boxShadow:`inset 0 2px 0 0 ${Ap.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>y.createElement($p,{...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:Ap.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Ap.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Ap.GREYSCALE_0_03},"&:active":{backgroundColor:Ap.GREYSCALE_0_10},"&:focus":{backgroundColor:Ap.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Ap.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Ap.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Ap.GREYSCALE_0_30,"&:hover":{backgroundColor:Ap.GREYSCALE_0_0,borderColor:Ap.GREYSCALE_0_15},"& ~svg":{color:Ap.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Ap.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:_p}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Ap.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Ap.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Ap.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Mp,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ip,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ip,fontWeight:Tp,color:Ap.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Tp}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Ap.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ap.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:y.createElement(Yp,null),checkedIcon:y.createElement(Up,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Ap.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Ap.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Ap.GREEN_PALE,boxShadow:`0 0 0 3px ${qh(Ap.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Ap.BLUE_PALE,boxShadow:`0 0 0 3px ${qh(Ap.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Ap.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Ap.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:y.createElement(ux,null),checkedIcon:y.createElement(Wp,null),indeterminateIcon:y.createElement(Vp,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:_p,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Ap.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Ap.GREYSCALE_0_55,color:Ap.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:Ap.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Ap.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Ap.GREYSCALE_0_55,"&:hover":{color:Ap.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:Ap.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Ap.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Mp,color:Ap.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Tp},secondary:{fontSize:Ip,color:Ap.GREYSCALE_45,fontWeight:kp,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Mp,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Ap.GREYSCALE_0_03},"&:active":{backgroundColor:Ap.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Mp,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Ap.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ip,borderBottom:`solid 1px ${Ap.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Mp,color:Ap.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Ap.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Ap.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Ap.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:Ap.RED}}},"&.Mui-focusVisible":{backgroundColor:Ap.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:Ap.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:Ap.GREEN,height:"24px","&.Mui-disabled":{color:Ap.GREYSCALE_0_15}},rail:{backgroundColor:Ap.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Ap.GREYSCALE_0_05}`,borderRadius:_p,boxShadow:`inset 0px 0px 0px 1px ${Ap.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Ap.GREYSCALE_0_05}`,borderRadius:_p},thumb:{height:"16px",width:"16px",borderRadius:_p,backgroundColor:Ap.WHITE,boxShadow:`0px 1px 2px 0px ${Ap.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ap.GREYSCALE_0_05}`,"&:hover":{borderRadius:_p,boxShadow:`0 2px 4px 0 ${Ap.GREYSCALE_0_30}, 0 0 0 1px ${Ap.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Ap.GREYSCALE_0_15}, 0 0 0 1px ${Ap.GREYSCALE_0_06}, 0 0 0 2px ${Ap.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Ap.GREYSCALE_0_15}, 0 0 0 1px ${Ap.GREYSCALE_0_06}, 0 0 0 2px ${Ap.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Ap.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Ap.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Ap.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Ap.GREYSCALE_0_15},markLabel:{color:Ap.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Ap.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Ap.WHITE,color:Ap.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:Ap.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:Ap.GREEN_PALE,boxShadow:`0 0 0 3px ${qh(Ap.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Ap.BLUE_PALE,boxShadow:`0 0 0 3px ${qh(Ap.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Ap.GREYSCALE_0_15,borderRadius:_p},thumb:{height:"16px",width:"16px",borderRadius:_p,backgroundColor:Ap.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:Mp,fontWeight:Tp,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Ap.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Ap.MISC_FOCUS_BORDER}`,backgroundColor:Ap.GREYSCALE_0_03,borderRadius:_p},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Ap.GREYSCALE_25,"&.Mui-selected":{color:Ap.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Mp,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Ap.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Ap.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Ap.GREYSCALE_85}`,borderRight:`1px solid ${Ap.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Tp,backgroundColor:Ap.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:Ap.GREYSCALE_98,borderBottom:`1px solid ${Ap.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Ap.GREYSCALE_85}`,borderTop:`1px solid ${Ap.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Ap.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Ap.GREYSCALE_0_05,"&:hover":{backgroundColor:Ap.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Ap.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>y.createElement(Kp,{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 ${Ap.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Mp,borderRadius:_p,padding:"7px 16px",border:`1px solid ${Ap.GREYSCALE_0_15}`,backgroundColor:Ap.GREYSCALE_100_60,color:Ap.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Ap.GREYSCALE_0_10,border:`1px solid ${Ap.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Ap.GREYSCALE_0_03,border:`1px solid ${Ap.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Ap.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Ap.MISC_FOCUS_BORDER}`,border:`1px solid ${Ap.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Ap.GREYSCALE_25,backgroundColor:Ap.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Ap.GREYSCALE_0_10,border:`1px solid ${Ap.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ip,height:24,width:24,padding:7},sizeLarge:{fontSize:Dp,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Mp,borderRadius:_p}}},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:Ap.GREYSCALE_20},tooltip:{backgroundColor:Ap.GREYSCALE_20,fontSize:Ip,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const dx={mode:"light",primary:{light:Ap.GREEN_PALE,main:Ap.GREEN,dark:Ap.GREEN_DARK,contrastText:Ap.WHITE},secondary:{light:Ap.BLUE_PALE,main:Ap.BLUE,dark:Ap.BLUE_DARK,contrastText:Ap.WHITE},error:{light:Ap.RED_PALE,main:Ap.RED,dark:Ap.RED_DARK,contrastText:Ap.WHITE},warning:{light:Ap.ORANGE_PALE,main:Ap.ORANGE,dark:Ap.ORANGE_DARK,contrastText:Ap.WHITE},success:{light:Ap.GREEN_PALE,main:Ap.GREEN,dark:Ap.GREEN_DARK,contrastText:Ap.WHITE},info:{light:Ap.BLUE_PALE,main:Ap.BLUE,dark:Ap.BLUE_DARK,contrastText:Ap.WHITE},text:{primary:Ap.TEXT_PRIMARY,secondary:Ap.TEXT_SECONDARY,disabled:Ap.GREYSCALE_0_30},action:{hover:Ap.GREYSCALE_0_03,hoverOpacity:.05,selected:Ap.GREYSCALE_0_05,focus:Ap.MISC_FOCUS_BORDER},amethyst:{main:Ap.PURPLE,light:Ap.PURPLE_PALE,dark:Ap.PURPLE_DARK,contrastText:Ap.WHITE},background:{paper:Ap.WHITE,default:Ap.GREYSCALE_95},divider:Ap.GREYSCALE_0_15},px=e=>({components:cx,palette:dx,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:Mp,fontWeightLight:Op,fontWeightRegular:kp,fontWeightMedium:Tp,fontWeightBold:qp,htmlFontSize:Mp,fontFamily:Np.FONT_FAMILY,button:{fontWeight:Tp,fontSize:Mp,textTransform:"none"},body1:{fontSize:Dp,lineHeight:"24px"},body2:{fontSize:Mp,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Pp,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Dp,fontWeight:Tp,lineHeight:"16px"},h6:{fontSize:Mp,fontWeight:Tp,lineHeight:"16px"},caption:{color:Ap.TEXT_SECONDARY},subtitle1:{fontSize:Mp,color:Ap.TEXT_SECONDARY},subtitle2:{fontSize:Ip,color:Ap.TEXT_SECONDARY}},shape:{borderRadius:_p}}),fx={...Lp,MISC_FOCUS_BORDER:Ap.MISC_FOCUS_BORDER},hx=px().palette,mx={TEXT:hx.text.primary,DISABLED:hx.text.disabled,HOVER:hx.action.hover,WHITE:fx.GREYSCALE_100,BORDER_LIGHT:fx.GREYSCALE_90,BORDER_MEDIUM:fx.GREYSCALE_85,BORDER_HEAVY:fx.GREYSCALE_50,DARK_MODE_TEXT:fx.GREYSCALE_95,DARK_MODE_BORDER:fx.GREYSCALE_95,DARK_MODE_DISABLED:fx.GREYSCALE_70,DARK_MODE_BACKGROUND:fx.GREYSCALE_20},gx=(e,t)=>{const r=wn(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()},bx=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,vx=e=>{const t=(e=>{const t=bx.exec(e);if(t){const[,e,r,n,o]=t;return Kr(+r,+n,+o,+e/255)}return Kr(e)})(e);return Number.isNaN(t.r)?null:t.toString()},yx=e=>{e.stopPropagation(),e.preventDefault()},xx=Fm(Bb,{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)":{[`& .${Et}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${Et}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),Sx=Fm(Bb)({position:"absolute",height:"100%",width:"3px"}),Ex=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,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=n||o?Ct.PixelsMin:Ct.PixelsMinTable,f=r?0:1,h={left:n&&!c?d.columnWidth-f:"100%"},m=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:wt.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},b=e=>{const t=e.clientX-d.initX;m(t)},v=e=>{yx(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},S=e=>{const t=e.touches[0].clientX-d.initX;m(t)},E=e=>{yx(e),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E),g()},C=!n&&s?e=>{if(e.key===xt.LEFT||e.key===xt.RIGHT){yx(e);const t=d.columnWidth-d.initWidth,r=5,n=e.key===xt.LEFT?t-r:t+r;m(n)}else e.key===xt.SPACE||e.key===xt.ENTER?(yx(e),s(e),g()):e.key===xt.ESC&&(yx(e),s(e),m(d.initWidth))}:void 0;return y.createElement(xx,{className:St,isLastColumn:r,hoverColor:i,style:h,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:wt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",S),document.addEventListener("touchend",E),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:C,onBlur:s,"data-testid":St},y.createElement(Sx,{className:Et}))};function Cx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wx=A(((e,t)=>y.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){Cx(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),y.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"}))));function Rx(){return Rx=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},Rx.apply(this,arguments)}const Lx=Fm(Bb,{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"}))),Ax=Fm(wx,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),Ix=Fm(yy)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Mx=Fm(pv)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),Dx=Fm(wy)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),Px=Fm(wy,{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")}))),_x=Fm("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"}))),Ox=Fm("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),kx=Fm(Hg)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),Tx=Fm(Vv)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function qx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Nx=A(((e,t)=>y.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){qx(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),y.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let Fx={};const zx=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=S(!1),p=I(null),f=M((e=>{e.stopPropagation(),d(!1)}),[d]);return y.createElement(y.Fragment,null,y.createElement(Px,{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),Fx={}),null!=a&&a.length&&(d(!0),Fx[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&y.createElement(_x,null),y.createElement(Ox,null,y.createElement(Tx,null,y.createElement(o,null)),y.createElement(kx,{variant:"body2"},n)),null!=a&&a.length?y.createElement(Nx,null):null),(null==a?void 0:a.length)&&y.createElement($x,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=Fx,h.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(m).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var h,m},jx=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&y.createElement(Dx,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>y.createElement(zx,Rx({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),$x=({anchorEl:e,open:t,onClose:r,ariaLabel:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?y.createElement(Ix,Rx({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)=>[jx({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?y.createElement(Mx,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,Bx={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Hx=(e,t)=>e.some((e=>t[e]>0));function Gx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Wx=A(((e,t)=>y.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){Gx(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),y.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"}))));function Vx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Yx=A(((e,t)=>y.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){Vx(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),y.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"}))));function Ux(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Kx=A(((e,t)=>y.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){Ux(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),y.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"}))));function Xx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Jx=A(((e,t)=>y.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){Xx(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),y.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function Zx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Qx=A(((e,t)=>y.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){Zx(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),y.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"}))));function eS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tS=A(((e,t)=>y.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){eS(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),y.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"}))));function rS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nS=A(((e,t)=>y.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){rS(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),y.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function oS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const iS=A(((e,t)=>y.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){oS(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),y.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function aS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lS=A(((e,t)=>y.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){aS(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),y.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function sS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uS=A(((e,t)=>y.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){sS(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),y.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"}))));let cS=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const dS=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(r[cS.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:Wx,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:Jx,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[cS.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),l()},icon:Qx,enabled:!0}]}]),r[cS.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:uS,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectAll())},icon:tS,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectPossible())},icon:lS,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectAlternative())},icon:nS,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectExcluded())},icon:iS,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.clear())},icon:Yx,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[cS.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:Kx,enabled:!0}]}]),p},pS=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const h=Jo({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:b}=n,{fieldInstance:v,selectionActionsEnabledStatus:x,resetSelectionActionsEnabledStatus:E,updateSelectionActionsEnabledStatus:C}=(({headerData:e,app:t})=>{const[r,n]=S(null),[o,i]=S(Bx);return D((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(n).catch(console.error)}),[t,e]),{fieldInstance:r,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:M((()=>i(Bx)),[]),updateSelectionActionsEnabledStatus:M((t=>{const r=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));r&&i({canSelectAll:Hx(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:Hx(["qSelected"],r.qStateCounts),canSelectPossible:Hx(["qOption"],r.qStateCounts),canSelectAlternative:Hx(["qAlternative"],r.qStateCounts),canSelectExcluded:Hx(["qAlternative","qExcluded"],r.qStateCounts)})}),[e.label,i])}})({headerData:n,app:null==d?void 0:d.app}),w=M((()=>{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]);D((()=>{e||(E(),null!=d&&d.model&&d.model.getLayout().then((e=>{C(e)})).catch((e=>console.error(e))))}),[e,E,C,null==d?void 0:d.model]);const R=M((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?y.createElement(Lx,{rightAligned:"right"===m,shouldShowMenuIcon:s},s&&y.createElement(Ax,{height:vt,className:yt,"data-testid":yt,"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},y.createElement(wx,null)),y.createElement($x,{open:e,anchorEl:r.current,onClose:R,menuGroups:dS({headerData:n,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:w,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:x,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},fS=e=>e.isDark?{background:e.color,borderColor:mx.DARK_MODE_BORDER,color:mx.DARK_MODE_TEXT,disabledColor:mx.DARK_MODE_DISABLED,iconColor:mx.DARK_MODE_TEXT}:{background:e.color,borderColor:mx.BORDER_MEDIUM,color:mx.TEXT,disabledColor:mx.DISABLED},hS=Fm(Bb,{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}`}))),mS=Fm(sx,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),gS=Fm(Qb,{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)}))),bS=Fm(Hg)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),vS=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=x((()=>fS(n.background)),[n]);if(!r.active)return null;const a=o?y.createElement(hS,{footerStyle:i},e):null;return t?q.createPortal(e,t):a},yS=P({}),xS=()=>E(yS),SS=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=x((()=>fS(p.background)),[p]),v=o?o.getBoundingClientRect().width:h.width,S=Jo({translator:d}),E=x((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:S,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,l,s,u,c,S,p,f,h,m,b,g,v]);return y.createElement(yS.Provider,{value:E},e)};let ES=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),CS=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 wS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const RS=A(((e,t)=>y.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){wS(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),y.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function LS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const AS=A(((e,t)=>y.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){LS(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),y.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"}))));function IS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const MS=A(((e,t)=>y.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){IS(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),y.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})))),DS={FirstPage:AS,PreviousPage:RS,NextPage:Nx,LastPage:MS,FirstPageRTL:MS,PreviousPageRTL:Nx,NextPageRTL:RS,LastPageRTL:AS},PS=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=xS(),u=DS[`${r}${"rtl"===n?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},_S=()=>{const{pageInfo:e,width:t}=xS(),r=0===e.page,{IconComponent:n,styledProps:o}=PS({type:ES.FirstPage,disabledCondition:r,pageNumber:0});return t<=CS.FirstPage?null:y.createElement(gS,o,y.createElement(n,{height:vt}))},OS=(e,t,r=!1)=>{r&&e.key===xt.TAB&&!e.shiftKey&&(yx(e),((e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)})(e.target,t,!1))},kS=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=xS(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=PS({type:ES.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>OS(e,t,n):null;return o<=CS.LastPage?null:y.createElement(gS,Rx({},l,{onKeyDown:s}),y.createElement(a,{height:vt}))},TS=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=xS(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=PS({type:ES.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>CS.FirstPage&&o>CS.LastPage)&&t.enabled?e=>OS(e,t,n):null;return y.createElement(gS,Rx({},l,{onKeyDown:s}),y.createElement(a,{height:vt}))},qS=()=>{const{pageInfo:e}=xS(),t=0===e.page,{IconComponent:r,styledProps:n}=PS({type:ES.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return y.createElement(gS,n,y.createElement(r,{height:vt}))},NS=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=xS(),{page:o,rowsPerPage:i}=r;if(t<=CS.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return y.createElement(bS,{variant:"caption"},a)},FS=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=xS(),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 y.createElement(y.Fragment,null,y.createElement(bS,{variant:"caption",id:d},u,":"),y.createElement(mS,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},zS=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=xS();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>CS.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=y.createElement(y.Fragment,null,t.rowsPerPageOptions.map((e=>y.createElement("option",{key:e,value:e},e))));return y.createElement(FS,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},jS=1e3,$S="…",BS=({totalPages:e,page:t})=>{const r=Math.min(e,jS),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-jS):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return y.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(y.createElement("option",{key:"startMoreOptions",value:$S,disabled:!0},$S)),o<e-1&&a.push(y.createElement("option",{key:"endMoreOptions",value:$S,disabled:!0},$S)),y.createElement(y.Fragment,null,a)},HS=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=xS(),{page:o}=e;if(t<=CS.SelectPage)return null;const i=y.createElement(BS,{totalPages:r,page:o});return y.createElement(FS,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var GS=_((e=>y.createElement(SS,e,y.createElement(zS,null),y.createElement(HS,null),y.createElement(NS,null),y.createElement(_S,null),y.createElement(qS,null),y.createElement(TS,null),y.createElement(kS,null))));const WS=e=>y.createElement(vS,e,y.createElement(GS,e)),VS=P({}),YS=()=>E(VS),US=({children:e,model:t,app:r,interactions:n,embed:o,theme:i,keyboard:a,flags:l})=>{const s=x((()=>({model:t,app:r,interactions:n,embed:o,theme:i,keyboard:a,flags:l})),[r,n,t,o,i,a,l]);return li.jsx(VS.Provider,{value:s,children:e})},KS=e=>{const{text:t,fontFamily:r,fontSize:n,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var r;const{theme:n}=YS(),o=null!==(r=n.getStyle("","","fontFamily"))&&void 0!==r?r:Yt;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:li.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:li.jsx("span",{style:{...or,fontFamily:r,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:t})})},XS=P({}),JS=()=>E(XS),ZS=({children:e,styleService:t})=>li.jsx(XS.Provider,{value:t,children:e}),QS=21,eE=20,tE=eE,rE=16+Zt+1,nE=.75;let oE=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),iE=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const aE=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===oE.Image},lE="/qHyperCubeDef",sE=-1,uE="PSEUDO-DIM",cE=e=>void 0===e?Ut:e,dE=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,pE=e=>dE(e,Ct.PixelsDefault),fE=(e,t)=>dE(e,Ct.PercentageDefault)*t/100,hE=(e,t,r)=>{switch(null==t?void 0:t.type){case wt.Pixels:return pE(t.pixels);case wt.Percentage:return fE(t.percentage,e);case wt.FitToContent:case wt.Auto:default:return r}};function mE({layoutService:e,tableWidth:t,headersData:r}){const n=JS(),{measureText:o}=Vo(n.header),{estimateWidth:i}=Vo({...n.dimensionValues,fontWeight:cE(n.dimensionValues.fontWeight)}),{measureText:a}=Vo({...n.dimensionValues,...n.measureLabels}),l=M(((n,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s,topHeadersColumnWidth:u}},visibleMeasureInfo:c,isFullyExpanded:d,isIndentModeEnabled:p}=e,f=(e=0)=>c.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=a(n)+rE;return Math.max(r,hE(t,o,Math.max(i,e)))}),0),h=e=>r.data.reduce(((t,r)=>{const n=r[e];if(!n)return t;if(n.id===uE)return t;const i=(e=>{const{label:t,isLocked:r}=e,n=r?tE:0;return rE+o(t)+eE+n})(n);return Math.max(i,t)}),0);let m=0,g=r.data.at(-1);p&&r.size.x>1&&g&&g[0]&&(g=g[0]);const b=g.map(((r,o)=>{let a=rE;if(n&&void 0!==l&&l===r.colIdx)a=n;else{let n;r.columnWidthLocation===_t.Pivot?n=u:r.columnWidthLocation===_t.Dimension&&({columnWidth:n}=r);let l=0;r.isLeftDimension?l=r.id===uE?f():Math.max(h(o),((t,r)=>{const{qApprMaxGlyphCount:n,isLeftDimension:o,dimensionInfoIndex:a}=t,l=e.getDimensionInfo(a);if(aE(l))return Ct.PixelsDefault;const u=!d&&o&&r<s-1?QS:0;return rE+i(n)+u})(r,o)):r.isLeftDimension||(l=h(o),r.columnWidthLocation===_t.Measures&&(l=f(l))),a=hE(t,n,l)}return m+=a,a}));return{leftGridWidth:Math.min(t*nE,p?b.slice(b.length-2).reduce(((e,t)=>e+t),0):m),leftGridColumnWidths:p?b.slice(b.length-2):b,leftGridFullWidth:m}}),[i,r,e,o,a,t]),[s,u]=S(l);Ko((()=>{u(l())}),[l]);const c=M(((e,t)=>{u(l(e,t))}),[l]);return{...s,overrideLeftGridWidth:c}}function gE({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:n,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=JS(),{estimateWidth:c,measureText:d}=Vo(u.measureValues),{estimateWidth:p}=Vo({...u.dimensionValues,fontWeight:cE(u.dimensionValues.fontWeight)}),f=t-o-Zt,h=r.at(-1),m=h===sE,g=a.length-i>r.length?QS:0,b=x((()=>{const e=m?s:[h],t=l.x/e.length,r=[],n=[];let o=f;const i=(e,n)=>{r[e]=Math.min(Ct.PixelsMax,Math.max(Ct.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(r){case wt.Pixels:i(t,pE(o));break;case wt.Percentage:i(t,fE(a,f));break;case wt.FitToContent:i(t,((e,t,r)=>r?Ct.PixelsDefault:rE+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,aE(e)));break;case wt.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(Ct.AutoMin,i)}))}return r}),[m,s,h,l.x,f,c,d,p,g]),v=x((()=>{if(m){return s.reduce(((e,t,r)=>e+b[r]),0)/s.length}return b[0]}),[m,b,s]),y=parseFloat((n/e.size.x).toFixed(12)),S=M((t=>m&&void 0!==t?b[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:v-y),[m,b,e,v,y]),E=l.x*v;return{rightGridFullWidth:E,rightGridWidth:Math.min(E,f),getRightGridColumnWidth:S}}let bE;const vE=new Uint8Array(16);function yE(){if(!bE&&(bE="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!bE))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bE(vE)}const xE=[];for(let e=0;e<256;++e)xE.push((e+256).toString(16).slice(1));var SE={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function EE(e,t,r){if(SE.randomUUID&&!t&&!e)return SE.randomUUID();const n=(e=e||{}).random||(e.rng||yE)();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 xE[e[t+0]]+xE[e[t+1]]+xE[e[t+2]]+xE[e[t+3]]+"-"+xE[e[t+4]]+xE[e[t+5]]+"-"+xE[e[t+6]]+xE[e[t+7]]+"-"+xE[e[t+8]]+xE[e[t+9]]+"-"+xE[e[t+10]]+xE[e[t+11]]+xE[e[t+12]]+xE[e[t+13]]+xE[e[t+14]]+xE[e[t+15]]}(n)}const CE=()=>{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:EE()},wE=e=>e===sE?uE:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:CE()})(e),RE=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{var o,i;r&&(r.canBeResized=!0,r.isActivelySorted=n===(null!==(o=null===(i=e.layout.qHyperCube.activelySortedColumn)||void 0===i?void 0:i.colIdx)&&void 0!==o?o:0),r.colIdx=r.colIdx||n,r.dimensionInfoIndex===sE?r.columnWidthLocation=_t.Measures:r.isLeftDimension?r.columnWidthLocation=_t.Dimension:t.at(-1)===sE?r.columnWidthLocation=_t.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=_t.Pivot))},LE=(e,t,r)=>{var n;const o=wE(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===sE?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isActivelySorted:!1,isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:_t.Measures}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isActivelySorted:!1,isLocked:null!==(n=t.qLocked)&&void 0!==n&&n,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:_t.Dimension}},AE=({layoutService:e,lastRow:t,lastCol:r})=>{let n=r;var o;t.length>0&&(n=(o=r).at(-1)===sE?o.slice(0,-1):o);const i=n.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,r,n)=>{const o=r===n.length-1;l[i-1][r]=LE(e,t,o)})),n.forEach(((t,r,n)=>{const o=r===n.length-1;l[r][a-1]=LE(e,t,o)})),l},IE=(e,t,r)=>{var n,o;const i=((e,t,r)=>{let n;var o;return n=0===t.length||t.includes(sE)?AE({layoutService:e,lastRow:r,lastCol:t}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(AE({layoutService:e,lastRow:t,lastCol:r})),e.isIndentModeEnabled&&n[n.length-1].length>1&&(n[n.length-1]=[n.at(-1),...new Array(n[0]?n[0].length-1:0).fill(null)]),n.length&&(null===(o=n.at(-1))||void 0===o||o.forEach(((t,n)=>{if(Array.isArray(t)){const n=t;for(let t=0;t<n.length;t++)RE({layoutService:e,visibleLeftDimensionInfos:r,cell:n[t],colIdx:t})}else RE({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}))),n})(e,t,r);return{data:i,size:{x:null!==(n=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==n?n:0,y:i.length}}};function ME(e){return ME="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ME(e)}function DE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PE(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 _E(e,t,r){return t&&PE(e.prototype,t),r&&PE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function OE(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&&TE(e,t)}function kE(e){return kE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kE(e)}function TE(e,t){return TE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TE(e,t)}function qE(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 NE(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=kE(e);if(t){var o=kE(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return qE(this,r)}}function FE(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,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.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 zE(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 zE(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 zE(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 jE={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:$E(e),value:$E(t),useEqualSign:r}}(r,o,i))}})),t}};function $E(e){try{return decodeURIComponent(e)}catch(t){return e}}function BE(e){if(!(this instanceof BE))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 jE.fromSearchString(t.search)}}})}function HE(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}BE.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},BE.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=HE((t=e[n]).key),t.value?r+="=".concat(HE(t.value)):r+=t.useEqualSign?"=":"";return r};var GE,WE=function(){function e(t){DE(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return _E(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}(),VE=function(){function e(){DE(this,e)}return _E(e,[{key:"decode",value:function(e){for(var t,r="",n=new WE(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),YE=function(e){return e>=0&&e<=1114111},UE=function(e){return e.match(/[\s]/)},KE=function(e){OE(r,VE);var t=NE(r);function r(){return DE(this,r),t.apply(this,arguments)}return _E(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())&&!UE(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return YE(a)?String.fromCharCode(a):"�"}}]),r}(),XE=function(){function e(t,r){DE(this,e),this._key=t,this._value=r}return _E(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}(),JE=function(){function e(){DE(this,e)}return _E(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 XE.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return XE.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||XE.newInstanceIfNeeded(e,t,this._value)}}]),e}(),ZE=function(){function e(){DE(this,e),this.clear()}return _E(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 JE);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),QE=function(){var e,t,r,n=[],o=[],i=new ZE;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="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["&notin"]="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}(),eC=function(e){OE(r,VE);var t=NE(r);function r(){return DE(this,r),t.apply(this,arguments)}return _E(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,QE.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=QE.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)&&YE(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)&&YE(n)?String.fromCharCode(n):null}}]),r}(),tC=function(e){OE(r,VE);var t=NE(r);function r(){return DE(this,r),t.apply(this,arguments)}return _E(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),YE(o))?String.fromCharCode(o):(e.reset(),null)}}]),r}(),rC=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(GE=document.createElement("div"));var nC=Array.prototype.indexOf,oC=[",",".","_"," "],iC={default:[",",".","-","_"," "]},aC={width:["%"],height:["%"]},lC={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},sC={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":lC.image,"background-color":lC.color,"border-color":lC.color,"border-image":lC.image,color:lC.color,icon:lC.image,"list-style-image":lC.image,"outline-color":lC.color},uC={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function cC(e,t,r){var n;if(t){if(nC)return nC.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 dC(e){if(null==e)return"";var t,r=document.createTextNode(e);return GE.appendChild(r),t=GE.innerHTML,GE.removeChild(r),t}function pC(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=hC(e).toLowerCase(),t=hC(t),cC(e,uC.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<uC.attr_val;i++)if(t.toLowerCase().match(uC.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=aC[e])||(n=iC.default),o="",!r){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]/)&&cC(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function fC(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=hC(e).toLowerCase(),t=hC(t),cC(e,uC.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<uC.css_val.length;n++)if(t.toLowerCase().indexOf(uC.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=sC[e])||(o=lC.default),i="",!r){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]/)&&cC(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function hC(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new eC,new tC,new KE];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].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 mC=[],gC=0;gC<255;gC++)mC[gC]=gC>=48&&gC<=57||gC>=65&&gC<=90||gC>=97&&gC<=122?null:gC.toString(16);var bC=function(e){return dC(e.unsafe)},vC=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]=fC(t,r[t],!0),i+=fC(t,r[t],!0),o[t]=n[t]);return e.map?o:i},yC=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]=pC(i,t[i],!0),o+=pC(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function xC(e,t){throw new Error(t)}var SC={canonicalize:hC,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===ME(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?bC(e):"css"===e.context?(null!=e.map&&"object"!==ME(e.map)&&xC(this,"Invalid parameter type"),vC(e)):"attr"===e.context?(null!=e.map&&"object"!==ME(e.map)&&xC(this,"Invalid parameter type"),yC(e)):void xC(this,"Invalid parameter type")},encodeForAttr:pC,encodeForAttr2:function(e){return pC("nonsens",e,!0)},encodeForCSS:fC,encodeForHref:function(e){hC(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new BE(e),r=BE.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+BE.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,l;for(t||(t=oC),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),cC(o,t)>=0||null==mC[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:dC,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=hC(t).toLowerCase():xC(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,l=function(e){var t,r=FE(null!==(t=rC.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),s=l.mimeType,u=l.encoding,c=l.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}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const EC=(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]},CC=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"}}},wC=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&SC.isSafeDataURL(t)?{type:oE.Image,url:t,text:e,imageSize:r,resolvedImagePosition:CC(n)}:{type:oE.Text,url:void 0,text:e},RC=(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)===iE.Attribute||null==r?void 0:r.urlLabel},LC=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:oE.Link,url:SC.encodeForHref(t),text:e}}catch(t){return{type:oE.Text,url:void 0,text:e}}},AC=(e,t,r,n,o,i)=>{switch((e=>{switch(null==e?void 0:e.type){case"url":return oE.Link;case"image":return oE.Image;default:return oE.Text}})(t)){case oE.Image:return((e,t,r,n)=>{const{imageSize:o,imagePosition:i,imageSetting:a,imageLabel:l}=null!=t?t:{};if("url"===a){var s;const t=e.qText,n=null===(s=EC(null!=r?r:-1,e))||void 0===s?void 0:s.qText;return wC({text:t,url:n,imageSize:o,imagePosition:i})}if("label"===a){var u,c;const t=e.qText;if(-1===n||void 0===n)return wC({text:l||t||"",url:t,imageSize:o,imagePosition:i});const r=null!==(u=null===(c=EC(n,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return wC({text:r,url:t,imageSize:o,imagePosition:i})}return{type:oE.Text,url:void 0,text:e.qText}})(e,t,o,i);case oE.Link:return((e,t,r,n)=>{const{urlPosition:o}=null!=t?t:{};if(o===iE.Attribute){const n=RC(r,e,t),o=e.qText||n||"";return LC({text:o,url:n})}if(o===iE.Dimension){const r=RC(n,e,t)||e.qText;return LC({text:r,url:e.qText})}return{type:oE.Text,url:void 0,text:e.qText}})(e,t,r,n);default:return{type:oE.Text,url:void 0,text:e.qText}}},IC=(e,t)=>{var r,n;const o=t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r||null===(r=r[null==e?void 0:e.cellForegroundColor])||void 0===r?void 0:r.qText,a=null==o||null===(n=o.qValues)||void 0===n||null===(n=n[null==e?void 0:e.cellBackgroundColor])||void 0===n?void 0:n.qText,l=a?vx(a):null,s=i?vx(i):null,u=((e,t)=>e||!t?null:An(t)?mx.WHITE:mx.TEXT)(s,l);return{color:null!=u?u:s,background:l}},MC=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:MC(e,t)),e),DC=(e,t,r,n,o,i)=>{if(o)return MC(0,e);const a=i?Kt-r:Xt-n;let l=e.qUp+e.qDown;if(i&&0===r){const r=(t+e.qUp)%Kt;l=e.qDown+r}return Math.min(a,MC(l,e))},PC=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d})=>{const p=!c&&e.qType===qt.NX_DIM_CELL_PSEUDO;let f="";if(u&&e.indentLabel){const{label:t,delimeter:r,suffix:n}=e.indentLabel;f=`${t} ${!n||!t&&n?"":r} ${n}`.trim()}else f=e.qText;const h={id:CE(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:DC(e,o,i,n,a.isSnapshot,u),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===qt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===qt.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===qt.NX_DIM_CELL_NULL,isPseudoDimension:p,expressionColor:IC(s,e),selectionCellType:u?Pt.NX_CELL_LEFT:Pt.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:p?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:AC({...e,qText:f},l===sE?void 0:l.representation,s.link,s.linkLabel,s.imageUrl,s.imageLabel),...void 0!==d&&{indentLevel:d}};return t&&(t.children[h.mainAxisPageCoord-t.mainAxisPageCoord]=h),h},_C=(e,t,r,n,o,i,a)=>{const{isIndentModeEnabled:l}=o;if(!t.length)return e;let s=0;return function t(u,c,d,p=0,f=-1){e[p]||(e[p]={}),l&&f++;const h=o.leftDimensionInfoIndexes.indexOf(sE);d.forEach(((d,m)=>{var g;s+=0===m?0:1;const b=r.qTop-n.page*n.rowsPerPage,v=Math.max(0,b+s-d.qUp),y=r.qTop+s-d.qUp;if(l&&o.hasPseudoDimOnLeft&&f<=h){const e={label:d.qText,suffix:"",delimeter:"-"};if(d.qType===qt.NX_DIM_CELL_NORMAL||d.qType===qt.NX_DIM_CELL_NULL||d.qType===qt.NX_DIM_CELL_TOTAL)f<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),d={...d,indentLabel:e};else if(d.qType===qt.NX_DIM_CELL_PSEUDO){var x,S,E,C,w;e.label=null!==(x=null===(S=c||u)||void 0===S||null===(S=S.ref)||void 0===S||null===(S=S.indentLabel)||void 0===S?void 0:S.label)&&void 0!==x?x:"",e.suffix=d.qText;const t=d.qSubNodes;d={...null===(E=c||u)||void 0===E?void 0:E.ref,...d.qText?{qText:d.qText}:{},qSubNodes:t,indentLabel:e},f=null!==(C=null===(w=c||u)||void 0===w?void 0:w.indentLevel)&&void 0!==C?C:0}}let R=p;l&&(R=f===h?f+1:f,0===f&&0===h&&0===d.qSubNodes.length&&(R=0));const L=l&&void 0===(null===(g=e[p][v])||void 0===g?void 0:g.ref.qText)||!e[p][v]?PC({node:d,parent:c,root:u,x:R,y:y,pageY:v,layoutService:o,dimensionInfo:i[R],attrExprInfoIndex:a[R],isLeftColumn:!0,...l&&{isIndentModeEnabled:l,indentLevel:f}}):e[p][v];if(e[p][v]=L,d.qSubNodes.length){const e=l?0:p+1;t(u||L,L,d.qSubNodes,e,f)}}))}(null,null,t,0,-1),e},OC=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n[r+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},kC=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==r?void 0:r[o],a=n.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},TC=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i})=>{const{qLeft:a,qArea:l}=t;if(!a.length)return e;const s=_C(e.grid,a,l,r,n,o,i);OC(s,r.rowsOnCurrentPage);const u=kC(s,n);return{...e,grid:s,columnCount:s.length,totalDividerIndex:u}},qC=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===qt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:CE(),ref:t,isNull:u}}))})),o},NC=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n.length?qC({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},FC=(e,t,r,n,o,i,a)=>{if(!t.length)return e;let l=0;!function t(a,s,u,c=0){e[c]||(e[c]={}),u.forEach(((u,d)=>{var p;l+=0===d?0:1;const f=r.qLeft+l-u.qUp,h=null!==(p=e[c][f])&&void 0!==p?p:PC({node:u,parent:s,root:a,x:f,y:c,pageY:c,layoutService:n,dimensionInfo:o[c],attrExprInfoIndex:i[c],isLeftColumn:!1});e[c][f]=h,u.qSubNodes.length&&t(a||h,h,u.qSubNodes,c+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},zC=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i})=>{const{qTop:a,qArea:l}=t;if(!a.length)return e;const s=FC(e.grid,a,l,r,n,o,i);OC(s,r.size.x);const u=kC(s);return{...e,grid:s,rowCount:s.length,totalDividerIndex:u}},jC=e=>{if(e===sE)return{cellForegroundColor:-1,cellBackgroundColor:-1,imageUrl:-1,imageLabel:-1,link:-1,linkLabel:-1};const t=e.qAttrExprInfo,r=t.findIndex((({id:e})=>e===Ot.CellForegroundColor.toString())),n=t.findIndex((({id:e})=>e===Ot.CellBackgroundColor.toString())),o=t.findIndex((({id:e})=>e===Ot.ImageUrl.toString())),i=t.findIndex((({id:e})=>e===Ot.ImageLabel.toString()));return{cellForegroundColor:r,cellBackgroundColor:n,imageUrl:o,link:t.findIndex((({id:e})=>e===Ot.Link.toString())),linkLabel:t.findIndex((({id:e})=>e===Ot.LinkLabel.toString())),imageLabel:i}},$C=(e,t,r,n,o)=>{const[i,a]=S(null),l=((e,t,r)=>x((()=>({left:e.map(jC),top:t.map(jC),measures:r.map(jC)})),[r,e,t]))(n,o,t.visibleMeasureInfo),s=x((()=>IE(t,o,n)),[t,o,n]),u=M((()=>e.slice(1).reduce(((e,t)=>NC({prevData:e,dataPage:t,pageInfo:r})),((e,t)=>{const{qData:r,qArea:n}=e;return qC({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(e[0],r))),[e,r]),c=M((()=>e.slice(1).reduce(((e,r)=>zC({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y})),((e,t,r,n,o)=>{const{qArea:i,qTop:a}=e,l=FC([],a,i,t,r,n,o);OC(l,t.size.x);const s=kC(l);return{grid:l,rowCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,o,l.top,s.size.y))),[e,t,o,l.top,s.size.y]),d=M((()=>e.slice(1).reduce(((e,o)=>TC({prevData:e,nextDataPage:o,pageInfo:r,layoutService:t,visibleLeftDimensionInfo:n,attrExprInfoIndexes:l.left})),((e,t,r,n,o)=>{const{qArea:i,qLeft:a}=e,l=_C([],a,i,r,t,n,o);OC(l,r.rowsOnCurrentPage);const s=kC(l,t);return{grid:l,columnCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,r,n,l.left))),[e,t,r,n,l]),[p,f]=S((()=>u())),[h,m]=S((()=>c())),[g,b]=S((()=>d()));Ko((()=>{f(u())}),[u]),Ko((()=>{m(c())}),[c]),Ko((()=>{b(d())}),[d]),Ko((()=>{i&&i.forEach((e=>{f((t=>NC({prevData:t,dataPage:e,pageInfo:r}))),m((r=>zC({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y}))),b((o=>TC({prevData:o,nextDataPage:e,pageInfo:r,layoutService:t,visibleLeftDimensionInfo:n,attrExprInfoIndexes:l.left})))}))}),[i]);const v=M((e=>{a(e)}),[]);return{headersData:s,measureData:p,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:l,nextPageHandler:v}},BC=Math.sqrt(1e4),HC=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/BC),n=Math.ceil(e.qHeight/BC);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*BC,qTop:e.qTop+r*BC,qWidth:Math.min(BC,e.qWidth-o*BC),qHeight:Math.min(BC,e.qHeight-r*BC)});return t};function GC({model:e,nextPageHandler:t,pageInfo:r,layoutService:n}){const o=(e=>{const t=I(e);return t.current=e,t})(r.page),i=e,a=M((async(e,t)=>{var r;await(null==i||null===(r=i.collapseLeft)||void 0===r?void 0:r.call(i,lE,e,t,!1))}),[i]),l=M((async(e,t)=>{await(null==i?void 0:i.collapseTop(lE,e,t,!1))}),[i]),s=M((async(e,t)=>{await(null==i?void 0:i.expandLeft(lE,e,t,!1))}),[i]),u=M((async(e,t)=>{await(null==i?void 0:i.expandTop(lE,e,t,!1))}),[i]),c=M((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const n=await i.getHyperCubePivotData(lE,e.reduce(((e,t)=>[...e,...HC(t)]),[]));o.current===r.page&&t(n)}catch(e){console.error(e)}}),[i,t,r,o]),d=M(((t,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case _t.Dimension:c=[{qPath:`${lE}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case _t.Measures:if(o)c=l.map(((e,t)=>({qPath:`${lE}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${lE}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case _t.Pivot:c=[{qPath:`${lE}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:r,oldValue:n}=e;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...t})}}));null==e||e.applyPatches(d,!0)}),[e,n]);return x((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,fetchPages:c})),[a,l,s,u,d,c])}const WC=(e,t)=>e>t?Tt.Forward:e<t?Tt.Backward:Tt.None,VC=(e,t,r)=>(n,o)=>{if(n===qt.NX_DIM_CELL_PSEUDO)return sE;const i=t[r+o];return e[i]},YC=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},UC=({width:e,height:t,children:r,isLeftGrid:n})=>li.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:n?"fit-content":e,height:t+Zt},children:r}),KC=e=>`scrollable-container--${e}`,XC=(e,t)=>{const{width:r,height:n,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=YS();return li.jsx("div",{ref:t,"data-key":KC(u),style:{width:r,height:n,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var JC=y.forwardRef(XC);const ZC=({width:e,height:t,children:r,style:n,isLeftGrid:o})=>li.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...n},children:r});function QC(){return QC=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},QC.apply(this,arguments)}function ew(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tw(e,t){return tw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tw(e,t)}function rw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tw(e,t)}var nw=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ow(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||nw(n)&&nw(o)))return!1;var n,o;return!0}function iw(e,t){var r;void 0===t&&(t=ow);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function aw(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 lw="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function sw(e){cancelAnimationFrame(e.id)}function uw(e,t){var r=lw();var n={id:requestAnimationFrame((function o(){lw()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var cw=-1;function dw(e){if(void 0===e&&(e=!1),-1===cw||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),cw=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return cw}var pw=null;function fw(e){if(void 0===e&&(e=!1),null===pw||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?pw="positive-descending":(t.scrollLeft=1,pw=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),pw}return pw}var hw=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function mw(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,ew(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:ew(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=iw((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=iw((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&l,m&&s,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=iw((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(fw()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&sw(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=uw(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}rw(t,e),t.getDerivedStateFromProps=function(e,t){return gw(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=dw();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(fw()){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&&sw(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?hw:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],R=this._getVerticalRangeToRender(),L=R[0],A=R[1],I=[];if(n>0&&g)for(var M=L;M<=A;M++)for(var D=E;D<=w;D++)I.push(C(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,D)}));var P=a(this.props,this._instanceProps),_=l(this.props,this._instanceProps);return C(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:QC({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(u||c||"div",{children:I,ref:s,style:{height:P,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],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(k),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var gw=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},bw=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},vw=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},yw=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},xw=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?Sw(e,t,r,i,0,n):Ew(e,t,r,Math.max(0,i),n)},Sw=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=yw(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},Ew=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&yw(e,t,n,r).offset<o;)n+=a,a*=2;return Sw(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},Cw=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=yw(e,t,r,i),u="column"===e?vw(t,i):bw(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},ww=mw({getColumnOffset:function(e,t,r){return yw("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return xw("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=yw("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=yw("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:bw,getEstimatedTotalWidth:vw,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return Cw("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return Cw("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return yw("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return xw("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=yw("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=yw("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}}),Rw=function(e,t){return e};function Lw(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,ew(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:ew(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=iw((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=iw((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=iw((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(fw()){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&&sw(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=uw(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}rw(t,e),t.getDerivedStateFromProps=function(e,t){return Aw(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?dw():0:s.scrollHeight>s.clientHeight?dw():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(fw()){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&&sw(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?Rw:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],R=E[1],L=[];if(u>0)for(var A=w;A<=R;A++)L.push(C(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return C(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:QC({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(l||s||"div",{children:L,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(k),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Aw=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Iw=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},Mw=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=Iw(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},Dw=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&Iw(e,r,t).offset<n;)r+=i,i*=2;return Mw(e,t,Math.min(r,o-1),Math.floor(r/2),n)},Pw=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},_w=Lw({getItemOffset:function(e,t,r){return Iw(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Pw,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=Iw(e,t,o),p=Pw(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?Mw(e,t,o,0,r):Dw(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=Iw(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=Iw(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 Ow(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 kw=["style"],Tw=["style"];function qw(e,t){var r=e.style,n=aw(e,kw),o=t.style,i=aw(t,Tw);return!Ow(r,o)&&!Ow(n,i)}const Nw=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),Fw=10,zw=(e,t)=>e.current===Tt.Backward?t:0,jw=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e[o];if(void 0===r||void 0===r[t])return!0}return!1},$w=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,Bw=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(jw(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&$w(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},Hw=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===Tt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return Bw({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},Gw=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=zw(r,Fw),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+Fw,l-u),pageTop:o,qHeight:a}})(n,o,r),u=Bw({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...Hw({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},Ww=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},Vw=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,Yw=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(Ww(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&Vw(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},Uw=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=zw(r,Fw),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+Fw,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=Yw({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===Tt.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=Yw({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},Kw=async(e,t,r,n,o,i,a)=>{const{gridColumnStartIndex:l,gridRowStartIndex:s,gridWidth:u,gridHeight:c}=o;let d=[],p=[];i.current!==Tt.None&&(d=Uw({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==Tt.None&&(p=Gw({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===Tt.None&&a.current===Tt.None&&(d=Yw({measureData:r,pageInfo:n,qLeft:l,qWidth:u,startTop:s,endTop:s+c})),await e.fetchPages([...d,...p])},Xw=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];r=l;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(Kw,100),Jw=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}(Kw,75),Zw=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=JS();return li.jsx("div",{style:{...e,...nr,...lr(r,n,l,o),...ur({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},Qw=({children:e,verticalAlign:t,width:r,right:n})=>li.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,alignSelf:t},children:e}),eR=e=>{const{type:t,imageSize:r}=e;return t!==oE.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"};function tR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rR=A(((e,t)=>y.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){tR(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),y.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"}))));function nR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oR=A(((e,t)=>y.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){nR(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),y.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})))),iR=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(St)};function aR(e,t){const r=e.isActive(),[n,o]=S(new Map),[i,a]=S(null);D((()=>{const r=()=>{a(null),o(new Map)},n=()=>{r(),t({page:0})};return e.on("deactivated",r),e.on("canceled",r),e.on("confirmed",n),e.on("cleared",r),()=>{e.removeListener("deactivated",r),e.removeListener("canceled",r),e.removeListener("confirmed",n),e.removeListener("cleared",r)}}),[e,t]);const l=M((e=>0!==n.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===Pt.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[n,i]),s=M((t=>async r=>{if(iR(r))return;if(e.isActive()||await e.begin([lE]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,r)=>{const n=new Map(t);return n.has(e.ref.qElemNo)?(n.delete(e.ref.qElemNo),{nextSelectedPivotCells:n,nextSelectedField:0===n.size?null:r}):(n.set(e.ref.qElemNo,e),{nextSelectedPivotCells:n,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===Pt.NX_CELL_LEFT?e.x:e.y}})})(t,n,i);try{await e.select({method:"selectPivotCells",params:[lE,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,n,i]),u=M((e=>r&&!l(e)&&n.has(e.ref.qElemNo)),[n,l,r]);return x((()=>({select:s,isSelected:u,isActive:r,isLocked:l})),[s,u,r,l])}const lR=P({select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),sR=()=>E(lR),uR=({children:e,selections:t,updatePageInfo:r})=>{const n=aR(t,r);return li.jsx(lR.Provider,{value:n,children:e})};var cR;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(cR||(cR={}));const dR={brighter:.5,darker:.3,opacity:.03},pR=(e,{cell:t,styleService:r})=>{if(e===cR.Background||e===cR.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},fR=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return"#0aaf54";const o=pR(cR.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?pR(cR.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${gx(i=o,dR)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},hR=({cell:e,styleService:t,isCellSelected:r})=>r?"white":pR(cR.Color,{cell:e,styleService:t}),mR=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=pR(cR.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?Ut:o},gR=({cell:e,styleService:t})=>pR(cR.FontStyle,{cell:e,styleService:t}),bR=({cell:e,styleService:t})=>pR(cR.TextDecoration,{cell:e,styleService:t}),vR=e=>e?"pointer":"default",yR=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},xR=({cell:e,dataModel:t,isLeftColumn:r,isCellSelected:n})=>{const o=JS(),{interactions:i}=YS(),{isActive:a}=sR();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=hR({cell:e,styleService:o,isCellSelected:n}),u=a?.4:1,c=o.contentRowHeight/2,d=e.ref.qCanExpand?oR:rR;let p;return p=e.ref.qCanExpand?r?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:r?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,li.jsx(d,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",padding:4,marginTop:r?c-6.5-4:void 0},onClick:l?void 0:yR({cell:e,expandOrCollapse:p})})},SR=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},ER=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},CR=({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o})=>{const i=`calc(100% - ${r?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==n?a*Math.max(n,1):a;switch(e.imageSize){case"originalSize":return{maxWidth:i,maxHeight:l};case"fitWidth":return{width:i,maxHeight:l};case"fitHeight":return{height:l,maxWidth:i};case"fill":return{height:l,width:i};default:return{width:i,height:a}}},wR=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},RR=e=>{if("alwaysFit"===e)return"contain"},LR=({representation:e,styleService:t,textStyle:r,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})=>{const{url:a,text:l,imageSize:s,resolvedImagePosition:u}=e,{overflow:c,...d}=r;return li.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==u?void 0:u.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...CR({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})},children:li.jsx("img",{src:a,alt:l,style:{width:ER(s),height:SR(s),objectFit:RR(s),objectPosition:wR(s,u),...d}})})},AR=(e,t,r)=>{if(!r.isEnabled(Rt)||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},IR={display:"flex",flexDirection:"row",alignItems:"center"},MR={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},DR=(e,t,r,n)=>t?{...MR,...e.nullValues}:r?{...IR,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...IR,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},PR=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...or,...!r&&ir(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?Ut:s,fontStyle:u,textDecoration:c}},_R=(e,t,r,n,o)=>{const{textAlign:i}=t,a=n?"flex-end":"center";var l,s;return e.isNull||r.type!==oE.Image?AR(i,a,o):null!==(l=null===(s=r.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},OR=({cell:e,layoutService:t,styleService:r,representation:n,color:o,isNumeric:i,isTotalValueCell:a})=>{const{flags:l}=YS(),s=e.isNull?t.getNullValueText():n.text,u=PR(r,o,i,a,e.isNull);return n.type===oE.Image&&!e.isNull&&l.isEnabled(At)?li.jsx(LR,{representation:n,styleService:r,textStyle:u,isLeftColumn:!0}):li.jsx("span",{style:{padding:4,...u},children:s})},kR=(e,t)=>{var r,n;return null!==(r=null==e||null===(n=e[t])||void 0===n?void 0:n.visibleMeasureInfoIndex)&&void 0!==r?r:0},TR="flex-start",qR=(e,t)=>{return e.isNull?TR:t.type===oE.Image&&"fill"!==t.imageSize?null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.vertical:TR;var r},NR=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const i=JS(),{flags:a}=YS(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:b}=n,v=null===(o=s[t])||void 0===o?void 0:o[e],y=t===h.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!v)return li.jsx(Zw,{style:{...r,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?kR(g,t):kR(m,e),E=u.visibleMeasureInfo[S],C=AC(v.ref,E.representation,-1,-1,b[S].imageUrl,b[S].imageLabel),w=!v.isNull&&f(e,t),R=v.isNull?u.getNullValueText():C.text,L=!v.isNull||!Number.isNaN(+R),A=IC(b[S],v.ref),I={...DR(i,v.isNull,w,A.background),...lr(y,x,i.grid.border,c),...ur({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...nr,padding:"0px 4px",display:"flex",justifyContent:_R(v,E,C,L,a)};return li.jsx("div",{title:R,style:{...I,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:li.jsx(Qw,{width:eR(C),verticalAlign:qR(v,C),children:li.jsx(OR,{cell:v,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:A.color})})})};var FR=y.memo(NR,qw);const zR=(e,t)=>{var r,n;return null!==(r=null===(n=t.list[e])||void 0===n?void 0:n.id)&&void 0!==r?r:e.toString()},jR=({columnIndex:e,rowIndex:t,data:r})=>{var n,o;return null!==(n=null===(o=r.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==n?n:`${t}-${e}`},$R={...rr,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},BR=({dataModel:e,dataGridRef:t,height:r,rowHightCallback:n,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:h,pageInfo:m,verticalScrollDirection:g,horizontalScrollDirection:b})=>{const{grid:{divider:v},contentCellHeight:y}=JS(),x={...$R,borderColor:v,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,r=!1)=>M((n=>{var o;const i=r?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[n];return Nw(a,e.totalDividerIndex,r)}),[e,r,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>M((r=>{var n;const o=null===(n=e.grid.at(t-1))||void 0===n?void 0:n[r];return Nw(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,r,n)=>M(((o,i)=>{var a,l;return!!(null!==(a=t.grid.at(n-1))&&void 0!==a&&null!==(a=a[o])&&void 0!==a&&a.isTotal||null!==(l=e.grid.at(r-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal)}),[t,e,r,n]))(s,u,d.length,c.length),w=(({viewService:e,dataModel:t,measureData:r,layoutService:n,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>M((async({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p})=>{e.gridColumnStartIndex=u,e.gridRowStartIndex=d,e.gridWidth=c-u+1,e.gridHeight=p-d+1;const f=e.gridWidth+i+(s.current===Tt.None?0:Fw),h=e.gridHeight+a+(l.current===Tt.None?0:Fw);let m=Xw;h*f>1500&&(m=Jw),await m(t,n,r,o,e,l,s)}),[e,n,t,r,l,s,o,i,a]))({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:b});return Ko((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),O((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,r,t,y]),0===a.size.x?null:li.jsx(ww,{ref:t,style:x,columnCount:a.size.x,columnWidth:h,height:r,rowCount:m.rowsOnCurrentPage,rowHeight:n,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:m,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:n(),estimatedColumnWidth:h(),itemKey:jR,children:FR})};var HR=_(BR);function GR(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=A(((e,t)=>y.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){GR(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),y.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"}),y.createElement("use",{fillRule:"evenodd"})))),VR=e=>{const[t,r]=S(!1);return Ko((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},YR=({interactions:e,dataModel:t})=>{const[r,n]=S(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=VR([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e.active&&!iR(t)&&!o&&n(!0),setIsAdjustingWidth:i}};const UR=({cellInfo:e,columnWidth:t,dataModel:r,isLastColumn:n,overrideLeftGridWidth:o,setIsAdjustingWidth:i})=>{const{interactions:a}=YS(),{isActive:l}=sR(),s=JS(),[,u]=S({});if(!(e.canBeResized&&!!a.active&&!l))return null;const c=function(e,t){var r,n,o,i;const a=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===Qt.Transparent?mx.WHITE:l,u=null===(o=Wr(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=Wr(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}(s,e);return li.jsx(Ex,{isPivot:!0,columnWidth:t,isLastColumn:n,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:c,updateWidthCallback:t=>{u({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>null==r?void 0:r.applyColumnWidth(t,e),setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})},KR=e=>e.scrollTop;function XR(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 JR(e){return Pu("MuiPaper",e)}_u("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 ZR=["className","component","elevation","square","variant"],QR=vp("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 di({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&&di({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Kc("#fff",Sp(t.elevation))}, ${Kc("#fff",Sp(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var eL=v.forwardRef((function(e,t){const r=$d({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=pi(r,ZR),u=di({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Pc({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},JR,o)})(u);return li.jsx(QR,di({as:o,ownerState:u,className:Iu(c.root,n),ref:t},s))}));function tL(e){return"string"==typeof e}function rL(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 nL(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 oL=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function iL(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=pi(e,oL),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Iu(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=di({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=di({},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=rL(di({},o,n)),l=nL(n),s=nL(o),u=t(a),c=Iu(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=di({},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=di({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(di({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||tL(e)?t:di({},t,{ownerState:di({},t.ownerState,r)})}(r,di({},s,{ref:gc(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var aL=_u("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const lL=["center","classes","className"];let sL,uL,cL,dL,pL=e=>e;const fL=Jl(sL||(sL=pL`
28
101
  0% {
29
102
  transform: scale(0);
30
103
  opacity: 0.1;
@@ -34,7 +107,7 @@ function Ip(e,t){let r;return r=t?Hl(e).withConfig({displayName:t.label,shouldFo
34
107
  transform: scale(1);
35
108
  opacity: 0.3;
36
109
  }
37
- `)),Um=Yl(Bm||(Bm=Vm`
110
+ `)),hL=Jl(uL||(uL=pL`
38
111
  0% {
39
112
  opacity: 1;
40
113
  }
@@ -42,7 +115,7 @@ function Ip(e,t){let r;return r=t?Hl(e).withConfig({displayName:t.label,shouldFo
42
115
  100% {
43
116
  opacity: 0;
44
117
  }
45
- `)),Km=Yl(Hm||(Hm=Vm`
118
+ `)),mL=Jl(cL||(cL=pL`
46
119
  0% {
47
120
  transform: scale(1);
48
121
  }
@@ -54,7 +127,7 @@ function Ip(e,t){let r;return r=t?Hl(e).withConfig({displayName:t.label,shouldFo
54
127
  100% {
55
128
  transform: scale(1);
56
129
  }
57
- `)),Xm=om("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Jm=om((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=g.useState(!1),p=Cu(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Cu(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),g.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),ni.jsx("span",{className:p,style:f,children:ni.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Wm||(Wm=Vm`
130
+ `)),gL=vp("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),bL=vp((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=v.useState(!1),p=Iu(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Iu(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),v.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),li.jsx("span",{className:p,style:f,children:li.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(dL||(dL=pL`
58
131
  opacity: 0;
59
132
  position: absolute;
60
133
 
@@ -97,4 +170,4 @@ function Ip(e,t){let r;return r=t?Hl(e).withConfig({displayName:t.label,shouldFo
97
170
  animation-iteration-count: infinite;
98
171
  animation-delay: 200ms;
99
172
  }
100
- `),$m.rippleVisible,Ym,550,(({theme:e})=>e.transitions.easing.easeInOut),$m.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),$m.child,$m.childLeaving,Um,550,(({theme:e})=>e.transitions.easing.easeInOut),$m.childPulsate,Km,(({theme:e})=>e.transitions.easing.easeInOut));var Zm=g.forwardRef((function(e,t){const r=em({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=si(r,jm),[l,s]=g.useState([]),u=g.useRef(0),c=g.useRef(null);g.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=g.useRef(!1),p=g.useRef(0),f=g.useRef(null),h=g.useRef(null);g.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=g.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,ni.jsx(Jm,{classes:{ripple:Cu(o.ripple,$m.ripple),rippleVisible:Cu(o.rippleVisible,$m.rippleVisible),ripplePulsate:Cu(o.ripplePulsate,$m.ripplePulsate),child:Cu(o.child,$m.child),childLeaving:Cu(o.childLeaving,$m.childLeaving),childPulsate:Cu(o.childPulsate,$m.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),b=g.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m]),v=g.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=g.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{y(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return g.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),ni.jsx(Xm,li({className:Cu($m.root,o.root,i),ref:h},a,{children:ni.jsx(Dm,{component:null,exit:!0,children:l})}))}));function Qm(e){return Ih("MuiButtonBase",e)}var eg=Mh("MuiButtonBase",["root","disabled","focusVisible"]);const tg=["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"],rg=om("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"},[`&.${eg.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ng=g.forwardRef((function(e,t){const r=em({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:D=0,TouchRippleProps:_,touchRippleRef:I,type:M}=r,O=si(r,tg),P=g.useRef(null),k=g.useRef(null),T=mh(k,I),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Rh(),[$,j]=g.useState(!1);s&&$&&j(!1),g.useImperativeHandle(n,(()=>({focusVisible:()=>{j(!0),P.current.focus()}})),[]);const[G,B]=g.useState(!1);g.useEffect((()=>{B(!0)}),[]);const H=G&&!u&&!s;function W(e,t,r=c){return hh((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}g.useEffect((()=>{$&&d&&!u&&G&&k.current.pulsate()}),[u,d,$,G]);const V=W("start",E),Y=W("stop",m),U=W("stop",b),K=W("stop",w),X=W("stop",(e=>{$&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&j(!1),f&&f(e)}),!1),te=hh((e=>{P.current||(P.current=e.currentTarget),N(e),!0===q.current&&(j(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=g.useRef(!1),oe=hh((e=>{d&&!ne.current&&$&&k.current&&" "===e.key&&(ne.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=hh((e=>{d&&" "===e.key&&k.current&&$&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(O.href||O.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(O.href||O.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=mh(t,z,P),ue=li({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:$}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=sc({root:["root",t&&"disabled",r&&"focusVisible"]},Qm,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ni.jsxs(rg,li({as:ae,className:Cu(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:D,type:M},le,O,{children:[i,H?ni.jsx(Zm,li({ref:T,center:o},_)):null]}))}));var og=ng;function ig(e){return Ih("MuiTypography",e)}Mh("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ag=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],lg=om("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${ah(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>li({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}))),sg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ug={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cg=g.forwardRef((function(e,t){const r=em({props:e,name:"MuiTypography"}),n=(e=>ug[e]||e)(r.color),o=$f(li({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=sg}=o,f=si(o,ag),h=li({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||sg[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return sc({root:["root",i,"inherit"!==e.align&&`align${ah(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},ig,a)})(h);return ni.jsx(lg,li({as:m,ref:t,ownerState:h,className:Cu(g.root,a)},f))}));var dg=cg;const pg=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function fg(e){const t=[],r=[];return Array.from(e.querySelectorAll(pg)).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 hg(){return!0}function mg(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=fg,isEnabled:a=hg,open:l}=e,s=g.useRef(!1),u=g.useRef(null),c=g.useRef(null),d=g.useRef(null),p=g.useRef(null),f=g.useRef(!1),h=g.useRef(null),m=lc(t.ref,h),b=g.useRef(null);g.useEffect((()=>{l&&h.current&&(f.current=!r)}),[r,l]),g.useEffect((()=>{if(!l||!h.current)return;const e=nc(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),g.useEffect((()=>{if(!l||!h.current)return;const e=nc(h.current),t=t=>{b.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,l;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=b.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ni.jsxs(g.Fragment,{children:[ni.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),g.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),ni.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const gg=g.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=g.useState(null),l=lc(g.isValidElement(r)?r.ref:null,t);if(Ju((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Ju((()=>{if(i&&!o)return ic(t,i),()=>{ic(t,null)}}),[t,i,o]),o){if(g.isValidElement(r)){const e={ref:l};return g.cloneElement(r,e)}return ni.jsx(g.Fragment,{children:r})}return ni.jsx(g.Fragment,{children:i?P.createPortal(r,i):i})}));function bg(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vg(e){return parseInt(oc(e).getComputedStyle(e).paddingRight,10)||0}function yg(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&&bg(e,o)}))}function xg(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Sg(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=nc(e);return t.body===e?oc(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)}(nc(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${vg(n)+e}px`;const t=nc(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${vg(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=nc(n).body;else{const t=n.parentElement,r=oc(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 Eg=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&&bg(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);yg(t,e.mount,e.modalRef,n,!0);const o=xg(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=xg(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Sg(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=xg(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&&bg(e.modalRef,t),yg(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&&bg(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Cg(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Eg,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=g.useRef({}),f=g.useRef(null),h=g.useRef(null),m=lc(h,d),[b,v]=g.useState(!c),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=ac((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||nc(f.current).body;o.add(S(),e),h.current&&E()})),w=g.useCallback((()=>o.isTopModal(S())),[o]),R=ac((e=>{f.current=e,e&&(c&&w()?E():h.current&&bg(h.current,x))})),L=g.useCallback((()=>{o.remove(S(),x)}),[x,o]);g.useEffect((()=>()=>{L()}),[L]),g.useEffect((()=>{c?C():y&&i||L()}),[c,L,y,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},D=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=qm(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=li({},r,t);return li({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>li({"aria-hidden":!0},e,{onClick:D(e),open:c}),getTransitionProps:()=>({onEnter:rc((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:rc((()=>{v(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}const wg=["onChange","maxRows","minRows","style","value"];function Rg(e){return parseInt(e,10)||0}const Lg={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ag(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Dg=g.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=si(e,wg),{current:s}=g.useRef(null!=a),u=g.useRef(null),c=lc(t,u),d=g.useRef(null),p=g.useRef(0),[f,h]=g.useState({outerHeightStyle:0}),m=g.useCallback((()=>{const t=u.current,r=oc(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,l=Rg(r.paddingBottom)+Rg(r.paddingTop),s=Rg(r.borderBottomWidth)+Rg(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),b=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},v=g.useCallback((()=>{const e=m();Ag(e)||h((t=>b(t,e)))}),[m]);Ju((()=>{const e=()=>{p.current=0,(()=>{const e=m();Ag(e)||P.flushSync((()=>{h((t=>b(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=oc(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()}}),[m]),Ju((()=>{v()})),g.useEffect((()=>{p.current=0}),[a]);return ni.jsxs(g.Fragment,{children:[ni.jsx("textarea",li({value:a,onChange:e=>{p.current=0,s||v(),r&&r(e)},ref:c,rows:o,style:li({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),ni.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:li({},Lg,i,{paddingTop:0,paddingBottom:0})})]})}));function _g({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 Ig=g.createContext(void 0);function Mg(){return g.useContext(Ig)}function Og(e){return ni.jsx(Nf,li({},e,{defaultTheme:Zh,themeId:Ap}))}function Pg(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function kg(e,t=!1){return e&&(Pg(e.value)&&""!==e.value||t&&Pg(e.defaultValue)&&""!==e.defaultValue)}function Tg(e){return Ih("MuiInputBase",e)}var qg=Mh("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Ng=["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"],Fg=(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${ah(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},zg=(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]},$g=om("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Fg})((({theme:e,ownerState:t})=>li({},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",[`&.${qg.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&li({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),jg=om("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zg})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=li({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 li({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] + .${qg.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},[`&.${qg.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"})})),Gg=ni.jsx(Og,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Bg=g.forwardRef((function(e,t){var r;const n=em({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:h=!1,id:m,inputComponent:b="input",inputProps:v={},inputRef:y,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:A,onKeyDown:D,onKeyUp:_,placeholder:I,readOnly:M,renderSuffix:O,rows:P,slotProps:k={},slots:T={},startAdornment:q,type:N="text",value:F}=n,z=si(n,Ng),$=null!=v.value?v.value:F,{current:j}=g.useRef(null!=$),G=g.useRef(),B=g.useCallback((e=>{}),[]),H=mh(G,y,v.ref,B),[W,V]=g.useState(!1),Y=Mg(),U=_g({props:n,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:W,g.useEffect((()=>{!Y&&d&&W&&(V(!1),w&&w())}),[Y,d,W,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=g.useCallback((e=>{kg(e)?K&&K():X&&X()}),[K,X]);uh((()=>{j&&J({value:$})}),[$,J,j]);g.useEffect((()=>{J(G.current)}),[]);let Z=b,Q=v;E&&"input"===Z&&(Q=li(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:x,minRows:S},Q),Z=Dg);g.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=li({},n,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:Y,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:E,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return sc({root:["root",`color${ah(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${ah(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Tg,t)})(ee),re=T.root||s.Root||$g,ne=k.root||u.root||{},oe=T.input||s.Input||jg;return Q=li({},Q,null!=(r=k.input)?r:u.input),ni.jsxs(g.Fragment,{children:[!p&&Gg,ni.jsxs(re,li({},ne,!Tm(re)&&{ownerState:li({},ee,ne.ownerState)},{ref:t,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),L&&L(e)}},z,{className:Cu(te.root,ne.className,l,M&&"MuiInputBase-readOnly"),children:[q,ni.jsx(Ig.Provider,{value:null,children:ni.jsx(oe,li({ownerState:ee,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?G.current:{value:"x"})},name:C,placeholder:I,readOnly:M,required:U.required,rows:P,value:$,onKeyDown:D,onKeyUp:_,type:N},Q,!Tm(oe)&&{as:Z,ownerState:li({},ee,Q.ownerState)},{ref:H,className:Cu(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||G.current;if(null==t)throw new Error(Lp(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(A&&A(e),v.onFocus&&v.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),f,O?O(li({},U,{startAdornment:q})):null]}))]})}));var Hg=Bg;function Wg(e){return Ih("MuiInput",e)}var Vg=li({},qg,Mh("MuiInput",["root","underline","input"]));function Yg(e){return Ih("MuiOutlinedInput",e)}var Ug=li({},qg,Mh("MuiOutlinedInput",["root","notchedOutline","input"]));function Kg(e){return Ih("MuiFilledInput",e)}var Xg=li({},qg,Mh("MuiFilledInput",["root","underline","input"])),Jg=function(e,t){function r(r,n){return ni.jsx(cm,li({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=cm.muiName,g.memo(g.forwardRef(r))}(ni.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Zg=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Qg={entering:{opacity:1},entered:{opacity:1}},eb=g.forwardRef((function(e,t){const r=Qh(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:b=n,TransitionComponent:v=Em}=e,y=si(e,Zg),x=g.useRef(null),S=mh(x,a.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{_m(e);const n=Im({style:m,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=Im({style:m,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),D=E(f);return ni.jsx(v,li({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:D,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:b},y,{children:(e,t)=>g.cloneElement(a,li({style:li({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Qg[e],m,a.props.style),ref:S},t))}))}));var tb=eb;function rb(e){return Ih("MuiBackdrop",e)}Mh("MuiBackdrop",["root","invisible"]);const nb=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ob=om("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>li({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"}))),ib=g.forwardRef((function(e,t){var r,n,o;const i=em({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=tb,transitionDuration:g}=i,b=si(i,nb),v=li({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return sc({root:["root",r&&"invisible"]},rb,t)})(v),x=null!=(r=f.root)?r:c.root;return ni.jsx(m,li({in:p,timeout:g},b,{children:ni.jsx(ob,li({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:s,className:Cu(y.root,l,null==x?void 0:x.className),ownerState:li({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var ab=ib;var lb=Mh("MuiBox",["root"]);const sb=Jh(),ub=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Ip("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(If);return g.forwardRef((function(e,a){const l=qf(r),s=$f(e),{className:u,component:c="div"}=s,d=si(s,jf);return ni.jsx(i,li({as:c,ref:a,className:Cu(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:Ap,defaultTheme:sb,defaultClassName:lb.root,generateClassName:Dh.generate});var cb=ub;function db(e){return Ih("MuiButton",e)}var pb=Mh("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 fb=g.createContext({});var hb=g.createContext(void 0);const mb=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],gb=e=>li({},"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}}),bb=om(og,{shouldForwardProp:e=>tm(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ah(r.color)}`],t[`size${ah(r.size)}`],t[`${r.variant}Size${ah(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 li({},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":li({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:rh(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})`:rh(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})`:rh(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":li({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${pb.focusVisible}`]:li({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${pb.disabled}`]:li({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 ${rh(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"},[`&.${pb.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pb.disabled}`]:{boxShadow:"none"}})),vb=om("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ah(r.size)}`]]}})((({ownerState:e})=>li({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},gb(e)))),yb=om("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ah(r.size)}`]]}})((({ownerState:e})=>li({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},gb(e)))),xb=g.forwardRef((function(e,t){const r=g.useContext(fb),n=g.useContext(hb),o=em({props:Lh(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:b,type:v,variant:y="text"}=o,x=si(o,mb),S=li({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:y}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return li({},a,sc({root:["root",i,`${i}${ah(t)}`,`size${ah(o)}`,`${i}Size${ah(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ah(o)}`],endIcon:["endIcon",`iconSize${ah(o)}`]},db,a))})(S),C=b&&ni.jsx(vb,{className:E.startIcon,ownerState:S,children:b}),w=p&&ni.jsx(yb,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return ni.jsxs(bb,li({ownerState:S,className:Cu(r.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Cu(E.focusVisible,f),ref:t,type:v},x,{classes:E,children:[C,i,w]}))}));var Sb=xb;function Eb(e){return Ih("MuiModal",e)}Mh("MuiModal",["root","hidden","backdrop"]);const Cb=["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"],wb=om("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})=>li({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Rb=om(ab,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Lb=g.forwardRef((function(e,t){var r,n,o,i,a,l;const s=em({name:"MuiModal",props:e}),{BackdropComponent:u=Rb,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:D,slotProps:_,slots:I}=s,M=si(s,Cb),O=li({},s,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:P,getBackdropProps:k,getTransitionProps:T,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=Cg(li({},O,{rootRef:t})),$=li({},O,{exited:F}),j=(e=>{const{open:t,exited:r,classes:n}=e;return sc({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Eb,n)})($),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=T();G.onEnter=e,G.onExited=t}const B=null!=(r=null!=(n=null==I?void 0:I.root)?n:b.Root)?r:wb,H=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:b.Backdrop)?o:u,W=null!=(a=null==_?void 0:_.root)?a:v.root,V=null!=(l=null==_?void 0:_.backdrop)?l:v.backdrop,Y=zm({elementType:B,externalSlotProps:W,externalForwardedProps:M,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:$,className:Cu(d,null==W?void 0:W.className,null==j?void 0:j.root,!$.open&&$.exited&&(null==j?void 0:j.hidden))}),U=zm({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(li({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Cu(null==V?void 0:V.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:$});return L||D||z&&!F?ni.jsx(gg,{ref:q,container:h,disablePortal:E,children:ni.jsxs(B,li({},Y,{children:[!R&&u?ni.jsx(H,li({},U)):null,ni.jsx(mg,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:D,children:g.cloneElement(f,G)})]}))}):null}));var Ab=Lb;function Db(e){return Ih("MuiDivider",e)}var _b=Mh("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Ib=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Mb=om("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})=>li({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)`:rh(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})=>li({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>li({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>li({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>li({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Ob=om("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>li({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)`}))),Pb=g.forwardRef((function(e,t){const r=em({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=si(r,Ib),h=li({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return sc({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Db,n)})(h);return ni.jsx(Mb,li({as:a,className:Cu(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?ni.jsx(Ob,{className:m.wrapper,ownerState:h,children:o}):null}))}));Pb.muiSkipListHighlight=!0;var kb=Pb;const Tb=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],qb=om($g,{shouldForwardProp:e=>tm(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Fg(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return li({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}},[`&.${Xg.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Xg.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xg.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xg.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(.${Xg.disabled}, .${Xg.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xg.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&li({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}))})),Nb=om(jg,{name:"MuiFilledInput",slot:"Input",overridesResolver:zg})((({theme:e,ownerState:t})=>li({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}))),Fb=g.forwardRef((function(e,t){var r,n,o,i;const a=em({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=si(a,Tb),g=li({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return li({},t,sc({root:["root",!r&&"underline"],input:["input"]},Kg,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?ih(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:qb,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Nb;return ni.jsx(Hg,li({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Fb.muiName="Input";var zb=Fb;const $b=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function jb(e){return`scale(${e}, ${e**2})`}const Gb={entering:{opacity:1,transform:jb(1)},entered:{opacity:1,transform:"none"}},Bb="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Hb=g.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Em}=e,b=si(e,$b),v=g.useRef(),y=g.useRef(),x=Qh(),S=g.useRef(null),E=mh(S,o.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{_m(e);const{duration:r,delay:n,easing:o}=Im({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:Bb?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),D=C((e=>{const{duration:t,delay:r,easing:n}=Im({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Bb?o:.666*o,delay:Bb?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=jb(.75),c&&c(e)})),_=C(d);return g.useEffect((()=>()=>{clearTimeout(v.current)}),[]),ni.jsx(m,li({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:D,onExited:_,onExiting:A,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,y.current||0)),r&&r(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,t)=>g.cloneElement(o,li({style:li({opacity:0,transform:jb(.75),visibility:"exited"!==e||a?void 0:"hidden"},Gb[e],f,o.props.style),ref:E},t))}))}));Hb.muiSupportAuto=!0;var Wb=Hb;const Vb=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Yb=om($g,{shouldForwardProp:e=>tm(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Fg(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})`),li({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"},[`&.${Vg.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Vg.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(.${Vg.disabled}, .${Vg.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Vg.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Ub=om(jg,{name:"MuiInput",slot:"Input",overridesResolver:zg})({}),Kb=g.forwardRef((function(e,t){var r,n,o,i;const a=em({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=si(a,Vb),b=(e=>{const{classes:t,disableUnderline:r}=e;return li({},t,sc({root:["root",!r&&"underline"],input:["input"]},Wg,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?ih(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:s.Root)?r:Yb,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:Ub;return ni.jsx(Hg,li({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));Kb.muiName="Input";var Xb=Kb;function Jb(e){return Ih("MuiLink",e)}var Zb=Mh("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Qb={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var ev=({theme:e,ownerState:t})=>{const r=(e=>Qb[e]||e)(t.color),n=Fp(e,`palette.${r}`,!1)||t.color,o=Fp(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:rh(n,.4)};const tv=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],rv=om(dg,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ah(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>li({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&li({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:ev({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"},[`&.${Zb.focusVisible}`]:{outline:"auto"}}))),nv=g.forwardRef((function(e,t){const r=em({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=r,p=si(r,tv),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:b}=Rh(),[v,y]=g.useState(!1),x=mh(t,b),S=li({},r,{color:o,component:i,focusVisible:v,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return sc({root:["root",`underline${ah(o)}`,"button"===r&&"button",n&&"focusVisible"]},Jb,t)})(S);return ni.jsx(rv,li({color:o,className:Cu(E.root,n),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&y(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&y(!0),l&&l(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(Qb).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var ov=nv;var iv=g.createContext({});function av(e){return Ih("MuiList",e)}Mh("MuiList",["root","padding","dense","subheader"]);const lv=["children","className","component","dense","disablePadding","subheader"],sv=om("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})=>li({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var uv=g.forwardRef((function(e,t){const r=em({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=si(r,lv),c=g.useMemo((()=>({dense:a})),[a]),d=li({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return sc({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},av,t)})(d);return ni.jsx(iv.Provider,{value:c,children:ni.jsxs(sv,li({as:i,className:Cu(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function cv(e){return Ih("MuiListItemIcon",e)}var dv=Mh("MuiListItemIcon",["root","alignItemsFlexStart"]);const pv=["className"],fv=om("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})=>li({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var hv=g.forwardRef((function(e,t){const r=em({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=si(r,pv),i=li({},r,{alignItems:g.useContext(iv).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return sc({root:["root","flex-start"===t&&"alignItemsFlexStart"]},cv,r)})(i);return ni.jsx(fv,li({className:Cu(a.root,n),ownerState:i,ref:t},o))}));var mv=Mh("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const gv=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function bv(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function vv(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function yv(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 xv(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&yv(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Sv=g.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=si(e,gv),p=g.useRef(null),f=g.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});uh((()=>{n&&p.current.focus()}),[n]),g.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(lh(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=mh(p,t);let m=-1;g.Children.forEach(i,((e,t)=>{g.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const b=g.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),g.cloneElement(e,t)}return e}));return ni.jsx(uv,li({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=lh(t).activeElement;if("ArrowDown"===r)e.preventDefault(),xv(t,n,s,l,bv);else if("ArrowUp"===r)e.preventDefault(),xv(t,n,s,l,vv);else if("Home"===r)e.preventDefault(),xv(t,null,s,l,bv);else if("End"===r)e.preventDefault(),xv(t,null,s,l,vv);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&yv(n,o);o.previousKeyMatched&&(s||xv(t,n,!1,l,bv,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:b}))}));function Ev(e){return Ih("MuiPopover",e)}Mh("MuiPopover",["root","paper"]);const Cv=["onEntering"],wv=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Rv=["slotProps"];function Lv(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Av(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Dv(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function _v(e){return"function"==typeof e?e():e}const Iv=om(Ab,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mv=om(km,{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 Ov=g.forwardRef((function(e,t){var r,n,o;const i=em({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:h=8,marginThreshold:m=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Wb,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=si(i.TransitionProps,Cv),A=si(i,wv),D=null!=(r=null==x?void 0:x.paper)?r:v,_=g.useRef(),I=mh(_,D.ref),M=li({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:D,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),O=(e=>{const{classes:t}=e;return sc({root:["root"],paper:["paper"]},Ev,t)})(M),P=g.useCallback((()=>{if("anchorPosition"===c)return u;const e=_v(l),t=(e&&1===e.nodeType?e:lh(_.current).body).getBoundingClientRect();return{top:t.top+Lv(t,s.vertical),left:t.left+Av(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=g.useCallback((e=>({vertical:Lv(e,S.vertical),horizontal:Av(e,S.horizontal)})),[S.horizontal,S.vertical]),T=g.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=k(t);if("none"===c)return{top:null,left:null,transformOrigin:Dv(r)};const n=P();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=sh(_v(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Dv(r)}}),[l,c,P,k,m]),[q,N]=g.useState(b),F=g.useCallback((()=>{const e=_.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);g.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);g.useEffect((()=>{b&&F()})),g.useImperativeHandle(a,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),g.useEffect((()=>{if(!b)return;const e=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=sh(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,b,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const $=f||(l?lh(_v(l)).body:void 0),j=null!=(n=null==y?void 0:y.root)?n:Iv,G=null!=(o=null==y?void 0:y.paper)?o:Mv,B=zm({elementType:G,externalSlotProps:li({},D,{style:q?D.style:li({},D.style,{opacity:0})}),additionalProps:{elevation:h,ref:I},ownerState:M,className:Cu(O.paper,null==D?void 0:D.className)}),H=zm({elementType:j,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:$,open:b},ownerState:M,className:Cu(O.root,p)}),{slotProps:W}=H,V=si(H,Rv);return ni.jsx(j,li({},V,!Tm(j)&&{slotProps:W,disableScrollLock:R},{children:ni.jsx(E,li({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:ni.jsx(G,li({},B,{children:d}))}))}))}));function Pv(e){return Ih("MuiMenu",e)}Mh("MuiMenu",["root","paper","list"]);const kv=["onEntering"],Tv=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],qv={vertical:"top",horizontal:"right"},Nv={vertical:"top",horizontal:"left"},Fv=om(Ov,{shouldForwardProp:e=>tm(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zv=om(Mv,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$v=om(Sv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var jv=g.forwardRef((function(e,t){var r,n;const o=em({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:h="auto",TransitionProps:{onEntering:m}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=o,x=si(o.TransitionProps,kv),S=si(o,Tv),E=Qh(),C="rtl"===E.direction,w=li({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:b}),R=(e=>{const{classes:t}=e;return sc({root:["root"],paper:["paper"],list:["list"]},Pv,t)})(w),L=i&&!s&&d,A=g.useRef(null);let D=-1;g.Children.map(a,((e,t)=>{g.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===D)&&(D=t))}));const _=null!=(r=v.paper)?r:zv,I=null!=(n=y.paper)?n:p,M=zm({elementType:v.root,externalSlotProps:y.root,ownerState:w,className:[R.root,l]}),O=zm({elementType:_,externalSlotProps:I,ownerState:w,className:R.paper});return ni.jsx(Fv,li({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?qv:Nv,slots:{paper:_,root:v.root},slotProps:{root:M,paper:O},open:d,ref:t,transitionDuration:h,TransitionProps:li({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,E),m&&m(e,t)}},x),ownerState:w},S,{classes:f,children:ni.jsx($v,li({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===D||s),autoFocusItem:L,variant:b},u,{className:Cu(R.list,u.className),children:a}))}))}));function Gv(e){return Ih("MuiMenuItem",e)}var Bv=Mh("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Hv=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Wv=om(og,{shouldForwardProp:e=>tm(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})=>li({},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"}},[`&.${Bv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rh(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Bv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rh(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Bv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rh(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})`:rh(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Bv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Bv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${_b.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${_b.inset}`]:{marginLeft:52},[`& .${mv.root}`]:{marginTop:0,marginBottom:0},[`& .${mv.inset}`]:{paddingLeft:36},[`& .${dv.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&li({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${dv.root} svg`]:{fontSize:"1.25rem"}}))));var Vv=g.forwardRef((function(e,t){const r=em({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=si(r,Hv),f=g.useContext(iv),h=g.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=g.useRef(null);uh((()=>{n&&m.current&&m.current.focus()}),[n]);const b=li({},r,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return li({},a,sc({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Gv,a))})(r),y=mh(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),ni.jsx(iv.Provider,{value:h,children:ni.jsx(Wv,li({ref:y,role:u,tabIndex:x,component:o,focusVisibleClassName:Cu(v.focusVisible,s),className:Cu(v.root,d)},p,{ownerState:b,classes:v}))})}));function Yv(e){return Ih("MuiNativeSelect",e)}var Uv=Mh("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Kv=["className","disabled","error","IconComponent","inputRef","variant"],Xv=({ownerState:e,theme:t})=>li({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":li({},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"},[`&.${Uv.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}}),Jv=om("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:tm,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Uv.multiple}`]:t.multiple}]}})(Xv),Zv=({ownerState:e,theme:t})=>li({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Uv.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Qv=om("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ah(r.variant)}`],r.open&&t.iconOpen]}})(Zv),ey=g.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=si(e,Kv),u=li({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return sc({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ah(r)}`,i&&"iconOpen",n&&"disabled"]},Yv,t)})(u);return ni.jsxs(g.Fragment,{children:[ni.jsx(Jv,li({ownerState:u,className:Cu(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:ni.jsx(Qv,{as:i,ownerState:u,className:c.icon})]})}));var ty,ry=ey;const ny=["children","classes","className","label","notched"],oy=om("fieldset",{shouldForwardProp:tm})({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%"}),iy=om("legend",{shouldForwardProp:tm})((({ownerState:e,theme:t})=>li({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&&li({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 ay=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ly=om($g,{shouldForwardProp:e=>tm(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Fg})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return li({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ug.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ug.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Ug.focused} .${Ug.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ug.error} .${Ug.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ug.disabled} .${Ug.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&li({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),sy=om((function(e){const{className:t,label:r,notched:n}=e,o=si(e,ny),i=null!=r&&""!==r,a=li({},e,{notched:n,withLabel:i});return ni.jsx(oy,li({"aria-hidden":!0,className:t,ownerState:a},o,{children:ni.jsx(iy,{ownerState:a,children:i?ni.jsx("span",{children:r}):ty||(ty=ni.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}})),uy=om(jg,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zg})((({theme:e,ownerState:t})=>li({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}))),cy=g.forwardRef((function(e,t){var r,n,o,i,a;const l=em({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,b=si(l,ay),v=(e=>{const{classes:t}=e;return li({},t,sc({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Yg,t))})(l),y=Mg(),x=_g({props:l,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=li({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:m}),E=null!=(r=null!=(n=h.root)?n:s.Root)?r:ly,C=null!=(o=null!=(i=h.input)?i:s.Input)?o:uy;return ni.jsx(Hg,li({slots:{root:E,input:C},renderSuffix:e=>ni.jsx(sy,{ownerState:S,className:v.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=ni.jsxs(g.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},b,{classes:li({},v,{notchedOutline:null})}))}));cy.muiName="Input";var dy=cy;function py(e){return Ih("MuiSelect",e)}var fy,hy=Mh("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const my=["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"],gy=om("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${hy.select}`]:t.select},{[`&.${hy.select}`]:t[r.variant]},{[`&.${hy.error}`]:t.error},{[`&.${hy.multiple}`]:t.multiple}]}})(Xv,{[`&.${hy.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),by=om("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ah(r.variant)}`],r.open&&t.iconOpen]}})(Zv),vy=om("input",{shouldForwardProp:e=>rm(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 yy(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function xy(e){return null==e||"string"==typeof e&&!e.trim()}const Sy=g.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:b,MenuProps:v={},multiple:y,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:A,renderValue:D,SelectDisplayProps:_={},tabIndex:I,value:M,variant:O="standard"}=e,P=si(e,my),[k,T]=fh({controlled:M,default:c,name:"Select"}),[q,N]=fh({controlled:L,default:u,name:"Select"}),F=g.useRef(null),z=g.useRef(null),[$,j]=g.useState(null),{current:G}=g.useRef(null!=L),[B,H]=g.useState(),W=mh(t,m),V=g.useCallback((e=>{z.current=e,e&&j(e)}),[]),Y=null==$?void 0:$.parentNode;g.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),g.useEffect((()=>{u&&q&&$&&!G&&(H(a?null:Y.clientWidth),z.current.focus())}),[$,a]),g.useEffect((()=>{i&&z.current.focus()}),[i]),g.useEffect((()=>{if(!b)return;const e=lh(z.current).getElementById(b);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[b]);const U=(e,t)=>{e?R&&R(t):C&&C(t),G||(H(a?null:Y.clientWidth),N(e))},K=g.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(y){r=Array.isArray(k)?k.slice():[];const t=k.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),k!==r&&(T(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),E(o,e)}y||U(!1,t)}},J=null!==$&&q;let Z,Q;delete P["aria-invalid"];const ee=[];let te=!1;(kg({value:k})||p)&&(D?Z=D(k):te=!0);const re=K.map((e=>{if(!g.isValidElement(e))return null;let t;if(y){if(!Array.isArray(k))throw new Error(Lp(2));t=k.some((t=>yy(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=yy(k,e.props.value),t&&te&&(Q=e.props.children);return g.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=y?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=B;!a&&G&&$&&(oe=Y.clientWidth),ne=void 0!==I?I:d?null:0;const ie=_.id||(x?`mui-component-select-${x}`:void 0),ae=li({},e,{variant:O,value:k,open:J,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return sc({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ah(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},py,t)})(ae),se=li({},v.PaperProps,null==(r=v.slotProps)?void 0:r.paper),ue=ph();return ni.jsxs(g.Fragment,{children:[ni.jsx(gy,li({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":[b,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),U(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:x}}),S(e))},onFocus:w},_,{ownerState:ae,className:Cu(_.className,le.select,s),id:ie,children:xy(Z)?fy||(fy=ni.jsx("span",{className:"notranslate",children:"​"})):Z})),ni.jsx(vy,li({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},P)),ni.jsx(by,{as:h,className:le.icon,ownerState:ae}),ni.jsx(jv,li({id:`menu-${x||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:li({"aria-labelledby":b,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:li({},v.slotProps,{paper:li({},se,{style:li({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var Ey=Sy;const Cy=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],wy=["root"],Ry={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>tm(e)&&"variant"!==e,slot:"Root"},Ly=om(Xb,Ry)(""),Ay=om(dy,Ry)(""),Dy=om(zb,Ry)(""),_y=g.forwardRef((function(e,t){const r=em({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Jg,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:b=!1,native:v=!1,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=r,R=si(r,Cy),L=v?ry:Ey,A=_g({props:r,muiFormControl:Mg(),states:["variant","error"]}),D=A.variant||w,_=li({},r,{variant:D,classes:i}),I=(e=>{const{classes:t}=e;return t})(_),M=si(I,wy),O=d||{standard:ni.jsx(Ly,{ownerState:_}),outlined:ni.jsx(Ay,{label:f,ownerState:_}),filled:ni.jsx(Dy,{ownerState:_})}[D],P=mh(t,O.ref);return ni.jsx(g.Fragment,{children:g.cloneElement(O,li({inputComponent:L,inputProps:li({children:o,error:A.error,IconComponent:u,variant:D,type:void 0,multiple:b},v?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:li({id:c},C)},p,{classes:p?ih(M,p.classes):M},d?d.props.inputProps:{})},b&&v&&"outlined"===D?{notched:!0}:{},{ref:P,className:Cu(O.props.className,a,I.root)},!d&&{variant:D},R))})}));_y.muiName="Select";var Iy=_y,My=(e={})=>b.createElement(pp,{...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.createElement("rect",{stroke:Kd.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Oy={MuiAccordion:{styleOverrides:{root:{backgroundColor:Kd.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Kd.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:b.createElement(up,{"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 ${Kd.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Kd.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`,borderRadius:ep,backgroundColor:Kd.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 ${Kd.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Kd.WHITE,color:Kd.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:ep},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Kd.GREYSCALE_0_15,backgroundColor:Kd.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Kd.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Kd.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Kd.GREEN_PALE},"&:active":{backgroundColor:Kd.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Kd.GREEN_PALE,boxShadow:`0 0 0 3px ${rh(Kd.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Kd.BLUE_PALE},"&:active":{backgroundColor:Kd.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Kd.BLUE_PALE,boxShadow:`0 0 0 3px ${rh(Kd.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:ep,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Kd.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Kd.GREYSCALE_0_15,backgroundColor:Kd.GREYSCALE_100_60,"&:active":{backgroundColor:Kd.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Kd.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Kd.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Kd.PURPLE,"&.Mui-focusVisible":{borderColor:Kd.PURPLE,boxShadow:`0 0 0 3px ${rh(Kd.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Kd.GREEN,"&.Mui-focusVisible":{borderColor:Kd.GREEN,boxShadow:`0 0 0 3px ${rh(Kd.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Kd.BLUE,"&.Mui-focusVisible":{borderColor:Kd.BLUE,boxShadow:`0 0 0 3px ${rh(Kd.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Kd.ORANGE,"&.Mui-focusVisible":{borderColor:Kd.ORANGE,boxShadow:`0 0 0 3px ${rh(Kd.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Kd.RED,"&.Mui-focusVisible":{borderColor:Kd.RED,boxShadow:`0 0 0 3px ${rh(Kd.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Kd.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Kd.PURPLE_PALE},"&:active":{backgroundColor:Kd.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Kd.PURPLE_PALE,boxShadow:`0 0 0 3px ${rh(Kd.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Kd.GREEN_PALE},"&:active":{backgroundColor:Kd.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Kd.GREEN_PALE,boxShadow:`0 0 0 3px ${rh(Kd.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Kd.BLUE_PALE},"&:active":{backgroundColor:Kd.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Kd.BLUE_PALE,boxShadow:`0 0 0 3px ${rh(Kd.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Kd.ORANGE_PALE},"&:active":{backgroundColor:Kd.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Kd.ORANGE_PALE,boxShadow:`0 0 0 3px ${rh(Kd.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Kd.RED_PALE},"&:active":{backgroundColor:Kd.RED_DARK},"&.Mui-focusVisible":{borderColor:Kd.RED_PALE,boxShadow:`0 0 0 3px ${rh(Kd.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:Kd.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Kd.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ep,boxShadow:`inset 0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:b.createElement(dp,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Xd,borderRadius:ep,color:Kd.TEXT_PRIMARY,backgroundColor:Kd.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Kd.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Kd.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Kd.GREYSCALE_0_05,color:Kd.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Kd.GREEN,borderColor:Kd.GREEN},"&.MuiChip-outlinedInfo":{color:Kd.BLUE,borderColor:Kd.BLUE},"&.MuiChip-outlinedWarning":{color:Kd.ORANGE,borderColor:Kd.ORANGE},"&.MuiChip-outlinedError":{color:Kd.RED,borderColor:Kd.RED}},outlined:{border:`solid 1px ${Kd.GREYSCALE_0_15}`,backgroundColor:Kd.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ep,boxShadow:"none",backgroundColor:Kd.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Kd.GREEN,borderColor:Kd.GREEN},outlinedSecondary:{color:Kd.BLUE,borderColor:Kd.BLUE},label:{fontFamily:ip.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:b.createElement(dp,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:b.createElement(up,{"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:ep},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ep,fontSize:Jd,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Kd.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Kd.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Kd.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Kd.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Kd.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:ep,border:`solid 1px ${Kd.GREYSCALE_0_15}`,color:Kd.GREYSCALE_0_60,marginRight:0,width:Qd,height:Qd},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Kd.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ep,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Kd.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Jd}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Xd,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Kd.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Kd.GREYSCALE_25,fontSize:Xd,fontFamily:ip.FONT_FAMILY,fontWeight:np,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Kd.TEXT_PRIMARY},"&.Mui-error":{color:Kd.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Kd.TEXT_SECONDARY,content:"'(optional)'",fontWeight:rp,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Kd.TEXT_SECONDARY,content:"'(required)'",fontWeight:rp,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Jd,lineHeight:"16px",backgroundColor:Kd.WHITE,borderRadius:ep,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Kd.GREYSCALE_0_05}`,borderColor:Kd.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Kd.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Kd.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Kd.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Kd.RED}`,boxShadow:`0px 0px 0px 1px ${Kd.RED}, inset 0 2px 0 0 ${Kd.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Kd.GREYSCALE_0_10}`,borderColor:Kd.GREYSCALE_0_10,backgroundColor:Kd.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Kd.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Kd.GREYSCALE_0_15,borderRadius:ep,boxShadow:`inset 0 2px 0 0 ${Kd.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>b.createElement(up,{...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:Kd.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Kd.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Kd.GREYSCALE_0_03},"&:active":{backgroundColor:Kd.GREYSCALE_0_10},"&:focus":{backgroundColor:Kd.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Kd.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Kd.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Kd.GREYSCALE_0_30,"&:hover":{backgroundColor:Kd.GREYSCALE_0_0,borderColor:Kd.GREYSCALE_0_15},"& ~svg":{color:Kd.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Kd.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ep}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Kd.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Kd.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Jd,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Xd,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Xd,fontWeight:np,color:Kd.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:np}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Kd.GREYSCALE_0_15}, 0px 0px 0px 1px ${Kd.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:b.createElement(mp,null),checkedIcon:b.createElement(gp,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Kd.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Kd.GREEN_PALE,boxShadow:`0 0 0 3px ${rh(Kd.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Kd.BLUE_PALE,boxShadow:`0 0 0 3px ${rh(Kd.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Kd.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Kd.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:b.createElement(My,null),checkedIcon:b.createElement(fp,null),indeterminateIcon:b.createElement(hp,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ep,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Kd.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Kd.GREYSCALE_0_55,color:Kd.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:Kd.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Kd.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Kd.GREYSCALE_0_55,"&:hover":{color:Kd.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:Kd.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Kd.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Jd,color:Kd.TEXT_PRIMARY,lineHeight:"16px",fontWeight:np},secondary:{fontSize:Xd,color:Kd.GREYSCALE_45,fontWeight:rp,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Jd,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Kd.GREYSCALE_0_03},"&:active":{backgroundColor:Kd.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Jd,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Kd.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Xd,borderBottom:`solid 1px ${Kd.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Jd,color:Kd.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Kd.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Kd.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Kd.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:Kd.RED}}},"&.Mui-focusVisible":{backgroundColor:Kd.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:Kd.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:Kd.GREEN,height:"24px","&.Mui-disabled":{color:Kd.GREYSCALE_0_15}},rail:{backgroundColor:Kd.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Kd.GREYSCALE_0_05}`,borderRadius:ep,boxShadow:`inset 0px 0px 0px 1px ${Kd.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Kd.GREYSCALE_0_05}`,borderRadius:ep},thumb:{height:"16px",width:"16px",borderRadius:ep,backgroundColor:Kd.WHITE,boxShadow:`0px 1px 2px 0px ${Kd.GREYSCALE_0_15}, 0px 0px 0px 1px ${Kd.GREYSCALE_0_05}`,"&:hover":{borderRadius:ep,boxShadow:`0 2px 4px 0 ${Kd.GREYSCALE_0_30}, 0 0 0 1px ${Kd.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Kd.GREYSCALE_0_15}, 0 0 0 1px ${Kd.GREYSCALE_0_06}, 0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Kd.GREYSCALE_0_15}, 0 0 0 1px ${Kd.GREYSCALE_0_06}, 0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Kd.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Kd.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Kd.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Kd.GREYSCALE_0_15},markLabel:{color:Kd.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Kd.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Kd.WHITE,color:Kd.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:Kd.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:Kd.GREEN_PALE,boxShadow:`0 0 0 3px ${rh(Kd.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Kd.BLUE_PALE,boxShadow:`0 0 0 3px ${rh(Kd.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Kd.GREYSCALE_0_15,borderRadius:ep},thumb:{height:"16px",width:"16px",borderRadius:ep,backgroundColor:Kd.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:Jd,fontWeight:np,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Kd.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`,backgroundColor:Kd.GREYSCALE_0_03,borderRadius:ep},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Kd.GREYSCALE_25,"&.Mui-selected":{color:Kd.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Jd,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Kd.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Kd.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Kd.GREYSCALE_85}`,borderRight:`1px solid ${Kd.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:np,backgroundColor:Kd.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:Kd.GREYSCALE_98,borderBottom:`1px solid ${Kd.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Kd.GREYSCALE_85}`,borderTop:`1px solid ${Kd.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Kd.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Kd.GREYSCALE_0_05,"&:hover":{backgroundColor:Kd.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Kd.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>b.createElement(bp,{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 ${Kd.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Jd,borderRadius:ep,padding:"7px 16px",border:`1px solid ${Kd.GREYSCALE_0_15}`,backgroundColor:Kd.GREYSCALE_100_60,color:Kd.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Kd.GREYSCALE_0_10,border:`1px solid ${Kd.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Kd.GREYSCALE_0_03,border:`1px solid ${Kd.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Kd.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Kd.MISC_FOCUS_BORDER}`,border:`1px solid ${Kd.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Kd.GREYSCALE_25,backgroundColor:Kd.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Kd.GREYSCALE_0_10,border:`1px solid ${Kd.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Xd,height:24,width:24,padding:7},sizeLarge:{fontSize:Zd,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Jd,borderRadius:ep}}},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:Kd.GREYSCALE_20},tooltip:{backgroundColor:Kd.GREYSCALE_20,fontSize:Xd,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Py={mode:"light",primary:{light:Kd.GREEN_PALE,main:Kd.GREEN,dark:Kd.GREEN_DARK,contrastText:Kd.WHITE},secondary:{light:Kd.BLUE_PALE,main:Kd.BLUE,dark:Kd.BLUE_DARK,contrastText:Kd.WHITE},error:{light:Kd.RED_PALE,main:Kd.RED,dark:Kd.RED_DARK,contrastText:Kd.WHITE},warning:{light:Kd.ORANGE_PALE,main:Kd.ORANGE,dark:Kd.ORANGE_DARK,contrastText:Kd.WHITE},success:{light:Kd.GREEN_PALE,main:Kd.GREEN,dark:Kd.GREEN_DARK,contrastText:Kd.WHITE},info:{light:Kd.BLUE_PALE,main:Kd.BLUE,dark:Kd.BLUE_DARK,contrastText:Kd.WHITE},text:{primary:Kd.TEXT_PRIMARY,secondary:Kd.TEXT_SECONDARY,disabled:Kd.GREYSCALE_0_30},action:{hover:Kd.GREYSCALE_0_03,hoverOpacity:.05,selected:Kd.GREYSCALE_0_05,focus:Kd.MISC_FOCUS_BORDER},amethyst:{main:Kd.PURPLE,light:Kd.PURPLE_PALE,dark:Kd.PURPLE_DARK,contrastText:Kd.WHITE},background:{paper:Kd.WHITE,default:Kd.GREYSCALE_95},divider:Kd.GREYSCALE_0_15},ky=e=>({components:Oy,palette:Py,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:Jd,fontWeightLight:tp,fontWeightRegular:rp,fontWeightMedium:np,fontWeightBold:op,htmlFontSize:Jd,fontFamily:ip.FONT_FAMILY,button:{fontWeight:np,fontSize:Jd,textTransform:"none"},body1:{fontSize:Zd,lineHeight:"24px"},body2:{fontSize:Jd,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Qd,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Zd,fontWeight:np,lineHeight:"16px"},h6:{fontSize:Jd,fontWeight:np,lineHeight:"16px"},caption:{color:Kd.TEXT_SECONDARY},subtitle1:{fontSize:Jd,color:Kd.TEXT_SECONDARY},subtitle2:{fontSize:Xd,color:Kd.TEXT_SECONDARY}},shape:{borderRadius:ep}}),Ty={...Ud,MISC_FOCUS_BORDER:Kd.MISC_FOCUS_BORDER},qy=ky().palette,Ny={TEXT:qy.text.primary,DISABLED:qy.text.disabled,HOVER:qy.action.hover,WHITE:Ty.GREYSCALE_100,BORDER_LIGHT:Ty.GREYSCALE_90,BORDER_MEDIUM:Ty.GREYSCALE_85,BORDER_HEAVY:Ty.GREYSCALE_50,DARK_MODE_TEXT:Ty.GREYSCALE_95,DARK_MODE_BORDER:Ty.GREYSCALE_95,DARK_MODE_DISABLED:Ty.GREYSCALE_70,DARK_MODE_BACKGROUND:Ty.GREYSCALE_20},Fy=(e,t)=>{const r=xn(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()},zy=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,$y=e=>{const t=(e=>{const t=zy.exec(e);if(t){const[,e,r,n,o]=t;return Wr(+r,+n,+o,+e/255)}return Wr(e)})(e);return Number.isNaN(t.r)?null:t.toString()},jy=e=>{e.stopPropagation(),e.preventDefault()},Gy=om(cb,{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)":{[`& .${xt}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${xt}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),By=om(cb)({position:"absolute",height:"100%",width:"3px"}),Hy=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=v((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=n||o?St.PixelsMin:St.PixelsMinTable,f=r?0:1,h={left:n&&!c?d.columnWidth-f:"100%"},m=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:Et.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},y=e=>{const t=e.clientX-d.initX;m(t)},x=e=>{jy(e),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",x),g()},S=e=>{const t=e.touches[0].clientX-d.initX;m(t)},E=e=>{jy(e),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E),g()},C=!n&&s?e=>{if(e.key===vt.LEFT||e.key===vt.RIGHT){jy(e);const t=d.columnWidth-d.initWidth,r=5,n=e.key===vt.LEFT?t-r:t+r;m(n)}else e.key===vt.SPACE||e.key===vt.ENTER?(jy(e),s(e),g()):e.key===vt.ESC&&(jy(e),s(e),m(d.initWidth))}:void 0;return b.createElement(Gy,{className:yt,isLastColumn:r,hoverColor:i,style:h,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",y),document.addEventListener("mouseup",x),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:Et.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",S),document.addEventListener("touchend",E),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:C,onBlur:s,"data-testid":yt},b.createElement(By,{className:xt}))};function Wy(){return Wy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wy.apply(this,arguments)}function Vy(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){Yy(e,t,r[t])}))}return e}function Yy(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uy(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Ky(e){return"large"===e?"20px":"small"===e?"12px":"inherit"===e?"null":"16px"}var Xy=function(e){var t=e.d,r=e.size,n=e.style,o=Uy(e,["d","size","style"]);return b.createElement("i",Wy({style:Vy({fontSize:Ky(r),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n)},o),b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},b.createElement("path",{d:t})))};function Jy(e){return b.createElement(Xy,Object.assign({d:"M15,4 L1,4 L1,2 L15,2 L15,4 Z M15,14 L1,14 L1,12 L15,12 L15,14 Z M15,9 L1,9 L1,7 L15,7 L15,9 Z"},e))}function Zy(){return Zy=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},Zy.apply(this,arguments)}const Qy=om(cb,{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"}))),ex=om(Jy,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),tx=om(jv)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),rx=om(kb)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),nx=om(Vv)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),ox=om(Vv,{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")}))),ix=om("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"}))),ax=om("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),lx=om(dg)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),sx=om(hv)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function ux(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const cx=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ux(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let dx={};const px=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=y(!1),p=L(null),f=A((e=>{e.stopPropagation(),d(!1)}),[d]);return b.createElement(b.Fragment,null,b.createElement(ox,{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),dx={}),null!=a&&a.length&&(d(!0),dx[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&b.createElement(ix,null),b.createElement(ax,null,b.createElement(sx,null,b.createElement(o,null)),b.createElement(lx,{variant:"body2"},n)),null!=a&&a.length?b.createElement(cx,null):null),(null==a?void 0:a.length)&&b.createElement(hx,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=dx,h.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(m).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var h,m},fx=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&b.createElement(nx,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>b.createElement(px,Zy({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),hx=({anchorEl:e,open:t,onClose:r,ariaLabel:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?b.createElement(tx,Zy({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)=>[fx({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?b.createElement(rx,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,mx={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},gx=(e,t)=>e.some((e=>t[e]>0));function bx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vx=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"}))));function yx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xx=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){yx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"}))));function Sx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ex=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Sx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"}))));function Cx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wx=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Cx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function Rx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Lx=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Rx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"}))));function Ax(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Dx=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ax(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"}))));function _x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ix=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){_x(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function Mx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ox=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Mx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function Px(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kx=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Px(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function Tx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qx=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Tx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"}))));let Nx=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const Fx=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(r[Nx.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:vx,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:wx,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[Nx.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),l()},icon:Lx,enabled:!0}]}]),r[Nx.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:qx,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectAll())},icon:Dx,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectPossible())},icon:kx,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectAlternative())},icon:Ix,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectExcluded())},icon:Ox,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.clear())},icon:xx,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[Nx.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:Ex,enabled:!0}]}]),p},zx=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const h=Yo({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:v}=n,{fieldInstance:x,selectionActionsEnabledStatus:S,resetSelectionActionsEnabledStatus:E,updateSelectionActionsEnabledStatus:C}=(({headerData:e,app:t})=>{const[r,n]=y(null),[o,i]=y(mx);return D((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(n).catch(console.error)}),[t,e]),{fieldInstance:r,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:A((()=>i(mx)),[]),updateSelectionActionsEnabledStatus:A((t=>{const r=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));r&&i({canSelectAll:gx(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:gx(["qSelected"],r.qStateCounts),canSelectPossible:gx(["qOption"],r.qStateCounts),canSelectAlternative:gx(["qAlternative"],r.qStateCounts),canSelectExcluded:gx(["qAlternative","qExcluded"],r.qStateCounts)})}),[e.label,i])}})({headerData:n,app:null==d?void 0:d.app}),w=A((()=>{const e=g?{qLibraryId:g,type:"dimension"}:v;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,v,g]);D((()=>{e||(E(),null!=d&&d.model&&d.model.getLayout().then((e=>{C(e)})).catch((e=>console.error(e))))}),[e,E,C,null==d?void 0:d.model]);const R=A((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?b.createElement(Qy,{rightAligned:"right"===m,shouldShowMenuIcon:s},s&&b.createElement(ex,{size:"small",className:bt,"data-testid":bt,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},b.createElement(Jy,null)),b.createElement(hx,{open:e,anchorEl:r.current,onClose:R,menuGroups:Fx({headerData:n,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:w,interactions:i,fieldInstance:x,selectionActionsEnabledStatus:S,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},$x=e=>e.isDark?{background:e.color,borderColor:Ny.DARK_MODE_BORDER,color:Ny.DARK_MODE_TEXT,disabledColor:Ny.DARK_MODE_DISABLED,iconColor:Ny.DARK_MODE_TEXT}:{background:e.color,borderColor:Ny.BORDER_MEDIUM,color:Ny.TEXT,disabledColor:Ny.DISABLED},jx=om(cb,{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}`}))),Gx=om(Iy,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),Bx=om(Sb,{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)}))),Hx=om(dg)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),Wx=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=v((()=>$x(n.background)),[n]);if(!r.active)return null;const a=o?b.createElement(jx,{footerStyle:i},e):null;return t?k.createPortal(e,t):a},Vx=_({}),Yx=()=>x(Vx),Ux=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,y=v((()=>$x(p.background)),[p]),x=o?o.getBoundingClientRect().width:h.width,S=Yo({translator:d}),E=v((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:S,theme:p,interactions:f,rect:h,layout:m,footerStyle:y,tabIndex:g,width:x})),[t,r,n,o,i,a,l,s,u,c,S,p,f,h,m,y,g,x]);return b.createElement(Vx.Provider,{value:E},e)};let Kx=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Xx=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 Jx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Zx=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Jx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function Qx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const eS=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Qx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"}))));function tS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rS=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){tS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})))),nS={FirstPage:eS,PreviousPage:Zx,NextPage:cx,LastPage:rS,FirstPageRTL:rS,PreviousPageRTL:cx,NextPageRTL:Zx,LastPageRTL:eS},oS=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=Yx(),u=nS[`${r}${"rtl"===n?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},iS=()=>{const{pageInfo:e,width:t}=Yx(),r=0===e.page,{IconComponent:n,styledProps:o}=oS({type:Kx.FirstPage,disabledCondition:r,pageNumber:0});return t<=Xx.FirstPage?null:b.createElement(Bx,o,b.createElement(n,{height:gt}))},aS=(e,t,r=!1)=>{r&&e.key===vt.TAB&&!e.shiftKey&&(jy(e),((e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)})(e.target,t,!1))},lS=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=Yx(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=oS({type:Kx.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>aS(e,t,n):null;return o<=Xx.LastPage?null:b.createElement(Bx,Zy({},l,{onKeyDown:s}),b.createElement(a,{height:gt}))},sS=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=Yx(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=oS({type:Kx.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>Xx.FirstPage&&o>Xx.LastPage)&&t.enabled?e=>aS(e,t,n):null;return b.createElement(Bx,Zy({},l,{onKeyDown:s}),b.createElement(a,{height:gt}))},uS=()=>{const{pageInfo:e}=Yx(),t=0===e.page,{IconComponent:r,styledProps:n}=oS({type:Kx.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return b.createElement(Bx,n,b.createElement(r,{height:gt}))},cS=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=Yx(),{page:o,rowsPerPage:i}=r;if(t<=Xx.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return b.createElement(Hx,{variant:"caption"},a)},dS=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=Yx(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return b.createElement(b.Fragment,null,b.createElement(Hx,{variant:"caption",id:d},u,":"),b.createElement(Gx,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},pS=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=Yx();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>Xx.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=b.createElement(b.Fragment,null,t.rowsPerPageOptions.map((e=>b.createElement("option",{key:e,value:e},e))));return b.createElement(dS,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},fS=1e3,hS="…",mS=({totalPages:e,page:t})=>{const r=Math.min(e,fS),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-fS):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return b.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(b.createElement("option",{key:"startMoreOptions",value:hS,disabled:!0},hS)),o<e-1&&a.push(b.createElement("option",{key:"endMoreOptions",value:hS,disabled:!0},hS)),b.createElement(b.Fragment,null,a)},gS=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=Yx(),{page:o}=e;if(t<=Xx.SelectPage)return null;const i=b.createElement(mS,{totalPages:r,page:o});return b.createElement(dS,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var bS=I((e=>b.createElement(Ux,e,b.createElement(pS,null),b.createElement(gS,null),b.createElement(cS,null),b.createElement(iS,null),b.createElement(uS,null),b.createElement(sS,null),b.createElement(lS,null))));const vS=e=>b.createElement(Wx,e,b.createElement(bS,e)),yS=_({}),xS=()=>x(yS),SS=({children:e,model:t,app:r,interactions:n,embed:o,theme:i,keyboard:a,flags:l})=>{const s=v((()=>({model:t,app:r,interactions:n,embed:o,theme:i,keyboard:a,flags:l})),[r,n,t,o,i,a,l]);return ni.jsx(yS.Provider,{value:s,children:e})},ES=e=>{const{text:t,fontFamily:r,fontSize:n,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var r;const{theme:n}=xS(),o=null!==(r=n.getStyle("","","fontFamily"))&&void 0!==r?r:Bt;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:ni.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:ni.jsx("span",{style:{...er,fontFamily:r,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:t})})},CS=_({}),wS=()=>x(CS),RS=({children:e,styleService:t})=>ni.jsx(CS.Provider,{value:t,children:e}),LS=21,AS=20,DS=AS,_S=16+Ut+1,IS=.75;let MS=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),OS=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const PS=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===MS.Image},kS="/qHyperCubeDef",TS=-1,qS="PSEUDO-DIM",NS=e=>void 0===e?Ht:e,FS=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,zS=e=>FS(e,St.PixelsDefault),$S=(e,t)=>FS(e,St.PercentageDefault)*t/100,jS=(e,t,r)=>{switch(null==t?void 0:t.type){case Et.Pixels:return zS(t.pixels);case Et.Percentage:return $S(t.percentage,e);case Et.FitToContent:case Et.Auto:default:return r}};function GS({layoutService:e,tableWidth:t,headersData:r}){const n=wS(),{measureText:o}=Go(n.header),{estimateWidth:i}=Go({...n.dimensionValues,fontWeight:NS(n.dimensionValues.fontWeight)}),{measureText:a}=Go({...n.dimensionValues,...n.measureLabels}),l=A(((n,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s,topHeadersColumnWidth:u}},visibleMeasureInfo:c,isFullyExpanded:d}=e,p=(e=0)=>c.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=a(n)+_S;return Math.max(r,jS(t,o,Math.max(i,e)))}),0),f=e=>r.data.reduce(((t,r)=>{const n=r[e];if(!n)return t;if(n.id===qS)return t;const i=(e=>{const{label:t,isLocked:r}=e,n=r?DS:0;return _S+o(t)+AS+n})(n);return Math.max(i,t)}),0);let h=0;const m=r.data.at(-1).map(((r,o)=>{let a=_S;if(n&&void 0!==l&&l===r.colIdx)a=n;else{let n;r.columnWidthLocation===_t.Pivot?n=u:r.columnWidthLocation===_t.Dimension&&({columnWidth:n}=r);let l=0;r.isLeftDimension?l=r.id===qS?p():Math.max(f(o),((t,r)=>{const{qApprMaxGlyphCount:n,isLeftDimension:o,dimensionInfoIndex:a}=t,l=e.getDimensionInfo(a);if(PS(l))return St.PixelsDefault;const u=!d&&o&&r<s-1?LS:0;return _S+i(n)+u})(r,o)):r.isLeftDimension||(l=f(o),r.columnWidthLocation===_t.Measures&&(l=p(l))),a=jS(t,n,l)}return h+=a,a}));return{leftGridWidth:Math.min(t*IS,h),leftGridColumnWidths:m,leftGridFullWidth:h}}),[i,r.data,e,o,a,t]),[s,u]=y(l);Wo((()=>{u(l())}),[l]);const c=A(((e,t)=>{u(l(e,t))}),[l]);return{...s,overrideLeftGridWidth:c}}function BS({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:n,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=wS(),{estimateWidth:c,measureText:d}=Go(u.measureValues),{estimateWidth:p}=Go({...u.dimensionValues,fontWeight:NS(u.dimensionValues.fontWeight)}),f=t-o-Ut,h=r.at(-1),m=h===TS,g=a.length-i>r.length?LS:0,b=v((()=>{const e=m?s:[h],t=l.x/e.length,r=[],n=[];let o=f;const i=(e,n)=>{r[e]=Math.min(St.PixelsMax,Math.max(St.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(r){case Et.Pixels:i(t,zS(o));break;case Et.Percentage:i(t,$S(a,f));break;case Et.FitToContent:i(t,((e,t,r)=>r?St.PixelsDefault:_S+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,PS(e)));break;case Et.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(St.AutoMin,i)}))}return r}),[m,s,h,l.x,f,c,d,p,g]),y=v((()=>{if(m){return s.reduce(((e,t,r)=>e+b[r]),0)/s.length}return b[0]}),[m,b,s]),x=parseFloat((n/e.size.x).toFixed(12)),S=A((t=>m&&void 0!==t?b[e.getMeasureInfoIndexFromCellIndex(t,!0)]-x:y-x),[m,b,e,y,x]),E=l.x*y;return{rightGridFullWidth:E,rightGridWidth:Math.min(E,f),getRightGridColumnWidth:S}}let HS;const WS=new Uint8Array(16);function VS(){if(!HS&&(HS="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!HS))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return HS(WS)}const YS=[];for(let e=0;e<256;++e)YS.push((e+256).toString(16).slice(1));var US={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function KS(e,t,r){if(US.randomUUID&&!t&&!e)return US.randomUUID();const n=(e=e||{}).random||(e.rng||VS)();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 YS[e[t+0]]+YS[e[t+1]]+YS[e[t+2]]+YS[e[t+3]]+"-"+YS[e[t+4]]+YS[e[t+5]]+"-"+YS[e[t+6]]+YS[e[t+7]]+"-"+YS[e[t+8]]+YS[e[t+9]]+"-"+YS[e[t+10]]+YS[e[t+11]]+YS[e[t+12]]+YS[e[t+13]]+YS[e[t+14]]+YS[e[t+15]]}(n)}const XS=()=>{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:KS()},JS=e=>e===TS?qS:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:XS()})(e),ZS=(e,t,r)=>{var n;const o=JS(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===TS?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isActivelySorted:!1,isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:_t.Measures}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isActivelySorted:!1,isLocked:null!==(n=t.qLocked)&&void 0!==n&&n,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:_t.Dimension}},QS=({layoutService:e,lastRow:t,lastCol:r})=>{let n=r;var o;t.length>0&&(n=(o=r).at(-1)===TS?o.slice(0,-1):o);const i=n.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,r,n)=>{const o=r===n.length-1;l[i-1][r]=ZS(e,t,o)})),n.forEach(((t,r,n)=>{const o=r===n.length-1;l[r][a-1]=ZS(e,t,o)})),l},eE=(e,t,r)=>{var n,o;const i=((e,t,r)=>{let n;if(n=0===t.length||t.includes(TS)?QS({layoutService:e,lastRow:r,lastCol:t}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(QS({layoutService:e,lastRow:t,lastCol:r})),n.length)for(const[t,a]of n[n.length-1].entries()){var o,i;a&&(a.canBeResized=!0,a.isActivelySorted=t===(null!==(o=null===(i=e.layout.qHyperCube.activelySortedColumn)||void 0===i?void 0:i.colIdx)&&void 0!==o?o:0),a.colIdx=a.colIdx||t,a.dimensionInfoIndex===TS?a.columnWidthLocation=_t.Measures:a.isLeftDimension?a.columnWidthLocation=_t.Dimension:r.at(-1)===TS?a.columnWidthLocation=_t.Measures:e.hasPseudoDimOnLeft&&(a.columnWidthLocation=_t.Pivot))}return n})(e,t,r);return{data:i,size:{x:null!==(n=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==n?n:0,y:i.length}}};function tE(e){return tE="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},tE(e)}function rE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nE(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,n.key,n)}}function oE(e,t,r){return t&&nE(e.prototype,t),r&&nE(e,r),e}function iE(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}}),t&&lE(e,t)}function aE(e){return aE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},aE(e)}function lE(e,t){return lE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lE(e,t)}function sE(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function uE(e){return function(){var t,r=aE(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var n=aE(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return sE(this,t)}}var cE={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:dE(e),value:dE(t),useEqualSign:r}}(r,o,i))}})),t}};function dE(e){try{return decodeURIComponent(e)}catch(t){return e}}function pE(e){if(!(this instanceof pE))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 cE.fromSearchString(t.search)}}})}function fE(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}pE.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},pE.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=fE((t=e[n]).key),t.value?r+="=".concat(fE(t.value)):r+=t.useEqualSign?"=":"";return r};var hE,mE=function(){function e(t){rE(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return oE(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}}]),oE(e,[{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}(),gE=function(){function e(){rE(this,e)}return oE(e,[{key:"decode",value:function(e){for(var t,r="",n=new mE(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),bE=function(e){return e>=0&&e<=1114111},vE=function(e){return e.match(/[\s]/)},yE=function(e){iE(r,gE);var t=uE(r);function r(){return rE(this,r),t.apply(this,arguments)}return oE(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())&&!vE(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return bE(a)?String.fromCharCode(a):"�"}}]),r}(),xE=function(){function e(t,r){rE(this,e),this._key=t,this._value=r}return oE(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}(),SE=function(){function e(){rE(this,e)}return oE(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 xE.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return xE.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||xE.newInstanceIfNeeded(e,t,this._value)}}]),e}(),EE=function(){function e(){rE(this,e),this.clear()}return oE(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 SE);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),CE=function(){var e,t,r,n=[],o=[],i=new EE;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="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["&notin"]="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}(),wE=function(e){iE(r,gE);var t=uE(r);function r(){return rE(this,r),t.apply(this,arguments)}return oE(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,CE.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=CE.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)&&bE(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)&&bE(n)?String.fromCharCode(n):null}}]),r}(),RE=function(e){iE(r,gE);var t=uE(r);function r(){return rE(this,r),t.apply(this,arguments)}return oE(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),bE(o))?String.fromCharCode(o):(e.reset(),null)}}]),r}();"undefined"!=typeof document&&(hE=document.createElement("div"));var LE=Array.prototype.indexOf,AE=[",",".","_"," "],DE={default:[",",".","-","_"," "]},_E={width:["%"],height:["%"]},IE={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},ME={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":IE.image,"background-color":IE.color,"border-color":IE.color,"border-image":IE.image,color:IE.color,icon:IE.image,"list-style-image":IE.image,"outline-color":IE.color},OE={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function PE(e,t,r){var n;if(t){if(LE)return LE.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 kE(e){if(null==e)return"";var t,r=document.createTextNode(e);return hE.appendChild(r),t=hE.innerHTML,hE.removeChild(r),t}function TE(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=NE(e).toLowerCase(),t=NE(t),PE(e,OE.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<OE.attr_val;i++)if(t.toLowerCase().match(OE.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=_E[e])||(n=DE.default),o="",!r){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]/)&&PE(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function qE(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=NE(e).toLowerCase(),t=NE(t),PE(e,OE.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<OE.css_val.length;n++)if(t.toLowerCase().indexOf(OE.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=ME[e])||(o=IE.default),i="",!r){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]/)&&PE(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function NE(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new wE,new RE,new yE];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].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 FE=[],zE=0;zE<255;zE++)FE[zE]=zE>=48&&zE<=57||zE>=65&&zE<=90||zE>=97&&zE<=122?null:zE.toString(16);var $E=function(e){return kE(e.unsafe)},jE=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]=qE(t,r[t],!0),i+=qE(t,r[t],!0),o[t]=n[t]);return e.map?o:i},GE=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]=TE(i,t[i],!0),o+=TE(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function BE(e,t){throw new Error(t)}var HE={canonicalize:NE,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===tE(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?$E(e):"css"===e.context?(null!=e.map&&"object"!==tE(e.map)&&BE(this,"Invalid parameter type"),jE(e)):"attr"===e.context?(null!=e.map&&"object"!==tE(e.map)&&BE(this,"Invalid parameter type"),GE(e)):void BE(this,"Invalid parameter type")},encodeForAttr:TE,encodeForAttr2:function(e){return TE("nonsens",e,!0)},encodeForCSS:qE,encodeForHref:function(e){NE(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new pE(e),r=pE.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+pE.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,l;for(t||(t=AE),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),PE(o,t)>=0||null==FE[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:kE,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=NE(t).toLowerCase():BE(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?'"':""}};const WE=(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)===OS.Attribute||null==r?void 0:r.urlLabel},VE=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:MS.Link,url:HE.encodeForHref(t),text:e}}catch(t){return{type:MS.Text,url:void 0,text:e}}},YE=(e,t,r,n)=>(e=>{switch(null==e?void 0:e.type){case"url":return MS.Link;case"image":return MS.Image;default:return MS.Text}})(t)===MS.Link?((e,t,r,n)=>{const{urlPosition:o}=null!=t?t:{};if(o===OS.Attribute){const n=WE(r,e,t),o=e.qText||n||"";return VE({text:o,url:n})}if(o===OS.Dimension){const r=WE(n,e,t)||e.qText;return VE({text:r,url:e.qText})}return{type:MS.Text,url:void 0,text:e.qText}})(e,t,r,n):{type:MS.Text,url:void 0,text:e.qText},UE=(e,t)=>{var r,n;const o=t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r||null===(r=r[null==e?void 0:e.cellForegroundColor])||void 0===r?void 0:r.qText,a=null==o||null===(n=o.qValues)||void 0===n||null===(n=n[null==e?void 0:e.cellBackgroundColor])||void 0===n?void 0:n.qText,l=a?$y(a):null,s=i?$y(i):null,u=((e,t)=>e||!t?null:Cn(t)?Ny.WHITE:Ny.TEXT)(s,l);return{color:null!=u?u:s,background:l}},KE=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:KE(e,t)),e),XE=(e,t,r,n,o,i)=>{if(o)return KE(0,e);const a=i?Wt-r:Vt-n;let l=e.qUp+e.qDown;if(i&&0===r){const r=(t+e.qUp)%Wt;l=e.qDown+r}return Math.min(a,KE(l,e))},JE=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0})=>{const c=e.qType===Pt.NX_DIM_CELL_PSEUDO,d={id:XS(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:XE(e,o,i,n,a.isSnapshot,u),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===Pt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===Pt.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===Pt.NX_DIM_CELL_NULL,isPseudoDimension:c,expressionColor:UE(s,e),selectionCellType:u?Dt.NX_CELL_LEFT:Dt.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:c?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:YE(e,l===TS?void 0:l.representation,s.link,s.linkLabel)};return t&&(t.children[d.mainAxisPageCoord-t.mainAxisPageCoord]=d),d},ZE=(e,t,r,n,o,i,a)=>{if(!t.length)return e;let l=0;return function t(s,u,c,d=0){e[d]||(e[d]={}),c.forEach(((c,p)=>{var f;l+=0===p?0:1;const h=r.qTop-n.page*n.rowsPerPage,m=Math.max(0,h+l-c.qUp),g=r.qTop+l-c.qUp,b=null!==(f=e[d][m])&&void 0!==f?f:JE({node:c,parent:u,root:s,x:d,y:g,pageY:m,layoutService:o,dimensionInfo:i[d],attrExprInfoIndex:a[d],isLeftColumn:!0});e[d][m]=b,c.qSubNodes.length&&t(s||b,b,c.qSubNodes,d+1)}))}(null,null,t,0),e},QE=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n[r+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},eC=e=>{const t=e[0],r=t?Object.values(t):[],n=null==t?void 0:t[0],o=r.at(-1);return null!=n&&n.isTotal?n.isLeafNode?n.mainAxisPageCoord:n.mainAxisPageCoord+n.leafCount-1:null!=o&&o.isTotal?o.mainAxisPageCoord-1:-1},tC=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i})=>{const{qLeft:a,qArea:l}=t;if(!a.length)return e;const s=ZE(e.grid,a,l,r,n,o,i);QE(s,r.rowsOnCurrentPage);const u=eC(s);return{...e,grid:s,columnCount:s.length,totalDividerIndex:u}},rC=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===Pt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:XS(),ref:t,isNull:u}}))})),o},nC=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n.length?rC({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},oC=(e,t,r,n,o,i,a)=>{if(!t.length)return e;let l=0;!function t(a,s,u,c=0){e[c]||(e[c]={}),u.forEach(((u,d)=>{var p;l+=0===d?0:1;const f=r.qLeft+l-u.qUp,h=null!==(p=e[c][f])&&void 0!==p?p:JE({node:u,parent:s,root:a,x:f,y:c,pageY:c,layoutService:n,dimensionInfo:o[c],attrExprInfoIndex:i[c],isLeftColumn:!1});e[c][f]=h,u.qSubNodes.length&&t(a||h,h,u.qSubNodes,c+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},iC=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i})=>{const{qTop:a,qArea:l}=t;if(!a.length)return e;const s=oC(e.grid,a,l,r,n,o,i);QE(s,r.size.x);const u=eC(s);return{...e,grid:s,rowCount:s.length,totalDividerIndex:u}},aC=e=>{if(e===TS)return{cellForegroundColor:-1,cellBackgroundColor:-1,imageUrl:-1,link:-1,linkLabel:-1};const t=e.qAttrExprInfo;return{cellForegroundColor:t.findIndex((({id:e})=>e===It.CellForegroundColor.toString())),cellBackgroundColor:t.findIndex((({id:e})=>e===It.CellBackgroundColor.toString())),imageUrl:t.findIndex((({id:e})=>e===It.ImageUrl.toString())),link:t.findIndex((({id:e})=>e===It.Link.toString())),linkLabel:t.findIndex((({id:e})=>e===It.LinkLabel.toString()))}},lC=(e,t,r,n,o)=>{const[i,a]=y(null),l=((e,t,r)=>v((()=>({left:e.map(aC),top:t.map(aC),measures:r.map(aC)})),[r,e,t]))(n,o,t.visibleMeasureInfo),s=v((()=>eE(t,o,n)),[t,o,n]),u=A((()=>e.slice(1).reduce(((e,t)=>nC({prevData:e,dataPage:t,pageInfo:r})),((e,t)=>{const{qData:r,qArea:n}=e;return rC({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(e[0],r))),[e,r]),c=A((()=>e.slice(1).reduce(((e,r)=>iC({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y})),((e,t,r,n,o)=>{const{qArea:i,qTop:a}=e,l=oC([],a,i,t,r,n,o);QE(l,t.size.x);const s=eC(l);return{grid:l,rowCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,o,l.top,s.size.y))),[e,t,o,l.top,s.size.y]),d=A((()=>e.slice(1).reduce(((e,o)=>tC({prevData:e,nextDataPage:o,pageInfo:r,layoutService:t,visibleLeftDimensionInfo:n,attrExprInfoIndexes:l.left})),((e,t,r,n,o)=>{const{qArea:i,qLeft:a}=e,l=ZE([],a,i,r,t,n,o);QE(l,r.rowsOnCurrentPage);const s=eC(l);return{grid:l,columnCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,r,n,l.left))),[e,t,r,n,l]),[p,f]=y((()=>u())),[h,m]=y((()=>c())),[g,b]=y((()=>d()));Wo((()=>{f(u())}),[u]),Wo((()=>{m(c())}),[c]),Wo((()=>{b(d())}),[d]),Wo((()=>{i&&i.forEach((e=>{f((t=>nC({prevData:t,dataPage:e,pageInfo:r}))),m((r=>iC({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y}))),b((o=>tC({prevData:o,nextDataPage:e,pageInfo:r,layoutService:t,visibleLeftDimensionInfo:n,attrExprInfoIndexes:l.left})))}))}),[i]);const x=A((e=>{a(e)}),[]);return{headersData:s,measureData:p,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:l,nextPageHandler:x}},sC=Math.sqrt(1e4),uC=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/sC),n=Math.ceil(e.qHeight/sC);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*sC,qTop:e.qTop+r*sC,qWidth:Math.min(sC,e.qWidth-o*sC),qHeight:Math.min(sC,e.qHeight-r*sC)});return t};function cC({model:e,nextPageHandler:t,pageInfo:r,layoutService:n}){const o=(e=>{const t=L(e);return t.current=e,t})(r.page),i=e,a=A((async(e,t)=>{var r;await(null==i||null===(r=i.collapseLeft)||void 0===r?void 0:r.call(i,kS,e,t,!1))}),[i]),l=A((async(e,t)=>{await(null==i?void 0:i.collapseTop(kS,e,t,!1))}),[i]),s=A((async(e,t)=>{await(null==i?void 0:i.expandLeft(kS,e,t,!1))}),[i]),u=A((async(e,t)=>{await(null==i?void 0:i.expandTop(kS,e,t,!1))}),[i]),c=A((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const n=await i.getHyperCubePivotData(kS,e.reduce(((e,t)=>[...e,...uC(t)]),[]));o.current===r.page&&t(n)}catch(e){console.error(e)}}),[i,t,r,o]),d=A(((t,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case _t.Dimension:c=[{qPath:`${kS}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case _t.Measures:if(o)c=l.map(((e,t)=>({qPath:`${kS}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${kS}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case _t.Pivot:c=[{qPath:`${kS}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:r,oldValue:n}=e;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...t})}}));null==e||e.applyPatches(d,!0)}),[e,n]);return v((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,fetchPages:c})),[a,l,s,u,d,c])}const dC=(e,t)=>e>t?Ot.Forward:e<t?Ot.Backward:Ot.None,pC=(e,t,r)=>(n,o)=>{if(n===Pt.NX_DIM_CELL_PSEUDO)return TS;const i=t[r+o];return e[i]},fC=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},hC=({width:e,height:t,children:r,isLeftGrid:n})=>ni.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:n?"fit-content":e,height:t+Ut},children:r}),mC=e=>`scrollable-container--${e}`,gC=(e,t)=>{const{width:r,height:n,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=xS();return ni.jsx("div",{ref:t,"data-key":mC(u),style:{width:r,height:n,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var bC=b.forwardRef(gC);const vC=({width:e,height:t,children:r,style:n,isLeftGrid:o})=>ni.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...n},children:r});function yC(){return yC=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},yC.apply(this,arguments)}function xC(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SC(e,t){return SC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},SC(e,t)}function EC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,SC(e,t)}var CC=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function wC(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||CC(n)&&CC(o)))return!1;var n,o;return!0}function RC(e,t){var r;void 0===t&&(t=wC);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function LC(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 AC="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function DC(e){cancelAnimationFrame(e.id)}function _C(e,t){var r=AC();var n={id:requestAnimationFrame((function o(){AC()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var IC=-1;function MC(e){if(void 0===e&&(e=!1),-1===IC||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),IC=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return IC}var OC=null;function PC(e){if(void 0===e&&(e=!1),null===OC||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?OC="positive-descending":(t.scrollLeft=1,OC=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),OC}return OC}var kC=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function TC(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,xC(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:xC(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=RC((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=RC((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&l,m&&s,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=RC((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(PC()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&DC(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=_C(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}EC(t,e),t.getDerivedStateFromProps=function(e,t){return qC(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=MC();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(PC()){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&&DC(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?kC:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],R=this._getVerticalRangeToRender(),L=R[0],A=R[1],D=[];if(n>0&&g)for(var _=L;_<=A;_++)for(var I=C;I<=w;I++)D.push(S(t,{columnIndex:I,data:d,isScrolling:v?x:void 0,key:f({columnIndex:I,data:d,rowIndex:_}),rowIndex:_,style:this._getItemStyle(_,I)}));var M=a(this.props,this._instanceProps),O=l(this.props,this._instanceProps);return S(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:yC({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},S(u||c||"div",{children:D,ref:s,style:{height:M,pointerEvents:x?"none":void 0,width:O}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(O),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var qC=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},NC=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},FC=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},zC=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},$C=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?jC(e,t,r,i,0,n):GC(e,t,r,Math.max(0,i),n)},jC=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=zC(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},GC=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&zC(e,t,n,r).offset<o;)n+=a,a*=2;return jC(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},BC=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=zC(e,t,r,i),u="column"===e?FC(t,i):NC(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},HC=TC({getColumnOffset:function(e,t,r){return zC("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return $C("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=zC("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=zC("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:NC,getEstimatedTotalWidth:FC,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return BC("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return BC("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return zC("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return $C("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=zC("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=zC("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}}),WC=function(e,t){return e};function VC(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,xC(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:xC(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=RC((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=RC((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=RC((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(PC()){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&&DC(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=_C(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}EC(t,e),t.getDerivedStateFromProps=function(e,t){return YC(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?MC():0:s.scrollHeight>s.clientHeight?MC():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(PC()){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&&DC(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?WC:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,E=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],R=C[1],L=[];if(u>0)for(var A=w;A<=R;A++)L.push(S(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var D=n(this.props,this._instanceProps);return S(h||m||"div",{className:r,onScroll:E,ref:this._outerRefSetter,style:yC({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},S(l||s||"div",{children:L,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,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(O),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var YC=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},UC=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},KC=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=UC(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},XC=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&UC(e,r,t).offset<n;)r+=i,i*=2;return KC(e,t,Math.min(r,o-1),Math.floor(r/2),n)},JC=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},ZC=VC({getItemOffset:function(e,t,r){return UC(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:JC,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=UC(e,t,o),p=JC(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?KC(e,t,o,0,r):XC(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=UC(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=UC(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 QC(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 ew=["style"],tw=["style"];function rw(e,t){var r=e.style,n=LC(e,ew),o=t.style,i=LC(t,tw);return!QC(r,o)&&!QC(n,i)}const nw=(e,t)=>void 0!==e&&(e.isLeafNode?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),ow=10,iw=(e,t)=>e.current===Ot.Backward?t:0,aw=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e[o];if(void 0===r||void 0===r[t])return!0}return!1},lw=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,sw=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(aw(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&lw(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},uw=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===Ot.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return sw({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},cw=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=iw(r,ow),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+ow,l-u),pageTop:o,qHeight:a}})(n,o,r),u=sw({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...uw({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},dw=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},pw=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,fw=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(dw(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&pw(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},hw=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=iw(r,ow),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+ow,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=fw({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===Ot.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=fw({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},mw=async(e,t,r,n,o,i,a)=>{const{gridColumnStartIndex:l,gridRowStartIndex:s,gridWidth:u,gridHeight:c}=o;let d=[],p=[];i.current!==Ot.None&&(d=hw({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==Ot.None&&(p=cw({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===Ot.None&&a.current===Ot.None&&(d=fw({measureData:r,pageInfo:n,qLeft:l,qWidth:u,startTop:s,endTop:s+c})),await e.fetchPages([...d,...p])},gw=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];r=l;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(mw,100),bw=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}(mw,75),vw=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=wS();return ni.jsx("div",{style:{...e,...Qt,...nr(r,n,l,o),...ir({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},yw=(e,t,r)=>{if(!r.isEnabled(Ct)||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},xw={display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},Sw={alignItems:"center",display:"flex",flexDirection:"row",height:"100%",backgroundClip:"padding-box"},Ew=(e,t,r,n)=>t?{...Sw,...e.nullValues}:r?{...xw,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...xw,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},Cw=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...er,...!r&&tr(e.grid.lineClamp),...t&&{color:t},alignSelf:"flex-start",fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?Ht:s,fontStyle:u,textDecoration:c}},ww=(e,t,r)=>{const{textAlign:n}=e;return yw(n,t?"flex-end":"center",r)},Rw=(e,t)=>{var r,n;return null!==(r=null==e||null===(n=e[t])||void 0===n?void 0:n.visibleMeasureInfoIndex)&&void 0!==r?r:0},Lw=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const i=wS(),{flags:a}=xS(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:b}=n,v=null===(o=s[t])||void 0===o?void 0:o[e],y=t===h.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!v)return ni.jsx(vw,{style:{...r,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=!v.isNull&&f(e,t),E=v.isNull?u.getNullValueText():v.ref.qText,C=!v.isNull||!Number.isNaN(+E),w=u.hasPseudoDimOnLeft?Rw(g,t):Rw(m,e),R=UE(b[w],v.ref),L={...Ew(i,v.isNull,S,R.background),...nr(y,x,i.grid.border,c),...ir({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...Qt,display:"flex",justifyContent:ww(u.visibleMeasureInfo[w],C,a)};return ni.jsx("div",{title:E,style:r,"data-testid":"measure-cell","data-row-index":t,"data-col-index":e,children:ni.jsx("div",{style:L,children:ni.jsx("span",{style:Cw(i,R.color,C,S,v.isNull),children:E})})})};var Aw=b.memo(Lw,rw);const Dw=(e,t)=>{var r,n;return null!==(r=null===(n=t.list[e])||void 0===n?void 0:n.id)&&void 0!==r?r:e.toString()},_w=({columnIndex:e,rowIndex:t,data:r})=>{var n,o;return null!==(n=null===(o=r.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==n?n:`${t}-${e}`},Iw={...Zt,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},Mw=({dataModel:e,dataGridRef:t,height:r,rowHightCallback:n,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:h,pageInfo:m,verticalScrollDirection:g,horizontalScrollDirection:b})=>{const{grid:{divider:v},contentCellHeight:y}=wS(),x={...Iw,borderColor:v,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=(e=>A((t=>{var r;const n=null===(r=e.grid.at(-1))||void 0===r?void 0:r[t];return nw(n,e.totalDividerIndex)}),[e]))(s),E=(e=>A((t=>{var r;const n=null===(r=e.grid.at(-1))||void 0===r?void 0:r[t];return nw(n,e.totalDividerIndex)}),[e]))(u),C=((e,t)=>A(((r,n)=>{var o,i;return!!(null!==(o=t.grid.at(-1))&&void 0!==o&&null!==(o=o[r])&&void 0!==o&&o.isTotal||null!==(i=e.grid.at(-1))&&void 0!==i&&null!==(i=i[n])&&void 0!==i&&i.isTotal)}),[t,e]))(s,u),w=(({viewService:e,dataModel:t,measureData:r,layoutService:n,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>A((async({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p})=>{e.gridColumnStartIndex=u,e.gridRowStartIndex=d,e.gridWidth=c-u+1,e.gridHeight=p-d+1;const f=e.gridWidth+i+(s.current===Ot.None?0:ow),h=e.gridHeight+a+(l.current===Ot.None?0:ow);let m=gw;h*f>1500&&(m=bw),await m(t,n,r,o,e,l,s)}),[e,n,t,r,l,s,o,i,a]))({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:b});return Wo((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),M((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,r,t,y]),0===a.size.x?null:ni.jsx(HC,{ref:t,style:x,columnCount:a.size.x,columnWidth:h,height:r,rowCount:m.rowsOnCurrentPage,rowHeight:n,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:m,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:n(),estimatedColumnWidth:h(),itemKey:_w,children:Aw})};var Ow=I(Mw);function Pw(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kw=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Pw(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"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"}),b.createElement("use",{fillRule:"evenodd"})))),Tw=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(yt)},qw=e=>{const[t,r]=y(!1);return Wo((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}};function Nw(e,t){const r=e.isActive(),[n,o]=y(new Map),[i,a]=y(null);D((()=>{const r=()=>{a(null),o(new Map)},n=()=>{r(),t({page:0})};return e.on("deactivated",r),e.on("canceled",r),e.on("confirmed",n),e.on("cleared",r),()=>{e.removeListener("deactivated",r),e.removeListener("canceled",r),e.removeListener("confirmed",n),e.removeListener("cleared",r)}}),[e,t]);const l=A((e=>0!==n.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===Dt.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[n,i]),s=A((t=>async r=>{if(Tw(r))return;if(e.isActive()||await e.begin([kS]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,r)=>{const n=new Map(t);return n.has(e.ref.qElemNo)?(n.delete(e.ref.qElemNo),{nextSelectedPivotCells:n,nextSelectedField:0===n.size?null:r}):(n.set(e.ref.qElemNo,e),{nextSelectedPivotCells:n,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===Dt.NX_CELL_LEFT?e.x:e.y}})})(t,n,i);try{await e.select({method:"selectPivotCells",params:[kS,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,n,i]),u=A((e=>r&&!l(e)&&n.has(e.ref.qElemNo)),[n,l,r]);return v((()=>({select:s,isSelected:u,isActive:r,isLocked:l})),[s,u,r,l])}const Fw=_({select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),zw=()=>x(Fw),$w=({children:e,selections:t,updatePageInfo:r})=>{const n=Nw(t,r);return ni.jsx(Fw.Provider,{value:n,children:e})};const jw=({cellInfo:e,columnWidth:t,dataModel:r,isLastColumn:n,overrideLeftGridWidth:o,setIsAdjustingWidth:i})=>{const{interactions:a}=xS(),{isActive:l}=zw(),s=wS(),[,u]=y({});if(!(e.canBeResized&&!!a.active&&!l))return null;const c=function(e,t){var r,n,o,i;const a=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===Kt.Transparent?Ny.WHITE:l,u=null===(o=jr(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=jr(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}(s,e);return ni.jsx(Hy,{isPivot:!0,columnWidth:t,isLastColumn:n,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:c,updateWidthCallback:t=>{u({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>null==r?void 0:r.applyColumnWidth(t,e),setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})};var Gw=function(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=function(e,t,r="Mui"){const n=Ru[t];return n?`${r}-${n}`:`${Su.generate(e)}-${t}`}(e,t,r)})),n}("MuiBox",["root"]);const Bw=dd(),Hw=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=ts("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(uu),a=g.forwardRef((function(e,a){const l=function(e=mu){return hu(e)}(r),s=vu(e),{className:u,component:c="div"}=s,d=si(s,wu);return ni.jsx(i,li({as:c,ref:a,className:Cu(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:ai,defaultTheme:Bw,defaultClassName:Gw.root,generateClassName:Su.generate});const Ww=Bd(Hw,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),Vw=Bd("div")({position:"absolute",left:0,bottom:0}),Yw=Bd("div")({...Jt,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),Uw=Bd("div")((()=>({...Jt}))),Kw=Bd("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),Xw={[Nx.SORTING]:!0,[Nx.SELECTIONS]:!0,[Nx.SEARCHING]:!0},Jw=({dataModel:e,cell:t,style:r,isFirstColumn:n,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,iconsVisibilityStatus:u,columnWidth:c,overrideLeftGridWidth:d,layoutService:p})=>{var f;const h=L(null),m=wS(),{app:g,model:b,interactions:v,embed:x,flags:S}=xS(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:A,color:D,background:_,hoverBackground:I,activeBackground:M}=m.header,O=L(null),{shouldShowLockIcon:P,shouldShowMenuIcon:k}=u,{open:T,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=(({interactions:e,dataModel:t})=>{const[r,n]=y(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=qw([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e.active&&!Tw(t)&&!o&&n(!0),setIsAdjustingWidth:i}})({interactions:v,dataModel:e}),z={sortFromMenu:async(e,r)=>{e.stopPropagation(),await l(t,r)},changeActivelySortedHeader:s},$={embed:x,listboxRef:h},j={model:b,app:g},{labelTextAlign:G}=null!==(f=p.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},B=yw(G,"flex-start",S);return ni.jsxs(Ww,{title:t.label,interactions:v,background:T?M:_,hoverBackground:I,shouldShowMenuIcon:k,isDimension:t.isDim,style:{...r,...Qt,...or(t,i,n,o,m.grid.border),color:D},"data-testid":"title-cell",onClick:N,children:[ni.jsxs(Yw,{children:[P&&ni.jsx(Uw,{children:ni.jsx(kw,{height:12})}),ni.jsx(Kw,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:A,justifyContent:B,children:ni.jsx("span",{style:er,children:t.label})})]}),t.isDim&&ni.jsxs(ni.Fragment,{children:[ni.jsx(zx,{headerData:t,translator:a,anchorRef:O,open:T,setOpen:q,interactions:v,menuAvailabilityFlags:Xw,sortRelatedArgs:z,searchRelatedArgs:$,selectionRelatedArgs:j,shouldShowMenuIcon:k}),ni.jsx(Vw,{ref:h}),ni.jsx(Vw,{ref:O})]}),ni.jsx(jw,{cellInfo:{...t,isLeftColumn:!0},columnWidth:c,dataModel:e,isLastColumn:o,overrideLeftGridWidth:d,setIsAdjustingWidth:F})]})},Zw=({rowSpan:e,columnSpan:t})=>{const r=wS();return e>0&&t>0?ni.jsx("div",{style:{...Zt,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null},Qw={display:"grid",width:"fit-content"},eR=({dataModel:e,columnWidths:t,rowHight:r,headersData:n,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,getHeaderCellsIconsVisibilityStatus:l,height:s,overrideLeftGridWidth:u,layoutService:c})=>ni.jsxs("div",{style:{...Qw,gridTemplateColumns:t.map((e=>`${e}px`)).join(" "),gridTemplateRows:n.data.map((()=>`${r}px`)).join(" "),height:s},children:[n.size.y>1&&ni.jsx(Zw,{columnSpan:n.size.x-1,rowSpan:n.size.y-1}),n.data.map(((s,d)=>s.reduce(((s,p,f)=>{if(p){const h=l(f,p.isLocked,p.label);s.push(ni.jsx(Jw,{dataModel:e,style:{width:t[f],height:r,gridColumn:f+1,gridRow:d+1,zIndex:n.size.x-f},isLastRow:d===n.size.y-1,isFirstColumn:0===f,isLastColumn:f===n.size.x-1,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,cell:p,iconsVisibilityStatus:h,columnWidth:t[f],overrideLeftGridWidth:u,layoutService:c},p.id))}return s}),[])))]});var tR=I(eR);const rR=(e,t,r,n,o)=>{M((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},nR=(e,t)=>{Wo((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},oR=(e,t,r,n)=>{var o;const i=r?"flex-start":"center";if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var a;const{labelTextAlign:r}=null!==(a=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==a?a:{};return yw(r,i,n)}const{textAlign:l}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return yw(l,i,n)};var iR;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(iR||(iR={}));const aR={brighter:.5,darker:.3,opacity:.03},lR=(e,{cell:t,styleService:r})=>{if(e===iR.Background||e===iR.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},sR=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return"#0aaf54";const o=lR(iR.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?lR(iR.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Fy(i=o,aR)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},uR=({cell:e,styleService:t,isCellSelected:r})=>r?"white":lR(iR.Color,{cell:e,styleService:t}),cR=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=lR(iR.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?Ht:o},dR=({cell:e,styleService:t})=>lR(iR.FontStyle,{cell:e,styleService:t}),pR=({cell:e,styleService:t})=>lR(iR.TextDecoration,{cell:e,styleService:t}),fR=e=>e?"pointer":"default",hR=()=>{},mR=({children:e,text:t,reactWindowStyle:r,cell:n,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{const d=wS(),{interactions:p,flags:f}=xS(),{select:h,isLocked:m}=zw(),{layoutService:g,showLastBorder:b}=o,v=m(n)||n.isLockedByDimension,y=!(v||!p.active||!p.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||c),x=y?h(n):void 0;return ni.jsx("div",{title:p.passive?t:void 0,style:{...r,...nr(a,l,d.grid.border,b),...ir({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:d.grid.divider}),...Qt,padding:"0px 4px",cursor:fR(y),background:sR({styleService:d,isCellSelected:u,cell:n,isCellLocked:v}),zIndex:s?void 0:g.size.x-n.x,justifyContent:oR(n,g,s,f),display:"flex"},"aria-hidden":"true",onClick:x,onKeyUp:hR,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,children:e})};function gR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bR=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){gR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"}))));function vR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yR=R(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){vR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})))),xR=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},SR=({cell:e,dataModel:t,isLeftColumn:r,isCellSelected:n})=>{const o=wS(),{interactions:i}=xS(),{isActive:a}=zw();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=uR({cell:e,styleService:o,isCellSelected:n}),u=a?.4:1,c=o.contentRowHeight/2,d=e.ref.qCanExpand?yR:bR;let p;return p=e.ref.qCanExpand?r?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:r?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,ni.jsx(d,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",padding:4,marginTop:r?c-6.5-4:void 0},onClick:l?void 0:xR({cell:e,expandOrCollapse:p})})},ER=e=>e.stopPropagation(),CR=({href:e,text:t,interactions:r,color:n})=>b.createElement(ov,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:ER,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t),wR=e=>e.contentRowHeight/2-e.contentTextHeight/2,RR=({children:e,cell:t,styleService:r,isCellSelected:n,isLeftColumn:o})=>ni.jsx("span",{style:{...er,...tr(o?Math.max(r.grid.lineClamp,t.leafCount*r.grid.lineClamp):r.grid.columnLineClamp),color:uR({cell:t,styleService:r,isCellSelected:n}),fontWeight:cR({cell:t,styleService:r}),fontStyle:dR({cell:t,styleService:r}),textDecoration:pR({cell:t,styleService:r}),fontFamily:r.dimensionValues.fontFamily,fontSize:r.dimensionValues.fontSize,marginTop:o?wR(r):void 0,padding:"0px 4px"},children:e}),LR=({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>{const{isActive:o}=zw(),{interactions:i,flags:a}=xS();let l=e.representation.text;return e.isEmpty?null:(e.representation.type!==MS.Link||o||e.isTotal||!a.isEnabled(Lt)||(l=ni.jsx(CR,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),ni.jsx(RR,{isLeftColumn:n,isCellSelected:r,cell:e,styleService:t,children:l}))},AR=({children:e,isLeftColumn:t})=>{const r=t?"flex-start":"center";return ni.jsx("div",{style:{display:"flex",flexDirection:"row",alignItems:r,width:"fit-content",maxWidth:"100%",position:"sticky",left:4,top:0,right:t?void 0:4,alignSelf:r},children:e})},DR=({index:e,style:t,data:r})=>{const n=wS(),{isSelected:o}=zw(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=qw([r]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p}=r,f=((e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]})(e,r),h=s?e===c-1:d,m=s?d:e===c-1,g=nw(f,p);if(void 0===f){const{background:r}=n.dimensionValues;return ni.jsx(vw,{style:{...t,background:r},index:e,isLastRow:h,isLastColumn:m,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:g})}const b=o(f);return ni.jsxs(mR,{text:f.ref.qText,reactWindowStyle:t,isLeftColumn:s,isLastRow:h,isLastColumn:m,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:i,children:[ni.jsxs(AR,{isLeftColumn:s,children:[ni.jsx(SR,{isLeftColumn:s,isCellSelected:b,cell:f,dataModel:l}),ni.jsx(LR,{isLeftColumn:s,isCellSelected:b,cell:f,styleService:n})]}),ni.jsx(jw,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?_t.Measures:_t.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:m,setIsAdjustingWidth:a})]})};var _R=b.memo(DR,rw);const IR=(e,t,r,n,o)=>i=>{const a=n?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r},MR=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*n():r||void 0===a?n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*n()},OR=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},PR=(e,t)=>r=>{e.current&&(e.current[t]=r)},kR={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Zt},TR={overflow:"hidden",willChange:"auto",flexShrink:0},qR=({dataModel:e,leftGridRef:t,width:r,columnWidths:n,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=wS();nR(t,a),rR(t,r,o,d,i);const f=u.rowsOnCurrentPage*d;return ni.jsx("div",{style:{...kR,borderColor:p},children:a.grid.map(((r,p)=>{const h=p===a.columnCount-1,m=JS(s[p]),{itemCount:g,estimatedItemSize:b,listValues:v}=OR(r,f,u.rowsOnCurrentPage,h);return ni.jsx(ZC,{ref:PR(t,p),style:{...TR,flexGrow:h?1:0},height:o,width:n[p],itemCount:g,itemSize:IR(r,v,d,h,c.qcy),layout:"vertical",itemData:{layoutService:i,dataModel:e,list:r,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:v,totalDividerIndex:a.totalDividerIndex},itemKey:Dw,estimatedItemSize:b,children:_R},m)}))})};var NR=I(qR);const FR={overflow:"hidden",willChange:"auto"},zR={...Zt,borderWidth:"0px 0px 0px 1px"},$R=({dataModel:e,topGridRef:t,rowHightCallback:r,width:n,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=wS(),p={...zR,borderColor:c,height:o};nR(t,a),rR(t,n,o,d,i);const f=i.size.x*s();return 0===a.rowCount?ni.jsx("div",{style:{width:n,height:o,...zR}}):ni.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=OR(o,f,i.size.x,d),g=i.getDimensionInfo(u.data[c][u.size.x-1].dimensionInfoIndex),b=g?JS(g):`empty ${c}`;return ni.jsx(ZC,{ref:PR(t,c),style:FR,height:r(),width:n,itemCount:p,itemSize:MR({list:o,listValues:m,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:m,totalDividerIndex:a.totalDividerIndex},itemKey:Dw,estimatedItemSize:h,children:_R},b)}))})};var jR=I($R);const GR=({model:e,rect:t,viewService:r,layoutService:n,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=wS(),u=((e,t,r)=>v((()=>{let{height:n}=e;return t.hasLimitedData&&(n-=22),r&&(n-=41),{...e,height:n}}),[e,t,r]))(t,n,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:r}=e.layout,{qNoOfLeftDims:n,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=r;return v((()=>{var e,r,a,l;const s=fC(null!==(e=null===(r=t[0])||void 0===r?void 0:r.qLeft)&&void 0!==e?e:[]),u=fC(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(pC(i,o,0)),visibleTopDimensionInfo:u.map(pC(i,o,n))}}),[i,o,n,t])})(n,o),{changeSortOrder:p,changeActivelySortedHeader:f}=((e,t)=>{const r=v((()=>({changeSortOrder:async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o}=t,i=[];("D"===r&&!n||"A"===r&&n)&&i.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(i,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},changeActivelySortedHeader:async r=>{if(!e)throw new Error("No Model provided!");const{colIdx:n,qLibraryId:o,fieldId:i,sortDirection:a}=r,l=[{qPath:"/qHyperCubeDef/activelySortedColumn",qOp:t.activelySortedColumn?"Replace":"Add",qValue:JSON.stringify({colIdx:n,qLibraryId:o,fieldId:i,sortDirection:a})}];try{return await(null==e?void 0:e.applyPatches(l,!0)),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}})),[e,t.activelySortedColumn]);return r})(e,n.layout.qHyperCube),{headersData:h,measureData:m,topDimensionData:g,leftDimensionData:b,attrExprInfoIndexes:x,nextPageHandler:S}=lC(o,n,i,c,d),E=cC({model:e,nextPageHandler:S,pageInfo:i,layoutService:n}),{onHorizontalScrollHandler:C,onVerticalScrollHandler:w,verticalScrollableContainerRef:R,leftGridHorizontalScrollableContainerRef:_,dataGridHorizontalScrollableContainerRef:I,dataGridRef:O,leftGridRef:P,topGridRef:k,verticalScrollbarWidth:T,horizontalScrollbarHeight:q,horizontalScrollbarHeightSetter:N,verticalScrollDirection:F,horizontalScrollDirection:z}=(({layoutService:e,viewService:t,pageInfo:r,tableRect:n,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d}=xS(),p=L(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),f=L(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),h=L(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),m=L(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),g=L(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=L(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),v=L(0),x=L(0),S=L(Ot.None),E=L(Ot.None),[C,w]=y(0),[R,D]=y(0),_=d.name(),I=e=>{E.current=dC(e.currentTarget.scrollLeft,v.current),v.current=e.currentTarget.scrollLeft,S.current=dC(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};M((()=>{e.triggerdByExpandOrCollapse||(f.current&&(f.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),p.current&&(p.current.scrollTop=0))}),[e]),M((()=>{if(e.triggerdByExpandOrCollapse){var t,r,n,o,i,a;const e=null!==(t=null===(r=h.current)||void 0===r?void 0:r.scrollLeft)&&void 0!==t?t:0,l=null!==(n=null===(o=p.current)||void 0===o?void 0:o.scrollTop)&&void 0!==n?n:0;null===(i=g.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=m.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),M((()=>{f.current&&(f.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),p.current&&(p.current.scrollTop=0)}),[r.page]);const O=A((e=>{if(e)return void D(0);let t=0;if(f.current){const e=f.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}D(t)}),[D]);return M((()=>{if(p.current){const e=p.current,t=e.offsetWidth-e.clientWidth;w(t)}O()}),[O,e,n.width,n.height,_]),M((()=>{e.isSnapshot&&p.current&&h.current&&f.current&&(p.current.scrollTop=t.scrollTop,h.current.scrollLeft=t.scrollLeft,f.current.scrollLeft=t.leftGridScrollLeft)}),[e.isSnapshot,t.scrollTop,t.scrollLeft,t.leftGridScrollLeft,p,h]),{onHorizontalScrollHandler:e=>{var r,n;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Mt.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Mt.DATA_GRID}`&&(I(e),null===(r=m.current)||void 0===r||r.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(n=b.current)||void 0===n||n.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var r,n;e.target instanceof HTMLDivElement&&(I(e),null===(r=g.current)||void 0===r||r.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(n=b.current)||void 0===n||n.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:p,leftGridHorizontalScrollableContainerRef:f,dataGridHorizontalScrollableContainerRef:h,dataGridRef:b,leftGridRef:g,topGridRef:m,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:O,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:n,viewService:r,pageInfo:i,tableRect:u}),{containerHeight:$,headerGridHeight:j,topGridHeight:G,leftGridHeight:B,dataGridHeight:H,allRowsVisible:W}=function({pageInfo:e,headersData:t,topDimensionData:r,tableRect:n,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=wS(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,r.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(n.height-s-Ut,l),dataGridHeight:Math.min(n.height-c-Ut,l),allRowsVisible:c+Ut+l+o<=n.height}}({pageInfo:i,headersData:h,topDimensionData:g,tableRect:u,horizontalScrollbarHeight:q}),{leftGridWidth:V,leftGridColumnWidths:Y,rightGridWidth:U,totalWidth:K,showLastRightBorder:X,getRightGridColumnWidth:J,getHeaderCellsIconsVisibilityStatus:Z,overrideLeftGridWidth:Q}=function({layoutService:e,tableWidth:t,headersData:r,visibleTopDimensionInfo:n,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=wS(),{measureText:l}=Go(a.header),s=GS({layoutService:e,tableWidth:t,headersData:r}),u=BS({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+Ut,d=c<t,p=A(((e,t,r="")=>{const n=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(r)+_S;return t&&a+DS<=n&&(i=!0,a+=DS),a+AS<=n&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return D((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:n,tableWidth:u.width,headersData:h,visibleTopDimensionInfo:d,verticalScrollbarWidth:T,horizontalScrollbarHeightSetter:N}),{rootWrapper:ee,leftWrapper:te,rightWrapper:re}=(({tableRect:e,containerHeight:t,headerGridHeight:r,leftGridHeight:n,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+Ut,f=a?0:Math.max(0,e.height-p),h=c*(a?0:1),m=d*(a?0:1),g=a?p+d:e.height,b=e.height-m,v=l-s-h,y=e.width-s-h;return{rootWrapper:{scrollable:e,fullSize:{width:l-h,height:t+m},sticky:{width:e.width-h,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:b}},headerGrid:{width:-1,height:r},leftGrid:{width:s,height:n-m+f}},rightWrapper:{containers:{scrollable:{width:u+Ut-h,height:g},fullSize:{width:v,height:t},sticky:{width:v<y?v:y,height:b}},topGrid:{width:u-h,height:o},dataGrid:{width:u-h,height:i-m+f}}}})({tableRect:u,containerHeight:$,headerGridHeight:j,leftGridHeight:B,topGridHeight:G,dataGridHeight:H,allRowsVisible:W,totalWidth:K,leftGridWidth:V,rightGridWidth:U,verticalScrollbarWidth:T,horizontalScrollbarHeight:q}),ne=A((()=>l),[l]),oe=A((()=>s),[s]);return ni.jsx(bC,{ref:R,...ee.scrollable,onScroll:w,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Mt.CONTAINER_GRID,children:ni.jsx(hC,{...ee.fullSize,children:ni.jsxs(vC,{...ee.sticky,style:{display:"grid",gridTemplateColumns:V?`${te.containers.scrollable.width}px ${re.containers.scrollable.width}px`:`${re.containers.scrollable.width}px`},children:[Boolean(V)&&ni.jsx(bC,{ref:_,...te.containers.scrollable,onScroll:C,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Mt.LEFT_GRID,children:ni.jsx(hC,{isLeftGrid:!0,...te.containers.fullSize,children:ni.jsxs(vC,{isLeftGrid:!0,...te.containers.sticky,children:[ni.jsx(tR,{dataModel:E,columnWidths:Y,getHeaderCellsIconsVisibilityStatus:Z,rowHight:l,height:te.headerGrid.height,headersData:h,translator:a,changeSortOrder:p,changeActivelySortedHeader:f,overrideLeftGridWidth:Q,layoutService:n}),ni.jsx(NR,{dataModel:E,leftGridRef:P,...te.leftGrid,columnWidths:Y,layoutService:n,leftDimensionData:b,showLastBorder:{right:!1,bottom:W},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),ni.jsx(bC,{ref:I,...re.containers.scrollable,onScroll:C,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Mt.DATA_GRID,children:ni.jsx(hC,{...re.containers.fullSize,children:ni.jsxs(vC,{...re.containers.sticky,children:[ni.jsx(jR,{dataModel:E,topGridRef:k,rowHightCallback:ne,...re.topGrid,layoutService:n,topDimensionData:g,showLastBorder:{right:X,bottom:!1},getRightGridColumnWidth:J,headersData:h}),ni.jsx(Ow,{dataModel:E,dataGridRef:O,rowHightCallback:oe,...re.dataGrid,viewService:r,layoutService:n,measureData:m,leftDimensionData:b,topDimensionData:g,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:x.measures,showLastBorder:{right:X,bottom:W},getRightGridColumnWidth:J,pageInfo:i,verticalScrollDirection:F,horizontalScrollDirection:z})]})})})]})})})},BR=e=>{const{layoutService:t,translator:r,pageInfo:n,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=xS(),{layout:u,hasData:c}=t;return ni.jsxs(ni.Fragment,{children:[c&&ni.jsx(GR,{...e}),ni.jsx(ES,{translator:r,layoutService:t}),ni.jsx(vS,{paginationNeeded:n.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:n,totalRowCount:n.totalRowCount,totalColumnCount:0,totalPages:n.totalPages,keyboard:a,translator:r,theme:l,interactions:s,rect:i,layout:u})]})},HR={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},WR=12,VR=14,YR=16,UR=24,KR=3,XR=300,JR=400,ZR=600,QR=700,eL={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Yd(HR.GREYSCALE_0,.05),Yd(HR.GREEN_PALE,.5),Yd(HR.BLUE_PALE,.5),Yd(HR.GREEN_PALE,.5),Yd(HR.BLUE_PALE,.5),Yd(HR.GREEN_PALE,.5),Yd(HR.BLUE_PALE,.5);var tL;function rL(){return rL=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},rL.apply(this,arguments)}Yd(HR.GREEN_PALE,.5),Yd(HR.BLUE_PALE,.5),Yd(HR.GREEN_PALE,.5),Yd(HR.BLUE_PALE,.5);var nL,oL=function(e){return g.createElement("svg",rL({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),tL||(tL=g.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function iL(){return iL=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},iL.apply(this,arguments)}var aL=function(e){return g.createElement("svg",iL({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),nL||(nL=g.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 lL({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return b.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var sL=(e={})=>b.createElement(lL,{...e},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},b.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),b.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),uL=(e={})=>b.createElement(lL,{...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),b.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),cL=(e={})=>b.createElement(lL,{fontSize:"medium",...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},b.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),dL=(e={})=>b.createElement(lL,{fontSize:"medium",...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),b.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"}))),pL=({className:e})=>b.createElement(lL,{fontSize:"small",className:e},b.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},b.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},b.createElement("g",{transform:"translate(4.324187, 1.300372)"},b.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),b.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),fL=(e={})=>b.createElement(lL,{...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.createElement("rect",{stroke:HR.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const hL={MuiAccordion:{styleOverrides:{root:{backgroundColor:HR.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:HR.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:b.createElement(oL,{"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 ${HR.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:HR.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${HR.MISC_FOCUS_BORDER}`,borderRadius:KR,backgroundColor:HR.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 ${HR.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:HR.WHITE,color:HR.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:KR},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${HR.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:HR.GREYSCALE_0_15,backgroundColor:HR.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:HR.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${HR.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:HR.GREEN_PALE},"&:active":{backgroundColor:HR.GREEN_DARK},"&.Mui-focusVisible":{borderColor:HR.GREEN_PALE,boxShadow:`0 0 0 3px ${tc(HR.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:HR.BLUE_PALE},"&:active":{backgroundColor:HR.BLUE_DARK},"&.Mui-focusVisible":{borderColor:HR.BLUE_PALE,boxShadow:`0 0 0 3px ${tc(HR.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:KR,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:HR.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${HR.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:HR.GREYSCALE_0_15,backgroundColor:HR.GREYSCALE_100_60,"&:active":{backgroundColor:HR.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:HR.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${HR.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:HR.PURPLE,"&.Mui-focusVisible":{borderColor:HR.PURPLE,boxShadow:`0 0 0 3px ${tc(HR.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:HR.GREEN,"&.Mui-focusVisible":{borderColor:HR.GREEN,boxShadow:`0 0 0 3px ${tc(HR.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:HR.BLUE,"&.Mui-focusVisible":{borderColor:HR.BLUE,boxShadow:`0 0 0 3px ${tc(HR.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:HR.ORANGE,"&.Mui-focusVisible":{borderColor:HR.ORANGE,boxShadow:`0 0 0 3px ${tc(HR.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:HR.RED,"&.Mui-focusVisible":{borderColor:HR.RED,boxShadow:`0 0 0 3px ${tc(HR.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:HR.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:HR.PURPLE_PALE},"&:active":{backgroundColor:HR.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:HR.PURPLE_PALE,boxShadow:`0 0 0 3px ${tc(HR.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:HR.GREEN_PALE},"&:active":{backgroundColor:HR.GREEN_DARK},"&.Mui-focusVisible":{borderColor:HR.GREEN_PALE,boxShadow:`0 0 0 3px ${tc(HR.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:HR.BLUE_PALE},"&:active":{backgroundColor:HR.BLUE_DARK},"&.Mui-focusVisible":{borderColor:HR.BLUE_PALE,boxShadow:`0 0 0 3px ${tc(HR.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:HR.ORANGE_PALE},"&:active":{backgroundColor:HR.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:HR.ORANGE_PALE,boxShadow:`0 0 0 3px ${tc(HR.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:HR.RED_PALE},"&:active":{backgroundColor:HR.RED_DARK},"&.Mui-focusVisible":{borderColor:HR.RED_PALE,boxShadow:`0 0 0 3px ${tc(HR.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:HR.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:HR.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:KR,boxShadow:`inset 0 0 0 2px ${HR.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:b.createElement(aL,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:WR,borderRadius:KR,color:HR.TEXT_PRIMARY,backgroundColor:HR.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:HR.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${HR.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:HR.GREYSCALE_0_05,color:HR.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:HR.GREEN,borderColor:HR.GREEN},"&.MuiChip-outlinedInfo":{color:HR.BLUE,borderColor:HR.BLUE},"&.MuiChip-outlinedWarning":{color:HR.ORANGE,borderColor:HR.ORANGE},"&.MuiChip-outlinedError":{color:HR.RED,borderColor:HR.RED}},outlined:{border:`solid 1px ${HR.GREYSCALE_0_15}`,backgroundColor:HR.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:KR,boxShadow:"none",backgroundColor:HR.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:HR.GREEN,borderColor:HR.GREEN},outlinedSecondary:{color:HR.BLUE,borderColor:HR.BLUE},label:{fontFamily:eL.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:b.createElement(aL,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:b.createElement(oL,{"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:KR},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:KR,fontSize:VR,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:HR.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${HR.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:HR.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:HR.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:HR.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:KR,border:`solid 1px ${HR.GREYSCALE_0_15}`,color:HR.GREYSCALE_0_60,marginRight:0,width:UR,height:UR},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${HR.GREYSCALE_0_15}`},clearIndicator:{borderRadius:KR,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:HR.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:VR}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:WR,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:HR.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:HR.GREYSCALE_25,fontSize:WR,fontFamily:eL.FONT_FAMILY,fontWeight:ZR,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:HR.TEXT_PRIMARY},"&.Mui-error":{color:HR.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:HR.TEXT_SECONDARY,content:"'(optional)'",fontWeight:JR,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:HR.TEXT_SECONDARY,content:"'(required)'",fontWeight:JR,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:VR,lineHeight:"16px",backgroundColor:HR.WHITE,borderRadius:KR,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${HR.GREYSCALE_0_05}`,borderColor:HR.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${HR.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${HR.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${HR.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${HR.RED}`,boxShadow:`0px 0px 0px 1px ${HR.RED}, inset 0 2px 0 0 ${HR.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${HR.GREYSCALE_0_10}`,borderColor:HR.GREYSCALE_0_10,backgroundColor:HR.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:HR.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:HR.GREYSCALE_0_15,borderRadius:KR,boxShadow:`inset 0 2px 0 0 ${HR.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>b.createElement(oL,{...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:HR.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:HR.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:HR.GREYSCALE_0_03},"&:active":{backgroundColor:HR.GREYSCALE_0_10},"&:focus":{backgroundColor:HR.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${HR.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${HR.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:HR.GREYSCALE_0_30,"&:hover":{backgroundColor:HR.GREYSCALE_0_0,borderColor:HR.GREYSCALE_0_15},"& ~svg":{color:HR.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${HR.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:KR}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:HR.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${HR.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:HR.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:VR,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:WR,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:WR,fontWeight:ZR,color:HR.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:ZR}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${HR.GREYSCALE_0_15}, 0px 0px 0px 1px ${HR.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:b.createElement(cL,null),checkedIcon:b.createElement(dL,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:HR.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${HR.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:HR.GREEN_PALE,boxShadow:`0 0 0 3px ${tc(HR.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:HR.BLUE_PALE,boxShadow:`0 0 0 3px ${tc(HR.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:HR.GREYSCALE_0_20}},"&.Mui-disabled":{fill:HR.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:b.createElement(fL,null),checkedIcon:b.createElement(sL,null),indeterminateIcon:b.createElement(uL,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:KR,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:HR.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:HR.GREYSCALE_0_55,color:HR.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:HR.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:HR.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:HR.GREYSCALE_0_55,"&:hover":{color:HR.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:HR.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:HR.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:VR,color:HR.TEXT_PRIMARY,lineHeight:"16px",fontWeight:ZR},secondary:{fontSize:WR,color:HR.GREYSCALE_45,fontWeight:JR,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:VR,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:HR.GREYSCALE_0_03},"&:active":{backgroundColor:HR.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:VR,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:HR.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:WR,borderBottom:`solid 1px ${HR.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:VR,color:HR.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:HR.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:HR.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:HR.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:HR.RED}}},"&.Mui-focusVisible":{backgroundColor:HR.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:HR.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:HR.GREEN,height:"24px","&.Mui-disabled":{color:HR.GREYSCALE_0_15}},rail:{backgroundColor:HR.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${HR.GREYSCALE_0_05}`,borderRadius:KR,boxShadow:`inset 0px 0px 0px 1px ${HR.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${HR.GREYSCALE_0_05}`,borderRadius:KR},thumb:{height:"16px",width:"16px",borderRadius:KR,backgroundColor:HR.WHITE,boxShadow:`0px 1px 2px 0px ${HR.GREYSCALE_0_15}, 0px 0px 0px 1px ${HR.GREYSCALE_0_05}`,"&:hover":{borderRadius:KR,boxShadow:`0 2px 4px 0 ${HR.GREYSCALE_0_30}, 0 0 0 1px ${HR.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${HR.GREYSCALE_0_15}, 0 0 0 1px ${HR.GREYSCALE_0_06}, 0 0 0 2px ${HR.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${HR.GREYSCALE_0_15}, 0 0 0 1px ${HR.GREYSCALE_0_06}, 0 0 0 2px ${HR.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:HR.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:HR.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:HR.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:HR.GREYSCALE_0_15},markLabel:{color:HR.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:HR.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:HR.WHITE,color:HR.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:HR.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:HR.GREEN_PALE,boxShadow:`0 0 0 3px ${tc(HR.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:HR.BLUE_PALE,boxShadow:`0 0 0 3px ${tc(HR.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:HR.GREYSCALE_0_15,borderRadius:KR},thumb:{height:"16px",width:"16px",borderRadius:KR,backgroundColor:HR.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:VR,fontWeight:ZR,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${HR.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${HR.MISC_FOCUS_BORDER}`,backgroundColor:HR.GREYSCALE_0_03,borderRadius:KR},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:HR.GREYSCALE_25,"&.Mui-selected":{color:HR.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:VR,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${HR.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${HR.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${HR.GREYSCALE_85}`,borderRight:`1px solid ${HR.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:ZR,backgroundColor:HR.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:HR.GREYSCALE_98,borderBottom:`1px solid ${HR.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${HR.GREYSCALE_85}`,borderTop:`1px solid ${HR.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:HR.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:HR.GREYSCALE_0_05,"&:hover":{backgroundColor:HR.GREYSCALE_0_03}},"&&:hover":{backgroundColor:HR.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>b.createElement(pL,{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 ${HR.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:VR,borderRadius:KR,padding:"7px 16px",border:`1px solid ${HR.GREYSCALE_0_15}`,backgroundColor:HR.GREYSCALE_100_60,color:HR.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:HR.GREYSCALE_0_10,border:`1px solid ${HR.GREYSCALE_0_30}`},"&:hover":{backgroundColor:HR.GREYSCALE_0_03,border:`1px solid ${HR.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:HR.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${HR.MISC_FOCUS_BORDER}`,border:`1px solid ${HR.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:HR.GREYSCALE_25,backgroundColor:HR.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:HR.GREYSCALE_0_10,border:`1px solid ${HR.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:WR,height:24,width:24,padding:7},sizeLarge:{fontSize:YR,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:VR,borderRadius:KR}}},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:HR.GREYSCALE_20},tooltip:{backgroundColor:HR.GREYSCALE_20,fontSize:WR,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var mL=e=>hL;const gL={mode:"light",primary:{light:HR.GREEN_PALE,main:HR.GREEN,dark:HR.GREEN_DARK,contrastText:HR.WHITE},secondary:{light:HR.BLUE_PALE,main:HR.BLUE,dark:HR.BLUE_DARK,contrastText:HR.WHITE},error:{light:HR.RED_PALE,main:HR.RED,dark:HR.RED_DARK,contrastText:HR.WHITE},warning:{light:HR.ORANGE_PALE,main:HR.ORANGE,dark:HR.ORANGE_DARK,contrastText:HR.WHITE},success:{light:HR.GREEN_PALE,main:HR.GREEN,dark:HR.GREEN_DARK,contrastText:HR.WHITE},info:{light:HR.BLUE_PALE,main:HR.BLUE,dark:HR.BLUE_DARK,contrastText:HR.WHITE},text:{primary:HR.TEXT_PRIMARY,secondary:HR.TEXT_SECONDARY,disabled:HR.GREYSCALE_0_30},action:{hover:HR.GREYSCALE_0_03,hoverOpacity:.05,selected:HR.GREYSCALE_0_05,focus:HR.MISC_FOCUS_BORDER},amethyst:{main:HR.PURPLE,light:HR.PURPLE_PALE,dark:HR.PURPLE_DARK,contrastText:HR.WHITE},background:{paper:HR.WHITE,default:HR.GREYSCALE_95},divider:HR.GREYSCALE_0_15},bL=e=>gL,vL=(e="light")=>({components:mL(),palette:bL(),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:VR,fontWeightLight:XR,fontWeightRegular:JR,fontWeightMedium:ZR,fontWeightBold:QR,htmlFontSize:VR,fontFamily:eL.FONT_FAMILY,button:{fontWeight:ZR,fontSize:VR,textTransform:"none"},body1:{fontSize:YR,lineHeight:"24px"},body2:{fontSize:VR,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:UR,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:YR,fontWeight:ZR,lineHeight:"16px"},h6:{fontSize:VR,fontWeight:ZR,lineHeight:"16px"},caption:{color:HR.TEXT_SECONDARY},subtitle1:{fontSize:VR,color:HR.TEXT_SECONDARY},subtitle2:{fontSize:WR,color:HR.TEXT_SECONDARY}},shape:{borderRadius:KR}});const yL=(e,t)=>{const{selections:r,styleService:n,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c}=t,d=function(e){var t;const r=vL();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),dd({...r,direction:e})}("ltr");e.render(ni.jsx(b.StrictMode,{children:ni.jsx(Wd,{theme:d,children:ni.jsx(SS,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c,children:ni.jsx($w,{selections:r,updatePageInfo:t.updatePageInfo,children:ni.jsx(RS,{styleService:n,children:ni.jsx(BR,{...t})})})})})}))},xL={darker:.15,brighter:.3,opacity:.03},SL={darker:.3,brighter:.5,opacity:.05};var EL,CL,wL,RL;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(EL||(EL={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(CL||(CL={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(wL||(wL={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(RL||(RL={}));const LL=e=>e?`${parseInt(e,10)}px`:void 0,AL=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?Kt.Transparent:r}},DL=(e,t)=>+(parseInt(e,10)*Yt*t+8).toFixed(2),_L=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?Ht:"normal",IL=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",ML=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",OL=({fontStyle:e,fontWeight:t,fontSize:r,fontFamily:n})=>t?`${e} ${t} ${r} ${n}`:`${e} ${r} ${n}`,PL=(e,r)=>t((()=>((e,t)=>{var r,n;const{qHyperCube:o,nullValueRepresentation:i,snapshotData:a}=e,{qNoOfLeftDims:l,qEffectiveInterColumnSortOrder:s,qMeasureInfo:u,qDimensionInfo:c}=o,d=!!a,p={x:Math.min(e.qHyperCube.qSize.qcx,Vt),y:Math.min(e.qHyperCube.qSize.qcy,Wt)},f=s.slice(0,l),h=e=>f.some((t=>t===e)),m=h(TS),g=new Map(s.map((e=>{var t;return[null!==(t=c[e])&&void 0!==t?t:TS,e]}))),b=u.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==i?void 0:i.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(m)return 0;const r=e%b.length;return t?r:u.findIndex((e=>e===b[r]))},getDimensionInfo:e=>e===TS?TS:c[e],getDimensionInfoIndex:e=>{var t;return null!==(t=g.get(e))&&void 0!==t?t:-1},size:p,isSnapshot:d,hasLimitedData:!d&&p.x<e.qHyperCube.qSize.qcx,hasData:p.x>0&&p.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:!(null==t||null===(r=t.qHyperCubeDef)||void 0===r||!r.qShowTotalsAbove),hasPseudoDimOnLeft:m,leftDimensionInfoIndexes:f,isLeftDimension:h,isFullyExpanded:!(null==t||null===(n=t.qHyperCubeDef)||void 0===n||!n.qAlwaysFullyExpanded),triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:b}})(e,r)),[e,r]),kL={},TL=e=>{const r=(e=>{const r=t((()=>({current:kL})),[]);return r.current=r.current===kL?e:r.current,r})(e);return r.current=e,r},qL=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=TL((e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/St.PixelsMin)}))(o));return Rn((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,u,c)||((e,t,r,n)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(n,l.qcx)||c<Math.min(r,l.qcy)})(i,n,u,c))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,l=Math.min(a+n.rowsPerPage,r.qcy),s=Math.min(Vt,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),r>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,r,i.qHyperCube.qSize,n,u,c);return t?e.getHyperCubePivotData(kS,uC(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},NL=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),FL=(e,t)=>{const r=Wt;return{rowsPerPage:r,totalPages:Math.ceil(e/r),totalRowCount:e,rowsOnCurrentPage:NL({rowsPerPage:r,totalRowCount:e,page:t})}};var zL={SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const $L=()=>{const e=a(),r=e.language();return t((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(zL).forEach((t=>{e.add(zL[t])}))}}(e)),[e]),{translator:e,language:r}},jL=a=>{const{flags:g}=a,b=l(),v=(e=>{const r=t((()=>Bo(e)),[e]);return n((()=>()=>r.unmount()),[r]),r})(b),y=s(),x=u(),S=c(),E=d(),C=p(),w=f(),[R,L]=((e,t)=>Rn((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(x,y),A=PL(y,R),D=h(),_=((r,n,o)=>{const i=e();return t((()=>({...i,background:wn(i,r,n,o)})),[i.name(),r,n,o])})(b),I=_.name(),{translator:M,language:O}=$L(),{pageInfo:P,updatePageInfo:k}=(e=>{const{size:t,layout:{qHyperCube:{qSize:r}}}=e,[i,a]=o({page:0,shouldShowPagination:r.qcy>t.y,...FL(r.qcy,0)});return n((()=>{a((t=>({...t,...FL(e.layout.qHyperCube.qSize.qcy,t.page),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,a]),n((()=>{const{page:e,totalPages:t}=i;if(e+1>t){const e=t-1,r=NL({...i,page:e});a({...i,page:e,rowsOnCurrentPage:r})}}),[i]),{pageInfo:i,updatePageInfo:e=>a({...i,...e,rowsOnCurrentPage:NL({...i,...e})})}})(A),T=((e,r)=>t((()=>{return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(t=null==(e=r.snapshotData)||null===(n=e.content)||void 0===n?void 0:n.scrollTop)&&void 0!==t?t:0,scrollLeft:null!==(o=null==e||null===(i=e.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==e||null===(l=e.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0};var e,t,n,o,i,a,l}),[e.page,r.snapshotData]))(P,y),q=(({layoutService:e,viewService:t,rect:r,model:n})=>{var o;return i((async e=>e.snapshotData&&n&&!e.snapshotData.content?(null!=n&&n.getHyperCubePivotData&&(e.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(kS,[{qLeft:t.gridColumnStartIndex,qTop:t.gridRowStartIndex,qWidth:t.gridWidth,qHeight:t.gridHeight}]),scrollTop:t.scrollTop,scrollLeft:t.scrollLeft,leftGridScrollLeft:t.leftGridScrollLeft},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height),e):e)),null!==(o=e.layout.snapshotData)&&void 0!==o&&o.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r})({rect:m(),layoutService:A,viewService:T,model:x}),[N,F]=qL({model:x,layoutService:A,viewService:T,pageInfo:P,rect:q}),z=t((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,A,D,_,I,M,O,P,k,T,q,N,F,z,$,j,G,B,H,W,V,Y,U,K;const X=null===(n=t.layout.components)||void 0===n?void 0:n.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,re=null==X?void 0:X.nullValues,ne=null==X?void 0:X.grid,oe=(t,r,n)=>e.getStyle(t,r,n),ie=+(null!==(o=null!==(i=null==ne?void 0:ne[EL.LineClamp])&&void 0!==i?i:oe(CL.Grid,wL.Grid,RL.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled(Rt)?+(null!==(a=null!==(l=null==ne?void 0:ne[EL.ColumnLineClamp])&&void 0!==l?l:oe(CL.Grid,wL.Grid,RL.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=AL(e,null==J?void 0:J[EL.Background]))&&void 0!==u?u:oe(CL.Dimension,wL.LabelName,RL.BackgroundColor))&&void 0!==s?s:Kt.Transparent,se={header:{fontSize:null!==(c=null!==(d=LL(null==J?void 0:J[EL.FontSize]))&&void 0!==d?d:oe(CL.Dimension,wL.LabelName,RL.FontSize))&&void 0!==c?c:Gt,fontFamily:null!==(p=null!==(f=null==J?void 0:J[EL.FontFamily])&&void 0!==f?f:oe(CL.Dimension,wL.LabelName,RL.FontFamily))&&void 0!==p?p:Bt,fontWeight:_L(null==J?void 0:J[EL.FontStyle],Ht),fontStyle:IL(null==J?void 0:J[EL.FontStyle]),textDecoration:ML(null==J?void 0:J[EL.FontStyle]),color:null!==(h=null!==(m=AL(e,null==J?void 0:J[EL.FontColor]))&&void 0!==m?m:oe(CL.Dimension,wL.LabelName,RL.Color))&&void 0!==h?h:Ny.TEXT,background:le,hoverBackground:Fy(le,xL),activeBackground:Fy(le,SL)},dimensionValues:{fontSize:null!==(g=null!==(b=LL(null==Z?void 0:Z[EL.FontSize]))&&void 0!==b?b:oe(CL.Dimension,wL.LabelValue,RL.FontSize))&&void 0!==g?g:Gt,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[EL.FontFamily])&&void 0!==y?y:oe(CL.Dimension,wL.LabelValue,RL.FontFamily))&&void 0!==v?v:Bt,fontWeight:_L(null==Z?void 0:Z[EL.FontStyle],void 0),fontStyle:IL(null==Z?void 0:Z[EL.FontStyle]),textDecoration:ML(null==Z?void 0:Z[EL.FontStyle]),color:null!==(x=null!==(S=AL(e,null==Z?void 0:Z[EL.FontColor]))&&void 0!==S?S:oe(CL.Dimension,wL.LabelValue,RL.Color))&&void 0!==x?x:Ny.TEXT,background:null!==(E=null!==(C=AL(e,null==Z?void 0:Z[EL.Background]))&&void 0!==C?C:oe(CL.Dimension,wL.LabelValue,RL.BackgroundColor))&&void 0!==E?E:Kt.Transparent},measureValues:{fontSize:null!==(w=null!==(R=LL(null==Q?void 0:Q[EL.FontSize]))&&void 0!==R?R:oe(CL.Measure,wL.LabelValue,RL.FontSize))&&void 0!==w?w:Gt,fontFamily:null!==(L=null!==(A=null==Q?void 0:Q[EL.FontFamily])&&void 0!==A?A:oe(CL.Measure,wL.LabelValue,RL.FontFamily))&&void 0!==L?L:Bt,fontWeight:_L(null==Q?void 0:Q[EL.FontStyle],"normal"),fontStyle:IL(null==Q?void 0:Q[EL.FontStyle]),textDecoration:ML(null==Q?void 0:Q[EL.FontStyle]),color:null!==(D=null!==(_=AL(e,null==Q?void 0:Q[EL.FontColor]))&&void 0!==_?_:oe(CL.Measure,wL.LabelValue,RL.Color))&&void 0!==D?D:Kt.FontSecondary,background:null!==(I=null!==(M=AL(e,null==Q?void 0:Q[EL.Background]))&&void 0!==M?M:oe(CL.Measure,wL.LabelValue,RL.BackgroundColor))&&void 0!==I?I:Kt.Transparent},measureLabels:{fontWeight:_L(null==ee?void 0:ee[EL.FontStyle],"normal"),fontStyle:IL(null==ee?void 0:ee[EL.FontStyle]),textDecoration:ML(null==ee?void 0:ee[EL.FontStyle]),color:null!==(O=null!==(P=AL(e,null==ee?void 0:ee[EL.FontColor]))&&void 0!==P?P:oe(CL.Measure,wL.LabelName,RL.Color))&&void 0!==O?O:Kt.FontSecondary,background:null!==(k=null!==(T=AL(e,null==ee?void 0:ee[EL.Background]))&&void 0!==T?T:oe(CL.Measure,wL.LabelName,RL.BackgroundColor))&&void 0!==k?k:Kt.Transparent},totalValues:{fontWeight:_L(null==te?void 0:te[EL.FontStyle],Ht),fontStyle:IL(null==te?void 0:te[EL.FontStyle]),textDecoration:ML(null==te?void 0:te[EL.FontStyle]),color:null!==(q=null!==(N=AL(e,null==te?void 0:te[EL.FontColor]))&&void 0!==N?N:oe(CL.Total,wL.LabelValue,RL.Color))&&void 0!==q?q:Ny.TEXT,background:null!==(F=null!==(z=AL(e,null==te?void 0:te[EL.Background]))&&void 0!==z?z:oe(CL.Total,wL.LabelValue,RL.BackgroundColor))&&void 0!==F?F:Kt.Transparent},nullValues:{fontWeight:_L(null==re?void 0:re[EL.FontStyle],"normal"),fontStyle:IL(null==re?void 0:re[EL.FontStyle]),textDecoration:ML(null==re?void 0:re[EL.FontStyle]),color:null!==($=null!==(j=AL(e,null==re?void 0:re[EL.FontColor]))&&void 0!==j?j:oe(CL.Null,wL.LabelValue,RL.Color))&&void 0!==$?$:Ny.TEXT,background:null!==(G=null!==(B=AL(e,null==re?void 0:re[EL.Background]))&&void 0!==B?B:oe(CL.Null,wL.LabelValue,RL.BackgroundColor))&&void 0!==G?G:Kt.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(H=null!==(W=AL(e,null==ne?void 0:ne[EL.Border]))&&void 0!==W?W:oe(CL.Grid,wL.Grid,RL.BorderColor))&&void 0!==H?H:Kt.DividerLight,divider:null!==(V=null!==(Y=AL(e,null==ne?void 0:ne[EL.Divider]))&&void 0!==Y?Y:oe(CL.Grid,wL.Divider,RL.BorderColor))&&void 0!==V?V:Kt.DividerDark,background:null!==(U=null!==(K=AL(e,null==ne?void 0:ne[EL.Background]))&&void 0!==K?K:oe(CL.Grid,wL.Grid,RL.BackgroundColor))&&void 0!==U?U:Kt.Transparent}};return se.headerCellHeight=Math.max(DL(se.header.fontSize,ae),DL(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(DL(se.measureValues.fontSize,ie),DL(se.dimensionValues.fontSize,ie),24),se.contentRowHeight=Math.max(DL(se.measureValues.fontSize,1),DL(se.dimensionValues.fontSize,1)),se.contentTextHeight=se.contentRowHeight-8,se})(_,A,g)),[_.name(),A,g]),$=(e=>t((()=>[...new Set([OL(e.header),OL(e.dimensionValues),OL({...e.dimensionValues,...e.measureLabels}),OL({...e.dimensionValues,...e.nullValues}),OL({...e.dimensionValues,...e.totalValues}),OL(e.measureValues),OL({...e.measureValues,...e.nullValues}),OL({...e.measureValues,...e.totalValues})])]),[e]))(z),j=(e=>{const[t,n]=r((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return n?(console.warn("Failed to load font:",n),!0):!!t})($);n((()=>{!F&&x&&(null==q?void 0:q.width)&&(null==q?void 0:q.height)&&D&&T&&A&&z&&!!N&&!L&&j&&yL(v,{model:x,app:S,rect:q,selections:D,viewService:T,layoutService:A,qPivotDataPages:N,styleService:z,translator:M,pageInfo:P,updatePageInfo:k,interactions:w,embed:E,keyboard:C,theme:_,flags:g})}),[x,S,q,null==q?void 0:q.width,null==q?void 0:q.height,w,D,T,A,F,N,z,v,j,M,O,P,k,R,L,E,C,_,I,g])},GL={version:"3.1.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]};function BL(e){return{qae:{properties:{initial:GL},data:lt(e)},ext:Er(e),component(){jL(e)}}}export{BL as default};
173
+ `),aL.rippleVisible,fL,550,(({theme:e})=>e.transitions.easing.easeInOut),aL.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),aL.child,aL.childLeaving,hL,550,(({theme:e})=>e.transitions.easing.easeInOut),aL.childPulsate,mL,(({theme:e})=>e.transitions.easing.easeInOut));var vL=v.forwardRef((function(e,t){const r=$d({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=pi(r,lL),[l,s]=v.useState([]),u=v.useRef(0),c=v.useRef(null);v.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=v.useRef(!1),p=xc(),f=v.useRef(null),h=v.useRef(null),m=v.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,li.jsx(bL,{classes:{ripple:Iu(o.ripple,aL.ripple),rippleVisible:Iu(o.rippleVisible,aL.rippleVisible),ripplePulsate:Iu(o.ripplePulsate,aL.ripplePulsate),child:Iu(o.child,aL.child),childLeaving:Iu(o.childLeaving,aL.childLeaving),childPulsate:Iu(o.childPulsate,aL.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=v.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m,p]),b=v.useCallback((()=>{g({},{pulsate:!0})}),[g]),y=v.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,(()=>{y(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return v.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:y})),[b,g,y]),li.jsx(gL,di({className:Iu(aL.root,o.root,i),ref:h},a,{children:li.jsx(ag,{component:null,exit:!0,children:l})}))}));function yL(e){return Pu("MuiButtonBase",e)}var xL=_u("MuiButtonBase",["root","disabled","focusVisible"]);const SL=["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"],EL=vp("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"},[`&.${xL.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),CL=v.forwardRef((function(e,t){const r=$d({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=r,_=pi(r,SL),O=v.useRef(null),k=v.useRef(null),T=gc(k,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Mc(),[j,$]=v.useState(!1);s&&j&&$(!1),v.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[B,H]=v.useState(!1);v.useEffect((()=>{H(!0)}),[]);const G=B&&!u&&!s;function W(e,t,r=c){return mc((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}v.useEffect((()=>{j&&d&&!u&&B&&k.current.pulsate()}),[u,d,j,B]);const V=W("start",E),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=mc((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),y&&y(e)),b&&b(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=v.useRef(!1),oe=mc((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(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=mc((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=gc(t,z,O),ue=di({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Pc({root:["root",t&&"disabled",r&&"focusVisible"]},yL,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return li.jsxs(EL,di({as:ae,className:Iu(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:P},le,_,{children:[i,G?li.jsx(vL,di({ref:T,center:o},M)):null]}))}));var wL=CL;const RL=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function LL(e){const t=[],r=[];return Array.from(e.querySelectorAll(RL)).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 AL(){return!0}function IL(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=LL,isEnabled:a=AL,open:l}=e,s=v.useRef(!1),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),p=v.useRef(null),f=v.useRef(!1),h=v.useRef(null),m=gc(t.ref,h),g=v.useRef(null);v.useEffect((()=>{l&&h.current&&(f.current=!r)}),[r,l]),v.useEffect((()=>{if(!l||!h.current)return;const e=pc(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),v.useEffect((()=>{if(!l||!h.current)return;const e=pc(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.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=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return li.jsxs(v.Fragment,{children:[li.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),li.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const ML=v.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=v.useState(null),l=gc(v.isValidElement(r)?r.ref:null,t);if(ic((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),ic((()=>{if(i&&!o)return hc(t,i),()=>{hc(t,null)}}),[t,i,o]),o){if(v.isValidElement(r)){const e={ref:l};return v.cloneElement(r,e)}return li.jsx(v.Fragment,{children:r})}return li.jsx(v.Fragment,{children:i?T.createPortal(r,i):i})}));function DL(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function PL(e){return parseInt(fc(e).getComputedStyle(e).paddingRight,10)||0}function _L(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&&DL(e,o)}))}function OL(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function kL(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=pc(e);return t.body===e?fc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Dc(pc(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${PL(n)+e}px`;const t=pc(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${PL(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=pc(n).body;else{const t=n.parentElement,r=fc(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 TL=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&&DL(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);_L(t,e.mount,e.modalRef,n,!0);const o=OL(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=OL(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=kL(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=OL(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&&DL(e.modalRef,t),_L(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&&DL(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function qL(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=TL,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=v.useRef({}),f=v.useRef(null),h=v.useRef(null),m=gc(h,d),[g,b]=v.useState(!c),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=mc((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||pc(f.current).body;o.add(S(),e),h.current&&E()})),w=v.useCallback((()=>o.isTopModal(S())),[o]),R=mc((e=>{f.current=e,e&&(c&&w()?E():h.current&&DL(h.current,x))})),L=v.useCallback((()=>{o.remove(S(),x)}),[x,o]);v.useEffect((()=>()=>{L()}),[L]),v.useEffect((()=>{c?C():y&&i||L()}),[c,L,y,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=rL(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=di({},r,t);return di({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>di({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:cc((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:cc((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:y}}const NL=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],FL={entering:{opacity:1},entered:{opacity:1}},zL=v.forwardRef((function(e,t){const r=jd(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=eg}=e,y=pi(e,NL),x=v.useRef(null),S=gc(x,a.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{KR(e);const n=XR({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=XR({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),I=E(f);return li.jsx(b,di({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:g},y,{children:(e,t)=>v.cloneElement(a,di({style:di({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},FL[e],m,a.props.style),ref:S},t))}))}));var jL=zL;function $L(e){return Pu("MuiBackdrop",e)}_u("MuiBackdrop",["root","invisible"]);const BL=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],HL=vp("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>di({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"}))),GL=v.forwardRef((function(e,t){var r,n,o;const i=$d({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=jL,transitionDuration:g}=i,b=pi(i,BL),v=di({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Pc({root:["root",r&&"invisible"]},$L,t)})(v),x=null!=(r=f.root)?r:c.root;return li.jsx(m,di({in:p,timeout:g},b,{children:li.jsx(HL,di({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:s,className:Iu(y.root,l,null==x?void 0:x.className),ownerState:di({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var WL=GL;var VL=_u("MuiBox",["root"]);const YL=Fd(),UL=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=is("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(fu);return v.forwardRef((function(e,a){const l=xu(r),s=Cu(e),{className:u,component:c="div"}=s,d=pi(s,Mu);return li.jsx(i,di({as:c,ref:a,className:Iu(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:ci,defaultTheme:YL,defaultClassName:VL.root,generateClassName:Lu.generate});var KL=UL;function XL(e){return Pu("MuiModal",e)}_u("MuiModal",["root","hidden","backdrop"]);const JL=["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"],ZL=vp("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})=>di({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),QL=vp(WL,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),eA=v.forwardRef((function(e,t){var r,n,o,i,a,l;const s=$d({name:"MuiModal",props:e}),{BackdropComponent:u=QL,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=s,P=pi(s,JL),_=di({},s,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:k,getTransitionProps:T,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=qL(di({},_,{rootRef:t})),j=di({},_,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Pc({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},XL,n)})(j),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=T();B.onEnter=e,B.onExited=t}const H=null!=(r=null!=(n=null==D?void 0:D.root)?n:g.Root)?r:ZL,G=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,Y=iL({elementType:H,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:Iu(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=iL({elementType:G,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(di({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Iu(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?li.jsx(ML,{ref:q,container:h,disablePortal:E,children:li.jsxs(H,di({},Y,{children:[!R&&u?li.jsx(G,di({},U)):null,li.jsx(IL,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:I,children:v.cloneElement(f,B)})]}))}):null}));var tA=eA;var rA=_u("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const nA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function oA(e){return`scale(${e}, ${e**2})`}const iA={entering:{opacity:1,transform:oA(1)},entered:{opacity:1,transform:"none"}},aA="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),lA=v.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=eg}=e,g=pi(e,nA),b=xc(),y=v.useRef(),x=jd(),S=v.useRef(null),E=gc(S,o.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{KR(e);const{duration:r,delay:n,easing:o}=XR({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:aA?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:r,easing:n}=XR({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:aA?o:.666*o,delay:aA?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=oA(.75),c&&c(e)})),M=C(d);return li.jsx(m,di({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(y.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>v.cloneElement(o,di({style:di({opacity:0,transform:oA(.75),visibility:"exited"!==e||a?void 0:"hidden"},iA[e],f,o.props.style),ref:E},t))}))}));lA.muiSupportAuto=!0;var sA=lA;var uA=v.createContext({});function cA(e){return Pu("MuiList",e)}_u("MuiList",["root","padding","dense","subheader"]);const dA=["children","className","component","dense","disablePadding","subheader"],pA=vp("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})=>di({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var fA=v.forwardRef((function(e,t){const r=$d({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=pi(r,dA),c=v.useMemo((()=>({dense:a})),[a]),d=di({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Pc({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},cA,t)})(d);return li.jsx(uA.Provider,{value:c,children:li.jsxs(pA,di({as:i,className:Iu(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));var hA=_u("MuiListItemIcon",["root","alignItemsFlexStart"]);var mA=_u("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const gA=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function bA(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function vA(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function yA(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 xA(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&yA(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var SA=v.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=pi(e,gA),p=v.useRef(null),f=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ic((()=>{n&&p.current.focus()}),[n]),v.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${Dc(pc(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=gc(p,t);let m=-1;v.Children.forEach(i,((e,t)=>{v.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=v.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),v.cloneElement(e,t)}return e}));return li.jsx(fA,di({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=pc(t).activeElement;if("ArrowDown"===r)e.preventDefault(),xA(t,n,s,l,bA);else if("ArrowUp"===r)e.preventDefault(),xA(t,n,s,l,vA);else if("Home"===r)e.preventDefault(),xA(t,null,s,l,bA);else if("End"===r)e.preventDefault(),xA(t,null,s,l,vA);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&yA(n,o);o.previousKeyMatched&&(s||xA(t,n,!1,l,bA,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function EA(e){return Pu("MuiPopover",e)}_u("MuiPopover",["root","paper"]);const CA=["onEntering"],wA=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],RA=["slotProps"];function LA(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function AA(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function IA(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function MA(e){return"function"==typeof e?e():e}const DA=vp(tA,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),PA=vp(eL,{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 _A=v.forwardRef((function(e,t){var r,n,o;const i=$d({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:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=sA,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=pi(i.TransitionProps,CA),A=pi(i,wA),I=null!=(r=null==x?void 0:x.paper)?r:b,M=v.useRef(),D=gc(M,I.ref),P=di({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return Pc({root:["root"],paper:["paper"]},EA,t)})(P),O=v.useCallback((()=>{if("anchorPosition"===c)return u;const e=MA(l),t=(e&&1===e.nodeType?e:pc(M.current).body).getBoundingClientRect();return{top:t.top+LA(t,s.vertical),left:t.left+AA(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=v.useCallback((e=>({vertical:LA(e,S.vertical),horizontal:AA(e,S.horizontal)})),[S.horizontal,S.vertical]),T=v.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=k(t);if("none"===c)return{top:null,left:null,transformOrigin:IA(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=fc(MA(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:IA(r)}}),[l,c,O,k,m]),[q,N]=v.useState(g),F=v.useCallback((()=>{const e=M.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);v.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);v.useEffect((()=>{g&&F()})),v.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),v.useEffect((()=>{if(!g)return;const e=dc((()=>{F()})),t=fc(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?pc(MA(l)).body:void 0),$=null!=(n=null==y?void 0:y.root)?n:DA,B=null!=(o=null==y?void 0:y.paper)?o:PA,H=iL({elementType:B,externalSlotProps:di({},I,{style:q?I.style:di({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:Iu(_.paper,null==I?void 0:I.className)}),G=iL({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:Iu(_.root,p)}),{slotProps:W}=G,V=pi(G,RA);return li.jsx($,di({},V,!tL($)&&{slotProps:W,disableScrollLock:R},{children:li.jsx(E,di({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:li.jsx(B,di({},H,{children:d}))}))}))}));function OA(e){return Pu("MuiMenu",e)}_u("MuiMenu",["root","paper","list"]);const kA=["onEntering"],TA=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],qA={vertical:"top",horizontal:"right"},NA={vertical:"top",horizontal:"left"},FA=vp(_A,{shouldForwardProp:e=>bp(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zA=vp(PA,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),jA=vp(SA,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var $A=v.forwardRef((function(e,t){var r,n;const o=$d({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:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:y={}}=o,x=pi(o.TransitionProps,kA),S=pi(o,TA),E=(()=>{const e=v.useContext(Nc);return null!=e&&e})(),C=di({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),w=(e=>{const{classes:t}=e;return Pc({root:["root"],paper:["paper"],list:["list"]},OA,t)})(C),R=i&&!s&&d,L=v.useRef(null);let A=-1;v.Children.map(a,((e,t)=>{v.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(r=b.paper)?r:zA,M=null!=(n=y.paper)?n:p,D=iL({elementType:b.root,externalSlotProps:y.root,ownerState:C,className:[w.root,l]}),P=iL({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return li.jsx(FA,di({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?qA:NA,slots:{paper:I,root:b.root},slotProps:{root:D,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:di({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},S,{classes:f,children:li.jsx(jA,di({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:g},u,{className:Iu(w.list,u.className),children:a}))}))}));function BA(e){return Pu("MuiMenuItem",e)}var HA=_u("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const GA=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],WA=vp(wL,{shouldForwardProp:e=>bp(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})=>di({},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"}},[`&.${HA.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kc(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${HA.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Kc(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${HA.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kc(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})`:Kc(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${HA.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${HA.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${rA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${rA.inset}`]:{marginLeft:52},[`& .${mA.root}`]:{marginTop:0,marginBottom:0},[`& .${mA.inset}`]:{paddingLeft:36},[`& .${hA.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&di({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${hA.root} svg`]:{fontSize:"1.25rem"}}))));var VA=v.forwardRef((function(e,t){const r=$d({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=pi(r,GA),f=v.useContext(uA),h=v.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=v.useRef(null);ic((()=>{n&&m.current&&m.current.focus()}),[n]);const g=di({},r,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return di({},a,Pc({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},BA,a))})(r),y=gc(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),li.jsx(uA.Provider,{value:h,children:li.jsx(WA,di({ref:y,role:u,tabIndex:x,component:o,focusVisibleClassName:Iu(b.focusVisible,s),className:Iu(b.root,d)},p,{ownerState:g,classes:b}))})}));const YA=vp(KL,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),UA=vp("div")({position:"absolute",left:0,bottom:0}),KA=vp("div")({...tr,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),XA=vp("div")((()=>({...tr}))),JA=vp("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),ZA=vp($A)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),QA=vp(VA,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:`${e.spacing(.5)}`,margin:`${e.spacing(.25,.5)}`,padding:`${e.spacing(1,1.5)}`,display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:""+(t?"rgba(0, 0, 0, 0.05)":"transparent"),"&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),eI=vp("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:eE,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),tI={[cS.SORTING]:!0,[cS.SELECTIONS]:!0,[cS.SEARCHING]:!0},rI=({dataModel:e,cell:t,style:r,isFirstColumn:n,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,iconsVisibilityStatus:u,columnWidth:c,overrideLeftGridWidth:d,layoutService:p})=>{var f;const h=I(null),m=JS(),{app:g,model:b,interactions:v,embed:y,flags:x}=YS(),{fontSize:S,fontFamily:E,fontStyle:C,fontWeight:w,textDecoration:R,color:L,background:A,hoverBackground:M,activeBackground:D}=m.header,P=I(null),{shouldShowLockIcon:_,shouldShowMenuIcon:O}=u,{open:k,setOpen:T,handleOpenMenu:q,setIsAdjustingWidth:N}=YR({interactions:v,dataModel:e}),F={sortFromMenu:async(e,r)=>{e.stopPropagation(),await l(t,r)},changeActivelySortedHeader:s},z={embed:y,listboxRef:h},j={model:b,app:g},{labelTextAlign:$}=null!==(f=p.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},B=AR($,"flex-start",x);return li.jsxs(YA,{title:t.label,interactions:v,background:k?D:A,hoverBackground:M,shouldShowMenuIcon:O,isDimension:t.isDim,style:{...r,...nr,...sr(t,i,n,o,m.grid.border),color:L},"data-testid":"title-cell",onClick:q,children:[li.jsxs(KA,{children:[_&&li.jsx(XA,{children:li.jsx(WR,{height:12})}),li.jsx(JA,{fontFamily:E,fontSize:S,fontStyle:C,fontWeight:w,textDecoration:R,justifyContent:B,children:li.jsx("span",{style:or,children:t.label})})]}),t.isDim&&li.jsxs(li.Fragment,{children:[li.jsx(pS,{headerData:t,translator:a,anchorRef:P,open:k,setOpen:T,interactions:v,menuAvailabilityFlags:tI,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:j,shouldShowMenuIcon:O}),li.jsx(UA,{ref:h}),li.jsx(UA,{ref:P})]}),li.jsx(UR,{cellInfo:{...t,isLeftColumn:!0},columnWidth:c,dataModel:e,isLastColumn:o,overrideLeftGridWidth:d,setIsAdjustingWidth:N})]})},nI=({rowSpan:e,columnSpan:t})=>{const r=JS();return e>0&&t>0?li.jsx("div",{style:{...rr,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null};function oI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const iI=A(((e,t)=>y.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){oI(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),y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"}))));function aI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lI=A(((e,t)=>y.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){aI(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),y.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),y.createElement("use",{fillRule:"evenodd"}))));function sI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uI=A(((e,t)=>y.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){sI(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),y.createElement("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})))),cI=({cell:e,translator:t,dataModel:r,changeSortOrder:n,changeActivelySortedHeader:o})=>{const i=I(null),a=I(null),{app:l,model:s,interactions:u,embed:c}=YS(),{open:d,setOpen:p,handleOpenMenu:f}=YR({interactions:u,dataModel:r});return li.jsxs(QA,{component:"div",onClick:f,isActive:d,children:[li.jsx("span",{children:e.label}),li.jsxs(eI,{className:"indent-mode-dropdown-more",visible:d,children:[li.jsx(uI,{}),e.isDim&&li.jsxs(li.Fragment,{children:[li.jsx(pS,{headerData:e,translator:t,anchorRef:i,open:d,setOpen:p,interactions:u,menuAvailabilityFlags:tI,sortRelatedArgs:{sortFromMenu:async(t,r)=>{t.stopPropagation(),await n(e,r)},changeActivelySortedHeader:o},searchRelatedArgs:{embed:c,listboxRef:a},selectionRelatedArgs:{model:s,app:l},shouldShowMenuIcon:!1}),li.jsx(UA,{ref:a}),li.jsx(UA,{ref:i})]})]})]})},dI=({headersData:e,menuItems:t,dataModel:r,translator:n,changeSortOrder:o,changeActivelySortedHeader:i})=>{const a=JS(),{interactions:l}=YS(),[s,u]=S(!1),c=I(null),{headerCellHeight:d}=a,{color:p,background:f,hoverBackground:h,activeBackground:m,fontFamily:g,fontSize:b,fontStyle:v,fontWeight:y,textDecoration:x}=a.header,E=e=>e.stopPropagation(),C={height:d,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return li.jsxs(YA,{isDimension:!0,background:s?m:f,interactions:l,hoverBackground:h,style:{...C,...nr,color:p},onClick:()=>l.active&&u(!s),children:[li.jsxs(KA,{children:[li.jsx(JA,{fontFamily:g,fontSize:b,fontStyle:v,fontWeight:y,textDecoration:x,justifyContent:"flex-start",children:li.jsx("span",{style:or,children:n.get("SNPivotTable.IndentMode.Rows")})}),s?li.jsx(lI,{}):li.jsx(iI,{}),li.jsx(UA,{ref:c})]}),li.jsx(ZA,{open:s,anchorEl:c.current,children:t.map(((e,a)=>[e&&(null==e?void 0:e.id)!==uE&&li.jsx("li",{role:"presentation",onClick:E,onKeyDown:E,children:li.jsx(cI,{cell:e,translator:n,dataModel:r,changeSortOrder:o,changeActivelySortedHeader:i})}),a<t.length-1&&li.jsx(Mx,{"data-testid":"group-divider",variant:"middle"},"divider")]))})]})},pI={display:"grid",width:"fit-content"},fI=({dataModel:e,columnWidths:t,rowHight:r,headersData:n,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,getHeaderCellsIconsVisibilityStatus:l,height:s,overrideLeftGridWidth:u,layoutService:c})=>li.jsxs("div",{style:{...pI,gridTemplateColumns:t.map((e=>`${e}px`)).join(" "),gridTemplateRows:n.data.map((()=>`${r}px`)).join(" "),height:s},children:[n.size.y>1&&li.jsx(nI,{columnSpan:n.size.x-1,rowSpan:n.size.y-1}),n.data.map(((s,d)=>{let p=[];if(c.isIndentModeEnabled&&n.size.x>1&&d+1===n.size.y){const t=n.data.at(-1);return p.push(li.jsx(dI,{headersData:n,menuItems:t[0],dataModel:e,translator:o,changeSortOrder:i,changeActivelySortedHeader:a},t[0][0].id)),p}return p=s.reduce(((s,p,f)=>{if(p){const h=l(f,p.isLocked,p.label);s.push(li.jsx(rI,{dataModel:e,style:{width:t[f],height:r,gridColumn:c.isIndentModeEnabled&&n.size.x>1?2:f+1,gridRow:d+1,zIndex:n.size.x-f},isLastRow:d===n.size.y-1,isFirstColumn:0===f,isLastColumn:f===n.size.x-1,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,cell:p,iconsVisibilityStatus:h,columnWidth:t[f],overrideLeftGridWidth:u,layoutService:c},p.id))}return s}),[]),p}))]});var hI=_(fI);const mI=(e,t,r,n,o)=>{O((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},gI=(e,t)=>{Ko((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},bI=(e,t,r,n)=>{var o;const i=r?"flex-start":"center";var a,l;if(e.representation.type===oE.Image)return null!==(a=null===(l=e.representation.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:i;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var s;const{labelTextAlign:r}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return AR(r,i,n)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return AR(u,i,n)},vI=()=>{},yI=({children:e,text:t,reactWindowStyle:r,cell:n,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=JS(),{interactions:f,flags:h}=YS(),{select:m,isLocked:g}=sR(),{layoutService:b,showLastBorder:v}=o,y=g(n)||n.isLockedByDimension,x=!(y||!f.active||!f.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||c),S=x?m(n):void 0;return li.jsx("div",{title:f.passive?t:void 0,style:{...r,...lr(a,l,p.grid.border,v),...ur({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...nr,padding:"0px 4px",cursor:vR(x),background:fR({styleService:p,isCellSelected:u,cell:n,isCellLocked:y}),zIndex:s?void 0:b.size.x-n.x,justifyContent:bI(n,b,s,h),display:"flex",...b.isIndentModeEnabled&&s&&{paddingLeft:24*(null!==(d=n.indentLevel)&&void 0!==d?d:0)}},"aria-hidden":"true",onClick:S,onKeyUp:vI,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,children:e})},xI=e=>e.stopPropagation(),SI=({href:e,text:t,interactions:r,color:n})=>y.createElement(qv,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:xI,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t),EI=e=>e.contentRowHeight/2-e.contentTextHeight/2,CI=({children:e,styleService:t,isLeftColumn:r,textStyle:n})=>li.jsx("span",{style:{...n,marginTop:r?EI(t):void 0,padding:"0px 4px"},children:e}),wI=({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>{const{isActive:o}=sR(),{interactions:i,flags:a}=YS();let l=e.representation.text;if(e.isEmpty)return null;const s=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...or,...ir(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:hR({cell:e,styleService:t,isCellSelected:r}),fontWeight:mR({cell:e,styleService:t}),fontStyle:gR({cell:e,styleService:t}),textDecoration:bR({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n});return e.representation.type===oE.Image&&!e.isTotal&&a.isEnabled(At)?li.jsx(LR,{representation:e.representation,isLeftColumn:n,styleService:t,textStyle:s,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand}):(e.representation.type!==oE.Link||o||e.isTotal||!a.isEnabled(It)||(l=li.jsx(SI,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),li.jsx(CI,{isLeftColumn:n,textStyle:s,styleService:t,children:l}))},RI=e=>{const t=e.isLeftColumn?"flex-start":"center";var r;return e.representation.type!==oE.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical},LI=({index:e,style:t,data:r})=>{const n=JS(),{isSelected:o}=sR(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=VR([r]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=r,h=((e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]})(e,r),m=s?e===c-1:d,g=s?d:e===c-1,b=Nw(h,p,f.isIndentModeEnabled);if(void 0===h){const{background:r}=n.dimensionValues;return li.jsx(Zw,{style:{...t,background:r},index:e,isLastRow:m,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:b})}const v=o(h);return li.jsxs(yI,{text:h.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:g,isCellSelected:v,showTotalCellDivider:b,cell:h,data:r,isAdjustingWidth:i,children:[li.jsxs(Qw,{verticalAlign:RI(h),width:eR(h.representation),right:h.isLeftColumn?void 0:4,children:[li.jsx(xR,{isLeftColumn:s,isCellSelected:v,cell:h,dataModel:l}),li.jsx(wI,{isLeftColumn:s,isCellSelected:v,cell:h,styleService:n})]}),li.jsx(UR,{cellInfo:{...h,columnWidthLocation:h.isPseudoDimension?_t.Measures:_t.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var AI=y.memo(LI,qw);const II=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*n():r||void 0===a?n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*n()},MI=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},DI=(e,t)=>r=>{e.current&&(e.current[t]=r)},PI={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...rr},_I={overflow:"hidden",willChange:"auto",flexShrink:0},OI=({dataModel:e,leftGridRef:t,width:r,columnWidths:n,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=JS();gI(t,a),mI(t,r,o,d,i);const f=u.rowsOnCurrentPage*d;return li.jsx("div",{style:{...PI,borderColor:p},children:a.grid.map(((r,p)=>{const h=p===a.columnCount-1,m=wE(s[p]),{itemCount:g,estimatedItemSize:b,listValues:v}=MI(r,f,u.rowsOnCurrentPage,h),y=i.isIndentModeEnabled?()=>d:((e,t,r,n,o)=>i=>{const a=n?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(r,v,d,h,c.qcy);return li.jsx(_w,{ref:DI(t,p),style:{..._I,flexGrow:h?1:0},height:o,width:n[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:r,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:v,totalDividerIndex:a.totalDividerIndex},itemKey:zR,estimatedItemSize:b,children:AI},m)}))})};var kI=_(OI);const TI={overflow:"hidden",willChange:"auto"},qI={...rr,borderWidth:"0px 0px 0px 1px"},NI=({dataModel:e,topGridRef:t,rowHightCallback:r,width:n,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=JS(),p={...qI,borderColor:c,height:o};gI(t,a),mI(t,n,o,d,i);const f=i.size.x*s();return 0===a.rowCount?li.jsx("div",{style:{width:n,height:o,...qI}}):li.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=MI(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:r})=>{var n;const o=t.data[r],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y?null===(n=o[0][i])||void 0===n?void 0:n.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:i,headersData:u,topRowIndex:c}),b=g?wE(g):`empty ${c}`;return li.jsx(_w,{ref:DI(t,c),style:TI,height:r(),width:n,itemCount:p,itemSize:II({list:o,listValues:m,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:m,totalDividerIndex:a.totalDividerIndex},itemKey:zR,estimatedItemSize:h,children:AI},b)}))})};var FI=_(NI);const zI=({model:e,rect:t,viewService:r,layoutService:n,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=JS(),u=((e,t,r)=>x((()=>{let{height:n}=e;return t.hasLimitedData&&(n-=22),r&&(n-=41),{...e,height:n}}),[e,t,r]))(t,n,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:r}=e.layout,{qNoOfLeftDims:n,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=r;return x((()=>{var e,r,a,l;const s=YC(null!==(e=null===(r=t[0])||void 0===r?void 0:r.qLeft)&&void 0!==e?e:[]),u=YC(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(VC(i,o,0)),visibleTopDimensionInfo:u.map(VC(i,o,n))}}),[i,o,n,t])})(n,o),{changeSortOrder:p,changeActivelySortedHeader:f}=((e,t)=>{const r=x((()=>({changeSortOrder:async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o}=t,i=[];("D"===r&&!n||"A"===r&&n)&&i.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(i,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},changeActivelySortedHeader:async r=>{if(!e)throw new Error("No Model provided!");const{colIdx:n,qLibraryId:o,fieldId:i,sortDirection:a}=r,l=[{qPath:"/qHyperCubeDef/activelySortedColumn",qOp:t.activelySortedColumn?"Replace":"Add",qValue:JSON.stringify({colIdx:n,qLibraryId:o,fieldId:i,sortDirection:a})}];try{return await(null==e?void 0:e.applyPatches(l,!0)),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}})),[e,t.activelySortedColumn]);return r})(e,n.layout.qHyperCube),{headersData:h,measureData:m,topDimensionData:g,leftDimensionData:b,attrExprInfoIndexes:v,nextPageHandler:y}=$C(o,n,i,c,d),E=GC({model:e,nextPageHandler:y,pageInfo:i,layoutService:n}),{onHorizontalScrollHandler:C,onVerticalScrollHandler:w,verticalScrollableContainerRef:R,leftGridHorizontalScrollableContainerRef:L,dataGridHorizontalScrollableContainerRef:A,dataGridRef:P,leftGridRef:_,topGridRef:k,verticalScrollbarWidth:T,horizontalScrollbarHeight:q,horizontalScrollbarHeightSetter:N,verticalScrollDirection:F,horizontalScrollDirection:z}=(({layoutService:e,viewService:t,pageInfo:r,tableRect:n,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,flags:p}=YS(),f=I(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=I(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=I(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=I(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),b=I(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),v=I(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=I(0),x=I(0),E=I(Tt.None),C=I(Tt.None),[w,R]=S(0),[L,A]=S(0),D=d.name(),P=e=>{C.current=WC(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,E.current=WC(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};O((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),O((()=>{if(e.triggerdByExpandOrCollapse){var t,r,n,o,i,a;const e=null!==(t=null===(r=m.current)||void 0===r?void 0:r.scrollLeft)&&void 0!==t?t:0,l=null!==(n=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==n?n:0;null===(i=b.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),O((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[r.page]);const _=M((e=>{if(e)return void A(0);let t=0;if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}A(t)}),[A]);return O((()=>{if(f.current){const e=f.current,r=e.offsetWidth-e.clientWidth;R(r),p.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD")&&r>0&&(t.verticalScrollbarWidth=r)}_()}),[_,e,t,n.width,n.height,D,p]),O((()=>{(p.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD")||p.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"))&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft,R(-1*((null==t?void 0:t.verticalScrollbarWidth)||0)))}),[p,t.scrollTop,t.scrollLeft,t.leftGridScrollLeft,null==t?void 0:t.verticalScrollbarWidth,f,m,h]),{onHorizontalScrollHandler:e=>{var r,n;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${kt.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${kt.DATA_GRID}`&&(P(e),null===(r=g.current)||void 0===r||r.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(n=v.current)||void 0===n||n.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var r,n;e.target instanceof HTMLDivElement&&(P(e),null===(r=b.current)||void 0===r||r.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(n=v.current)||void 0===n||n.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:v,leftGridRef:b,topGridRef:g,verticalScrollbarWidth:w,horizontalScrollbarHeight:L,horizontalScrollbarHeightSetter:_,verticalScrollDirection:E,horizontalScrollDirection:C}})({layoutService:n,viewService:r,pageInfo:i,tableRect:u}),{containerHeight:j,headerGridHeight:$,topGridHeight:B,leftGridHeight:H,dataGridHeight:G,allRowsVisible:W}=function({pageInfo:e,headersData:t,topDimensionData:r,tableRect:n,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=JS(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,r.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(n.height-s-Zt,l),dataGridHeight:Math.min(n.height-c-Zt,l),allRowsVisible:c+Zt+l+o<=n.height}}({pageInfo:i,headersData:h,topDimensionData:g,tableRect:u,horizontalScrollbarHeight:q}),{leftGridWidth:V,leftGridColumnWidths:Y,rightGridWidth:U,totalWidth:K,showLastRightBorder:X,getRightGridColumnWidth:J,getHeaderCellsIconsVisibilityStatus:Z,overrideLeftGridWidth:Q}=function({layoutService:e,tableWidth:t,headersData:r,visibleTopDimensionInfo:n,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=JS(),{measureText:l}=Vo(a.header),s=mE({layoutService:e,tableWidth:t,headersData:r}),u=gE({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+Zt,d=c<t,p=M(((e,t,r="")=>{const n=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(r)+rE;return t&&a+tE<=n&&(i=!0,a+=tE),a+eE<=n&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return D((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:n,tableWidth:u.width,headersData:h,visibleTopDimensionInfo:d,verticalScrollbarWidth:T,horizontalScrollbarHeightSetter:N}),{rootWrapper:ee,leftWrapper:te,rightWrapper:re}=(({tableRect:e,containerHeight:t,headerGridHeight:r,leftGridHeight:n,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+Zt,f=a?0:Math.max(0,e.height-p),h=c*(a?0:1),m=d*(a?0:1),g=a?p+d:e.height,b=e.height-m,v=l-s-h,y=e.width-s-h;return{rootWrapper:{scrollable:e,fullSize:{width:l-h,height:t+m},sticky:{width:e.width-h,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:b}},headerGrid:{width:-1,height:r},leftGrid:{width:s,height:n-m+f}},rightWrapper:{containers:{scrollable:{width:u+Zt-h,height:g},fullSize:{width:v,height:t},sticky:{width:v<y?v:y,height:b}},topGrid:{width:u-h,height:o},dataGrid:{width:u-h,height:i-m+f}}}})({tableRect:u,containerHeight:j,headerGridHeight:$,leftGridHeight:H,topGridHeight:B,dataGridHeight:G,allRowsVisible:W,totalWidth:K,leftGridWidth:V,rightGridWidth:U,verticalScrollbarWidth:T,horizontalScrollbarHeight:q}),ne=M((()=>l),[l]),oe=M((()=>s),[s]);return li.jsx(JC,{ref:R,...ee.scrollable,onScroll:w,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:kt.CONTAINER_GRID,children:li.jsx(UC,{...ee.fullSize,children:li.jsxs(ZC,{...ee.sticky,style:{display:"grid",gridTemplateColumns:V?`${te.containers.scrollable.width}px ${re.containers.scrollable.width}px`:`${re.containers.scrollable.width}px`},children:[Boolean(V)&&li.jsx(JC,{ref:L,...te.containers.scrollable,onScroll:C,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:kt.LEFT_GRID,children:li.jsx(UC,{isLeftGrid:!0,...te.containers.fullSize,children:li.jsxs(ZC,{isLeftGrid:!0,...te.containers.sticky,children:[li.jsx(hI,{dataModel:E,columnWidths:Y,getHeaderCellsIconsVisibilityStatus:Z,rowHight:l,height:te.headerGrid.height,headersData:h,translator:a,changeSortOrder:p,changeActivelySortedHeader:f,overrideLeftGridWidth:Q,layoutService:n}),li.jsx(kI,{dataModel:E,leftGridRef:_,...te.leftGrid,columnWidths:Y,layoutService:n,leftDimensionData:b,showLastBorder:{right:!1,bottom:W},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),li.jsx(JC,{ref:A,...re.containers.scrollable,onScroll:C,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:kt.DATA_GRID,children:li.jsx(UC,{...re.containers.fullSize,children:li.jsxs(ZC,{...re.containers.sticky,children:[li.jsx(FI,{dataModel:E,topGridRef:k,rowHightCallback:ne,...re.topGrid,layoutService:n,topDimensionData:g,showLastBorder:{right:X,bottom:!1},getRightGridColumnWidth:J,headersData:h}),li.jsx(HR,{dataModel:E,dataGridRef:P,rowHightCallback:oe,...re.dataGrid,viewService:r,layoutService:n,measureData:m,leftDimensionData:b,topDimensionData:g,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:v.measures,showLastBorder:{right:X,bottom:W},getRightGridColumnWidth:J,pageInfo:i,verticalScrollDirection:F,horizontalScrollDirection:z})]})})})]})})})},jI=e=>{const{layoutService:t,translator:r,pageInfo:n,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=YS(),{layout:u,hasData:c}=t;return li.jsxs(li.Fragment,{children:[c&&li.jsx(zI,{...e}),li.jsx(KS,{translator:r,layoutService:t}),li.jsx(WS,{paginationNeeded:n.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:n,totalRowCount:n.totalRowCount,totalColumnCount:0,totalPages:n.totalPages,keyboard:a,translator:r,theme:l,interactions:s,rect:i,layout:u})]})},$I={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},BI=12,HI=14,GI=16,WI=24,VI=3,YI=300,UI=400,KI=600,XI=700,JI={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Cp($I.GREYSCALE_0,.05),Cp($I.GREEN_PALE,.5),Cp($I.BLUE_PALE,.5),Cp($I.GREEN_PALE,.5),Cp($I.BLUE_PALE,.5),Cp($I.GREEN_PALE,.5),Cp($I.BLUE_PALE,.5);var ZI;function QI(){return QI=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},QI.apply(this,arguments)}Cp($I.GREEN_PALE,.5),Cp($I.BLUE_PALE,.5),Cp($I.GREEN_PALE,.5),Cp($I.BLUE_PALE,.5);var eM,tM=function(e){return v.createElement("svg",QI({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),ZI||(ZI=v.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function rM(){return rM=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},rM.apply(this,arguments)}var nM=function(e){return v.createElement("svg",rM({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),eM||(eM=v.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 y.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 iM=(e={})=>y.createElement(oM,{...e},y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},y.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),y.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"}))),aM=(e={})=>y.createElement(oM,{...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),y.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),lM=(e={})=>y.createElement(oM,{fontSize:"medium",...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},y.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),sM=(e={})=>y.createElement(oM,{fontSize:"medium",...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),y.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"}))),uM=({className:e})=>y.createElement(oM,{fontSize:"small",className:e},y.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},y.createElement("g",{transform:"translate(4.324187, 1.300372)"},y.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"}),y.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"})))))),cM=(e={})=>y.createElement(oM,{...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("rect",{stroke:$I.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const dM={MuiAccordion:{styleOverrides:{root:{backgroundColor:$I.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:$I.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:y.createElement(tM,{"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 ${$I.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:$I.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${$I.MISC_FOCUS_BORDER}`,borderRadius:VI,backgroundColor:$I.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 ${$I.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:$I.WHITE,color:$I.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:VI},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${$I.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:$I.GREYSCALE_0_15,backgroundColor:$I.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:$I.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$I.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:$I.GREEN_PALE},"&:active":{backgroundColor:$I.GREEN_DARK},"&.Mui-focusVisible":{borderColor:$I.GREEN_PALE,boxShadow:`0 0 0 3px ${uc($I.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:$I.BLUE_PALE},"&:active":{backgroundColor:$I.BLUE_DARK},"&.Mui-focusVisible":{borderColor:$I.BLUE_PALE,boxShadow:`0 0 0 3px ${uc($I.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:VI,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:$I.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${$I.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:$I.GREYSCALE_0_15,backgroundColor:$I.GREYSCALE_100_60,"&:active":{backgroundColor:$I.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:$I.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$I.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:$I.PURPLE,"&.Mui-focusVisible":{borderColor:$I.PURPLE,boxShadow:`0 0 0 3px ${uc($I.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:$I.GREEN,"&.Mui-focusVisible":{borderColor:$I.GREEN,boxShadow:`0 0 0 3px ${uc($I.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:$I.BLUE,"&.Mui-focusVisible":{borderColor:$I.BLUE,boxShadow:`0 0 0 3px ${uc($I.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:$I.ORANGE,"&.Mui-focusVisible":{borderColor:$I.ORANGE,boxShadow:`0 0 0 3px ${uc($I.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:$I.RED,"&.Mui-focusVisible":{borderColor:$I.RED,boxShadow:`0 0 0 3px ${uc($I.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:$I.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:$I.PURPLE_PALE},"&:active":{backgroundColor:$I.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:$I.PURPLE_PALE,boxShadow:`0 0 0 3px ${uc($I.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:$I.GREEN_PALE},"&:active":{backgroundColor:$I.GREEN_DARK},"&.Mui-focusVisible":{borderColor:$I.GREEN_PALE,boxShadow:`0 0 0 3px ${uc($I.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:$I.BLUE_PALE},"&:active":{backgroundColor:$I.BLUE_DARK},"&.Mui-focusVisible":{borderColor:$I.BLUE_PALE,boxShadow:`0 0 0 3px ${uc($I.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:$I.ORANGE_PALE},"&:active":{backgroundColor:$I.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:$I.ORANGE_PALE,boxShadow:`0 0 0 3px ${uc($I.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:$I.RED_PALE},"&:active":{backgroundColor:$I.RED_DARK},"&.Mui-focusVisible":{borderColor:$I.RED_PALE,boxShadow:`0 0 0 3px ${uc($I.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:$I.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:$I.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:VI,boxShadow:`inset 0 0 0 2px ${$I.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:y.createElement(nM,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:BI,borderRadius:VI,color:$I.TEXT_PRIMARY,backgroundColor:$I.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:$I.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${$I.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:$I.GREYSCALE_0_05,color:$I.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:$I.GREEN,borderColor:$I.GREEN},"&.MuiChip-outlinedInfo":{color:$I.BLUE,borderColor:$I.BLUE},"&.MuiChip-outlinedWarning":{color:$I.ORANGE,borderColor:$I.ORANGE},"&.MuiChip-outlinedError":{color:$I.RED,borderColor:$I.RED}},outlined:{border:`solid 1px ${$I.GREYSCALE_0_15}`,backgroundColor:$I.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:VI,boxShadow:"none",backgroundColor:$I.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:$I.GREEN,borderColor:$I.GREEN},outlinedSecondary:{color:$I.BLUE,borderColor:$I.BLUE},label:{fontFamily:JI.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:y.createElement(nM,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:y.createElement(tM,{"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:VI},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:VI,fontSize:HI,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:$I.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${$I.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:$I.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:$I.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:$I.GREYSCALE_0_05}}},popupIndicator:{borderRadius:VI,border:`solid 1px ${$I.GREYSCALE_0_15}`,color:$I.GREYSCALE_0_60,marginRight:0,width:WI,height:WI},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${$I.GREYSCALE_0_15}`},clearIndicator:{borderRadius:VI,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:$I.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:HI}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:BI,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:$I.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:$I.GREYSCALE_25,fontSize:BI,fontFamily:JI.FONT_FAMILY,fontWeight:KI,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:$I.TEXT_PRIMARY},"&.Mui-error":{color:$I.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:$I.TEXT_SECONDARY,content:"'(optional)'",fontWeight:UI,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:$I.TEXT_SECONDARY,content:"'(required)'",fontWeight:UI,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:HI,lineHeight:"16px",backgroundColor:$I.WHITE,borderRadius:VI,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$I.GREYSCALE_0_05}`,borderColor:$I.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$I.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${$I.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${$I.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$I.RED}`,boxShadow:`0px 0px 0px 1px ${$I.RED}, inset 0 2px 0 0 ${$I.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$I.GREYSCALE_0_10}`,borderColor:$I.GREYSCALE_0_10,backgroundColor:$I.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:$I.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:$I.GREYSCALE_0_15,borderRadius:VI,boxShadow:`inset 0 2px 0 0 ${$I.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>y.createElement(tM,{...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:$I.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:$I.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:$I.GREYSCALE_0_03},"&:active":{backgroundColor:$I.GREYSCALE_0_10},"&:focus":{backgroundColor:$I.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${$I.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${$I.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:$I.GREYSCALE_0_30,"&:hover":{backgroundColor:$I.GREYSCALE_0_0,borderColor:$I.GREYSCALE_0_15},"& ~svg":{color:$I.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${$I.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:VI}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:$I.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${$I.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:$I.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:HI,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:BI,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:BI,fontWeight:KI,color:$I.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:KI}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${$I.GREYSCALE_0_15}, 0px 0px 0px 1px ${$I.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:y.createElement(lM,null),checkedIcon:y.createElement(sM,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:$I.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${$I.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:$I.GREEN_PALE,boxShadow:`0 0 0 3px ${uc($I.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:$I.BLUE_PALE,boxShadow:`0 0 0 3px ${uc($I.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:$I.GREYSCALE_0_20}},"&.Mui-disabled":{fill:$I.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:y.createElement(cM,null),checkedIcon:y.createElement(iM,null),indeterminateIcon:y.createElement(aM,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:VI,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:$I.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:$I.GREYSCALE_0_55,color:$I.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:$I.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:$I.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:$I.GREYSCALE_0_55,"&:hover":{color:$I.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:$I.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:$I.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:HI,color:$I.TEXT_PRIMARY,lineHeight:"16px",fontWeight:KI},secondary:{fontSize:BI,color:$I.GREYSCALE_45,fontWeight:UI,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:HI,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:$I.GREYSCALE_0_03},"&:active":{backgroundColor:$I.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:HI,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:$I.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:BI,borderBottom:`solid 1px ${$I.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:HI,color:$I.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:$I.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:$I.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:$I.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:$I.RED}}},"&.Mui-focusVisible":{backgroundColor:$I.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:$I.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:$I.GREEN,height:"24px","&.Mui-disabled":{color:$I.GREYSCALE_0_15}},rail:{backgroundColor:$I.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${$I.GREYSCALE_0_05}`,borderRadius:VI,boxShadow:`inset 0px 0px 0px 1px ${$I.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${$I.GREYSCALE_0_05}`,borderRadius:VI},thumb:{height:"16px",width:"16px",borderRadius:VI,backgroundColor:$I.WHITE,boxShadow:`0px 1px 2px 0px ${$I.GREYSCALE_0_15}, 0px 0px 0px 1px ${$I.GREYSCALE_0_05}`,"&:hover":{borderRadius:VI,boxShadow:`0 2px 4px 0 ${$I.GREYSCALE_0_30}, 0 0 0 1px ${$I.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${$I.GREYSCALE_0_15}, 0 0 0 1px ${$I.GREYSCALE_0_06}, 0 0 0 2px ${$I.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${$I.GREYSCALE_0_15}, 0 0 0 1px ${$I.GREYSCALE_0_06}, 0 0 0 2px ${$I.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:$I.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:$I.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:$I.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:$I.GREYSCALE_0_15},markLabel:{color:$I.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:$I.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:$I.WHITE,color:$I.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:$I.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:$I.GREEN_PALE,boxShadow:`0 0 0 3px ${uc($I.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:$I.BLUE_PALE,boxShadow:`0 0 0 3px ${uc($I.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:$I.GREYSCALE_0_15,borderRadius:VI},thumb:{height:"16px",width:"16px",borderRadius:VI,backgroundColor:$I.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:HI,fontWeight:KI,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${$I.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${$I.MISC_FOCUS_BORDER}`,backgroundColor:$I.GREYSCALE_0_03,borderRadius:VI},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:$I.GREYSCALE_25,"&.Mui-selected":{color:$I.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:HI,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${$I.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${$I.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${$I.GREYSCALE_85}`,borderRight:`1px solid ${$I.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:KI,backgroundColor:$I.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:$I.GREYSCALE_98,borderBottom:`1px solid ${$I.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${$I.GREYSCALE_85}`,borderTop:`1px solid ${$I.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:$I.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:$I.GREYSCALE_0_05,"&:hover":{backgroundColor:$I.GREYSCALE_0_03}},"&&:hover":{backgroundColor:$I.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>y.createElement(uM,{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 ${$I.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:HI,borderRadius:VI,padding:"7px 16px",border:`1px solid ${$I.GREYSCALE_0_15}`,backgroundColor:$I.GREYSCALE_100_60,color:$I.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:$I.GREYSCALE_0_10,border:`1px solid ${$I.GREYSCALE_0_30}`},"&:hover":{backgroundColor:$I.GREYSCALE_0_03,border:`1px solid ${$I.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:$I.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${$I.MISC_FOCUS_BORDER}`,border:`1px solid ${$I.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:$I.GREYSCALE_25,backgroundColor:$I.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:$I.GREYSCALE_0_10,border:`1px solid ${$I.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:BI,height:24,width:24,padding:7},sizeLarge:{fontSize:GI,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:HI,borderRadius:VI}}},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:$I.GREYSCALE_20},tooltip:{backgroundColor:$I.GREYSCALE_20,fontSize:BI,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var pM=e=>dM;const fM={mode:"light",primary:{light:$I.GREEN_PALE,main:$I.GREEN,dark:$I.GREEN_DARK,contrastText:$I.WHITE},secondary:{light:$I.BLUE_PALE,main:$I.BLUE,dark:$I.BLUE_DARK,contrastText:$I.WHITE},error:{light:$I.RED_PALE,main:$I.RED,dark:$I.RED_DARK,contrastText:$I.WHITE},warning:{light:$I.ORANGE_PALE,main:$I.ORANGE,dark:$I.ORANGE_DARK,contrastText:$I.WHITE},success:{light:$I.GREEN_PALE,main:$I.GREEN,dark:$I.GREEN_DARK,contrastText:$I.WHITE},info:{light:$I.BLUE_PALE,main:$I.BLUE,dark:$I.BLUE_DARK,contrastText:$I.WHITE},text:{primary:$I.TEXT_PRIMARY,secondary:$I.TEXT_SECONDARY,disabled:$I.GREYSCALE_0_30},action:{hover:$I.GREYSCALE_0_03,hoverOpacity:.05,selected:$I.GREYSCALE_0_05,focus:$I.MISC_FOCUS_BORDER},amethyst:{main:$I.PURPLE,light:$I.PURPLE_PALE,dark:$I.PURPLE_DARK,contrastText:$I.WHITE},background:{paper:$I.WHITE,default:$I.GREYSCALE_95},divider:$I.GREYSCALE_0_15},hM=e=>fM,mM=(e="light")=>({components:pM(),palette:hM(),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:HI,fontWeightLight:YI,fontWeightRegular:UI,fontWeightMedium:KI,fontWeightBold:XI,htmlFontSize:HI,fontFamily:JI.FONT_FAMILY,button:{fontWeight:KI,fontSize:HI,textTransform:"none"},body1:{fontSize:GI,lineHeight:"24px"},body2:{fontSize:HI,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:WI,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:GI,fontWeight:KI,lineHeight:"16px"},h6:{fontSize:HI,fontWeight:KI,lineHeight:"16px"},caption:{color:$I.TEXT_SECONDARY},subtitle1:{fontSize:HI,color:$I.TEXT_SECONDARY},subtitle2:{fontSize:BI,color:$I.TEXT_SECONDARY}},shape:{borderRadius:VI}});const gM=(e,t)=>{const{selections:r,styleService:n,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c}=t,d=function(e){var t;const r=mM();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),Fd({...r,direction:e})}("ltr");e.render(li.jsx(y.StrictMode,{children:li.jsx(xp,{theme:d,children:li.jsx(US,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c,children:li.jsx(uR,{selections:r,updatePageInfo:t.updatePageInfo,children:li.jsx(ZS,{styleService:n,children:li.jsx(jI,{...t})})})})})}))},bM={darker:.15,brighter:.3,opacity:.03},vM={darker:.3,brighter:.5,opacity:.05};var yM,xM,SM,EM;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(yM||(yM={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(xM||(xM={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(SM||(SM={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(EM||(EM={}));const CM=e=>e?`${parseInt(e,10)}px`:void 0,wM=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?Qt.Transparent:r}},RM=(e,t)=>+(parseInt(e,10)*Jt*t+8).toFixed(2),LM=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?Ut:"normal",AM=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",IM=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",MM=({fontStyle:e,fontWeight:t,fontSize:r,fontFamily:n})=>t?`${e} ${t} ${r} ${n}`:`${e} ${r} ${n}`,DM=(e,r,n)=>t((()=>(({layout:e,flags:t,effectiveProperties:r})=>{var n,o;const{qHyperCube:i,nullValueRepresentation:a,snapshotData:l}=e,{qNoOfLeftDims:s,qEffectiveInterColumnSortOrder:u,qMeasureInfo:c,qDimensionInfo:d}=i,p=!!l,f={x:Math.min(e.qHyperCube.qSize.qcx,Xt),y:Math.min(e.qHyperCube.qSize.qcy,Kt)},h=u.slice(0,s),m=e=>h.some((t=>t===e)),g=m(sE),b=new Map(u.map((e=>{var t;return[null!==(t=d[e])&&void 0!==t?t:sE,e]}))),v=c.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==a?void 0:a.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(g)return 0;const r=e%v.length;return t?r:c.findIndex((e=>e===v[r]))},getDimensionInfo:e=>e===sE?sE:d[e],getDimensionInfoIndex:e=>{var t;return null!==(t=b.get(e))&&void 0!==t?t:-1},size:f,isSnapshot:p,hasLimitedData:!p&&f.x<e.qHyperCube.qSize.qcx,hasData:f.x>0&&f.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:!(null==r||null===(n=r.qHyperCubeDef)||void 0===n||!n.qShowTotalsAbove),hasPseudoDimOnLeft:g,leftDimensionInfoIndexes:h,isLeftDimension:m,isFullyExpanded:!(null==r||null===(o=r.qHyperCubeDef)||void 0===o||!o.qAlwaysFullyExpanded),triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:v,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled(Mt)}})({layout:e,flags:r,effectiveProperties:n})),[e,n,r]),PM={},_M=e=>{const r=(e=>{const r=t((()=>({current:PM})),[]);return r.current=r.current===PM?e:r.current,r})(e);return r.current=e,r},OM=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=_M((e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/Ct.PixelsMin)}))(o));return Mn((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,u,c)||((e,t,r,n)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(n,l.qcx)||c<Math.min(r,l.qcy)})(i,n,u,c))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,l=Math.min(a+n.rowsPerPage,r.qcy),s=Math.min(Xt,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),r>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,r,i.qHyperCube.qSize,n,u,c);return t?e.getHyperCubePivotData(lE,HC(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},kM=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),TM=(e,t)=>{const r=Kt;return{rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:kM({rowsPerPage:r,totalRowCount:e,page:t})}},qM=e=>({gridColumnStartIndex:e.gridColumnStartIndex,gridRowStartIndex:e.gridRowStartIndex,gridWidth:e.gridWidth,gridHeight:e.gridHeight,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,verticalScrollbarWidth:e.verticalScrollbarWidth});var NM={SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const FM=()=>{const e=l(),r=e.language();return t((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(NM).forEach((t=>{e.add(NM[t])}))}}(e)),[e]),{translator:e,language:r}},zM=l=>{const{flags:v}=l,y=u(),x=(e=>{const r=t((()=>Yo(e)),[e]);return n((()=>()=>r.unmount()),[r]),r})(y),S=c(),E=d(),C=p(),w=f(),R=h(),L=m(),[A,I]=((e,t)=>Mn((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(E,S),M=DM(S,v,A),D=g(),P=((r,n,o)=>{const i=e();return t((()=>({...i,background:In(i,r,n,o)})),[i.name(),r,n,o])})(y),_=P.name(),{translator:O,language:k}=FM(),{pageInfo:T,updatePageInfo:q}=(e=>{const{size:t,layout:{qHyperCube:{qSize:r}}}=e,[i,a]=o({page:0,shouldShowPagination:r.qcy>t.y,...TM(r.qcy,0)});return n((()=>{a((t=>({...t,...TM(e.layout.qHyperCube.qSize.qcy,t.page),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,a]),n((()=>{const{page:e,totalPages:t}=i;if(e+1>t){const e=t-1,r=kM({...i,page:e});a({...i,page:e,rowsOnCurrentPage:r})}}),[i]),{pageInfo:i,updatePageInfo:e=>a({...i,...e,rowsOnCurrentPage:kM({...i,...e})})}})(M),N=((e,r)=>{const{viewState:n}=s();return t((()=>((e,t)=>{var r,n,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R;return{gridColumnStartIndex:null!==(r=null!==(n=null==t||null===(o=t.content)||void 0===o?void 0:o.gridColumnStartIndex)&&void 0!==n?n:null==e?void 0:e.gridColumnStartIndex)&&void 0!==r?r:0,gridRowStartIndex:null!==(i=null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.gridRowStartIndex)&&void 0!==a?a:null==e?void 0:e.gridRowStartIndex)&&void 0!==i?i:0,gridWidth:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.gridWidth)&&void 0!==u?u:null==e?void 0:e.gridWidth)&&void 0!==s?s:0,gridHeight:null!==(d=null!==(p=null==t||null===(f=t.content)||void 0===f?void 0:f.gridHeight)&&void 0!==p?p:null==e?void 0:e.gridHeight)&&void 0!==d?d:0,scrollTop:null!==(h=null!==(m=null==t||null===(g=t.content)||void 0===g?void 0:g.scrollTop)&&void 0!==m?m:null==e?void 0:e.scrollTop)&&void 0!==h?h:0,scrollLeft:null!==(b=null!==(v=null==t||null===(y=t.content)||void 0===y?void 0:y.scrollLeft)&&void 0!==v?v:null==e?void 0:e.scrollLeft)&&void 0!==b?b:0,leftGridScrollLeft:null!==(x=null!==(S=null==t||null===(E=t.content)||void 0===E?void 0:E.leftGridScrollLeft)&&void 0!==S?S:null==e?void 0:e.leftGridScrollLeft)&&void 0!==x?x:0,verticalScrollbarWidth:null!==(C=null!==(w=null==t||null===(R=t.content)||void 0===R?void 0:R.verticalScrollbarWidth)&&void 0!==w?w:null==e?void 0:e.verticalScrollbarWidth)&&void 0!==C?C:0}})(n,r.snapshotData)),[n,e.page,r.snapshotData])})(T,S),F=(({layoutService:e,viewService:t,rect:r,model:n})=>{var o;return i((async e=>{if(!e.snapshotData||!n||e.snapshotData.content)return e;if(null!=n&&n.getHyperCubePivotData){const{gridColumnStartIndex:o,gridRowStartIndex:i,gridWidth:a,gridHeight:l,scrollTop:s,scrollLeft:u,leftGridScrollLeft:c,verticalScrollbarWidth:d}=qM(t);e.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(lE,[{qLeft:t.gridColumnStartIndex,qTop:t.gridRowStartIndex,qWidth:t.gridWidth,qHeight:t.gridHeight}]),gridColumnStartIndex:o,gridRowStartIndex:i,gridWidth:a,gridHeight:l,scrollTop:s,scrollLeft:u,leftGridScrollLeft:c,verticalScrollbarWidth:d},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),a((()=>({getViewState:()=>qM(t)})),[t]),null!==(o=e.layout.snapshotData)&&void 0!==o&&o.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r})({rect:b(),layoutService:M,viewService:N,model:E}),[z,j]=OM({model:E,layoutService:M,viewService:N,pageInfo:T,rect:F}),$=t((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,A,I,M,D,P,_,O,k,T,q,N,F,z,j,$,B,H,G,W,V,Y,U,K;const X=null===(n=t.layout.components)||void 0===n?void 0:n.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,re=null==X?void 0:X.nullValues,ne=null==X?void 0:X.grid,oe=(t,r,n)=>e.getStyle(t,r,n),ie=+(null!==(o=null!==(i=null==ne?void 0:ne[yM.LineClamp])&&void 0!==i?i:oe(xM.Grid,SM.Grid,EM.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled(At)?+(null!==(a=null!==(l=null==ne?void 0:ne[yM.ColumnLineClamp])&&void 0!==l?l:oe(xM.Grid,SM.Grid,EM.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=wM(e,null==J?void 0:J[yM.Background]))&&void 0!==u?u:oe(xM.Dimension,SM.LabelName,EM.BackgroundColor))&&void 0!==s?s:Qt.Transparent,se={header:{fontSize:null!==(c=null!==(d=CM(null==J?void 0:J[yM.FontSize]))&&void 0!==d?d:oe(xM.Dimension,SM.LabelName,EM.FontSize))&&void 0!==c?c:Vt,fontFamily:null!==(p=null!==(f=null==J?void 0:J[yM.FontFamily])&&void 0!==f?f:oe(xM.Dimension,SM.LabelName,EM.FontFamily))&&void 0!==p?p:Yt,fontWeight:LM(null==J?void 0:J[yM.FontStyle],Ut),fontStyle:AM(null==J?void 0:J[yM.FontStyle]),textDecoration:IM(null==J?void 0:J[yM.FontStyle]),color:null!==(h=null!==(m=wM(e,null==J?void 0:J[yM.FontColor]))&&void 0!==m?m:oe(xM.Dimension,SM.LabelName,EM.Color))&&void 0!==h?h:mx.TEXT,background:le,hoverBackground:gx(le,bM),activeBackground:gx(le,vM)},dimensionValues:{fontSize:null!==(g=null!==(b=CM(null==Z?void 0:Z[yM.FontSize]))&&void 0!==b?b:oe(xM.Dimension,SM.LabelValue,EM.FontSize))&&void 0!==g?g:Vt,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[yM.FontFamily])&&void 0!==y?y:oe(xM.Dimension,SM.LabelValue,EM.FontFamily))&&void 0!==v?v:Yt,fontWeight:LM(null==Z?void 0:Z[yM.FontStyle],void 0),fontStyle:AM(null==Z?void 0:Z[yM.FontStyle]),textDecoration:IM(null==Z?void 0:Z[yM.FontStyle]),color:null!==(x=null!==(S=wM(e,null==Z?void 0:Z[yM.FontColor]))&&void 0!==S?S:oe(xM.Dimension,SM.LabelValue,EM.Color))&&void 0!==x?x:mx.TEXT,background:null!==(E=null!==(C=wM(e,null==Z?void 0:Z[yM.Background]))&&void 0!==C?C:oe(xM.Dimension,SM.LabelValue,EM.BackgroundColor))&&void 0!==E?E:Qt.Transparent},measureValues:{fontSize:null!==(w=null!==(R=CM(null==Q?void 0:Q[yM.FontSize]))&&void 0!==R?R:oe(xM.Measure,SM.LabelValue,EM.FontSize))&&void 0!==w?w:Vt,fontFamily:null!==(L=null!==(A=null==Q?void 0:Q[yM.FontFamily])&&void 0!==A?A:oe(xM.Measure,SM.LabelValue,EM.FontFamily))&&void 0!==L?L:Yt,fontWeight:LM(null==Q?void 0:Q[yM.FontStyle],"normal"),fontStyle:AM(null==Q?void 0:Q[yM.FontStyle]),textDecoration:IM(null==Q?void 0:Q[yM.FontStyle]),color:null!==(I=null!==(M=wM(e,null==Q?void 0:Q[yM.FontColor]))&&void 0!==M?M:oe(xM.Measure,SM.LabelValue,EM.Color))&&void 0!==I?I:Qt.FontSecondary,background:null!==(D=null!==(P=wM(e,null==Q?void 0:Q[yM.Background]))&&void 0!==P?P:oe(xM.Measure,SM.LabelValue,EM.BackgroundColor))&&void 0!==D?D:Qt.Transparent},measureLabels:{fontWeight:LM(null==ee?void 0:ee[yM.FontStyle],"normal"),fontStyle:AM(null==ee?void 0:ee[yM.FontStyle]),textDecoration:IM(null==ee?void 0:ee[yM.FontStyle]),color:null!==(_=null!==(O=wM(e,null==ee?void 0:ee[yM.FontColor]))&&void 0!==O?O:oe(xM.Measure,SM.LabelName,EM.Color))&&void 0!==_?_:Qt.FontSecondary,background:null!==(k=null!==(T=wM(e,null==ee?void 0:ee[yM.Background]))&&void 0!==T?T:oe(xM.Measure,SM.LabelName,EM.BackgroundColor))&&void 0!==k?k:Qt.Transparent},totalValues:{fontWeight:LM(null==te?void 0:te[yM.FontStyle],Ut),fontStyle:AM(null==te?void 0:te[yM.FontStyle]),textDecoration:IM(null==te?void 0:te[yM.FontStyle]),color:null!==(q=null!==(N=wM(e,null==te?void 0:te[yM.FontColor]))&&void 0!==N?N:oe(xM.Total,SM.LabelValue,EM.Color))&&void 0!==q?q:mx.TEXT,background:null!==(F=null!==(z=wM(e,null==te?void 0:te[yM.Background]))&&void 0!==z?z:oe(xM.Total,SM.LabelValue,EM.BackgroundColor))&&void 0!==F?F:Qt.Transparent},nullValues:{fontWeight:LM(null==re?void 0:re[yM.FontStyle],"normal"),fontStyle:AM(null==re?void 0:re[yM.FontStyle]),textDecoration:IM(null==re?void 0:re[yM.FontStyle]),color:null!==(j=null!==($=wM(e,null==re?void 0:re[yM.FontColor]))&&void 0!==$?$:oe(xM.Null,SM.LabelValue,EM.Color))&&void 0!==j?j:mx.TEXT,background:null!==(B=null!==(H=wM(e,null==re?void 0:re[yM.Background]))&&void 0!==H?H:oe(xM.Null,SM.LabelValue,EM.BackgroundColor))&&void 0!==B?B:Qt.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(G=null!==(W=wM(e,null==ne?void 0:ne[yM.Border]))&&void 0!==W?W:oe(xM.Grid,SM.Grid,EM.BorderColor))&&void 0!==G?G:Qt.DividerLight,divider:null!==(V=null!==(Y=wM(e,null==ne?void 0:ne[yM.Divider]))&&void 0!==Y?Y:oe(xM.Grid,SM.Divider,EM.BorderColor))&&void 0!==V?V:Qt.DividerDark,background:null!==(U=null!==(K=wM(e,null==ne?void 0:ne[yM.Background]))&&void 0!==K?K:oe(xM.Grid,SM.Grid,EM.BackgroundColor))&&void 0!==U?U:Qt.Transparent}};return se.headerCellHeight=Math.max(RM(se.header.fontSize,ae),RM(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(RM(se.measureValues.fontSize,ie),RM(se.dimensionValues.fontSize,ie),24),se.contentRowHeight=Math.max(RM(se.measureValues.fontSize,1),RM(se.dimensionValues.fontSize,1)),se.contentTextHeight=se.contentRowHeight-8,se})(P,M,v)),[P.name(),M,v]),B=(e=>t((()=>[...new Set([MM(e.header),MM(e.dimensionValues),MM({...e.dimensionValues,...e.measureLabels}),MM({...e.dimensionValues,...e.nullValues}),MM({...e.dimensionValues,...e.totalValues}),MM(e.measureValues),MM({...e.measureValues,...e.nullValues}),MM({...e.measureValues,...e.totalValues})])]),[e]))($),H=(e=>{const[t,n]=r((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return n?(console.warn("Failed to load font:",n),!0):!!t})(B);n((()=>{!j&&E&&(null==F?void 0:F.width)&&(null==F?void 0:F.height)&&D&&N&&M&&$&&!!z&&!I&&H&&gM(x,{model:E,app:C,rect:F,selections:D,viewService:N,layoutService:M,qPivotDataPages:z,styleService:$,translator:O,pageInfo:T,updatePageInfo:q,interactions:L,embed:w,keyboard:R,theme:P,flags:v})}),[E,C,F,null==F?void 0:F.width,null==F?void 0:F.height,L,D,N,M,j,z,$,x,H,O,k,T,q,A,I,w,R,P,_,v])},jM={version:"3.3.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]};function $M(e){return{qae:{properties:{initial:jM},data:ut(e)},ext:Lr(e),component(){zM(e)}}}export{$M as default};