@nebula.js/sn-pivot-table 3.8.0 → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,20 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v3.8.0
2
+ * @nebula.js/sn-pivot-table v3.8.2
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use strict";var t,n,r,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,A,I,M,D,P,_,O,T,k,q,N,F;return{setters:[function(e){t=e.useState,n=e.useEffect,r=e.useTheme,o=e.useMemo,i=e.usePromise,a=e.onContextMenu,l=e.useOptions,s=e.onTakeSnapshot,u=e.useImperativeHandle,c=e.useTranslator,d=e.useElement,p=e.useStaleLayout,f=e.useModel,h=e.useApp,m=e.useEmbed,g=e.useKeyboard,b=e.useInteractionState,v=e.useSelections,y=e.useRect},function(e){x=e,S=e.default,E=e.useContext,C=e.createElement,w=e.Children,R=e.isValidElement,L=e.cloneElement,A=e.useMemo,I=e.useState,M=e.useRef,D=e.forwardRef,P=e.useCallback,_=e.useEffect,O=e.createContext,T=e.memo,k=e.useLayoutEffect,q=e.PureComponent},function(e){N=e.default,F=e}],execute:function(){function z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function j(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}e("default",(function(e){return{qae:{properties:{initial:nP(e)},data:ht(e)},ext:On(e),component(){eP(e)}}}));var $={exports:{}};self,$.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,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(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,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(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Pe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=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,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.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 n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=h(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),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 n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?i:e[t],e=e[n||t]}})),e}function _(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){_(e[r],t[r])||(n=!1)})),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!_(e[r],t[r]))return!1;return!0}return e===t}L.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);_(i,a)||D(t,o)||(M(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(L.generate(a,i,l)):A(i)&&A(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(_(t,o))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(L.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!D(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},L.apply=function(e,t){t.forEach((function(t){var n,r,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)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!D(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=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,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const O=L,T=function(e,n,r){if(!e)return Promise.resolve();var o=O.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var k="accumulation";function q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===k)return n[r]}function N(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===k)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=q(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=q(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(k))return!1;var i=q(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const H={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),h=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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 n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(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,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var W="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function Y(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,U),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(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,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=n.showExcludedValues?E.getExcludedComp({modifier:n,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]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",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))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&n(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=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:H,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:De,apply:Oe,applyModifiers:Te,cleanUpMeasure:ke,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,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var _e={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;_e[n.id]=_e[n.id]||{isFirstTime:!0};var u=_e[n.id].isFirstTime;if(_e[n.id].isFirstTime=!1,r&&"object"===Me(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[n.id].lastReloadTime;if(_e[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Ge(r);var o=Qe(r);return Ue({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).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 n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&He(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Te({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Me(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return ke(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Ge(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!qe({measures:n,properties:r}))return n.forEach((function(e){return ke(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(l++,"object"!==Me(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");De[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:De[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[r.type].updateModifier&&De[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:De[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),Be(n)):ke(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function ke(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,Be(e)}function qe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(De[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||De[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Ge(e){ze(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!De[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function He(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=He(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ue(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var i=We(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Ge});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var L=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},D=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},P=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},_=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:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},k=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,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,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return 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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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),r.dimensions.added(e,n)}))}},G=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},B=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function H(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:s}),m({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?_():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}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),k({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),G({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,r),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:I}),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,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function 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 n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(Y(a,t,r,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,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},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",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),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,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?H(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):H(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var 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",Te="dimensions",ke="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:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:je,arrayName:_e,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:ke,quarantineName:je,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:ke,quarantineName:je,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})}},Ge={hypercube:W,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:H,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:$e}})(),r.default})();var G=z($.exports);const B="qHyperCubeDef.qDimensions",H="dimensions",W="qDef.representation",V="tableRepresentation",Y=e=>{G.unquarantineArrayProp({properties:e,arrayPath:B,itemPath:W,arrayName:H,quarantineName:V})},U=e=>{G.quarantineArrayProp({properties:e,arrayPath:B,itemPath:W,arrayName:H,quarantineName:V})};var K=["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"],X=["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 J(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?X:K}var Z=Object.prototype.hasOwnProperty,Q=Object.prototype.toString,ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,ne=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Q.call(e)},re=function(e){if(!e||"[object Object]"!==Q.call(e))return!1;var t,n=Z.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Z.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Z.call(e,t)},oe=function(e,t){ee&&"__proto__"===t.name?ee(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ie=function(e,t){if("__proto__"===t){if(!Z.call(e,t))return;if(te)return te(e,t).value}return e[t]};function ae(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function le(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function se(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=ie(l,n),l!==(o=ie(t,n))&&(c&&o&&(re(o)||(i=ne(o)))?(i?(i=!1,a=r&&ne(r)?r:[]):a=r&&re(r)?r:{},oe(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&oe(l,{name:n,newValue:o}));return l}));var ue=1/.7,ce="\\s*([+-]?\\d+)\\s*",de="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fe=/^#([0-9a-f]{3,8})$/,he=new RegExp(`^rgb\\(${ce},${ce},${ce}\\)$`),me=new RegExp(`^rgb\\(${pe},${pe},${pe}\\)$`),ge=new RegExp(`^rgba\\(${ce},${ce},${ce},${de}\\)$`),be=new RegExp(`^rgba\\(${pe},${pe},${pe},${de}\\)$`),ve=new RegExp(`^hsl\\(${de},${pe},${pe}\\)$`),ye=new RegExp(`^hsla\\(${de},${pe},${pe},${de}\\)$`),xe={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 Se(){return this.rgb().formatHex()}function Ee(){return this.rgb().formatRgb()}function Ce(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=fe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?we(t):3===n?new Ie(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Re(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Re(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=he.exec(e))?new Ie(t[1],t[2],t[3],1):(t=me.exec(e))?new Ie(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ge.exec(e))?Re(t[1],t[2],t[3],t[4]):(t=be.exec(e))?Re(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ve.exec(e))?Te(t[1],t[2]/100,t[3]/100,1):(t=ye.exec(e))?Te(t[1],t[2]/100,t[3]/100,t[4]):xe.hasOwnProperty(e)?we(xe[e]):"transparent"===e?new Ie(NaN,NaN,NaN,0):null}function we(e){return new Ie(e>>16&255,e>>8&255,255&e,1)}function Re(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ie(e,t,n,r)}function Le(e){return e instanceof se||(e=Ce(e)),e?new Ie((e=e.rgb()).r,e.g,e.b,e.opacity):new Ie}function Ae(e,t,n,r){return 1===arguments.length?Le(e):new Ie(e,t,n,null==r?1:r)}function Ie(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Me(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function De(){const e=Pe(this.opacity);return`${1===e?"rgb(":"rgba("}${_e(this.r)}, ${_e(this.g)}, ${_e(this.b)}${1===e?")":`, ${e})`}`}function Pe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _e(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=_e(e))<16?"0":"")+e.toString(16)}function Te(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qe(e,t,n,r)}function ke(e){if(e instanceof qe)return new qe(e.h,e.s,e.l,e.opacity);if(e instanceof se||(e=Ce(e)),!e)return new qe;if(e instanceof qe)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new qe(a,l,s,e.opacity)}function qe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ne(e){return(e=(e||0)%360)<0?e+360:e}function Fe(e){return Math.max(0,Math.min(1,e||0))}function ze(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ae(se,Ce,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Se,formatHex:Se,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ke(this).formatHsl()},formatRgb:Ee,toString:Ee}),ae(Ie,Ae,le(se,{brighter(e){return e=null==e?ue:Math.pow(ue,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ie(_e(this.r),_e(this.g),_e(this.b),Pe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Me,formatHex:Me,formatHex8:function(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:De,toString:De})),ae(qe,(function(e,t,n,r){return 1===arguments.length?ke(e):new qe(e,t,n,null==r?1:r)}),le(se,{brighter(e){return e=null==e?ue:Math.pow(ue,e),new qe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new qe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ie(ze(e>=240?e-240:e+120,o,r),ze(e,o,r),ze(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new qe(Ne(this.h),Fe(this.s),Fe(this.l),Pe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Pe(this.opacity);return`${1===e?"hsl(":"hsla("}${Ne(this.h)}, ${100*Fe(this.s)}%, ${100*Fe(this.l)}%${1===e?")":`, ${e})`}`}}));const je=Math.PI/180,$e=180/Math.PI,Ge=4/29,Be=6/29,He=3*Be*Be;function We(e){if(e instanceof Ve)return new Ve(e.l,e.a,e.b,e.opacity);if(e instanceof Je)return Ze(e);e instanceof Ie||(e=Le(e));var t,n,r=Xe(e.r),o=Xe(e.g),i=Xe(e.b),a=Ye((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Ye((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Ye((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Ve(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Ve(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ye(e){return e>.008856451679035631?Math.pow(e,1/3):e/He+Ge}function Ue(e){return e>Be?e*e*e:He*(e-Ge)}function Ke(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Xe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Je(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Ze(e){if(isNaN(e.h))return new Ve(e.l,0,0,e.opacity);var t=e.h*je;return new Ve(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ae(Ve,(function(e,t,n,r){return 1===arguments.length?We(e):new Ve(e,t,n,null==r?1:r)}),le(se,{brighter(e){return new Ve(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ve(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ie(Ke(3.1338561*(t=.96422*Ue(t))-1.6168667*(e=1*Ue(e))-.4906146*(n=.82521*Ue(n))),Ke(-.9787684*t+1.9161415*e+.033454*n),Ke(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ae(Je,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Je)return new Je(e.h,e.c,e.l,e.opacity);if(e instanceof Ve||(e=We(e)),0===e.a&&0===e.b)return new Je(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*$e;return new Je(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Je(e,t,n,null==r?1:r)}),le(se,{brighter(e){return new Je(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Je(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ze(this).rgb()}}));var Qe=e=>()=>e;function et(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Qe(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?et:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Qe(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Ae(e)).r,(t=Ae(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=et(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var tt="center",nt="bottom";[{key:"NoDataExist",alignment:tt,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:tt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:tt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:tt},{key:"DataRangeIncludingZero",alignment:nt},{key:"LimitedData",alignment:nt},{key:"NegativeOrZeroValues",alignment:nt}].reduce((function(e,t){return e[t.key]=t,e}),{});var rt,ot=["__proto__","constructor"];function it(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!ot.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function at(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}function lt(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function st(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ct)):void 0===t&&(t=ut);for(var n,r,o,i,a,l=new ft(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new ft(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(pt)}function ut(e){return e.children}function ct(e){return Array.isArray(e)?e[1]:null}function dt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function pt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function ft(e){this.data=e,this.depth=this.height=0,this.parent=null}function ht(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o=r&&"rows"===r.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}ft.prototype=st.prototype={constructor:ft,count:function(){return this.eachAfter(lt)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return st(this).eachBefore(dt)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},rt=function(e){
7
+ System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use strict";var t,n,r,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,A,I,M,D,P,_,O,T,k,q,N,F;return{setters:[function(e){t=e.useState,n=e.useEffect,r=e.useTheme,o=e.useMemo,i=e.usePromise,a=e.onContextMenu,l=e.useOptions,s=e.onTakeSnapshot,u=e.useImperativeHandle,c=e.useTranslator,d=e.useElement,p=e.useStaleLayout,f=e.useModel,h=e.useApp,m=e.useEmbed,g=e.useKeyboard,b=e.useInteractionState,v=e.useSelections,y=e.useRect},function(e){x=e,S=e.default,E=e.useContext,C=e.createElement,w=e.Children,R=e.isValidElement,L=e.cloneElement,A=e.useMemo,I=e.useState,M=e.useRef,D=e.forwardRef,P=e.useCallback,_=e.useEffect,O=e.createContext,T=e.memo,k=e.useLayoutEffect,q=e.PureComponent},function(e){N=e.default,F=e}],execute:function(){function z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function j(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}e("default",(function(e){return{qae:{properties:{initial:QD(e)},data:ht(e)},ext:On(e),component(){JD(e)}}}));var $={exports:{}};self,$.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,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(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,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(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Pe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=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,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.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 n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=h(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),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 n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?i:e[t],e=e[n||t]}})),e}function _(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){_(e[r],t[r])||(n=!1)})),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!_(e[r],t[r]))return!1;return!0}return e===t}L.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);_(i,a)||D(t,o)||(M(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(L.generate(a,i,l)):A(i)&&A(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(_(t,o))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(L.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!D(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},L.apply=function(e,t){t.forEach((function(t){var n,r,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)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!D(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=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,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const O=L,T=function(e,n,r){if(!e)return Promise.resolve();var o=O.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var k="accumulation";function q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===k)return n[r]}function N(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===k)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=q(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=q(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(k))return!1;var i=q(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const H={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),h=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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 n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(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,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var W="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function Y(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,U),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(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,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=n.showExcludedValues?E.getExcludedComp({modifier:n,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]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",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))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&n(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=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:H,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:De,apply:Oe,applyModifiers:Te,cleanUpMeasure:ke,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,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var _e={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;_e[n.id]=_e[n.id]||{isFirstTime:!0};var u=_e[n.id].isFirstTime;if(_e[n.id].isFirstTime=!1,r&&"object"===Me(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[n.id].lastReloadTime;if(_e[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Ge(r);var o=Qe(r);return Ue({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).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 n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&He(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Te({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Me(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return ke(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Ge(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!qe({measures:n,properties:r}))return n.forEach((function(e){return ke(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(l++,"object"!==Me(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");De[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:De[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[r.type].updateModifier&&De[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:De[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),Be(n)):ke(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function ke(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,Be(e)}function qe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(De[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||De[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Ge(e){ze(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!De[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function He(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=He(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ue(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var i=We(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Ge});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var L=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},D=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},P=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},_=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:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},k=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,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,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return 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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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),r.dimensions.added(e,n)}))}},G=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},B=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function H(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:s}),m({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?_():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}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),k({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),G({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,r),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:I}),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,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function 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 n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(Y(a,t,r,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,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},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",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),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,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?H(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):H(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var 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",Te="dimensions",ke="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:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:je,arrayName:_e,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:ke,quarantineName:je,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:ke,quarantineName:je,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})}},Ge={hypercube:W,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:H,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:$e}})(),r.default})();var G=z($.exports);const B="qHyperCubeDef.qDimensions",H="dimensions",W="qDef.representation",V="tableRepresentation",Y=e=>{G.unquarantineArrayProp({properties:e,arrayPath:B,itemPath:W,arrayName:H,quarantineName:V})},U=e=>{G.quarantineArrayProp({properties:e,arrayPath:B,itemPath:W,arrayName:H,quarantineName:V})};var K=["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"],X=["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 J(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?X:K}var Z=Object.prototype.hasOwnProperty,Q=Object.prototype.toString,ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,ne=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Q.call(e)},re=function(e){if(!e||"[object Object]"!==Q.call(e))return!1;var t,n=Z.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Z.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Z.call(e,t)},oe=function(e,t){ee&&"__proto__"===t.name?ee(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ie=function(e,t){if("__proto__"===t){if(!Z.call(e,t))return;if(te)return te(e,t).value}return e[t]};function ae(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function le(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function se(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=ie(l,n),l!==(o=ie(t,n))&&(c&&o&&(re(o)||(i=ne(o)))?(i?(i=!1,a=r&&ne(r)?r:[]):a=r&&re(r)?r:{},oe(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&oe(l,{name:n,newValue:o}));return l}));var ue=1/.7,ce="\\s*([+-]?\\d+)\\s*",de="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fe=/^#([0-9a-f]{3,8})$/,he=new RegExp(`^rgb\\(${ce},${ce},${ce}\\)$`),me=new RegExp(`^rgb\\(${pe},${pe},${pe}\\)$`),ge=new RegExp(`^rgba\\(${ce},${ce},${ce},${de}\\)$`),be=new RegExp(`^rgba\\(${pe},${pe},${pe},${de}\\)$`),ve=new RegExp(`^hsl\\(${de},${pe},${pe}\\)$`),ye=new RegExp(`^hsla\\(${de},${pe},${pe},${de}\\)$`),xe={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 Se(){return this.rgb().formatHex()}function Ee(){return this.rgb().formatRgb()}function Ce(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=fe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?we(t):3===n?new Ie(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Re(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Re(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=he.exec(e))?new Ie(t[1],t[2],t[3],1):(t=me.exec(e))?new Ie(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ge.exec(e))?Re(t[1],t[2],t[3],t[4]):(t=be.exec(e))?Re(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ve.exec(e))?Te(t[1],t[2]/100,t[3]/100,1):(t=ye.exec(e))?Te(t[1],t[2]/100,t[3]/100,t[4]):xe.hasOwnProperty(e)?we(xe[e]):"transparent"===e?new Ie(NaN,NaN,NaN,0):null}function we(e){return new Ie(e>>16&255,e>>8&255,255&e,1)}function Re(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ie(e,t,n,r)}function Le(e){return e instanceof se||(e=Ce(e)),e?new Ie((e=e.rgb()).r,e.g,e.b,e.opacity):new Ie}function Ae(e,t,n,r){return 1===arguments.length?Le(e):new Ie(e,t,n,null==r?1:r)}function Ie(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Me(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function De(){const e=Pe(this.opacity);return`${1===e?"rgb(":"rgba("}${_e(this.r)}, ${_e(this.g)}, ${_e(this.b)}${1===e?")":`, ${e})`}`}function Pe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _e(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=_e(e))<16?"0":"")+e.toString(16)}function Te(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qe(e,t,n,r)}function ke(e){if(e instanceof qe)return new qe(e.h,e.s,e.l,e.opacity);if(e instanceof se||(e=Ce(e)),!e)return new qe;if(e instanceof qe)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new qe(a,l,s,e.opacity)}function qe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ne(e){return(e=(e||0)%360)<0?e+360:e}function Fe(e){return Math.max(0,Math.min(1,e||0))}function ze(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ae(se,Ce,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Se,formatHex:Se,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ke(this).formatHsl()},formatRgb:Ee,toString:Ee}),ae(Ie,Ae,le(se,{brighter(e){return e=null==e?ue:Math.pow(ue,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ie(_e(this.r),_e(this.g),_e(this.b),Pe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Me,formatHex:Me,formatHex8:function(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:De,toString:De})),ae(qe,(function(e,t,n,r){return 1===arguments.length?ke(e):new qe(e,t,n,null==r?1:r)}),le(se,{brighter(e){return e=null==e?ue:Math.pow(ue,e),new qe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new qe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ie(ze(e>=240?e-240:e+120,o,r),ze(e,o,r),ze(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new qe(Ne(this.h),Fe(this.s),Fe(this.l),Pe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Pe(this.opacity);return`${1===e?"hsl(":"hsla("}${Ne(this.h)}, ${100*Fe(this.s)}%, ${100*Fe(this.l)}%${1===e?")":`, ${e})`}`}}));const je=Math.PI/180,$e=180/Math.PI,Ge=4/29,Be=6/29,He=3*Be*Be;function We(e){if(e instanceof Ve)return new Ve(e.l,e.a,e.b,e.opacity);if(e instanceof Je)return Ze(e);e instanceof Ie||(e=Le(e));var t,n,r=Xe(e.r),o=Xe(e.g),i=Xe(e.b),a=Ye((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Ye((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Ye((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Ve(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Ve(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ye(e){return e>.008856451679035631?Math.pow(e,1/3):e/He+Ge}function Ue(e){return e>Be?e*e*e:He*(e-Ge)}function Ke(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Xe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Je(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Ze(e){if(isNaN(e.h))return new Ve(e.l,0,0,e.opacity);var t=e.h*je;return new Ve(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ae(Ve,(function(e,t,n,r){return 1===arguments.length?We(e):new Ve(e,t,n,null==r?1:r)}),le(se,{brighter(e){return new Ve(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ve(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ie(Ke(3.1338561*(t=.96422*Ue(t))-1.6168667*(e=1*Ue(e))-.4906146*(n=.82521*Ue(n))),Ke(-.9787684*t+1.9161415*e+.033454*n),Ke(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ae(Je,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Je)return new Je(e.h,e.c,e.l,e.opacity);if(e instanceof Ve||(e=We(e)),0===e.a&&0===e.b)return new Je(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*$e;return new Je(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Je(e,t,n,null==r?1:r)}),le(se,{brighter(e){return new Je(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Je(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ze(this).rgb()}}));var Qe=e=>()=>e;function et(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Qe(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?et:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Qe(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Ae(e)).r,(t=Ae(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=et(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var tt="center",nt="bottom";[{key:"NoDataExist",alignment:tt,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:tt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:tt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:tt},{key:"DataRangeIncludingZero",alignment:nt},{key:"LimitedData",alignment:nt},{key:"NegativeOrZeroValues",alignment:nt}].reduce((function(e,t){return e[t.key]=t,e}),{});var rt,ot=["__proto__","constructor"];function it(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!ot.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function at(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}function lt(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function st(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ct)):void 0===t&&(t=ut);for(var n,r,o,i,a,l=new ft(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new ft(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(pt)}function ut(e){return e.children}function ct(e){return Array.isArray(e)?e[1]:null}function dt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function pt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function ft(e){this.data=e,this.depth=this.height=0,this.parent=null}function ht(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o=r&&"rows"===r.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}ft.prototype=st.prototype={constructor:ft,count:function(){return this.eachAfter(lt)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return st(this).eachBefore(dt)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},rt=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),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(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(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"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},rt({exports:{}});const mt="qHyperCubeDef.qDimensions",gt="dimensions",bt="qOtherTotalSpec.qTotalMode",vt="totalMode",yt={quarantine(e){G.quarantineArrayProp({properties:e,arrayPath:mt,quarantineName:vt,arrayName:gt,itemPath:bt})},unquarantine(e){G.unquarantineArrayProp({properties:e,arrayPath:mt,quarantineName:vt,arrayName:gt,itemPath:bt})}};function xt(e){const t=ht(e);return(e,n,r,o)=>{var i,a,l,s,u,c;const d=G.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),p=((null===(i=d.qProperty)||void 0===i||null===(i=i.qHyperCubeDef)||void 0===i?void 0:i.qDimensions)||[]).length,f=(null===(a=d.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a||null===(a=a.qMeasures)||void 0===a?void 0:a.length)||0;let 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&&it(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],it(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&&it(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&&G.unquarantineProperty(d.qProperty,"noOfLeftDims")}return G.conditionalShow.unquarantine(d.qProperty),yt.unquarantine(d.qProperty),Y(d.qProperty),G.unquarantineProperty(d.qProperty,"pivotTableIndentMode"),d}}function St(e,t){var n,r,o;const i=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=G.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;it(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),G.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,it(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),it(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 G.quarantineProperty(s.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),G.conditionalShow.quarantine(s.properties),yt.quarantine(s.properties),U(s.properties),s}const Et={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Ct=(e,t)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},wt=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},Rt=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},Lt=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5715_LINKS"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:Ct(a,i),...wt(i),...Rt(a)}},At=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.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}};var It,Mt,Dt,Pt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(It||(It={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Mt||(Mt={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Dt||(Dt={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Pt||(Pt={}));const _t="12px",Ot="nebula-table-utils-head-menu-button",Tt="sn-copy-cell";let kt=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 qt="nebula-table-utils-column-adjuster",Nt=`${qt}-border`;let Ft=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),zt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});var jt,$t;!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"}(jt||(jt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}($t||($t={}));var Gt=jt;const Bt="image",Ht=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},Wt=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),Vt=e=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:zt.Auto,translation:"Common.Auto"},{value:zt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:zt.Pixels,translation:"Object.Table.Column.Pixels"},{value:zt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:zt.Auto,show:(t,n,r)=>Wt(r,e)},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Ft.PixelsDefault,show:(t,n,r)=>{var o;return Wt(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===zt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(Ft.PixelsMin,Math.min(Ft.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Ft.PercentageDefault,show:(t,n,r)=>{var o;return Wt(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===zt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(Ft.PercentageMin,Math.min(Ft.PercentageMax,e.qDef.columnWidth.percentage)))}}}),Yt=({key:e,translation:t,env:n})=>{var r,o;if(!n.flags.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN"))return;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"tableImages"));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 n;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==Bt}},[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 n,r;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!i||"labelTextAlign"===e||(null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==Bt)}}}},Ut="TOTAL_OFF",Kt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Mt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Mt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Xt="TOTAL_OFF",Jt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Mt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Mt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Zt=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o,flags:i}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",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:Ut,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Ut,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&Ht},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==Ut&&Ht(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{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}},presentation:{type:"items",translation:"properties.presentation",items:{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:Kt,...Yt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Yt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Lt(e),...Vt(i)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",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}},presentation:{type:"items",translation:"properties.presentation",items:{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:Kt,...Yt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Yt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...At(e),...Vt(i)}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{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:Xt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Xt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&Ht},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==Xt&&Ht(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{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,...Yt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Yt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Lt(e),...Vt(i)}},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,...Yt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Yt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...At(e),...Vt(i)}}}}},Qt="12px",en="Source Sans Pro, sans-serif",tn="600",nn=15e3,rn=4/3,on=1;var an,ln;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(an||(an={})),function(e){e.Solid="solid",e.None="none"}(ln||(ln={}));const sn={display:"flex",justifyContent:"center",alignItems:"center"},un={borderStyle:"solid"},cn={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},dn={lineHeight:rn,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},pn=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),fn=(e,t)=>e>0?`${e}px ${ln.Solid} ${t}`:ln.None,hn=(e,t,n,r)=>{const o=Number(!t||(null==r?void 0:r.right)),i=Number(!e||(null==r?void 0:r.bottom));return{borderRight:fn(o,n),borderBottom:fn(i,n),borderLeft:ln.None,borderTop:ln.None}},mn=(e,t,n,r,o,i)=>{const a=hn(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=fn(2,o)),n||(a.borderLeft=fn(1,o))),a},gn=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=fn(1,n)),t&&(r.borderRight=fn(1,n)),r},bn=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:i===an.Transparent.toString()?"none":i}}}),vn=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),yn=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:vn("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?vn("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:bn("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:an.DividerLight})),divider:bn("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:an.DividerDark})),background:bn("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:an.Transparent}))}}}}),xn=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},Sn=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:en,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>xn(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...J(r).filter((e=>!s.includes(e))).map((e=>xn(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),En=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Cn=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>xn(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...En.filter((e=>!a.includes(e))).map((e=>xn(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),wn=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},Rn=({section:e,defaultFontStyle:t,translator:n,flags:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Sn({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=wn(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Cn({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=wn(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:bn(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=wn(t,e,"color"))&&void 0!==n?n:t.color}))}},background:bn(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=wn(t,e,"backgroundColor"))&&void 0!==n?n:an.Transparent}))}}}}),Ln=({section:e,defaultFontStyle:t,fallbackBackground:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:bn(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=wn(t,e,"color"))&&void 0!==n?n:t.color}))}},background:bn(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=wn(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:an.Transparent}))}}}}),An=(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:Rn({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:Rn({section:"dimensionValues",translator:e,flags:t}),measureValueSection:Rn({section:"measureValues",translator:e,flags:t}),measureLabelSection:Ln({section:"measureLabels"}),totalValuesSection:Ln({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:Ln({section:"nullValues",fallbackBackground:an.NullValueBackground}),gridSection:yn(t)}}]}),In=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:!0,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:zt.Auto,translation:"Common.Auto"},{value:zt.Pixels,translation:"Object.Table.Column.Pixels"},{value:zt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:zt.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Ft.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===zt.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(Ft.PixelsMin,Math.min(Ft.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Ft.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===zt.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(Ft.PercentageMin,Math.min(Ft.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},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,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}),Mn=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[An(e,t),In(t)]}}}),Dn="auto",Pn={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:Dn,translation:"Object.Table.SortingInSearch",options:[{value:Dn,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function _n(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:Zt(e),sorting:Pn,addons:Et,settings:Mn(t,n)}}}function On(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:_n(e),importProperties:xt(e),exportProperties:St}}function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tn.apply(this,arguments)}var kn={exports:{}};function qn(){}function Nn(){}Nn.resetWarningCache=qn;kn.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Nn,resetWarningCache:qn};return n.PropTypes=n,n}();var Fn=z(kn.exports);function zn(e){if(e.type)return e;if("#"===e.charAt(0))return zn(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function jn(e,t){return e=zn(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function $n(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Gn(e,t){return Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gn(e,t)}function Bn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gn(e,t)}const Hn={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"},Wn={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",...Hn,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)"},Vn=12,Yn=14,Un=16,Kn=24,Xn=3,Jn=300,Zn=400,Qn=600,er=700,tr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};jn(Wn.GREYSCALE_0,.05),jn(Wn.GREEN_PALE,.5),jn(Wn.BLUE_PALE,.5),jn(Wn.GREEN_PALE,.5),jn(Wn.BLUE_PALE,.5),jn(Wn.GREEN_PALE,.5),jn(Wn.BLUE_PALE,.5);var nr;function rr(){return rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rr.apply(this,arguments)}jn(Wn.GREEN_PALE,.5),jn(Wn.BLUE_PALE,.5),jn(Wn.GREEN_PALE,.5),jn(Wn.BLUE_PALE,.5);var or,ir=function(e){return x.createElement("svg",rr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),nr||(nr=x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ar.apply(this,arguments)}var lr=function(e){return x.createElement("svg",ar({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),or||(or=x.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 sr({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return S.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var ur=(e={})=>S.createElement(sr,{...e},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},S.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),S.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"}))),cr=(e={})=>S.createElement(sr,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),S.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),dr=(e={})=>S.createElement(sr,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},S.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),pr=(e={})=>S.createElement(sr,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),S.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"}))),fr=({className:e})=>S.createElement(sr,{fontSize:"small",className:e},S.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},S.createElement("g",{transform:"translate(4.324187, 1.300372)"},S.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"}),S.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 hr={black:"#000",white:"#fff"};var mr={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 gr={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 br={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 vr={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 yr={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 xr={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 Sr={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 Er(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 Cr="$$material";function wr(){return wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wr.apply(this,arguments)}function Rr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Lr(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 Ar=Object.freeze({__proto__:null,default:Lr}),Ir=function(){return Ir=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ir.apply(this,arguments)};function Mr(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Dr="-ms-",Pr="-moz-",_r="-webkit-",Or="comm",Tr="rule",kr="decl",qr="@import",Nr="@keyframes",Fr="@layer",zr=Math.abs,jr=String.fromCharCode,$r=Object.assign;function Gr(e){return e.trim()}function Br(e,t){return(e=t.exec(e))?e[0]:e}function Hr(e,t,n){return e.replace(t,n)}function Wr(e,t,n){return e.indexOf(t,n)}function Vr(e,t){return 0|e.charCodeAt(t)}function Yr(e,t,n){return e.slice(t,n)}function Ur(e){return e.length}function Kr(e){return e.length}function Xr(e,t){return t.push(e),e}function Jr(e,t){return e.filter((function(e){return!Br(e,t)}))}var Zr=1,Qr=1,eo=0,to=0,no=0,ro="";function oo(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Zr,column:Qr,length:a,return:"",siblings:l}}function io(e,t){return $r(oo("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ao(e){for(;e.root;)e=io(e.root,{children:[e]});Xr(e,e.siblings)}function lo(){return no=to>0?Vr(ro,--to):0,Qr--,10===no&&(Qr=1,Zr--),no}function so(){return no=to<eo?Vr(ro,to++):0,Qr++,10===no&&(Qr=1,Zr++),no}function uo(){return Vr(ro,to)}function co(){return to}function po(e,t){return Yr(ro,e,t)}function fo(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 ho(e){return Gr(po(to-1,bo(91===e?e+2:40===e?e+1:e)))}function mo(e){for(;(no=uo())&&no<33;)so();return fo(e)>2||fo(no)>3?"":" "}function go(e,t){for(;--t&&so()&&!(no<48||no>102||no>57&&no<65||no>70&&no<97););return po(e,co()+(t<6&&32==uo()&&32==so()))}function bo(e){for(;so();)switch(no){case e:return to;case 34:case 39:34!==e&&39!==e&&bo(no);break;case 40:41===e&&bo(e);break;case 92:so()}return to}function vo(e,t){for(;so()&&e+no!==57&&(e+no!==84||47!==uo()););return"/*"+po(t,to-1)+"*"+jr(47===e?e:so())}function yo(e){for(;!fo(uo());)so();return po(e,to)}function xo(e){return function(e){return ro="",e}(So("",null,null,null,[""],e=function(e){return Zr=Qr=1,eo=Ur(ro=e),to=0,[]}(e),0,[0],e))}function So(e,t,n,r,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=r,C=y;g;)switch(h=v,v=so()){case 40:if(108!=h&&58==Vr(C,d-1)){-1!=Wr(C+=Hr(ho(v),"&","&\f"),"&\f",zr(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=ho(v);break;case 9:case 10:case 13:case 32:C+=mo(h);break;case 92:C+=go(co()-1,7);continue;case 47:switch(uo()){case 42:case 47:Xr(Co(vo(so(),co()),t,n,s),s);break;default:C+="/"}break;case 123*m:l[u++]=Ur(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Hr(C,/\f/g,"")),f>0&&Ur(C)-d&&Xr(f>32?wo(C+";",r,n,d-1,s):wo(Hr(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Xr(E=Eo(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)So(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Vr(C,3)?100:p){case 100:case 108:case 109:case 115:So(e,E,E,r&&Xr(Eo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:So(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Ur(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==lo())continue;switch(C+=jr(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Ur(C)-1)*b,b=1;break;case 64:45===uo()&&(C+=ho(so())),p=uo(),c=d=Ur(y=C+=yo(co())),v++;break;case 45:45===h&&2==Ur(C)&&(m=0)}}return i}function Eo(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Kr(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=Yr(e,p+1,p=zr(g=a[m])),x=e;v<h;++v)(x=Gr(g>0?f[v]+" "+y:Hr(y,/&\f/g,f[v])))&&(s[b++]=x);return oo(e,t,n,0===o?Tr:l,s,u,c,d)}function Co(e,t,n,r){return oo(e,t,n,Or,jr(no),Yr(e,2,-2),0,r)}function wo(e,t,n,r,o){return oo(e,t,n,kr,Yr(e,0,r),Yr(e,r+1,-1),r,o)}function Ro(e,t,n){switch(function(e,t){return 45^Vr(e,0)?(((t<<2^Vr(e,0))<<2^Vr(e,1))<<2^Vr(e,2))<<2^Vr(e,3):0}(e,t)){case 5103:return _r+"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 _r+e+e;case 4789:return Pr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _r+e+Pr+e+Dr+e+e;case 5936:switch(Vr(e,t+11)){case 114:return _r+e+Dr+Hr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _r+e+Dr+Hr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _r+e+Dr+Hr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _r+e+Dr+e+e;case 6165:return _r+e+Dr+"flex-"+e+e;case 5187:return _r+e+Hr(e,/(\w+).+(:[^]+)/,_r+"box-$1$2"+Dr+"flex-$1$2")+e;case 5443:return _r+e+Dr+"flex-item-"+Hr(e,/flex-|-self/g,"")+(Br(e,/flex-|baseline/)?"":Dr+"grid-row-"+Hr(e,/flex-|-self/g,""))+e;case 4675:return _r+e+Dr+"flex-line-pack"+Hr(e,/align-content|flex-|-self/g,"")+e;case 5548:return _r+e+Dr+Hr(e,"shrink","negative")+e;case 5292:return _r+e+Dr+Hr(e,"basis","preferred-size")+e;case 6060:return _r+"box-"+Hr(e,"-grow","")+_r+e+Dr+Hr(e,"grow","positive")+e;case 4554:return _r+Hr(e,/([^-])(transform)/g,"$1"+_r+"$2")+e;case 6187:return Hr(Hr(Hr(e,/(zoom-|grab)/,_r+"$1"),/(image-set)/,_r+"$1"),e,"")+e;case 5495:case 3959:return Hr(e,/(image-set\([^]*)/,_r+"$1$`$1");case 4968:return Hr(Hr(e,/(.+:)(flex-)?(.*)/,_r+"box-pack:$3"+Dr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_r+e+e;case 4200:if(!Br(e,/flex-|baseline/))return Dr+"grid-column-align"+Yr(e,t)+e;break;case 2592:case 3360:return Dr+Hr(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Br(e.props,/grid-\w+-end/)}))?~Wr(e+(n=n[t].value),"span",0)?e:Dr+Hr(e,"-start","")+e+Dr+"grid-row-span:"+(~Wr(n,"span",0)?Br(n,/\d+/):+Br(n,/\d+/)-+Br(e,/\d+/))+";":Dr+Hr(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Br(e.props,/grid-\w+-start/)}))?e:Dr+Hr(Hr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Hr(e,/(.+)-inline(.+)/,_r+"$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(Ur(e)-1-t>6)switch(Vr(e,t+1)){case 109:if(45!==Vr(e,t+4))break;case 102:return Hr(e,/(.+:)(.+)-([^]+)/,"$1"+_r+"$2-$3$1"+Pr+(108==Vr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Wr(e,"stretch",0)?Ro(Hr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Hr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Dr+n+":"+r+l+(o?Dr+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===Vr(e,t+6))return Hr(e,":",":"+_r)+e;break;case 6444:switch(Vr(e,45===Vr(e,14)?18:11)){case 120:return Hr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_r+(45===Vr(e,14)?"inline-":"")+"box$3$1"+_r+"$2$3$1"+Dr+"$2box$3")+e;case 100:return Hr(e,":",":"+Dr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Hr(e,"scroll-","scroll-snap-")+e}return e}function Lo(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ao(e,t,n,r){switch(e.type){case Fr:if(e.children.length)break;case qr:case kr:return e.return=e.return||e.value;case Or:return"";case Nr:return e.return=e.value+"{"+Lo(e.children,r)+"}";case Tr:if(!Ur(e.value=e.props.join(",")))return""}return Ur(n=Lo(e.children,r))?e.return=e.value+"{"+n+"}":""}function Io(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case kr:return void(e.return=Ro(e.value,e.length,n));case Nr:return Lo([io(e,{value:Hr(e.value,"@","@"+_r)})],r);case Tr:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Br(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ao(io(e,{props:[Hr(t,/:(read-\w+)/,":"+Pr+"$1")]})),ao(io(e,{props:[t]})),$r(e,{props:Jr(n,r)});break;case"::placeholder":ao(io(e,{props:[Hr(t,/:(plac\w+)/,":"+_r+"input-$1")]})),ao(io(e,{props:[Hr(t,/:(plac\w+)/,":"+Pr+"$1")]})),ao(io(e,{props:[Hr(t,/:(plac\w+)/,Dr+"input-$1")]})),ao(io(e,{props:[t]})),$r(e,{props:Jr(n,r)})}return""}))}}var Mo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Do="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Po="active",_o="data-styled-version",Oo="6.1.11",To="/*!sc*/\n",ko="undefined"!=typeof window&&"HTMLElement"in window,qo=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)),No={},Fo=Object.freeze([]),zo=Object.freeze({});function jo(e,t,n){return void 0===n&&(n=zo),e.theme!==n.theme&&e.theme||t||n.theme}var $o=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"]),Go=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Bo=/(^-|-$)/g;function Ho(e){return e.replace(Go,"-").replace(Bo,"")}var Wo=/(a)(d)/gi,Vo=52,Yo=function(e){return String.fromCharCode(e+(e>25?39:97))};function Uo(e){var t,n="";for(t=Math.abs(e);t>Vo;t=t/Vo|0)n=Yo(t%Vo)+n;return(Yo(t%Vo)+n).replace(Wo,"$1-$2")}var Ko,Xo=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Jo=function(e){return Xo(5381,e)};function Zo(e){return Uo(Jo(e)>>>0)}function Qo(e){return"string"==typeof e&&!0}var ei="function"==typeof Symbol&&Symbol.for,ti=ei?Symbol.for("react.memo"):60115,ni=ei?Symbol.for("react.forward_ref"):60112,ri={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},oi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ii={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ai=((Ko={})[ni]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ko[ti]=ii,Ko);function li(e){return("type"in(t=e)&&t.type.$$typeof)===ti?ii:"$$typeof"in e?ai[e.$$typeof]:ri;var t}var si=Object.defineProperty,ui=Object.getOwnPropertyNames,ci=Object.getOwnPropertySymbols,di=Object.getOwnPropertyDescriptor,pi=Object.getPrototypeOf,fi=Object.prototype;function hi(e,t,n){if("string"!=typeof t){if(fi){var r=pi(t);r&&r!==fi&&hi(e,r,n)}var o=ui(t);ci&&(o=o.concat(ci(t)));for(var i=li(e),a=li(t),l=0;l<o.length;++l){var s=o[l];if(!(s in oi||n&&n[s]||a&&s in a||i&&s in i)){var u=di(t,s);try{si(e,s,u)}catch(e){}}}}return e}function mi(e){return"function"==typeof e}function gi(e){return"object"==typeof e&&"styledComponentId"in e}function bi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function vi(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function yi(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function xi(e,t,n){if(void 0===n&&(n=!1),!n&&!yi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=xi(e[r],t[r]);else if(yi(t))for(var r in t)e[r]=xi(e[r],t[r]);return e}function Si(e,t){Object.defineProperty(e,"toString",{value:t})}function Ei(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ci=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Ei(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(To);return t},e}(),wi=new Map,Ri=new Map,Li=1,Ai=function(e){if(wi.has(e))return wi.get(e);for(;Ri.has(Li);)Li++;var t=Li++;return wi.set(e,t),Ri.set(t,e),t},Ii=function(e,t){Li=t+1,wi.set(e,t),Ri.set(t,e)},Mi="style[".concat(Do,"][").concat(_o,'="').concat(Oo,'"]'),Di=new RegExp("^".concat(Do,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Pi=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},_i=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(To),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Di);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Ii(c,u),Pi(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var Oi=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Do,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Do,Po),r.setAttribute(_o,Oo);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Ti=function(){function e(e){this.element=Oi(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Ei(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),ki=function(){function e(e){this.element=Oi(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),qi=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}(),Ni=ko,Fi={isServer:!ko,useCSSOMInjection:!qo},zi=function(){function e(e,t,n){void 0===e&&(e=zo),void 0===t&&(t={});var r=this;this.options=Ir(Ir({},Fi),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ko&&Ni&&(Ni=!1,function(e){for(var t=document.querySelectorAll(Mi),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Do)!==Po&&(_i(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Si(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Ri.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var l="".concat(Do,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(To)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Ai(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Ir(Ir({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new qi(n):t?new Ti(n):new ki(n)}(this.options),new Ci(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(Ai(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Ai(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Ai(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ji=/&/g,$i=/^\s*\/\/.*$/gm;function Gi(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=Gi(e.children,t)),e}))}var Bi=new zi,Hi=function(e){var t,n,r,o=void 0===e?zo:e,i=o.options,a=void 0===i?zo:i,l=o.plugins,s=void 0===l?Fo:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Tr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ji,n).replace(r,u))})),a.prefix&&c.push(Io),c.push(Ao);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace($i,""),u=xo(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Gi(u,a.namespace));var d,p=[];return Lo(u,function(e){var t=Kr(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||Ei(15),Xo(e,t.name)}),5381).toString():"",d}(),Wi=S.createContext({shouldForwardProp:void 0,styleSheet:Bi,stylis:Hi});function Vi(){return E(Wi)}Wi.Consumer;var Yi=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Hi);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Si(this,(function(){throw Ei(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Hi),this.name+e.hash},e}(),Ui=function(e){return e>="A"&&e<="Z"};function Ki(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Ui(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Xi=function(e){return null==e||!1===e||""===e},Ji=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Xi(i)&&(Array.isArray(i)&&i.isCss||mi(i)?r.push("".concat(Ki(o),":"),i,";"):yi(i)?r.push.apply(r,Mr(Mr(["".concat(o," {")],Ji(i),!1),["}"],!1)):r.push("".concat(Ki(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Mo||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Zi(e,t,n,r){return Xi(e)?[]:gi(e)?[".".concat(e.styledComponentId)]:mi(e)?!mi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Zi(e(t),t,n,r):e instanceof Yi?n?(e.inject(n,r),[e.getName(r)]):[e]:yi(e)?Ji(e):Array.isArray(e)?Array.prototype.concat.apply(Fo,e.map((function(e){return Zi(e,t,n,r)}))):[e.toString()];var o}function Qi(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(mi(n)&&!gi(n))return!1}return!0}var ea=Jo(Oo),ta=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Qi(e),this.componentId=t,this.baseHash=Xo(ea,t),this.baseStyle=n,zi.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=bi(r,this.staticRulesId);else{var o=vi(Zi(this.rules,e,t,n)),i=Uo(Xo(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=bi(r,i),this.staticRulesId=i}else{for(var l=Xo(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=vi(Zi(c,e,t,n));l=Xo(l,d+u),s+=d}}if(s){var p=Uo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=bi(r,p)}}return r},e}(),na=S.createContext(void 0);na.Consumer;var ra={};new Set;function oa(e,t,n){var r=gi(e),o=e,i=!Qo(e),a=t.attrs,l=void 0===a?Fo:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Ho(e);ra[n]=(ra[n]||0)+1;var r="".concat(n,"-").concat(Zo(Oo+n+ra[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Qo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Ho(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,h=t.shouldForwardProp;if(r&&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 ta(n,p,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=S.useContext(na),c=Vi(),d=e.shouldForwardProp||c.shouldForwardProp,p=jo(t,u,i)||zo,f=function(e,t,n){for(var r,o=Ir(Ir({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=mi(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?bi(o[l],a[l]):"style"===l?Ir(Ir({},o[l]),a[l]):a[l]}return t.className&&(o.className=bi(o.className,t.className)),o}(r,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 n=Vi();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),v=bi(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[Qo(h)&&!$o.has(h)?"class":"className"]=v,m.ref=n,C(h,m)}(y,e,t)}v.displayName=d;var y=S.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=r?bi(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)xi(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Si(y,(function(){return".".concat(y.styledComponentId)})),i&&hi(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function ia(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var aa=function(e){return Object.assign(e,{isCss:!0})};function la(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(mi(e)||yi(e))return aa(Zi(ia(Fo,Mr([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Zi(r):aa(Zi(ia(r,t)))}function sa(e,t,n){if(void 0===n&&(n=zo),!t)throw Ei(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,la.apply(void 0,Mr([r],o,!1)))};return r.attrs=function(r){return sa(e,t,Ir(Ir({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return sa(e,t,Ir(Ir({},n),r))},r}var ua=function(e){return sa(oa,e)},ca=ua;$o.forEach((function(e){ca[e]=ua(e)}));var da=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Qi(e),zi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(vi(Zi(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&zi.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function pa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=la.apply(void 0,Mr([e],t,!1)),o="sc-global-".concat(Zo(JSON.stringify(r))),i=new da(r,o),a=function(e){var t=Vi(),n=S.useContext(na),r=S.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,No,n,o);else{var l=Ir(Ir({},t),{theme:jo(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return S.memo(a)}function fa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=vi(la.apply(void 0,Mr([e],t,!1))),o=Zo(r);return new Yi(o,r)}const ha=pa((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var ma=ha;
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),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(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(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"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},rt({exports:{}});const mt="qHyperCubeDef.qDimensions",gt="dimensions",bt="qOtherTotalSpec.qTotalMode",vt="totalMode",yt={quarantine(e){G.quarantineArrayProp({properties:e,arrayPath:mt,quarantineName:vt,arrayName:gt,itemPath:bt})},unquarantine(e){G.unquarantineArrayProp({properties:e,arrayPath:mt,quarantineName:vt,arrayName:gt,itemPath:bt})}};function xt(e){const t=ht(e);return(e,n,r,o)=>{var i,a,l,s,u,c;const d=G.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),p=((null===(i=d.qProperty)||void 0===i||null===(i=i.qHyperCubeDef)||void 0===i?void 0:i.qDimensions)||[]).length,f=(null===(a=d.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a||null===(a=a.qMeasures)||void 0===a?void 0:a.length)||0;let 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&&it(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],it(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&&it(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&&G.unquarantineProperty(d.qProperty,"noOfLeftDims")}return G.conditionalShow.unquarantine(d.qProperty),yt.unquarantine(d.qProperty),Y(d.qProperty),G.unquarantineProperty(d.qProperty,"pivotTableIndentMode"),d}}function St(e,t){var n,r,o;const i=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=G.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;it(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),G.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,it(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),it(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 G.quarantineProperty(s.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),G.conditionalShow.quarantine(s.properties),yt.quarantine(s.properties),U(s.properties),s}const Et={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Ct=(e,t)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},wt=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},Rt=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},Lt=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5715_LINKS"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:Ct(a,i),...wt(i),...Rt(a)}},At=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.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}};var It,Mt,Dt,Pt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(It||(It={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Mt||(Mt={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Dt||(Dt={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Pt||(Pt={}));const _t="12px",Ot="nebula-table-utils-head-menu-button",Tt="sn-copy-cell";let kt=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 qt="nebula-table-utils-column-adjuster",Nt=`${qt}-border`;let Ft=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),zt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});var jt,$t;!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"}(jt||(jt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}($t||($t={}));var Gt=jt;const Bt="image",Ht=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},Wt=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),Vt=e=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:zt.Auto,translation:"Common.Auto"},{value:zt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:zt.Pixels,translation:"Object.Table.Column.Pixels"},{value:zt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:zt.Auto,show:(t,n,r)=>Wt(r,e)},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Ft.PixelsDefault,show:(t,n,r)=>{var o;return Wt(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===zt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(Ft.PixelsMin,Math.min(Ft.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Ft.PercentageDefault,show:(t,n,r)=>{var o;return Wt(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===zt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(Ft.PercentageMin,Math.min(Ft.PercentageMax,e.qDef.columnWidth.percentage)))}}}),Yt=({key:e,translation:t,env:n})=>{var r,o;if(!n.flags.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN"))return;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"tableImages"));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 n;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==Bt}},[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 n,r;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!i||"labelTextAlign"===e||(null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==Bt)}}}},Ut="TOTAL_OFF",Kt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Mt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Mt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Xt="TOTAL_OFF",Jt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Mt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Mt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Zt=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o,flags:i}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",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:Ut,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Ut,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&Ht},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==Ut&&Ht(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{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}},presentation:{type:"items",translation:"properties.presentation",items:{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:Kt,...Yt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Yt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Lt(e),...Vt(i)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",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}},presentation:{type:"items",translation:"properties.presentation",items:{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:Kt,...Yt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Yt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...At(e),...Vt(i)}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{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:Xt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Xt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&Ht},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==Xt&&Ht(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{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,...Yt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Yt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Lt(e),...Vt(i)}},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,...Yt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Yt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...At(e),...Vt(i)}}}}},Qt="12px",en="Source Sans Pro, sans-serif",tn="600",nn=15e3,rn=4/3,on=1;var an,ln;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(an||(an={})),function(e){e.Solid="solid",e.None="none"}(ln||(ln={}));const sn={display:"flex",justifyContent:"center",alignItems:"center"},un={borderStyle:"solid"},cn={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},dn={lineHeight:rn,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},pn=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),fn=(e,t)=>e>0?`${e}px ${ln.Solid} ${t}`:ln.None,hn=(e,t,n,r)=>{const o=Number(!t||(null==r?void 0:r.right)),i=Number(!e||(null==r?void 0:r.bottom));return{borderRight:fn(o,n),borderBottom:fn(i,n),borderLeft:ln.None,borderTop:ln.None}},mn=(e,t,n,r,o,i)=>{const a=hn(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=fn(2,o)),n||(a.borderLeft=fn(1,o))),a},gn=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=fn(1,n)),t&&(r.borderRight=fn(1,n)),r},bn=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:i===an.Transparent.toString()?"none":i}}}),vn=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),yn=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:vn("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?vn("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:bn("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:an.DividerLight})),divider:bn("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:an.DividerDark})),background:bn("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:an.Transparent}))}}}}),xn=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},Sn=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:en,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>xn(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...J(r).filter((e=>!s.includes(e))).map((e=>xn(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),En=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Cn=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>xn(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...En.filter((e=>!a.includes(e))).map((e=>xn(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),wn=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},Rn=({section:e,defaultFontStyle:t,translator:n,flags:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Sn({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=wn(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Cn({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=wn(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:bn(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=wn(t,e,"color"))&&void 0!==n?n:t.color}))}},background:bn(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=wn(t,e,"backgroundColor"))&&void 0!==n?n:an.Transparent}))}}}}),Ln=({section:e,defaultFontStyle:t,fallbackBackground:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:bn(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=wn(t,e,"color"))&&void 0!==n?n:t.color}))}},background:bn(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=wn(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:an.Transparent}))}}}}),An=(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:Rn({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:Rn({section:"dimensionValues",translator:e,flags:t}),measureValueSection:Rn({section:"measureValues",translator:e,flags:t}),measureLabelSection:Ln({section:"measureLabels"}),totalValuesSection:Ln({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:Ln({section:"nullValues",fallbackBackground:an.NullValueBackground}),gridSection:yn(t)}}]}),In=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:!0,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:zt.Auto,translation:"Common.Auto"},{value:zt.Pixels,translation:"Object.Table.Column.Pixels"},{value:zt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:zt.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Ft.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===zt.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(Ft.PixelsMin,Math.min(Ft.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Ft.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===zt.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(Ft.PercentageMin,Math.min(Ft.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){var n;const{qIndentMode:r}=t.qHyperCubeDef;return(!r||r&&!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&(null===(n=t.qHyperCubeDef)||void 0===n||null===(n=n.qDimensions)||void 0===n?void 0:n.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)})))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}),Mn=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[An(e,t),In(t)]}}}),Dn="auto",Pn={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:Dn,translation:"Object.Table.SortingInSearch",options:[{value:Dn,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function _n(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:Zt(e),sorting:Pn,addons:Et,settings:Mn(t,n)}}}function On(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:_n(e),importProperties:xt(e),exportProperties:St}}function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tn.apply(null,arguments)}var kn={exports:{}};function qn(){}function Nn(){}Nn.resetWarningCache=qn;kn.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Nn,resetWarningCache:qn};return n.PropTypes=n,n}();var Fn=z(kn.exports);function zn(e){if(e.type)return e;if("#"===e.charAt(0))return zn(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function jn(e,t){return e=zn(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function $n(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Gn(e,t){return Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gn(e,t)}function Bn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gn(e,t)}const Hn={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"},Wn={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",...Hn,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)"},Vn=12,Yn=14,Un=16,Kn=24,Xn=3,Jn=300,Zn=400,Qn=600,er=700,tr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};jn(Wn.GREYSCALE_0,.05),jn(Wn.GREEN_PALE,.5),jn(Wn.BLUE_PALE,.5),jn(Wn.GREEN_PALE,.5),jn(Wn.BLUE_PALE,.5),jn(Wn.GREEN_PALE,.5),jn(Wn.BLUE_PALE,.5);var nr;function rr(){return rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rr.apply(this,arguments)}jn(Wn.GREEN_PALE,.5),jn(Wn.BLUE_PALE,.5),jn(Wn.GREEN_PALE,.5),jn(Wn.BLUE_PALE,.5);var or,ir=function(e){return x.createElement("svg",rr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),nr||(nr=x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ar.apply(this,arguments)}var lr=function(e){return x.createElement("svg",ar({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),or||(or=x.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 sr({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return S.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var ur=(e={})=>S.createElement(sr,{...e},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},S.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),S.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"}))),cr=(e={})=>S.createElement(sr,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),S.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),dr=(e={})=>S.createElement(sr,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},S.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),pr=(e={})=>S.createElement(sr,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),S.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"}))),fr=({className:e})=>S.createElement(sr,{fontSize:"small",className:e},S.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},S.createElement("g",{transform:"translate(4.324187, 1.300372)"},S.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"}),S.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 hr={black:"#000",white:"#fff"};var mr={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 gr={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 br={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 vr={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 yr={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 xr={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 Sr={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 Er(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 Cr="$$material";function wr(){return wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wr.apply(this,arguments)}function Rr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Lr(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 Ar=Object.freeze({__proto__:null,default:Lr}),Ir=function(){return Ir=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ir.apply(this,arguments)};function Mr(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Dr="-ms-",Pr="-moz-",_r="-webkit-",Or="comm",Tr="rule",kr="decl",qr="@import",Nr="@keyframes",Fr="@layer",zr=Math.abs,jr=String.fromCharCode,$r=Object.assign;function Gr(e){return e.trim()}function Br(e,t){return(e=t.exec(e))?e[0]:e}function Hr(e,t,n){return e.replace(t,n)}function Wr(e,t,n){return e.indexOf(t,n)}function Vr(e,t){return 0|e.charCodeAt(t)}function Yr(e,t,n){return e.slice(t,n)}function Ur(e){return e.length}function Kr(e){return e.length}function Xr(e,t){return t.push(e),e}function Jr(e,t){return e.filter((function(e){return!Br(e,t)}))}var Zr=1,Qr=1,eo=0,to=0,no=0,ro="";function oo(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Zr,column:Qr,length:a,return:"",siblings:l}}function io(e,t){return $r(oo("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ao(e){for(;e.root;)e=io(e.root,{children:[e]});Xr(e,e.siblings)}function lo(){return no=to>0?Vr(ro,--to):0,Qr--,10===no&&(Qr=1,Zr--),no}function so(){return no=to<eo?Vr(ro,to++):0,Qr++,10===no&&(Qr=1,Zr++),no}function uo(){return Vr(ro,to)}function co(){return to}function po(e,t){return Yr(ro,e,t)}function fo(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 ho(e){return Gr(po(to-1,bo(91===e?e+2:40===e?e+1:e)))}function mo(e){for(;(no=uo())&&no<33;)so();return fo(e)>2||fo(no)>3?"":" "}function go(e,t){for(;--t&&so()&&!(no<48||no>102||no>57&&no<65||no>70&&no<97););return po(e,co()+(t<6&&32==uo()&&32==so()))}function bo(e){for(;so();)switch(no){case e:return to;case 34:case 39:34!==e&&39!==e&&bo(no);break;case 40:41===e&&bo(e);break;case 92:so()}return to}function vo(e,t){for(;so()&&e+no!==57&&(e+no!==84||47!==uo()););return"/*"+po(t,to-1)+"*"+jr(47===e?e:so())}function yo(e){for(;!fo(uo());)so();return po(e,to)}function xo(e){return function(e){return ro="",e}(So("",null,null,null,[""],e=function(e){return Zr=Qr=1,eo=Ur(ro=e),to=0,[]}(e),0,[0],e))}function So(e,t,n,r,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=r,C=y;g;)switch(h=v,v=so()){case 40:if(108!=h&&58==Vr(C,d-1)){-1!=Wr(C+=Hr(ho(v),"&","&\f"),"&\f",zr(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=ho(v);break;case 9:case 10:case 13:case 32:C+=mo(h);break;case 92:C+=go(co()-1,7);continue;case 47:switch(uo()){case 42:case 47:Xr(Co(vo(so(),co()),t,n,s),s);break;default:C+="/"}break;case 123*m:l[u++]=Ur(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Hr(C,/\f/g,"")),f>0&&Ur(C)-d&&Xr(f>32?wo(C+";",r,n,d-1,s):wo(Hr(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Xr(E=Eo(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)So(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Vr(C,3)?100:p){case 100:case 108:case 109:case 115:So(e,E,E,r&&Xr(Eo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:So(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Ur(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==lo())continue;switch(C+=jr(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Ur(C)-1)*b,b=1;break;case 64:45===uo()&&(C+=ho(so())),p=uo(),c=d=Ur(y=C+=yo(co())),v++;break;case 45:45===h&&2==Ur(C)&&(m=0)}}return i}function Eo(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Kr(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=Yr(e,p+1,p=zr(g=a[m])),x=e;v<h;++v)(x=Gr(g>0?f[v]+" "+y:Hr(y,/&\f/g,f[v])))&&(s[b++]=x);return oo(e,t,n,0===o?Tr:l,s,u,c,d)}function Co(e,t,n,r){return oo(e,t,n,Or,jr(no),Yr(e,2,-2),0,r)}function wo(e,t,n,r,o){return oo(e,t,n,kr,Yr(e,0,r),Yr(e,r+1,-1),r,o)}function Ro(e,t,n){switch(function(e,t){return 45^Vr(e,0)?(((t<<2^Vr(e,0))<<2^Vr(e,1))<<2^Vr(e,2))<<2^Vr(e,3):0}(e,t)){case 5103:return _r+"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 _r+e+e;case 4789:return Pr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _r+e+Pr+e+Dr+e+e;case 5936:switch(Vr(e,t+11)){case 114:return _r+e+Dr+Hr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _r+e+Dr+Hr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _r+e+Dr+Hr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _r+e+Dr+e+e;case 6165:return _r+e+Dr+"flex-"+e+e;case 5187:return _r+e+Hr(e,/(\w+).+(:[^]+)/,_r+"box-$1$2"+Dr+"flex-$1$2")+e;case 5443:return _r+e+Dr+"flex-item-"+Hr(e,/flex-|-self/g,"")+(Br(e,/flex-|baseline/)?"":Dr+"grid-row-"+Hr(e,/flex-|-self/g,""))+e;case 4675:return _r+e+Dr+"flex-line-pack"+Hr(e,/align-content|flex-|-self/g,"")+e;case 5548:return _r+e+Dr+Hr(e,"shrink","negative")+e;case 5292:return _r+e+Dr+Hr(e,"basis","preferred-size")+e;case 6060:return _r+"box-"+Hr(e,"-grow","")+_r+e+Dr+Hr(e,"grow","positive")+e;case 4554:return _r+Hr(e,/([^-])(transform)/g,"$1"+_r+"$2")+e;case 6187:return Hr(Hr(Hr(e,/(zoom-|grab)/,_r+"$1"),/(image-set)/,_r+"$1"),e,"")+e;case 5495:case 3959:return Hr(e,/(image-set\([^]*)/,_r+"$1$`$1");case 4968:return Hr(Hr(e,/(.+:)(flex-)?(.*)/,_r+"box-pack:$3"+Dr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_r+e+e;case 4200:if(!Br(e,/flex-|baseline/))return Dr+"grid-column-align"+Yr(e,t)+e;break;case 2592:case 3360:return Dr+Hr(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Br(e.props,/grid-\w+-end/)}))?~Wr(e+(n=n[t].value),"span",0)?e:Dr+Hr(e,"-start","")+e+Dr+"grid-row-span:"+(~Wr(n,"span",0)?Br(n,/\d+/):+Br(n,/\d+/)-+Br(e,/\d+/))+";":Dr+Hr(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Br(e.props,/grid-\w+-start/)}))?e:Dr+Hr(Hr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Hr(e,/(.+)-inline(.+)/,_r+"$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(Ur(e)-1-t>6)switch(Vr(e,t+1)){case 109:if(45!==Vr(e,t+4))break;case 102:return Hr(e,/(.+:)(.+)-([^]+)/,"$1"+_r+"$2-$3$1"+Pr+(108==Vr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Wr(e,"stretch",0)?Ro(Hr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Hr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Dr+n+":"+r+l+(o?Dr+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===Vr(e,t+6))return Hr(e,":",":"+_r)+e;break;case 6444:switch(Vr(e,45===Vr(e,14)?18:11)){case 120:return Hr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_r+(45===Vr(e,14)?"inline-":"")+"box$3$1"+_r+"$2$3$1"+Dr+"$2box$3")+e;case 100:return Hr(e,":",":"+Dr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Hr(e,"scroll-","scroll-snap-")+e}return e}function Lo(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ao(e,t,n,r){switch(e.type){case Fr:if(e.children.length)break;case qr:case kr:return e.return=e.return||e.value;case Or:return"";case Nr:return e.return=e.value+"{"+Lo(e.children,r)+"}";case Tr:if(!Ur(e.value=e.props.join(",")))return""}return Ur(n=Lo(e.children,r))?e.return=e.value+"{"+n+"}":""}function Io(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case kr:return void(e.return=Ro(e.value,e.length,n));case Nr:return Lo([io(e,{value:Hr(e.value,"@","@"+_r)})],r);case Tr:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Br(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ao(io(e,{props:[Hr(t,/:(read-\w+)/,":"+Pr+"$1")]})),ao(io(e,{props:[t]})),$r(e,{props:Jr(n,r)});break;case"::placeholder":ao(io(e,{props:[Hr(t,/:(plac\w+)/,":"+_r+"input-$1")]})),ao(io(e,{props:[Hr(t,/:(plac\w+)/,":"+Pr+"$1")]})),ao(io(e,{props:[Hr(t,/:(plac\w+)/,Dr+"input-$1")]})),ao(io(e,{props:[t]})),$r(e,{props:Jr(n,r)})}return""}))}}var Mo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Do="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Po="active",_o="data-styled-version",Oo="6.1.11",To="/*!sc*/\n",ko="undefined"!=typeof window&&"HTMLElement"in window,qo=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)),No={},Fo=Object.freeze([]),zo=Object.freeze({});function jo(e,t,n){return void 0===n&&(n=zo),e.theme!==n.theme&&e.theme||t||n.theme}var $o=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"]),Go=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Bo=/(^-|-$)/g;function Ho(e){return e.replace(Go,"-").replace(Bo,"")}var Wo=/(a)(d)/gi,Vo=52,Yo=function(e){return String.fromCharCode(e+(e>25?39:97))};function Uo(e){var t,n="";for(t=Math.abs(e);t>Vo;t=t/Vo|0)n=Yo(t%Vo)+n;return(Yo(t%Vo)+n).replace(Wo,"$1-$2")}var Ko,Xo=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Jo=function(e){return Xo(5381,e)};function Zo(e){return Uo(Jo(e)>>>0)}function Qo(e){return"string"==typeof e&&!0}var ei="function"==typeof Symbol&&Symbol.for,ti=ei?Symbol.for("react.memo"):60115,ni=ei?Symbol.for("react.forward_ref"):60112,ri={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},oi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ii={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ai=((Ko={})[ni]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ko[ti]=ii,Ko);function li(e){return("type"in(t=e)&&t.type.$$typeof)===ti?ii:"$$typeof"in e?ai[e.$$typeof]:ri;var t}var si=Object.defineProperty,ui=Object.getOwnPropertyNames,ci=Object.getOwnPropertySymbols,di=Object.getOwnPropertyDescriptor,pi=Object.getPrototypeOf,fi=Object.prototype;function hi(e,t,n){if("string"!=typeof t){if(fi){var r=pi(t);r&&r!==fi&&hi(e,r,n)}var o=ui(t);ci&&(o=o.concat(ci(t)));for(var i=li(e),a=li(t),l=0;l<o.length;++l){var s=o[l];if(!(s in oi||n&&n[s]||a&&s in a||i&&s in i)){var u=di(t,s);try{si(e,s,u)}catch(e){}}}}return e}function mi(e){return"function"==typeof e}function gi(e){return"object"==typeof e&&"styledComponentId"in e}function bi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function vi(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function yi(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function xi(e,t,n){if(void 0===n&&(n=!1),!n&&!yi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=xi(e[r],t[r]);else if(yi(t))for(var r in t)e[r]=xi(e[r],t[r]);return e}function Si(e,t){Object.defineProperty(e,"toString",{value:t})}function Ei(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ci=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Ei(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(To);return t},e}(),wi=new Map,Ri=new Map,Li=1,Ai=function(e){if(wi.has(e))return wi.get(e);for(;Ri.has(Li);)Li++;var t=Li++;return wi.set(e,t),Ri.set(t,e),t},Ii=function(e,t){Li=t+1,wi.set(e,t),Ri.set(t,e)},Mi="style[".concat(Do,"][").concat(_o,'="').concat(Oo,'"]'),Di=new RegExp("^".concat(Do,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Pi=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},_i=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(To),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Di);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Ii(c,u),Pi(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var Oi=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Do,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Do,Po),r.setAttribute(_o,Oo);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Ti=function(){function e(e){this.element=Oi(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Ei(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),ki=function(){function e(e){this.element=Oi(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),qi=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}(),Ni=ko,Fi={isServer:!ko,useCSSOMInjection:!qo},zi=function(){function e(e,t,n){void 0===e&&(e=zo),void 0===t&&(t={});var r=this;this.options=Ir(Ir({},Fi),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ko&&Ni&&(Ni=!1,function(e){for(var t=document.querySelectorAll(Mi),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Do)!==Po&&(_i(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Si(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Ri.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var l="".concat(Do,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(To)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Ai(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Ir(Ir({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new qi(n):t?new Ti(n):new ki(n)}(this.options),new Ci(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(Ai(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Ai(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Ai(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ji=/&/g,$i=/^\s*\/\/.*$/gm;function Gi(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=Gi(e.children,t)),e}))}var Bi=new zi,Hi=function(e){var t,n,r,o=void 0===e?zo:e,i=o.options,a=void 0===i?zo:i,l=o.plugins,s=void 0===l?Fo:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Tr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ji,n).replace(r,u))})),a.prefix&&c.push(Io),c.push(Ao);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace($i,""),u=xo(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Gi(u,a.namespace));var d,p=[];return Lo(u,function(e){var t=Kr(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||Ei(15),Xo(e,t.name)}),5381).toString():"",d}(),Wi=S.createContext({shouldForwardProp:void 0,styleSheet:Bi,stylis:Hi});function Vi(){return E(Wi)}Wi.Consumer;var Yi=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Hi);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Si(this,(function(){throw Ei(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Hi),this.name+e.hash},e}(),Ui=function(e){return e>="A"&&e<="Z"};function Ki(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Ui(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Xi=function(e){return null==e||!1===e||""===e},Ji=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Xi(i)&&(Array.isArray(i)&&i.isCss||mi(i)?r.push("".concat(Ki(o),":"),i,";"):yi(i)?r.push.apply(r,Mr(Mr(["".concat(o," {")],Ji(i),!1),["}"],!1)):r.push("".concat(Ki(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Mo||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Zi(e,t,n,r){return Xi(e)?[]:gi(e)?[".".concat(e.styledComponentId)]:mi(e)?!mi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Zi(e(t),t,n,r):e instanceof Yi?n?(e.inject(n,r),[e.getName(r)]):[e]:yi(e)?Ji(e):Array.isArray(e)?Array.prototype.concat.apply(Fo,e.map((function(e){return Zi(e,t,n,r)}))):[e.toString()];var o}function Qi(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(mi(n)&&!gi(n))return!1}return!0}var ea=Jo(Oo),ta=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Qi(e),this.componentId=t,this.baseHash=Xo(ea,t),this.baseStyle=n,zi.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=bi(r,this.staticRulesId);else{var o=vi(Zi(this.rules,e,t,n)),i=Uo(Xo(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=bi(r,i),this.staticRulesId=i}else{for(var l=Xo(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=vi(Zi(c,e,t,n));l=Xo(l,d+u),s+=d}}if(s){var p=Uo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=bi(r,p)}}return r},e}(),na=S.createContext(void 0);na.Consumer;var ra={};new Set;function oa(e,t,n){var r=gi(e),o=e,i=!Qo(e),a=t.attrs,l=void 0===a?Fo:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Ho(e);ra[n]=(ra[n]||0)+1;var r="".concat(n,"-").concat(Zo(Oo+n+ra[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Qo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Ho(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,h=t.shouldForwardProp;if(r&&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 ta(n,p,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=S.useContext(na),c=Vi(),d=e.shouldForwardProp||c.shouldForwardProp,p=jo(t,u,i)||zo,f=function(e,t,n){for(var r,o=Ir(Ir({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=mi(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?bi(o[l],a[l]):"style"===l?Ir(Ir({},o[l]),a[l]):a[l]}return t.className&&(o.className=bi(o.className,t.className)),o}(r,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 n=Vi();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),v=bi(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[Qo(h)&&!$o.has(h)?"class":"className"]=v,m.ref=n,C(h,m)}(y,e,t)}v.displayName=d;var y=S.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=r?bi(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)xi(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Si(y,(function(){return".".concat(y.styledComponentId)})),i&&hi(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function ia(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var aa=function(e){return Object.assign(e,{isCss:!0})};function la(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(mi(e)||yi(e))return aa(Zi(ia(Fo,Mr([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Zi(r):aa(Zi(ia(r,t)))}function sa(e,t,n){if(void 0===n&&(n=zo),!t)throw Ei(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,la.apply(void 0,Mr([r],o,!1)))};return r.attrs=function(r){return sa(e,t,Ir(Ir({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return sa(e,t,Ir(Ir({},n),r))},r}var ua=function(e){return sa(oa,e)},ca=ua;$o.forEach((function(e){ca[e]=ua(e)}));var da=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Qi(e),zi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(vi(Zi(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&zi.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function pa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=vi(la.apply(void 0,Mr([e],t,!1))),o=Zo(r);return new Yi(o,r)}function fa(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}fa.propTypes={children:Fn.node,injectFirst:Fn.bool};const ha=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=la.apply(void 0,Mr([e],t,!1)),o="sc-global-".concat(Zo(JSON.stringify(r))),i=new da(r,o),a=function(e){var t=Vi(),n=S.useContext(na),r=S.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,No,n,o);else{var l=Ir(Ir({},t),{theme:jo(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return S.memo(a)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var ma=ha;
10
10
  /**
11
- * @mui/styled-engine-sc v6.0.0-alpha.17
11
+ * @mui/styled-engine-sc v6.0.0-alpha.24
12
12
  *
13
13
  * @license MIT
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- function ga(e,t){let n;return n=t?ca(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ca(e),n}ha.propTypes={defaultTheme:Fn.object,styles:Fn.oneOfType([Fn.array,Fn.string,Fn.object,Fn.func])};function ba(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 va(e){if(!ba(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=va(e[n])})),t}function ya(e,t,n={clone:!0}){const r=n.clone?Tn({},e):e;return ba(e)&&ba(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(ba(t[o])&&o in e&&ba(e[o])?r[o]=ya(e[o],t[o],n):n.clone?r[o]=ba(t[o])?va(t[o]):t[o]:r[o]=t[o])})),r}var xa,Sa=Object.freeze({__proto__:null,default:ya,isPlainObject:ba}),Ea={exports:{}},Ca={},wa=Symbol.for("react.element"),Ra=Symbol.for("react.portal"),La=Symbol.for("react.fragment"),Aa=Symbol.for("react.strict_mode"),Ia=Symbol.for("react.profiler"),Ma=Symbol.for("react.provider"),Da=Symbol.for("react.context"),Pa=Symbol.for("react.server_context"),_a=Symbol.for("react.forward_ref"),Oa=Symbol.for("react.suspense"),Ta=Symbol.for("react.suspense_list"),ka=Symbol.for("react.memo"),qa=Symbol.for("react.lazy"),Na=Symbol.for("react.offscreen");function Fa(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case wa:switch(e=e.type){case La:case Ia:case Aa:case Oa:case Ta:return e;default:switch(e=e&&e.$$typeof){case Pa:case Da:case _a:case qa:case ka:case Ma:return e;default:return t}}case Ra:return t}}}xa=Symbol.for("react.module.reference"),Ca.ContextConsumer=Da,Ca.ContextProvider=Ma,Ca.Element=wa,Ca.ForwardRef=_a,Ca.Fragment=La,Ca.Lazy=qa,Ca.Memo=ka,Ca.Portal=Ra,Ca.Profiler=Ia,Ca.StrictMode=Aa,Ca.Suspense=Oa,Ca.SuspenseList=Ta,Ca.isAsyncMode=function(){return!1},Ca.isConcurrentMode=function(){return!1},Ca.isContextConsumer=function(e){return Fa(e)===Da},Ca.isContextProvider=function(e){return Fa(e)===Ma},Ca.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===wa},Ca.isForwardRef=function(e){return Fa(e)===_a},Ca.isFragment=function(e){return Fa(e)===La},Ca.isLazy=function(e){return Fa(e)===qa},Ca.isMemo=function(e){return Fa(e)===ka},Ca.isPortal=function(e){return Fa(e)===Ra},Ca.isProfiler=function(e){return Fa(e)===Ia},Ca.isStrictMode=function(e){return Fa(e)===Aa},Ca.isSuspense=function(e){return Fa(e)===Oa},Ca.isSuspenseList=function(e){return Fa(e)===Ta},Ca.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===La||e===Ia||e===Aa||e===Oa||e===Ta||e===Na||"object"==typeof e&&null!==e&&(e.$$typeof===qa||e.$$typeof===ka||e.$$typeof===Ma||e.$$typeof===Da||e.$$typeof===_a||e.$$typeof===xa||void 0!==e.getModuleId)},Ca.typeOf=Fa,Ea.exports=Ca;var za=Ea.exports;const ja=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function $a(e){const t=`${e}`.match(ja);return t&&t[1]||""}function Ga(e,t=""){return e.displayName||e.name||$a(e)||t}function Ba(e,t,n){const r=Ga(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ha=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ga(e,"Component");if("object"==typeof e)switch(e.$$typeof){case za.ForwardRef:return Ba(e,e.render,"ForwardRef");case za.Memo:return Ba(e,e.type,"memo");default:return}}},getFunctionName:$a});function Wa(e){if("string"!=typeof e)throw new Error(Lr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Va=Object.freeze({__proto__:null,default:Wa});function Ya(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Ua(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Ka(e){return e&&e.ownerDocument||document}function Xa(e){return Ka(e).defaultView||window}function Ja(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Za="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function Qa(e){const t=x.useRef(e);return Za((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function el(...e){return x.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Ja(e,t)}))}),e)}const tl={};const nl=[];let rl=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 ol(){const e=function(e,t){const n=x.useRef(tl);return n.current===tl&&(n.current=e(t)),n}(rl.create).current;var t;return t=e.disposeEffect,x.useEffect(t,nl),e}let il=!0,al=!1;const ll=new rl,sl={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 ul(e){e.metaKey||e.altKey||e.ctrlKey||(il=!0)}function cl(){il=!1}function dl(){"hidden"===this.visibilityState&&al&&(il=!0)}function pl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return il||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!sl[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function fl(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ul,!0),t.addEventListener("mousedown",cl,!0),t.addEventListener("pointerdown",cl,!0),t.addEventListener("touchstart",cl,!0),t.addEventListener("visibilitychange",dl,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!pl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(al=!0,ll.start(100,(()=>{al=!1})),t.current=!1,!0)},ref:e}}function hl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ml(e,t){const n=Tn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Tn({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Tn({},i),Object.keys(o).forEach((e=>{n[r][e]=ml(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function gl(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const bl=e=>e;var vl=(()=>{let e=bl;return{configure(t){e=t},generate:t=>e(t),reset(){e=bl}}})();const yl={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 xl(e,t,n="Mui"){const r=yl[t];return r?`${n}-${r}`:`${vl.generate(e)}-${t}`}function Sl(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=xl(e,t,n)})),r}function El(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Cl=Object.freeze({__proto__:null,default:El});const wl=["values","unit","step"],Rl=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)=>Tn({},e,{[t.key]:t.val})),{})};var Ll={borderRadius:4};function Al(e,t){return t?ya(e,t,{clone:!1}):e}const Il={xs:0,sm:600,md:900,lg:1200,xl:1536},Ml={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Il[e]}px)`};function Dl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Ml;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Ml;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Il).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Pl(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function _l(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Pl(e,n)||r,t&&(o=t(o,r,e)),o}function Ol(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Pl(e.theme,r)||{};return Dl(e,i,(e=>{let r=_l(a,o,e);return e===r&&"string"==typeof e&&(r=_l(a,o,`${t}${"default"===e?"":Wa(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Tl={m:"margin",p:"padding"},kl={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ql={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Nl=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!ql[e])return[e];e=ql[e]}const[t,n]=e.split(""),r=Tl[t],o=kl[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Fl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function jl(e,t,n,r){var o;const i=null!=(o=Pl(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function $l(e){return jl(e,"spacing",8)}function Gl(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Bl(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Gl(t,n),e)),{})}(Nl(n),r);return Dl(e,e[n],o)}function Hl(e,t){const n=$l(e.theme);return Object.keys(e).map((r=>Bl(e,t,r,n))).reduce(Al,{})}function Wl(e){return Hl(e,Fl)}function Vl(e){return Hl(e,zl)}function Yl(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Al(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Ul(e){return"number"!=typeof e?e:`${e}px solid`}function Kl(e,t){return Ol({prop:e,themeKey:"borders",transform:t})}Wl.propTypes={},Wl.filterProps=Fl,Vl.propTypes={},Vl.filterProps=zl;const Xl=Kl("border",Ul),Jl=Kl("borderTop",Ul),Zl=Kl("borderRight",Ul),Ql=Kl("borderBottom",Ul),es=Kl("borderLeft",Ul),ts=Kl("borderColor"),ns=Kl("borderTopColor"),rs=Kl("borderRightColor"),os=Kl("borderBottomColor"),is=Kl("borderLeftColor"),as=Kl("outline",Ul),ls=Kl("outlineColor"),ss=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=jl(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Gl(t,e)});return Dl(e,e.borderRadius,n)}return null};ss.propTypes={},ss.filterProps=["borderRadius"],Yl(Xl,Jl,Zl,Ql,es,ts,ns,rs,os,is,ss,as,ls);const us=e=>{if(void 0!==e.gap&&null!==e.gap){const t=jl(e.theme,"spacing",8),n=e=>({gap:Gl(t,e)});return Dl(e,e.gap,n)}return null};us.propTypes={},us.filterProps=["gap"];const cs=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=jl(e.theme,"spacing",8),n=e=>({columnGap:Gl(t,e)});return Dl(e,e.columnGap,n)}return null};cs.propTypes={},cs.filterProps=["columnGap"];const ds=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=jl(e.theme,"spacing",8),n=e=>({rowGap:Gl(t,e)});return Dl(e,e.rowGap,n)}return null};ds.propTypes={},ds.filterProps=["rowGap"];function ps(e,t){return"grey"===t?t:e}Yl(us,cs,ds,Ol({prop:"gridColumn"}),Ol({prop:"gridRow"}),Ol({prop:"gridAutoFlow"}),Ol({prop:"gridAutoColumns"}),Ol({prop:"gridAutoRows"}),Ol({prop:"gridTemplateColumns"}),Ol({prop:"gridTemplateRows"}),Ol({prop:"gridTemplateAreas"}),Ol({prop:"gridArea"}));function fs(e){return e<=1&&0!==e?100*e+"%":e}Yl(Ol({prop:"color",themeKey:"palette",transform:ps}),Ol({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ps}),Ol({prop:"backgroundColor",themeKey:"palette",transform:ps}));const hs=Ol({prop:"width",transform:fs}),ms=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Il[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:fs(t)}};return Dl(e,e.maxWidth,t)}return null};ms.filterProps=["maxWidth"];const gs=Ol({prop:"minWidth",transform:fs}),bs=Ol({prop:"height",transform:fs}),vs=Ol({prop:"maxHeight",transform:fs}),ys=Ol({prop:"minHeight",transform:fs});Ol({prop:"size",cssProperty:"width",transform:fs}),Ol({prop:"size",cssProperty:"height",transform:fs});Yl(hs,ms,gs,bs,vs,ys,Ol({prop:"boxSizing"}));var xs={border:{themeKey:"borders",transform:Ul},borderTop:{themeKey:"borders",transform:Ul},borderRight:{themeKey:"borders",transform:Ul},borderBottom:{themeKey:"borders",transform:Ul},borderLeft:{themeKey:"borders",transform:Ul},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ul},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ss},color:{themeKey:"palette",transform:ps},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ps},backgroundColor:{themeKey:"palette",transform:ps},p:{style:Vl},pt:{style:Vl},pr:{style:Vl},pb:{style:Vl},pl:{style:Vl},px:{style:Vl},py:{style:Vl},padding:{style:Vl},paddingTop:{style:Vl},paddingRight:{style:Vl},paddingBottom:{style:Vl},paddingLeft:{style:Vl},paddingX:{style:Vl},paddingY:{style:Vl},paddingInline:{style:Vl},paddingInlineStart:{style:Vl},paddingInlineEnd:{style:Vl},paddingBlock:{style:Vl},paddingBlockStart:{style:Vl},paddingBlockEnd:{style:Vl},m:{style:Wl},mt:{style:Wl},mr:{style:Wl},mb:{style:Wl},ml:{style:Wl},mx:{style:Wl},my:{style:Wl},margin:{style:Wl},marginTop:{style:Wl},marginRight:{style:Wl},marginBottom:{style:Wl},marginLeft:{style:Wl},marginX:{style:Wl},marginY:{style:Wl},marginInline:{style:Wl},marginInlineStart:{style:Wl},marginInlineEnd:{style:Wl},marginBlock:{style:Wl},marginBlockStart:{style:Wl},marginBlockEnd:{style:Wl},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:us},rowGap:{style:ds},columnGap:{style:cs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fs},maxWidth:{style:ms},minWidth:{transform:fs},height:{transform:fs},maxHeight:{transform:fs},minHeight:{transform:fs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Ss=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Pl(n,l)||{};if(u)return u(o);return Dl(o,t,(t=>{let n=_l(c,s,t);return t===n&&"string"==typeof t&&(n=_l(c,s,`${e}${"default"===t?"":Wa(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:xs;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=Al(s,e(n,o,i,a));else{const e=Dl({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Al(s,e):s[n]=t({sx:o,theme:i})}else s=Al(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Ss.filterProps=["sx"];var Es=Ss;function Cs(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const ws=["breakpoints","palette","spacing","shape"];function Rs(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=$n(e,ws),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=$n(e,wl),i=Rl(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Tn({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=$l({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=ya({breakpoints:l,direction:"ltr",components:{},palette:Tn({mode:"light"},r),spacing:s,shape:Tn({},Ll,i)},a);return u.applyStyles=Cs,u=t.reduce(((e,t)=>ya(e,t)),u),u.unstable_sxConfig=Tn({},xs,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Es({sx:e,theme:this})},u}function Ls(e=null){const t=x.useContext(na);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const As=Rs();function Is(e=As){return Ls(e)}var Ms={exports:{}},Ds={},Ps=S,_s=Symbol.for("react.element"),Os=Symbol.for("react.fragment"),Ts=Object.prototype.hasOwnProperty,ks=Ps.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,qs={key:!0,ref:!0,__self:!0,__source:!0};function Ns(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Ts.call(t,r)&&!qs.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:_s,type:e,key:i,ref:a,props:o,_owner:ks.current}}Ds.Fragment=Os,Ds.jsx=Ns,Ds.jsxs=Ns,Ms.exports=Ds;var Fs=Ms.exports;function zs({styles:e,themeId:t,defaultTheme:n={}}){const r=Is(n),o="function"==typeof e?e(t&&r[t]||r):e;return Fs.jsx(ma,{styles:o})}const js=["sx"],$s=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:xs;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Gs(e){const{sx:t}=e,n=$n(e,js),{systemProps:r,otherProps:o}=$s(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return ba(n)?Tn({},r,n):r}:Tn({},r,t),Tn({},o,{sx:i})}function Bs(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Bs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Hs(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Bs(e))&&(r&&(r+=" "),r+=t);return r}const Ws=["className","component"];const Vs=["ownerState"],Ys=["variants"],Us=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ks(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Xs=Rs(),Js=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Zs({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Qs(e){return e?(t,n)=>n[e]:null}function eu(e,t){let{ownerState:n}=t,r=$n(t,Vs);const o="function"==typeof e?e(Tn({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>eu(e,Tn({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=$n(o,Ys);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Tn({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Tn({ownerState:n},r)):e.style))})),t}return o}function tu({props:e,name:t,defaultTheme:n,themeId:r}){let o=Is(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?ml(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function nu(e,t=0,n=1){return El(e,t,n)}function ru(e){if(e.type)return e;if("#"===e.charAt(0))return ru(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Lr(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Lr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function ou(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function iu(e){let t="hsl"===(e=ru(e)).type||"hsla"===e.type?ru(function(e){e=ru(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),ou({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 au(e,t){return e=ru(e),t=nu(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ou(e)}var lu=x.createContext(null);function su(){return x.useContext(lu)}var uu="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function cu(e){const{children:t,theme:n}=e,r=su(),o=x.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Tn({},e,t)}(r,n);return null!=e&&(e[uu]=null!==r),e}),[n,r]);return Fs.jsx(lu.Provider,{value:o,children:t})}function du(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 pu(e){if(!du(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=pu(e[n])})),t}function fu(e,t,n={clone:!0}){const r=n.clone?Tn({},e):e;return du(e)&&du(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(du(t[o])&&o in e&&du(e[o])?r[o]=fu(e[o],t[o],n):n.clone?r[o]=du(t[o])?pu(t[o]):t[o]:r[o]=t[o])})),r}function hu(e){if("string"!=typeof e)throw new Error(Er(7));return e.charAt(0).toUpperCase()+e.slice(1)}function mu(e){return e&&e.ownerDocument||document}function gu(e){return mu(e).defaultView||window}var bu="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;let vu=0;const yu=x["useId".toString()];function xu(e){if(void 0!==yu){const t=yu();return null!=e?e:t}return function(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect((()=>{null==t&&(vu+=1,n(`mui-${vu}`))}),[t]),r}(e)}function Su({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=x.useRef(void 0!==e),[i,a]=x.useState(t);return[o?e:i,x.useCallback((e=>{o||a(e)}),[])]}function Eu(e){const t=x.useRef(e);return bu((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function Cu(...e){return x.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 wu{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new wu}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Ru=!0,Lu=!1;const Au=new wu,Iu={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 Mu(e){e.metaKey||e.altKey||e.ctrlKey||(Ru=!0)}function Du(){Ru=!1}function Pu(){"hidden"===this.visibilityState&&Lu&&(Ru=!0)}function _u(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ru||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Iu[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ou(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Mu,!0),t.addEventListener("mousedown",Du,!0),t.addEventListener("pointerdown",Du,!0),t.addEventListener("touchstart",Du,!0),t.addEventListener("visibilitychange",Pu,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!_u(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Lu=!0,Au.start(100,(()=>{Lu=!1})),t.current=!1,!0)},ref:e}}function Tu(e,t){const n=Tn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Tn({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Tn({},i),Object.keys(o).forEach((e=>{n[r][e]=Tu(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const ku=e=>e;var qu=(()=>{let e=ku;return{configure(t){e=t},generate:t=>e(t),reset(){e=ku}}})();const Nu={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 Fu(e,t,n="Mui"){const r=Nu[t];return r?`${n}-${r}`:`${qu.generate(e)}-${t}`}function zu(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Fu(e,t,n)})),r}const ju=["mode","contrastThreshold","tonalOffset"],$u={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:hr.white,default:hr.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}},Gu={text:{primary:hr.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:hr.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 Bu(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=ru(e),t=nu(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ou(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=ru(e),t=nu(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ou(e)}(e.main,i)))}function Hu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Rr(e,ju),i=e.primary||function(e="light"){return"dark"===e?{main:br[200],light:br[50],dark:br[400]}:{main:br[700],light:br[400],dark:br[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:gr[200],light:gr[50],dark:gr[400]}:{main:gr[500],light:gr[300],dark:gr[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:mr[500],light:mr[300],dark:mr[700]}:{main:mr[700],light:mr[400],dark:mr[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:vr[400],light:vr[300],dark:vr[700]}:{main:vr[700],light:vr[500],dark:vr[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:yr[400],light:yr[300],dark:yr[700]}:{main:yr[800],light:yr[500],dark:yr[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:xr[400],light:xr[300],dark:xr[700]}:{main:"#ed6c02",light:xr[500],dark:xr[900]}}(t);function d(e){const t=function(e,t){const n=iu(e),r=iu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Gu.text.primary)>=n?Gu.text.primary:$u.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=wr({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Er(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Er(12,t?` (${t})`:"",JSON.stringify(e.main)));return Bu(e,"light",o,r),Bu(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Gu,light:$u};return fu(wr({common:wr({},hr),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:Sr,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Wu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Vu={textTransform:"uppercase"},Yu='"Roboto", "Helvetica", "Arial", sans-serif';function Uu(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Yu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Rr(n,Wu),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return wr({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Yu?{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,Vu),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Vu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return fu(wr({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Ku(...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 Xu=["none",Ku(0,2,1,-1,0,1,1,0,0,1,3,0),Ku(0,3,1,-2,0,2,2,0,0,1,5,0),Ku(0,3,3,-2,0,3,4,0,0,1,8,0),Ku(0,2,4,-1,0,4,5,0,0,1,10,0),Ku(0,3,5,-1,0,5,8,0,0,1,14,0),Ku(0,3,5,-1,0,6,10,0,0,1,18,0),Ku(0,4,5,-2,0,7,10,1,0,2,16,1),Ku(0,5,5,-3,0,8,10,1,0,3,14,2),Ku(0,5,6,-3,0,9,12,1,0,3,16,2),Ku(0,6,6,-3,0,10,14,1,0,4,18,3),Ku(0,6,7,-4,0,11,15,1,0,4,20,3),Ku(0,7,8,-4,0,12,17,2,0,5,22,4),Ku(0,7,8,-4,0,13,19,2,0,5,24,4),Ku(0,7,9,-4,0,14,21,2,0,5,26,4),Ku(0,8,9,-5,0,15,22,2,0,6,28,5),Ku(0,8,10,-5,0,16,24,2,0,6,30,5),Ku(0,8,11,-5,0,17,26,2,0,6,32,5),Ku(0,9,11,-5,0,18,28,2,0,7,34,6),Ku(0,9,12,-6,0,19,29,2,0,7,36,6),Ku(0,10,13,-6,0,20,31,3,0,8,38,7),Ku(0,10,13,-6,0,21,33,3,0,8,40,7),Ku(0,10,14,-6,0,22,35,3,0,8,42,7),Ku(0,11,14,-7,0,23,36,3,0,9,44,8),Ku(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ju=["duration","easing","delay"],Zu={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)"},Qu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ec(e){return`${Math.round(e)}ms`}function tc(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function nc(e){const t=wr({},Zu,e.easing),n=wr({},Qu,e.duration);return wr({getAutoHeightDuration:tc,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Rr(r,Ju),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ec(o)} ${i} ${"string"==typeof a?a:ec(a)}`)).join(",")}},e,{easing:t,duration:n})}var rc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const oc=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ic(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Rr(e,oc);if(e.vars)throw new Error(Er(18));const l=Hu(r),s=Rs(e);let u=fu(s,{mixins:(c=s.breakpoints,d=n,wr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Xu.slice(),typography:Uu(l,i),transitions:nc(o),zIndex:wr({},rc),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=fu(u,a),u=t.reduce(((e,t)=>fu(e,t)),u),u.unstable_sxConfig=wr({},xs,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Es({sx:e,theme:this})},u}var ac=ic();function lc(){const e=Is(ac);return e[Cr]||e}function sc({props:e,name:t}){return tu({props:e,name:t,defaultTheme:ac,themeId:Cr})}const uc=e=>Ks(e)&&"classes"!==e,cc=Ks,dc=function(e={}){const{themeId:t,defaultTheme:n=Xs,rootShouldForwardProp:r=Ks,slotShouldForwardProp:o=Ks}=e,i=e=>Es(Tn({},e,{theme:Zs(Tn({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Qs(Js(s))}=a,p=$n(a,Us),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Ks;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=ga(e,Tn({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||ba(e)?r=>eu(e,Tn({},r,{theme:Zs({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=Zs(Tn({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=eu(n,Tn({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=Zs(Tn({},e,{defaultTheme:n,themeId:t}));return eu({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Tn({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Cr,defaultTheme:ac,rootShouldForwardProp:uc});var pc=dc;var fc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function hc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=hc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function mc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=hc(e))&&(r&&(r+=" "),r+=t);return r}function gc(e){return Fu("MuiSvgIcon",e)}zu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const bc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],vc=pc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${hu(n.color)}`],t[`fontSize${hu(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,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==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),yc=x.forwardRef((function(e,t){const n=sc({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=Rr(n,bc),f=x.isValidElement(r)&&"svg"===r.type,h=wr({},n,{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:n,classes:r}=e;return gl({root:["root","inherit"!==t&&`color${hu(t)}`,`fontSize${hu(n)}`]},gc,r)})(h);return Fs.jsxs(vc,wr({as:a,className:mc(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,c?Fs.jsx("title",{children:c}):null]}))}));yc.muiName="SvgIcon";var xc=yc;var Sc,Ec={},Cc=Symbol.for("react.element"),wc=Symbol.for("react.portal"),Rc=Symbol.for("react.fragment"),Lc=Symbol.for("react.strict_mode"),Ac=Symbol.for("react.profiler"),Ic=Symbol.for("react.provider"),Mc=Symbol.for("react.context"),Dc=Symbol.for("react.server_context"),Pc=Symbol.for("react.forward_ref"),_c=Symbol.for("react.suspense"),Oc=Symbol.for("react.suspense_list"),Tc=Symbol.for("react.memo"),kc=Symbol.for("react.lazy"),qc=Symbol.for("react.offscreen");
17
+ function ga(e,t){let n;return n=t?ca(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ca(e),n}ha.propTypes={defaultTheme:Fn.object,styles:Fn.oneOfType([Fn.array,Fn.string,Fn.object,Fn.func])};const ba=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var va=Object.freeze({__proto__:null,GlobalStyles:ma,StyledEngineProvider:fa,ThemeContext:na,css:la,default:ga,internal_processStyles:ba,keyframes:pa});function ya(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 xa(e){if(!ya(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=xa(e[n])})),t}function Sa(e,t,n={clone:!0}){const r=n.clone?Tn({},e):e;return ya(e)&&ya(t)&&Object.keys(t).forEach((o=>{ya(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ya(e[o])?r[o]=Sa(e[o],t[o],n):n.clone?r[o]=ya(t[o])?xa(t[o]):t[o]:r[o]=t[o]})),r}var Ea,Ca=Object.freeze({__proto__:null,default:Sa,isPlainObject:ya}),wa={exports:{}},Ra={},La=Symbol.for("react.element"),Aa=Symbol.for("react.portal"),Ia=Symbol.for("react.fragment"),Ma=Symbol.for("react.strict_mode"),Da=Symbol.for("react.profiler"),Pa=Symbol.for("react.provider"),_a=Symbol.for("react.context"),Oa=Symbol.for("react.server_context"),Ta=Symbol.for("react.forward_ref"),ka=Symbol.for("react.suspense"),qa=Symbol.for("react.suspense_list"),Na=Symbol.for("react.memo"),Fa=Symbol.for("react.lazy"),za=Symbol.for("react.offscreen");function ja(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case La:switch(e=e.type){case Ia:case Da:case Ma:case ka:case qa:return e;default:switch(e=e&&e.$$typeof){case Oa:case _a:case Ta:case Fa:case Na:case Pa:return e;default:return t}}case Aa:return t}}}Ea=Symbol.for("react.module.reference"),Ra.ContextConsumer=_a,Ra.ContextProvider=Pa,Ra.Element=La,Ra.ForwardRef=Ta,Ra.Fragment=Ia,Ra.Lazy=Fa,Ra.Memo=Na,Ra.Portal=Aa,Ra.Profiler=Da,Ra.StrictMode=Ma,Ra.Suspense=ka,Ra.SuspenseList=qa,Ra.isAsyncMode=function(){return!1},Ra.isConcurrentMode=function(){return!1},Ra.isContextConsumer=function(e){return ja(e)===_a},Ra.isContextProvider=function(e){return ja(e)===Pa},Ra.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===La},Ra.isForwardRef=function(e){return ja(e)===Ta},Ra.isFragment=function(e){return ja(e)===Ia},Ra.isLazy=function(e){return ja(e)===Fa},Ra.isMemo=function(e){return ja(e)===Na},Ra.isPortal=function(e){return ja(e)===Aa},Ra.isProfiler=function(e){return ja(e)===Da},Ra.isStrictMode=function(e){return ja(e)===Ma},Ra.isSuspense=function(e){return ja(e)===ka},Ra.isSuspenseList=function(e){return ja(e)===qa},Ra.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ia||e===Da||e===Ma||e===ka||e===qa||e===za||"object"==typeof e&&null!==e&&(e.$$typeof===Fa||e.$$typeof===Na||e.$$typeof===Pa||e.$$typeof===_a||e.$$typeof===Ta||e.$$typeof===Ea||void 0!==e.getModuleId)},Ra.typeOf=ja,wa.exports=Ra;var $a=wa.exports;const Ga=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ba(e){const t=`${e}`.match(Ga);return t&&t[1]||""}function Ha(e,t=""){return e.displayName||e.name||Ba(e)||t}function Wa(e,t,n){const r=Ha(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Va=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ha(e,"Component");if("object"==typeof e)switch(e.$$typeof){case $a.ForwardRef:return Wa(e,e.render,"ForwardRef");case $a.Memo:return Wa(e,e.type,"memo");default:return}}},getFunctionName:Ba});function Ya(e){if("string"!=typeof e)throw new Error(Lr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ua=Object.freeze({__proto__:null,default:Ya});function Ka(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Xa(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Ja(e){return e&&e.ownerDocument||document}function Za(e){return Ja(e).defaultView||window}function Qa(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var el="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function tl(e){const t=x.useRef(e);return el((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function nl(...e){return x.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Qa(e,t)}))}),e)}const rl={};const ol=[];let il=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 al(){const e=function(e,t){const n=x.useRef(rl);return n.current===rl&&(n.current=e(t)),n}(il.create).current;var t;return t=e.disposeEffect,x.useEffect(t,ol),e}let ll=!0,sl=!1;const ul=new il,cl={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 dl(e){e.metaKey||e.altKey||e.ctrlKey||(ll=!0)}function pl(){ll=!1}function fl(){"hidden"===this.visibilityState&&sl&&(ll=!0)}function hl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ll||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!cl[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function ml(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",dl,!0),t.addEventListener("mousedown",pl,!0),t.addEventListener("pointerdown",pl,!0),t.addEventListener("touchstart",pl,!0),t.addEventListener("visibilitychange",fl,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!hl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(sl=!0,ul.start(100,(()=>{sl=!1})),t.current=!1,!0)},ref:e}}function gl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function bl(e,t){const n=Tn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Tn({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Tn({},i),Object.keys(o).forEach((e=>{n[r][e]=bl(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function vl(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const yl=e=>e;var xl=(()=>{let e=yl;return{configure(t){e=t},generate:t=>e(t),reset(){e=yl}}})();const Sl={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 El(e,t,n="Mui"){const r=Sl[t];return r?`${n}-${r}`:`${xl.generate(e)}-${t}`}function Cl(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=El(e,t,n)})),r}function wl(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Rl=Object.freeze({__proto__:null,default:wl});const Ll=["values","unit","step"],Al=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)=>Tn({},e,{[t.key]:t.val})),{})};var Il={borderRadius:4};function Ml(e,t){return t?Sa(e,t,{clone:!1}):e}const Dl={xs:0,sm:600,md:900,lg:1200,xl:1536},Pl={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Dl[e]}px)`};function _l(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Pl;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Pl;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Dl).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Ol(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Tl(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Ol(e,n)||r,t&&(o=t(o,r,e)),o}function kl(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Ol(e.theme,r)||{};return _l(e,i,(e=>{let r=Tl(a,o,e);return e===r&&"string"==typeof e&&(r=Tl(a,o,`${t}${"default"===e?"":Ya(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const ql={m:"margin",p:"padding"},Nl={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Fl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zl=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Fl[e])return[e];e=Fl[e]}const[t,n]=e.split(""),r=ql[t],o=Nl[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),jl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$l=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Gl(e,t,n,r){var o;const i=null!=(o=Ol(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Bl(e){return Gl(e,"spacing",8)}function Hl(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Wl(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Hl(t,n),e)),{})}(zl(n),r);return _l(e,e[n],o)}function Vl(e,t){const n=Bl(e.theme);return Object.keys(e).map((r=>Wl(e,t,r,n))).reduce(Ml,{})}function Yl(e){return Vl(e,jl)}function Ul(e){return Vl(e,$l)}function Kl(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Ml(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Xl(e){return"number"!=typeof e?e:`${e}px solid`}function Jl(e,t){return kl({prop:e,themeKey:"borders",transform:t})}Yl.propTypes={},Yl.filterProps=jl,Ul.propTypes={},Ul.filterProps=$l;const Zl=Jl("border",Xl),Ql=Jl("borderTop",Xl),es=Jl("borderRight",Xl),ts=Jl("borderBottom",Xl),ns=Jl("borderLeft",Xl),rs=Jl("borderColor"),os=Jl("borderTopColor"),is=Jl("borderRightColor"),as=Jl("borderBottomColor"),ls=Jl("borderLeftColor"),ss=Jl("outline",Xl),us=Jl("outlineColor"),cs=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Gl(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Hl(t,e)});return _l(e,e.borderRadius,n)}return null};cs.propTypes={},cs.filterProps=["borderRadius"],Kl(Zl,Ql,es,ts,ns,rs,os,is,as,ls,cs,ss,us);const ds=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Gl(e.theme,"spacing",8),n=e=>({gap:Hl(t,e)});return _l(e,e.gap,n)}return null};ds.propTypes={},ds.filterProps=["gap"];const ps=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Gl(e.theme,"spacing",8),n=e=>({columnGap:Hl(t,e)});return _l(e,e.columnGap,n)}return null};ps.propTypes={},ps.filterProps=["columnGap"];const fs=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Gl(e.theme,"spacing",8),n=e=>({rowGap:Hl(t,e)});return _l(e,e.rowGap,n)}return null};fs.propTypes={},fs.filterProps=["rowGap"];function hs(e,t){return"grey"===t?t:e}Kl(ds,ps,fs,kl({prop:"gridColumn"}),kl({prop:"gridRow"}),kl({prop:"gridAutoFlow"}),kl({prop:"gridAutoColumns"}),kl({prop:"gridAutoRows"}),kl({prop:"gridTemplateColumns"}),kl({prop:"gridTemplateRows"}),kl({prop:"gridTemplateAreas"}),kl({prop:"gridArea"}));function ms(e){return e<=1&&0!==e?100*e+"%":e}Kl(kl({prop:"color",themeKey:"palette",transform:hs}),kl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:hs}),kl({prop:"backgroundColor",themeKey:"palette",transform:hs}));const gs=kl({prop:"width",transform:ms}),bs=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Dl[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ms(t)}};return _l(e,e.maxWidth,t)}return null};bs.filterProps=["maxWidth"];const vs=kl({prop:"minWidth",transform:ms}),ys=kl({prop:"height",transform:ms}),xs=kl({prop:"maxHeight",transform:ms}),Ss=kl({prop:"minHeight",transform:ms});kl({prop:"size",cssProperty:"width",transform:ms}),kl({prop:"size",cssProperty:"height",transform:ms});Kl(gs,bs,vs,ys,xs,Ss,kl({prop:"boxSizing"}));var Es={border:{themeKey:"borders",transform:Xl},borderTop:{themeKey:"borders",transform:Xl},borderRight:{themeKey:"borders",transform:Xl},borderBottom:{themeKey:"borders",transform:Xl},borderLeft:{themeKey:"borders",transform:Xl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:cs},color:{themeKey:"palette",transform:hs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:hs},backgroundColor:{themeKey:"palette",transform:hs},p:{style:Ul},pt:{style:Ul},pr:{style:Ul},pb:{style:Ul},pl:{style:Ul},px:{style:Ul},py:{style:Ul},padding:{style:Ul},paddingTop:{style:Ul},paddingRight:{style:Ul},paddingBottom:{style:Ul},paddingLeft:{style:Ul},paddingX:{style:Ul},paddingY:{style:Ul},paddingInline:{style:Ul},paddingInlineStart:{style:Ul},paddingInlineEnd:{style:Ul},paddingBlock:{style:Ul},paddingBlockStart:{style:Ul},paddingBlockEnd:{style:Ul},m:{style:Yl},mt:{style:Yl},mr:{style:Yl},mb:{style:Yl},ml:{style:Yl},mx:{style:Yl},my:{style:Yl},margin:{style:Yl},marginTop:{style:Yl},marginRight:{style:Yl},marginBottom:{style:Yl},marginLeft:{style:Yl},marginX:{style:Yl},marginY:{style:Yl},marginInline:{style:Yl},marginInlineStart:{style:Yl},marginInlineEnd:{style:Yl},marginBlock:{style:Yl},marginBlockStart:{style:Yl},marginBlockEnd:{style:Yl},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:ds},rowGap:{style:fs},columnGap:{style:ps},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ms},maxWidth:{style:bs},minWidth:{transform:ms},height:{transform:ms},maxHeight:{transform:ms},minHeight:{transform:ms},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Cs=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Ol(n,l)||{};if(u)return u(o);return _l(o,t,(t=>{let n=Tl(c,s,t);return t===n&&"string"==typeof t&&(n=Tl(c,s,`${e}${"default"===t?"":Ya(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Es;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=Ml(s,e(n,o,i,a));else{const e=_l({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Ml(s,e):s[n]=t({sx:o,theme:i})}else s=Ml(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Cs.filterProps=["sx"];var ws=Cs;function Rs(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const Ls=["breakpoints","palette","spacing","shape"];function As(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=$n(e,Ls),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=$n(e,Ll),i=Al(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Tn({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=Bl({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=Sa({breakpoints:l,direction:"ltr",components:{},palette:Tn({mode:"light"},r),spacing:s,shape:Tn({},Il,i)},a);return u.applyStyles=Rs,u=t.reduce(((e,t)=>Sa(e,t)),u),u.unstable_sxConfig=Tn({},Es,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ws({sx:e,theme:this})},u}function Is(e=null){const t=x.useContext(na);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Ms=As();function Ds(e=Ms){return Is(e)}var Ps={exports:{}},_s={},Os=S,Ts=Symbol.for("react.element"),ks=Symbol.for("react.fragment"),qs=Object.prototype.hasOwnProperty,Ns=Os.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Fs={key:!0,ref:!0,__self:!0,__source:!0};function zs(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)qs.call(t,r)&&!Fs.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Ts,type:e,key:i,ref:a,props:o,_owner:Ns.current}}_s.Fragment=ks,_s.jsx=zs,_s.jsxs=zs,Ps.exports=_s;var js=Ps.exports;function $s({styles:e,themeId:t,defaultTheme:n={}}){const r=Ds(n),o="function"==typeof e?e(t&&r[t]||r):e;return js.jsx(ma,{styles:o})}const Gs=["sx"],Bs=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Es;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Hs(e){const{sx:t}=e,n=$n(e,Gs),{systemProps:r,otherProps:o}=Bs(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return ya(n)?Tn({},r,n):r}:Tn({},r,t),Tn({},o,{sx:i})}function Ws(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ws(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vs(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ws(e))&&(r&&(r+=" "),r+=t);return r}const Ys=["className","component"];const Us=["ownerState"],Ks=["variants"],Xs=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Js(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Zs=As(),Qs=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function eu({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function tu(e){return e?(t,n)=>n[e]:null}function nu(e,t){let{ownerState:n}=t,r=$n(t,Us);const o="function"==typeof e?e(Tn({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>nu(e,Tn({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=$n(o,Ks);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Tn({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Tn({ownerState:n},r)):e.style))})),t}return o}function ru({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ds(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?bl(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function ou(e,t=0,n=1){return wl(e,t,n)}function iu(e){if(e.type)return e;if("#"===e.charAt(0))return iu(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Lr(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Lr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function au(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function lu(e){let t="hsl"===(e=iu(e)).type||"hsla"===e.type?iu(function(e){e=iu(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),au({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 su(e,t){return e=iu(e),t=ou(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,au(e)}function uu(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 cu(e){if(!uu(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=cu(e[n])})),t}function du(e,t,n={clone:!0}){const r=n.clone?Tn({},e):e;return uu(e)&&uu(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(uu(t[o])&&o in e&&uu(e[o])?r[o]=du(e[o],t[o],n):n.clone?r[o]=uu(t[o])?cu(t[o]):t[o]:r[o]=t[o])})),r}function pu(e){if("string"!=typeof e)throw new Error(Er(7));return e.charAt(0).toUpperCase()+e.slice(1)}function fu(e){return e&&e.ownerDocument||document}function hu(e){return fu(e).defaultView||window}var mu="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;let gu=0;const bu=x["useId".toString()];function vu(e){if(void 0!==bu){const t=bu();return null!=e?e:t}return function(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect((()=>{null==t&&(gu+=1,n(`mui-${gu}`))}),[t]),r}(e)}function yu({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=x.useRef(void 0!==e),[i,a]=x.useState(t);return[o?e:i,x.useCallback((e=>{o||a(e)}),[])]}function xu(e){const t=x.useRef(e);return mu((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function Su(...e){return x.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 Eu{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Eu}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Cu=!0,wu=!1;const Ru=new Eu,Lu={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 Au(e){e.metaKey||e.altKey||e.ctrlKey||(Cu=!0)}function Iu(){Cu=!1}function Mu(){"hidden"===this.visibilityState&&wu&&(Cu=!0)}function Du(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Cu||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Lu[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Pu(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Au,!0),t.addEventListener("mousedown",Iu,!0),t.addEventListener("pointerdown",Iu,!0),t.addEventListener("touchstart",Iu,!0),t.addEventListener("visibilitychange",Mu,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Du(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(wu=!0,Ru.start(100,(()=>{wu=!1})),t.current=!1,!0)},ref:e}}function _u(e,t){const n=Tn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Tn({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Tn({},i),Object.keys(o).forEach((e=>{n[r][e]=_u(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const Ou=e=>e;var Tu=(()=>{let e=Ou;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ou}}})();const ku={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 qu(e,t,n="Mui"){const r=ku[t];return r?`${n}-${r}`:`${Tu.generate(e)}-${t}`}function Nu(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=qu(e,t,n)})),r}const Fu=["mode","contrastThreshold","tonalOffset"],zu={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:hr.white,default:hr.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}},ju={text:{primary:hr.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:hr.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 $u(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=iu(e),t=ou(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return au(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=iu(e),t=ou(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return au(e)}(e.main,i)))}function Gu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Rr(e,Fu),i=e.primary||function(e="light"){return"dark"===e?{main:br[200],light:br[50],dark:br[400]}:{main:br[700],light:br[400],dark:br[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:gr[200],light:gr[50],dark:gr[400]}:{main:gr[500],light:gr[300],dark:gr[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:mr[500],light:mr[300],dark:mr[700]}:{main:mr[700],light:mr[400],dark:mr[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:vr[400],light:vr[300],dark:vr[700]}:{main:vr[700],light:vr[500],dark:vr[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:yr[400],light:yr[300],dark:yr[700]}:{main:yr[800],light:yr[500],dark:yr[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:xr[400],light:xr[300],dark:xr[700]}:{main:"#ed6c02",light:xr[500],dark:xr[900]}}(t);function d(e){const t=function(e,t){const n=lu(e),r=lu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ju.text.primary)>=n?ju.text.primary:zu.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=wr({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Er(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Er(12,t?` (${t})`:"",JSON.stringify(e.main)));return $u(e,"light",o,r),$u(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:ju,light:zu};return du(wr({common:wr({},hr),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:Sr,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Bu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Hu={textTransform:"uppercase"},Wu='"Roboto", "Helvetica", "Arial", sans-serif';function Vu(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Wu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Rr(n,Bu),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return wr({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Wu?{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,Hu),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Hu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return du(wr({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Yu(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Uu=["none",Yu(0,2,1,-1,0,1,1,0,0,1,3,0),Yu(0,3,1,-2,0,2,2,0,0,1,5,0),Yu(0,3,3,-2,0,3,4,0,0,1,8,0),Yu(0,2,4,-1,0,4,5,0,0,1,10,0),Yu(0,3,5,-1,0,5,8,0,0,1,14,0),Yu(0,3,5,-1,0,6,10,0,0,1,18,0),Yu(0,4,5,-2,0,7,10,1,0,2,16,1),Yu(0,5,5,-3,0,8,10,1,0,3,14,2),Yu(0,5,6,-3,0,9,12,1,0,3,16,2),Yu(0,6,6,-3,0,10,14,1,0,4,18,3),Yu(0,6,7,-4,0,11,15,1,0,4,20,3),Yu(0,7,8,-4,0,12,17,2,0,5,22,4),Yu(0,7,8,-4,0,13,19,2,0,5,24,4),Yu(0,7,9,-4,0,14,21,2,0,5,26,4),Yu(0,8,9,-5,0,15,22,2,0,6,28,5),Yu(0,8,10,-5,0,16,24,2,0,6,30,5),Yu(0,8,11,-5,0,17,26,2,0,6,32,5),Yu(0,9,11,-5,0,18,28,2,0,7,34,6),Yu(0,9,12,-6,0,19,29,2,0,7,36,6),Yu(0,10,13,-6,0,20,31,3,0,8,38,7),Yu(0,10,13,-6,0,21,33,3,0,8,40,7),Yu(0,10,14,-6,0,22,35,3,0,8,42,7),Yu(0,11,14,-7,0,23,36,3,0,9,44,8),Yu(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ku=["duration","easing","delay"],Xu={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)"},Ju={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Zu(e){return`${Math.round(e)}ms`}function Qu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ec(e){const t=wr({},Xu,e.easing),n=wr({},Ju,e.duration);return wr({getAutoHeightDuration:Qu,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Rr(r,Ku),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Zu(o)} ${i} ${"string"==typeof a?a:Zu(a)}`)).join(",")}},e,{easing:t,duration:n})}var tc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const nc=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function rc(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Rr(e,nc);if(e.vars)throw new Error(Er(18));const l=Gu(r),s=As(e);let u=du(s,{mixins:(c=s.breakpoints,d=n,wr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Uu.slice(),typography:Vu(l,i),transitions:ec(o),zIndex:wr({},tc),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=du(u,a),u=t.reduce(((e,t)=>du(e,t)),u),u.unstable_sxConfig=wr({},Es,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ws({sx:e,theme:this})},u}var oc=rc();function ic(){const e=Ds(oc);return e[Cr]||e}function ac({props:e,name:t}){return ru({props:e,name:t,defaultTheme:oc,themeId:Cr})}const lc=e=>Js(e)&&"classes"!==e,sc=Js,uc=function(e={}){const{themeId:t,defaultTheme:n=Zs,rootShouldForwardProp:r=Js,slotShouldForwardProp:o=Js}=e,i=e=>ws(Tn({},e,{theme:eu(Tn({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ba(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=tu(Qs(s))}=a,p=$n(a,Xs),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Js;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=ga(e,Tn({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||ya(e)?r=>nu(e,Tn({},r,{theme:eu({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=eu(Tn({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=nu(n,Tn({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=eu(Tn({},e,{defaultTheme:n,themeId:t}));return nu({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Tn({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Cr,defaultTheme:oc,rootShouldForwardProp:lc});var cc=uc;var dc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function pc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=pc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=pc(e))&&(r&&(r+=" "),r+=t);return r}function hc(e){return qu("MuiSvgIcon",e)}Nu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gc=cc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${pu(n.color)}`],t[`fontSize${pu(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,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==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),bc=x.forwardRef((function(e,t){const n=ac({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=Rr(n,mc),f=x.isValidElement(r)&&"svg"===r.type,h=wr({},n,{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:n,classes:r}=e;return vl({root:["root","inherit"!==t&&`color${pu(t)}`,`fontSize${pu(n)}`]},hc,r)})(h);return js.jsxs(gc,wr({as:a,className:fc(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,c?js.jsx("title",{children:c}):null]}))}));bc.muiName="SvgIcon";var vc=bc;var yc,xc={},Sc=Symbol.for("react.element"),Ec=Symbol.for("react.portal"),Cc=Symbol.for("react.fragment"),wc=Symbol.for("react.strict_mode"),Rc=Symbol.for("react.profiler"),Lc=Symbol.for("react.provider"),Ac=Symbol.for("react.context"),Ic=Symbol.for("react.server_context"),Mc=Symbol.for("react.forward_ref"),Dc=Symbol.for("react.suspense"),Pc=Symbol.for("react.suspense_list"),_c=Symbol.for("react.memo"),Oc=Symbol.for("react.lazy"),Tc=Symbol.for("react.offscreen");
18
18
  /**
19
19
  * @license React
20
20
  * react-is.production.min.js
@@ -23,7 +23,7 @@ function ga(e,t){let n;return n=t?ca(e).withConfig({displayName:t.label,shouldFo
23
23
  *
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
- */function Nc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Cc:switch(e=e.type){case Rc:case Ac:case Lc:case _c:case Oc:return e;default:switch(e=e&&e.$$typeof){case Dc:case Mc:case Pc:case kc:case Tc:case Ic:return e;default:return t}}case wc:return t}}}Sc=Symbol.for("react.module.reference"),Ec.ContextConsumer=Mc,Ec.ContextProvider=Ic,Ec.Element=Cc,Ec.ForwardRef=Pc,Ec.Fragment=Rc,Ec.Lazy=kc,Ec.Memo=Tc,Ec.Portal=wc,Ec.Profiler=Ac,Ec.StrictMode=Lc,Ec.Suspense=_c,Ec.SuspenseList=Oc,Ec.isAsyncMode=function(){return!1},Ec.isConcurrentMode=function(){return!1},Ec.isContextConsumer=function(e){return Nc(e)===Mc},Ec.isContextProvider=function(e){return Nc(e)===Ic},Ec.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Cc},Ec.isForwardRef=function(e){return Nc(e)===Pc},Ec.isFragment=function(e){return Nc(e)===Rc},Ec.isLazy=function(e){return Nc(e)===kc},Ec.isMemo=function(e){return Nc(e)===Tc},Ec.isPortal=function(e){return Nc(e)===wc},Ec.isProfiler=function(e){return Nc(e)===Ac},Ec.isStrictMode=function(e){return Nc(e)===Lc},Ec.isSuspense=function(e){return Nc(e)===_c},Ec.isSuspenseList=function(e){return Nc(e)===Oc},Ec.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Rc||e===Ac||e===Lc||e===_c||e===Oc||e===qc||"object"==typeof e&&null!==e&&(e.$$typeof===kc||e.$$typeof===Tc||e.$$typeof===Ic||e.$$typeof===Mc||e.$$typeof===Pc||e.$$typeof===Sc||void 0!==e.getModuleId)},Ec.typeOf=Nc;var Fc=!1,zc=S.createContext(null),jc="unmounted",$c="exited",Gc="entering",Bc="entered",Hc="exiting",Wc=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=$c,r.appearStatus=Gc):o=Bc:o=t.unmountOnExit||t.mountOnEnter?jc:$c,r.state={status:o},r.nextCallback=null,r}Bn(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===jc?{status:$c}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Gc&&n!==Bc&&(t=Gc):n!==Gc&&n!==Bc||(t=Hc)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Gc){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:N.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$c&&this.setState({status:jc})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[N.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Fc?this.safeSetState({status:Bc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Gc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Bc},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:N.findDOMNode(this);t&&!Fc?(this.props.onExit(r),this.safeSetState({status:Hc},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:$c},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:$c},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:N.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===jc)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=$n(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(zc.Provider,{value:null},"function"==typeof n?n(e,r):S.cloneElement(S.Children.only(n),r))},t}(S.Component);function Vc(){}Wc.contextType=zc,Wc.propTypes={},Wc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vc,onEntering:Vc,onEntered:Vc,onExit:Vc,onExiting:Vc,onExited:Vc},Wc.UNMOUNTED=jc,Wc.EXITED=$c,Wc.ENTERING=Gc,Wc.ENTERED=Bc,Wc.EXITING=Hc;var Yc=Wc;function Uc(e,t){var n=Object.create(null);return e&&w.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&R(e)?t(e):e}(e)})),n}function Kc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Xc(e,t,n){var r=Uc(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(R(a)){var l=i in t,s=i in r,u=t[i],c=R(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&R(u)&&(o[i]=L(a,{onExited:n.bind(null,a),in:u.props.in,exit:Kc(a,"exit",e),enter:Kc(a,"enter",e)})):o[i]=L(a,{in:!1}):o[i]=L(a,{onExited:n.bind(null,a),in:!0,exit:Kc(a,"exit",e),enter:Kc(a,"enter",e)})}})),o}var Jc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Zc=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Bn(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Uc(n.children,(function(e){return L(e,{onExited:r.bind(null,e),in:!0,appear:Kc(e,"appear",n),enter:Kc(e,"enter",n),exit:Kc(e,"exit",n)})}))):Xc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Uc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Tn({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=$n(e,["component","childFactory"]),o=this.state.contextValue,i=Jc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?S.createElement(zc.Provider,{value:o},i):S.createElement(zc.Provider,{value:o},S.createElement(t,r,i))},t}(S.Component);Zc.propTypes={},Zc.defaultProps={component:"div",childFactory:function(e){return e}};var Qc=Zc;const ed=e=>e.scrollTop;function td(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function nd(e){return Fu("MuiPaper",e)}zu("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 rd=["className","component","elevation","square","variant"],od=pc("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return wr({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&&wr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${au("#fff",fc(t.elevation))}, ${au("#fff",fc(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var id=x.forwardRef((function(e,t){const n=sc({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Rr(n,rd),u=wr({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return gl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},nd,o)})(u);return Fs.jsx(od,wr({as:o,ownerState:u,className:mc(c.root,r),ref:t},s))}));function ad(e){return"string"==typeof e}function ld(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function sd(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const ud=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function cd(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=$n(e,ud),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Hs(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Tn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Tn({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=ld(Tn({},o,r)),l=sd(r),s=sd(o),u=t(a),c=Hs(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Tn({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Tn({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Tn({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||ad(e)?t:Tn({},t,{ownerState:Tn({},t.ownerState,n)})}(n,Tn({},s,{ref:el(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var dd=zu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const pd=["center","classes","className"];let fd,hd,md,gd,bd=e=>e;const vd=fa(fd||(fd=bd`
26
+ */function kc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Sc:switch(e=e.type){case Cc:case Rc:case wc:case Dc:case Pc:return e;default:switch(e=e&&e.$$typeof){case Ic:case Ac:case Mc:case Oc:case _c:case Lc:return e;default:return t}}case Ec:return t}}}yc=Symbol.for("react.module.reference"),xc.ContextConsumer=Ac,xc.ContextProvider=Lc,xc.Element=Sc,xc.ForwardRef=Mc,xc.Fragment=Cc,xc.Lazy=Oc,xc.Memo=_c,xc.Portal=Ec,xc.Profiler=Rc,xc.StrictMode=wc,xc.Suspense=Dc,xc.SuspenseList=Pc,xc.isAsyncMode=function(){return!1},xc.isConcurrentMode=function(){return!1},xc.isContextConsumer=function(e){return kc(e)===Ac},xc.isContextProvider=function(e){return kc(e)===Lc},xc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Sc},xc.isForwardRef=function(e){return kc(e)===Mc},xc.isFragment=function(e){return kc(e)===Cc},xc.isLazy=function(e){return kc(e)===Oc},xc.isMemo=function(e){return kc(e)===_c},xc.isPortal=function(e){return kc(e)===Ec},xc.isProfiler=function(e){return kc(e)===Rc},xc.isStrictMode=function(e){return kc(e)===wc},xc.isSuspense=function(e){return kc(e)===Dc},xc.isSuspenseList=function(e){return kc(e)===Pc},xc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Cc||e===Rc||e===wc||e===Dc||e===Pc||e===Tc||"object"==typeof e&&null!==e&&(e.$$typeof===Oc||e.$$typeof===_c||e.$$typeof===Lc||e.$$typeof===Ac||e.$$typeof===Mc||e.$$typeof===yc||void 0!==e.getModuleId)},xc.typeOf=kc;var qc=!1,Nc=S.createContext(null),Fc="unmounted",zc="exited",jc="entering",$c="entered",Gc="exiting",Bc=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=zc,r.appearStatus=jc):o=$c:o=t.unmountOnExit||t.mountOnEnter?Fc:zc,r.state={status:o},r.nextCallback=null,r}Bn(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Fc?{status:zc}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==jc&&n!==$c&&(t=jc):n!==jc&&n!==$c||(t=Gc)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===jc){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:N.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zc&&this.setState({status:Fc})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[N.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||qc?this.safeSetState({status:$c},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:jc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:$c},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:N.findDOMNode(this);t&&!qc?(this.props.onExit(r),this.safeSetState({status:Gc},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:zc},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:zc},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:N.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Fc)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=$n(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(Nc.Provider,{value:null},"function"==typeof n?n(e,r):S.cloneElement(S.Children.only(n),r))},t}(S.Component);function Hc(){}Bc.contextType=Nc,Bc.propTypes={},Bc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Hc,onEntering:Hc,onEntered:Hc,onExit:Hc,onExiting:Hc,onExited:Hc},Bc.UNMOUNTED=Fc,Bc.EXITED=zc,Bc.ENTERING=jc,Bc.ENTERED=$c,Bc.EXITING=Gc;var Wc=Bc;function Vc(e,t){var n=Object.create(null);return e&&w.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&R(e)?t(e):e}(e)})),n}function Yc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Uc(e,t,n){var r=Vc(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(R(a)){var l=i in t,s=i in r,u=t[i],c=R(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&R(u)&&(o[i]=L(a,{onExited:n.bind(null,a),in:u.props.in,exit:Yc(a,"exit",e),enter:Yc(a,"enter",e)})):o[i]=L(a,{in:!1}):o[i]=L(a,{onExited:n.bind(null,a),in:!0,exit:Yc(a,"exit",e),enter:Yc(a,"enter",e)})}})),o}var Kc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Xc=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Bn(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Vc(n.children,(function(e){return L(e,{onExited:r.bind(null,e),in:!0,appear:Yc(e,"appear",n),enter:Yc(e,"enter",n),exit:Yc(e,"exit",n)})}))):Uc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Vc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Tn({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=$n(e,["component","childFactory"]),o=this.state.contextValue,i=Kc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?S.createElement(Nc.Provider,{value:o},i):S.createElement(Nc.Provider,{value:o},S.createElement(t,r,i))},t}(S.Component);Xc.propTypes={},Xc.defaultProps={component:"div",childFactory:function(e){return e}};var Jc=Xc;const Zc=e=>e.scrollTop;function Qc(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function ed(e){return qu("MuiPaper",e)}Nu("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 td=["className","component","elevation","square","variant"],nd=cc("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return wr({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&&wr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${su("#fff",dc(t.elevation))}, ${su("#fff",dc(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var rd=x.forwardRef((function(e,t){const n=ac({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Rr(n,td),u=wr({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return vl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},ed,o)})(u);return js.jsx(nd,wr({as:o,ownerState:u,className:fc(c.root,r),ref:t},s))}));function od(e){return"string"==typeof e}function id(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function ad(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const ld=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function sd(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=$n(e,ld),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Vs(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Tn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Tn({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=id(Tn({},o,r)),l=ad(r),s=ad(o),u=t(a),c=Vs(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Tn({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Tn({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Tn({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||od(e)?t:Tn({},t,{ownerState:Tn({},t.ownerState,n)})}(n,Tn({},s,{ref:nl(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var ud=Nu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const cd=["center","classes","className"];let dd,pd,fd,hd,md=e=>e;const gd=pa(dd||(dd=md`
27
27
  0% {
28
28
  transform: scale(0);
29
29
  opacity: 0.1;
@@ -33,7 +33,7 @@ function ga(e,t){let n;return n=t?ca(e).withConfig({displayName:t.label,shouldFo
33
33
  transform: scale(1);
34
34
  opacity: 0.3;
35
35
  }
36
- `)),yd=fa(hd||(hd=bd`
36
+ `)),bd=pa(pd||(pd=md`
37
37
  0% {
38
38
  opacity: 1;
39
39
  }
@@ -41,7 +41,7 @@ function ga(e,t){let n;return n=t?ca(e).withConfig({displayName:t.label,shouldFo
41
41
  100% {
42
42
  opacity: 0;
43
43
  }
44
- `)),xd=fa(md||(md=bd`
44
+ `)),vd=pa(fd||(fd=md`
45
45
  0% {
46
46
  transform: scale(1);
47
47
  }
@@ -53,7 +53,7 @@ function ga(e,t){let n;return n=t?ca(e).withConfig({displayName:t.label,shouldFo
53
53
  100% {
54
54
  transform: scale(1);
55
55
  }
56
- `)),Sd=pc("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ed=pc((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=x.useState(!1),p=mc(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=mc(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),x.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Fs.jsx("span",{className:p,style:f,children:Fs.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(gd||(gd=bd`
56
+ `)),yd=cc("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),xd=cc((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=x.useState(!1),p=fc(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=fc(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),x.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),js.jsx("span",{className:p,style:f,children:js.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(hd||(hd=md`
57
57
  opacity: 0;
58
58
  position: absolute;
59
59
 
@@ -96,17 +96,9 @@ function ga(e,t){let n;return n=t?ca(e).withConfig({displayName:t.label,shouldFo
96
96
  animation-iteration-count: infinite;
97
97
  animation-delay: 200ms;
98
98
  }
99
- `),dd.rippleVisible,vd,550,(({theme:e})=>e.transitions.easing.easeInOut),dd.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),dd.child,dd.childLeaving,yd,550,(({theme:e})=>e.transitions.easing.easeInOut),dd.childPulsate,xd,(({theme:e})=>e.transitions.easing.easeInOut));var Cd=x.forwardRef((function(e,t){const n=sc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Rr(n,pd),[l,s]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=x.useRef(!1),p=x.useRef(0),f=x.useRef(null),h=x.useRef(null);x.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=x.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Fs.jsx(Ed,{classes:{ripple:mc(o.ripple,dd.ripple),rippleVisible:mc(o.rippleVisible,dd.rippleVisible),ripplePulsate:mc(o.ripplePulsate,dd.ripplePulsate),child:mc(o.child,dd.child),childLeaving:mc(o.childLeaving,dd.childLeaving),childPulsate:mc(o.childPulsate,dd.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=x.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null: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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m]),b=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return x.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Fs.jsx(Sd,wr({className:mc(dd.root,o.root,i),ref:h},a,{children:Fs.jsx(Qc,{component:null,exit:!0,children:l})}))}));function wd(e){return Fu("MuiButtonBase",e)}var Rd=zu("MuiButtonBase",["root","disabled","focusVisible"]);const Ld=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ad=pc("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Rd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Id=x.forwardRef((function(e,t){const n=sc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=Rr(n,Ld),O=x.useRef(null),T=x.useRef(null),k=Cu(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Ou(),[j,$]=x.useState(!1);s&&j&&$(!1),x.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,B]=x.useState(!1);x.useEffect((()=>{B(!0)}),[]);const H=G&&!u&&!s;function W(e,t,n=c){return Eu((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}x.useEffect((()=>{j&&d&&!u&&G&&T.current.pulsate()}),[u,d,j,G]);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=Eu((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=x.useRef(!1),oe=Eu((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=Eu((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===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=Cu(t,z,O),ue=wr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=gl({root:["root",t&&"disabled",n&&"focusVisible"]},wd,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Fs.jsxs(Ad,wr({as:ae,className:mc(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,H?Fs.jsx(Cd,wr({ref:k,center:o},M)):null]}))}));var Md=Id;function Dd(e){return Fu("MuiTypography",e)}zu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Pd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],_d=pc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${hu(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>wr({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}))),Od={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Td={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},kd=x.forwardRef((function(e,t){const n=sc({props:e,name:"MuiTypography"}),r=(e=>Td[e]||e)(n.color),o=Gs(wr({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Od}=o,f=Rr(o,Pd),h=wr({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||Od[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return gl({root:["root",i,"inherit"!==e.align&&`align${hu(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Dd,a)})(h);return Fs.jsx(_d,wr({as:m,ref:t,ownerState:h,className:mc(g.root,a)},f))}));var qd=kd;const Nd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Fd(e){const t=[],n=[];return Array.from(e.querySelectorAll(Nd)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function zd(){return!0}function jd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Fd,isEnabled:a=zd,open:l}=e,s=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=el(t.ref,h),g=x.useRef(null);x.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),x.useEffect((()=>{if(!l||!h.current)return;const e=Ka(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]),x.useEffect((()=>{if(!l||!h.current)return;const e=Ka(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{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(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Fs.jsxs(x.Fragment,{children:[Fs.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Fs.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const $d=x.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=x.useState(null),l=el(x.isValidElement(n)?n.ref:null,t);if(Za((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Za((()=>{if(i&&!o)return Ja(t,i),()=>{Ja(t,null)}}),[t,i,o]),o){if(x.isValidElement(n)){const e={ref:l};return x.cloneElement(n,e)}return Fs.jsx(x.Fragment,{children:n})}return Fs.jsx(x.Fragment,{children:i?F.createPortal(n,i):i})}));function Gd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Bd(e){return parseInt(Xa(e).getComputedStyle(e).paddingRight,10)||0}function Hd(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Gd(e,o)}))}function Wd(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Vd(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ka(e);return t.body===e?Xa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=hl(Ka(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Bd(r)+e}px`;const t=Ka(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Bd(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Ka(r).body;else{const t=r.parentElement,n=Xa(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const Yd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Gd(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Hd(t,e.mount,e.modalRef,r,!0);const o=Wd(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Wd(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Vd(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Wd(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Gd(e.modalRef,t),Hd(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Gd(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Ud(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Yd,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=el(h,d),[g,b]=x.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},C=Qa((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ka(f.current).body;o.add(S(),e),h.current&&E()})),w=x.useCallback((()=>o.isTopModal(S())),[o]),R=Qa((e=>{f.current=e,e&&(c&&w()?E():h.current&&Gd(h.current,y))})),L=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{L()}),[L]),x.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=ld(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Tn({},n,t);return Tn({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>Tn({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Ya((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ya((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const Kd=["onChange","maxRows","minRows","style","value"];function Xd(e){return parseInt(e,10)||0}const Jd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Zd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Qd=x.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=$n(e,Kd),{current:s}=x.useRef(null!=a),u=x.useRef(null),c=el(t,u),d=x.useRef(null),p=x.useRef(0),[f,h]=x.useState({outerHeightStyle:0}),m=x.useCallback((()=>{const t=u.current,n=Xa(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=Xd(n.paddingBottom)+Xd(n.paddingTop),s=Xd(n.borderBottomWidth)+Xd(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},b=x.useCallback((()=>{const e=m();Zd(e)||h((t=>g(t,e)))}),[m]);Za((()=>{const e=()=>{p.current=0,(()=>{const e=m();Zd(e)||F.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=Ua(e),n=u.current,r=Xa(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[m]),Za((()=>{b()})),x.useEffect((()=>{p.current=0}),[a]);return Fs.jsxs(x.Fragment,{children:[Fs.jsx("textarea",Tn({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:Tn({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Fs.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Tn({},Jd,i,{paddingTop:0,paddingBottom:0})})]})}));function ep({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var tp=x.createContext(void 0);function np(){return x.useContext(tp)}function rp(e){return Fs.jsx(zs,wr({},e,{defaultTheme:ac,themeId:Cr}))}function op(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function ip(e,t=!1){return e&&(op(e.value)&&""!==e.value||t&&op(e.defaultValue)&&""!==e.defaultValue)}function ap(e){return Fu("MuiInputBase",e)}var lp=zu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const sp=["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"],up=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${hu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},cp=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},dp=pc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:up})((({theme:e,ownerState:t})=>wr({},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",[`&.${lp.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&wr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),pp=pc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:cp})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=wr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return wr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${lp.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},[`&.${lp.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"})})),fp=Fs.jsx(rp,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),hp=x.forwardRef((function(e,t){var n;const r=sc({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:v,maxRows:y,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:T={},slots:k={},startAdornment:q,type:N="text",value:F}=r,z=Rr(r,sp),j=null!=b.value?b.value:F,{current:$}=x.useRef(null!=j),G=x.useRef(),B=x.useCallback((e=>{}),[]),H=Cu(G,v,b.ref,B),[W,V]=x.useState(!1),Y=np(),U=ep({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:W,x.useEffect((()=>{!Y&&d&&W&&(V(!1),w&&w())}),[Y,d,W,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=x.useCallback((e=>{ip(e)?K&&K():X&&X()}),[K,X]);bu((()=>{$&&J({value:j})}),[j,J,$]);x.useEffect((()=>{J(G.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=wr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:S},Q),Z=Qd);x.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=wr({},r,{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:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return gl({root:["root",`color${hu(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${hu(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},ap,t)})(ee),ne=k.root||s.Root||dp,re=T.root||u.root||{},oe=k.input||s.Input||pp;return Q=wr({},Q,null!=(n=T.input)?n:u.input),Fs.jsxs(x.Fragment,{children:[!p&&fp,Fs.jsxs(ne,wr({},re,!ad(ne)&&{ownerState:wr({},ee,re.ownerState)},{ref:t,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),L&&L(e)}},z,{className:mc(te.root,re.className,l,P&&"MuiInputBase-readOnly"),children:[q,Fs.jsx(tp.Provider,{value:null,children:Fs.jsx(oe,wr({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:D,readOnly:P,required:U.required,rows:O,value:j,onKeyDown:I,onKeyUp:M,type:N},Q,!ad(oe)&&{as:Z,ownerState:wr({},ee,Q.ownerState)},{ref:H,className:mc(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||G.current;if(null==t)throw new Error(Er(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,_?_(wr({},U,{startAdornment:q})):null]}))]})}));var mp=hp;function gp(e){return Fu("MuiInput",e)}var bp=wr({},lp,zu("MuiInput",["root","underline","input"]));function vp(e){return Fu("MuiOutlinedInput",e)}var yp=wr({},lp,zu("MuiOutlinedInput",["root","notchedOutline","input"]));function xp(e){return Fu("MuiFilledInput",e)}var Sp=wr({},lp,zu("MuiFilledInput",["root","underline","input"])),Ep=function(e,t){function n(n,r){return Fs.jsx(xc,wr({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=xc.muiName,x.memo(x.forwardRef(n))}(Fs.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Cp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],wp={entering:{opacity:1},entered:{opacity:1}},Rp=x.forwardRef((function(e,t){const n=lc(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=Yc}=e,v=Rr(e,Cp),y=x.useRef(null),S=Cu(y,a.ref,t),E=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{ed(e);const r=td({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=td({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return Fs.jsx(b,wr({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,wr({style:wr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},wp[e],m,a.props.style),ref:S},t))}))}));var Lp=Rp;function Ap(e){return Fu("MuiBackdrop",e)}zu("MuiBackdrop",["root","invisible"]);const Ip=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Mp=pc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>wr({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"}))),Dp=x.forwardRef((function(e,t){var n,r,o;const i=sc({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=Lp,transitionDuration:g}=i,b=Rr(i,Ip),v=wr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return gl({root:["root",n&&"invisible"]},Ap,t)})(v),x=null!=(n=f.root)?n:c.root;return Fs.jsx(m,wr({in:p,timeout:g},b,{children:Fs.jsx(Mp,wr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:mc(y.root,l,null==x?void 0:x.className),ownerState:wr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Pp=Dp;var _p=zu("MuiBox",["root"]);const Op=ic(),Tp=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ga("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Es);return x.forwardRef((function(e,a){const l=Is(n),s=Gs(e),{className:u,component:c="div"}=s,d=$n(s,Ws);return Fs.jsx(i,Tn({as:c,ref:a,className:Hs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Cr,defaultTheme:Op,defaultClassName:_p.root,generateClassName:qu.generate});var kp=Tp;function qp(e){return Fu("MuiButton",e)}var Np=zu("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 Fp=x.createContext({});var zp=x.createContext(void 0);const jp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],$p=e=>wr({},"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}}),Gp=pc(Md,{shouldForwardProp:e=>uc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${hu(n.color)}`],t[`size${hu(n.size)}`],t[`${n.variant}Size${hu(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return wr({},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":wr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:au(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})`:au(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})`:au(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":wr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Np.focusVisible}`]:wr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Np.disabled}`]:wr({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 ${au(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Np.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Np.disabled}`]:{boxShadow:"none"}})),Bp=pc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${hu(n.size)}`]]}})((({ownerState:e})=>wr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},$p(e)))),Hp=pc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${hu(n.size)}`]]}})((({ownerState:e})=>wr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},$p(e)))),Wp=x.forwardRef((function(e,t){const n=x.useContext(Fp),r=x.useContext(zp),o=sc({props:Tu(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Rr(o,jp),S=wr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return wr({},a,gl({root:["root",i,`${i}${hu(t)}`,`size${hu(o)}`,`${i}Size${hu(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${hu(o)}`],endIcon:["endIcon",`iconSize${hu(o)}`]},qp,a))})(S),C=g&&Fs.jsx(Bp,{className:E.startIcon,ownerState:S,children:g}),w=p&&Fs.jsx(Hp,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return Fs.jsxs(Gp,wr({ownerState:S,className:mc(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:mc(E.focusVisible,f),ref:t,type:b},y,{classes:E,children:[C,i,w]}))}));var Vp=Wp;function Yp(e){return Fu("MuiModal",e)}zu("MuiModal",["root","hidden","backdrop"]);const Up=["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"],Kp=pc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>wr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Xp=pc(Pp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Jp=x.forwardRef((function(e,t){var n,r,o,i,a,l;const s=sc({name:"MuiModal",props:e}),{BackdropComponent:u=Xp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!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=Rr(s,Up),_=wr({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=Ud(wr({},_,{rootRef:t})),j=wr({},_,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return gl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Yp,r)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();G.onEnter=e,G.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:Kp,H=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=cd({elementType:B,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:mc(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=cd({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(wr({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:mc(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?Fs.jsx($d,{ref:q,container:h,disablePortal:E,children:Fs.jsxs(B,wr({},Y,{children:[!R&&u?Fs.jsx(H,wr({},U)):null,Fs.jsx(jd,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:x.cloneElement(f,G)})]}))}):null}));var Zp=Jp;function Qp(e){return Fu("MuiDivider",e)}var ef=zu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const tf=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],nf=pc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>wr({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)`:au(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})=>wr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>wr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>wr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>wr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),rf=pc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>wr({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)`}))),of=x.forwardRef((function(e,t){const n=sc({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Rr(n,tf),h=wr({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return gl({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Qp,r)})(h);return Fs.jsx(nf,wr({as:a,className:mc(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Fs.jsx(rf,{className:m.wrapper,ownerState:h,children:o}):null}))}));of.muiSkipListHighlight=!0;var af=of;const lf=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],sf=pc(dp,{shouldForwardProp:e=>uc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...up(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return wr({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}},[`&.${Sp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Sp.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Sp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Sp.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(.${Sp.disabled}, .${Sp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Sp.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&wr({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}))})),uf=pc(pp,{name:"MuiFilledInput",slot:"Input",overridesResolver:cp})((({theme:e,ownerState:t})=>wr({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}))),cf=x.forwardRef((function(e,t){var n,r,o,i;const a=sc({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=Rr(a,lf),g=wr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:n}=e;return wr({},t,gl({root:["root",!n&&"underline"],input:["input"]},xp,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?fu(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:sf,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:uf;return Fs.jsx(mp,wr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));cf.muiName="Input";var df=cf;const pf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ff(e){return`scale(${e}, ${e**2})`}const hf={entering:{opacity:1,transform:ff(1)},entered:{opacity:1,transform:"none"}},mf="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),gf=x.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Yc}=e,g=Rr(e,pf),b=x.useRef(),v=x.useRef(),y=lc(),S=x.useRef(null),E=Cu(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{ed(e);const{duration:n,delay:r,easing:o}=td({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:mf?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=td({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:mf?o:.666*o,delay:mf?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=ff(.75),c&&c(e)})),M=C(d);return x.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Fs.jsx(m,wr({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&(b.current=setTimeout(e,v.current||0)),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,wr({style:wr({opacity:0,transform:ff(.75),visibility:"exited"!==e||a?void 0:"hidden"},hf[e],f,o.props.style),ref:E},t))}))}));gf.muiSupportAuto=!0;var bf=gf;const vf=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],yf=pc(dp,{shouldForwardProp:e=>uc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...up(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),wr({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"},[`&.${bp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bp.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bp.disabled}, .${bp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${bp.disabled}:before`]:{borderBottomStyle:"dotted"}})})),xf=pc(pp,{name:"MuiInput",slot:"Input",overridesResolver:cp})({}),Sf=x.forwardRef((function(e,t){var n,r,o,i;const a=sc({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=Rr(a,vf),b=(e=>{const{classes:t,disableUnderline:n}=e;return wr({},t,gl({root:["root",!n&&"underline"],input:["input"]},gp,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?fu(null!=f?f:u,v):v,x=null!=(n=null!=(r=h.root)?r:s.Root)?n:yf,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:xf;return Fs.jsx(mp,wr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));Sf.muiName="Input";var Ef=Sf;function Cf(e){return Fu("MuiLink",e)}var wf=zu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Rf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Lf=({theme:e,ownerState:t})=>{const n=(e=>Rf[e]||e)(t.color),r=Pl(e,`palette.${n}`,!1)||t.color,o=Pl(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:au(r,.4)};const Af=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],If=pc(qd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${hu(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>wr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&wr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Lf({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"},[`&.${wf.focusVisible}`]:{outline:"auto"}}))),Mf=x.forwardRef((function(e,t){const n=sc({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=Rr(n,Af),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=Ou(),[b,v]=x.useState(!1),y=Cu(t,g),S=wr({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return gl({root:["root",`underline${hu(o)}`,"button"===n&&"button",r&&"focusVisible"]},Cf,t)})(S);return Fs.jsx(If,wr({color:o,className:mc(E.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),l&&l(e)},ref:y,ownerState:S,variant:c,sx:[...Object.keys(Rf).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var Df=Mf;var Pf=x.createContext({});function _f(e){return Fu("MuiList",e)}zu("MuiList",["root","padding","dense","subheader"]);const Of=["children","className","component","dense","disablePadding","subheader"],Tf=pc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>wr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var kf=x.forwardRef((function(e,t){const n=sc({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Rr(n,Of),c=x.useMemo((()=>({dense:a})),[a]),d=wr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return gl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},_f,t)})(d);return Fs.jsx(Pf.Provider,{value:c,children:Fs.jsxs(Tf,wr({as:i,className:mc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function qf(e){return Fu("MuiListItemIcon",e)}var Nf=zu("MuiListItemIcon",["root","alignItemsFlexStart"]);const Ff=["className"],zf=pc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>wr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var jf=x.forwardRef((function(e,t){const n=sc({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Rr(n,Ff),i=wr({},n,{alignItems:x.useContext(Pf).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return gl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},qf,n)})(i);return Fs.jsx(zf,wr({className:mc(a.root,r),ownerState:i,ref:t},o))}));var $f=zu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Gf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Bf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Hf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Wf(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Vf(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Wf(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Yf=x.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Rr(e,Gf),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});bu((()=>{r&&p.current.focus()}),[r]),x.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(mu(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Cu(p,t);let m=-1;x.Children.forEach(i,((e,t)=>{x.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=x.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),x.cloneElement(e,t)}return e}));return Fs.jsx(kf,wr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=mu(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Vf(t,r,s,l,Bf);else if("ArrowUp"===n)e.preventDefault(),Vf(t,r,s,l,Hf);else if("Home"===n)e.preventDefault(),Vf(t,null,s,l,Bf);else if("End"===n)e.preventDefault(),Vf(t,null,s,l,Hf);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Wf(r,o);o.previousKeyMatched&&(s||Vf(t,r,!1,l,Bf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Uf(e){return Fu("MuiPopover",e)}zu("MuiPopover",["root","paper"]);const Kf=["onEntering"],Xf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Jf=["slotProps"];function Zf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Qf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function eh(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function th(e){return"function"==typeof e?e():e}const nh=pc(Zp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rh=pc(id,{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 oh=x.forwardRef((function(e,t){var n,r,o;const i=sc({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:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=bf,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=Rr(i.TransitionProps,Kf),A=Rr(i,Xf),I=null!=(n=null==y?void 0:y.paper)?n:b,M=x.useRef(),D=Cu(M,I.ref),P=wr({},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 gl({root:["root"],paper:["paper"]},Uf,t)})(P),O=x.useCallback((()=>{if("anchorPosition"===c)return u;const e=th(l),t=(e&&1===e.nodeType?e:mu(M.current).body).getBoundingClientRect();return{top:t.top+Zf(t,s.vertical),left:t.left+Qf(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=x.useCallback((e=>({vertical:Zf(e,S.vertical),horizontal:Qf(e,S.horizontal)})),[S.horizontal,S.vertical]),k=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:eh(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=gu(th(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:eh(n)}}),[l,c,O,T,m]),[q,N]=x.useState(g),F=x.useCallback((()=>{const e=M.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);x.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);x.useEffect((()=>{g&&F()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),x.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{F()})),t=gu(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?mu(th(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:nh,G=null!=(o=null==v?void 0:v.paper)?o:rh,B=cd({elementType:G,externalSlotProps:wr({},I,{style:q?I.style:wr({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:mc(_.paper,null==I?void 0:I.className)}),H=cd({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:mc(_.root,p)}),{slotProps:W}=H,V=Rr(H,Jf);return Fs.jsx($,wr({},V,!ad($)&&{slotProps:W,disableScrollLock:R},{children:Fs.jsx(E,wr({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:Fs.jsx(G,wr({},B,{children:d}))}))}))}));function ih(e){return Fu("MuiMenu",e)}zu("MuiMenu",["root","paper","list"]);const ah=["onEntering"],lh=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],sh={vertical:"top",horizontal:"right"},uh={vertical:"top",horizontal:"left"},ch=pc(oh,{shouldForwardProp:e=>uc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dh=pc(rh,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ph=pc(Yf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var fh=x.forwardRef((function(e,t){var n,r;const o=sc({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:v={}}=o,y=Rr(o.TransitionProps,ah),S=Rr(o,lh),E=lc(),C="rtl"===E.direction,w=wr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),R=(e=>{const{classes:t}=e;return gl({root:["root"],paper:["paper"],list:["list"]},ih,t)})(w),L=i&&!s&&d,A=x.useRef(null);let I=-1;x.Children.map(a,((e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const M=null!=(n=b.paper)?n:dh,D=null!=(r=v.paper)?r:p,P=cd({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),_=cd({elementType:M,externalSlotProps:D,ownerState:w,className:R.paper});return Fs.jsx(ch,wr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?sh:uh,slots:{paper:M,root:b.root},slotProps:{root:P,paper:_},open:d,ref:t,transitionDuration:h,TransitionProps:wr({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,E),m&&m(e,t)}},y),ownerState:w},S,{classes:f,children:Fs.jsx(ph,wr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||s),autoFocusItem:L,variant:g},u,{className:mc(R.list,u.className),children:a}))}))}));function hh(e){return Fu("MuiMenuItem",e)}var mh=zu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const gh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],bh=pc(Md,{shouldForwardProp:e=>uc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>wr({},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"}},[`&.${mh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:au(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${mh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:au(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${mh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:au(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})`:au(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${mh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ef.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ef.inset}`]:{marginLeft:52},[`& .${$f.root}`]:{marginTop:0,marginBottom:0},[`& .${$f.inset}`]:{paddingLeft:36},[`& .${Nf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&wr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Nf.root} svg`]:{fontSize:"1.25rem"}}))));var vh=x.forwardRef((function(e,t){const n=sc({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Rr(n,gh),f=x.useContext(Pf),h=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=x.useRef(null);bu((()=>{r&&m.current&&m.current.focus()}),[r]);const g=wr({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return wr({},a,gl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},hh,a))})(n),v=Cu(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),Fs.jsx(Pf.Provider,{value:h,children:Fs.jsx(bh,wr({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:mc(b.focusVisible,s),className:mc(b.root,d)},p,{ownerState:g,classes:b}))})}));function yh(e){return Fu("MuiNativeSelect",e)}var xh=zu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Sh=["className","disabled","error","IconComponent","inputRef","variant"],Eh=({ownerState:e,theme:t})=>wr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":wr({},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"},[`&.${xh.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}}),Ch=pc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:uc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${xh.multiple}`]:t.multiple}]}})(Eh),wh=({ownerState:e,theme:t})=>wr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${xh.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Rh=pc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${hu(n.variant)}`],n.open&&t.iconOpen]}})(wh),Lh=x.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Rr(e,Sh),u=wr({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return gl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${hu(n)}`,i&&"iconOpen",r&&"disabled"]},yh,t)})(u);return Fs.jsxs(x.Fragment,{children:[Fs.jsx(Ch,wr({ownerState:u,className:mc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Fs.jsx(Rh,{as:i,ownerState:u,className:c.icon})]})}));var Ah,Ih=Lh;const Mh=["children","classes","className","label","notched"],Dh=pc("fieldset",{shouldForwardProp:uc})({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%"}),Ph=pc("legend",{shouldForwardProp:uc})((({ownerState:e,theme:t})=>wr({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&&wr({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 _h=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Oh=pc(dp,{shouldForwardProp:e=>uc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:up})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return wr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${yp.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yp.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${yp.focused} .${yp.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${yp.error} .${yp.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${yp.disabled} .${yp.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&wr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Th=pc((function(e){const{className:t,label:n,notched:r}=e,o=Rr(e,Mh),i=null!=n&&""!==n,a=wr({},e,{notched:r,withLabel:i});return Fs.jsx(Dh,wr({"aria-hidden":!0,className:t,ownerState:a},o,{children:Fs.jsx(Ph,{ownerState:a,children:i?Fs.jsx("span",{children:n}):Ah||(Ah=Fs.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}})),kh=pc(pp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:cp})((({theme:e,ownerState:t})=>wr({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}))),qh=x.forwardRef((function(e,t){var n,r,o,i,a;const l=sc({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=Rr(l,_h),b=(e=>{const{classes:t}=e;return wr({},t,gl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},vp,t))})(l),v=np(),y=ep({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=wr({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),E=null!=(n=null!=(r=h.root)?r:s.Root)?n:Oh,C=null!=(o=null!=(i=h.input)?i:s.Input)?o:kh;return Fs.jsx(mp,wr({slots:{root:E,input:C},renderSuffix:e=>Fs.jsx(Th,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Fs.jsxs(x.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:wr({},b,{notchedOutline:null})}))}));qh.muiName="Input";var Nh=qh;function Fh(e){return Fu("MuiSelect",e)}var zh,jh=zu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const $h=["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"],Gh=pc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${jh.select}`]:t.select},{[`&.${jh.select}`]:t[n.variant]},{[`&.${jh.error}`]:t.error},{[`&.${jh.multiple}`]:t.multiple}]}})(Eh,{[`&.${jh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Bh=pc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${hu(n.variant)}`],n.open&&t.iconOpen]}})(wh),Hh=pc("input",{shouldForwardProp:e=>cc(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Wh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Vh(e){return null==e||"string"==typeof e&&!e.trim()}const Yh=x.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,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=Rr(e,$h),[T,k]=Su({controlled:P,default:c,name:"Select"}),[q,N]=Su({controlled:L,default:u,name:"Select"}),F=x.useRef(null),z=x.useRef(null),[j,$]=x.useState(null),{current:G}=x.useRef(null!=L),[B,H]=x.useState(),W=Cu(t,m),V=x.useCallback((e=>{z.current=e,e&&$(e)}),[]),Y=null==j?void 0:j.parentNode;x.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:F.current,value:T})),[T]),x.useEffect((()=>{u&&q&&j&&!G&&(H(a?null:Y.clientWidth),z.current.focus())}),[j,a]),x.useEffect((()=>{i&&z.current.focus()}),[i]),x.useEffect((()=>{if(!g)return;const e=mu(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),G||(H(a?null:Y.clientWidth),N(e))},K=x.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==n&&(k(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),E(o,e)}v||U(!1,t)}},J=null!==j&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(ip({value:T})||p)&&(I?Z=I(T):te=!0);const ne=K.map((e=>{if(!x.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(Er(2));t=T.some((t=>Wh(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Wh(T,e.props.value),t&&te&&(Q=e.props.children);return x.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=B;!a&&G&&j&&(oe=Y.clientWidth),re=void 0!==D?D:d?null:0;const ie=M.id||(y?`mui-component-select-${y}`:void 0),ae=wr({},e,{variant:_,value:T,open:J,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return gl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${hu(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Fh,t)})(ae),se=wr({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=xu();return Fs.jsxs(x.Fragment,{children:[Fs.jsx(Gh,wr({ref:V,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!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:T,name:y}}),S(e))},onFocus:w},M,{ownerState:ae,className:mc(M.className,le.select,s),id:ie,children:Vh(Z)?zh||(zh=Fs.jsx("span",{className:"notranslate",children:"​"})):Z})),Fs.jsx(Hh,wr({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(k(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),Fs.jsx(Bh,{as:h,className:le.icon,ownerState:ae}),Fs.jsx(fh,wr({id:`menu-${y||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:wr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:wr({},b.slotProps,{paper:wr({},se,{style:wr({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var Uh=Yh;const Kh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Xh=["root"],Jh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>uc(e)&&"variant"!==e,slot:"Root"},Zh=pc(Ef,Jh)(""),Qh=pc(Nh,Jh)(""),em=pc(df,Jh)(""),tm=x.forwardRef((function(e,t){const n=sc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Ep,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=Rr(n,Kh),L=b?Ih:Uh,A=ep({props:n,muiFormControl:np(),states:["variant","error"]}),I=A.variant||w,M=wr({},n,{variant:I,classes:i}),D=(e=>{const{classes:t}=e;return t})(M),P=Rr(D,Xh),_=d||{standard:Fs.jsx(Zh,{ownerState:M}),outlined:Fs.jsx(Qh,{label:f,ownerState:M}),filled:Fs.jsx(em,{ownerState:M})}[I],O=Cu(t,_.ref);return Fs.jsx(x.Fragment,{children:x.cloneElement(_,wr({inputComponent:L,inputProps:wr({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:S,renderValue:E,SelectDisplayProps:wr({id:c},C)},p,{classes:p?fu(P,p.classes):P},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:O,className:mc(_.props.className,a,D.root)},!d&&{variant:I},R))})}));tm.muiName="Select";var nm=tm,rm=(e={})=>S.createElement(sr,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:Wn.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const om={MuiAccordion:{styleOverrides:{root:{backgroundColor:Wn.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Wn.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(ir,{"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 ${Wn.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Wn.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`,borderRadius:Xn,backgroundColor:Wn.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 ${Wn.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Wn.WHITE,color:Wn.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:Xn},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Wn.GREYSCALE_0_15,backgroundColor:Wn.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Wn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Wn.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Wn.GREEN_PALE},"&:active":{backgroundColor:Wn.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Wn.GREEN_PALE,boxShadow:`0 0 0 3px ${au(Wn.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Wn.BLUE_PALE},"&:active":{backgroundColor:Wn.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Wn.BLUE_PALE,boxShadow:`0 0 0 3px ${au(Wn.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:Xn,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Wn.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Wn.GREYSCALE_0_15,backgroundColor:Wn.GREYSCALE_100_60,"&:active":{backgroundColor:Wn.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Wn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Wn.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Wn.PURPLE,"&.Mui-focusVisible":{borderColor:Wn.PURPLE,boxShadow:`0 0 0 3px ${au(Wn.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Wn.GREEN,"&.Mui-focusVisible":{borderColor:Wn.GREEN,boxShadow:`0 0 0 3px ${au(Wn.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Wn.BLUE,"&.Mui-focusVisible":{borderColor:Wn.BLUE,boxShadow:`0 0 0 3px ${au(Wn.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Wn.ORANGE,"&.Mui-focusVisible":{borderColor:Wn.ORANGE,boxShadow:`0 0 0 3px ${au(Wn.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Wn.RED,"&.Mui-focusVisible":{borderColor:Wn.RED,boxShadow:`0 0 0 3px ${au(Wn.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Wn.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Wn.PURPLE_PALE},"&:active":{backgroundColor:Wn.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Wn.PURPLE_PALE,boxShadow:`0 0 0 3px ${au(Wn.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Wn.GREEN_PALE},"&:active":{backgroundColor:Wn.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Wn.GREEN_PALE,boxShadow:`0 0 0 3px ${au(Wn.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Wn.BLUE_PALE},"&:active":{backgroundColor:Wn.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Wn.BLUE_PALE,boxShadow:`0 0 0 3px ${au(Wn.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Wn.ORANGE_PALE},"&:active":{backgroundColor:Wn.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Wn.ORANGE_PALE,boxShadow:`0 0 0 3px ${au(Wn.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Wn.RED_PALE},"&:active":{backgroundColor:Wn.RED_DARK},"&.Mui-focusVisible":{borderColor:Wn.RED_PALE,boxShadow:`0 0 0 3px ${au(Wn.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:Wn.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Wn.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Xn,boxShadow:`inset 0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Vn,borderRadius:Xn,color:Wn.TEXT_PRIMARY,backgroundColor:Wn.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Wn.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Wn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Wn.GREYSCALE_0_05,color:Wn.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Wn.GREEN,borderColor:Wn.GREEN},"&.MuiChip-outlinedInfo":{color:Wn.BLUE,borderColor:Wn.BLUE},"&.MuiChip-outlinedWarning":{color:Wn.ORANGE,borderColor:Wn.ORANGE},"&.MuiChip-outlinedError":{color:Wn.RED,borderColor:Wn.RED}},outlined:{border:`solid 1px ${Wn.GREYSCALE_0_15}`,backgroundColor:Wn.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Xn,boxShadow:"none",backgroundColor:Wn.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Wn.GREEN,borderColor:Wn.GREEN},outlinedSecondary:{color:Wn.BLUE,borderColor:Wn.BLUE},label:{fontFamily:tr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(ir,{"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:Xn},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Xn,fontSize:Yn,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Wn.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Wn.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Wn.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Wn.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Wn.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Xn,border:`solid 1px ${Wn.GREYSCALE_0_15}`,color:Wn.GREYSCALE_0_60,marginRight:0,width:Kn,height:Kn},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Wn.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Xn,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Wn.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Yn}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Vn,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Wn.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Wn.GREYSCALE_25,fontSize:Vn,fontFamily:tr.FONT_FAMILY,fontWeight:Qn,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Wn.TEXT_PRIMARY},"&.Mui-error":{color:Wn.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Wn.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Zn,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Wn.TEXT_SECONDARY,content:"'(required)'",fontWeight:Zn,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Yn,lineHeight:"16px",backgroundColor:Wn.WHITE,borderRadius:Xn,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Wn.GREYSCALE_0_05}`,borderColor:Wn.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Wn.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Wn.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Wn.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Wn.RED}`,boxShadow:`0px 0px 0px 1px ${Wn.RED}, inset 0 2px 0 0 ${Wn.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Wn.GREYSCALE_0_10}`,borderColor:Wn.GREYSCALE_0_10,backgroundColor:Wn.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Wn.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Wn.GREYSCALE_0_15,borderRadius:Xn,boxShadow:`inset 0 2px 0 0 ${Wn.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(ir,{...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:Wn.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Wn.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Wn.GREYSCALE_0_03},"&:active":{backgroundColor:Wn.GREYSCALE_0_10},"&:focus":{backgroundColor:Wn.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Wn.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Wn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Wn.GREYSCALE_0_30,"&:hover":{backgroundColor:Wn.GREYSCALE_0_0,borderColor:Wn.GREYSCALE_0_15},"& ~svg":{color:Wn.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Wn.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Xn}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Wn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Wn.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Yn,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Vn,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Vn,fontWeight:Qn,color:Wn.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Qn}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Wn.GREYSCALE_0_15}, 0px 0px 0px 1px ${Wn.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(dr,null),checkedIcon:S.createElement(pr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Wn.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Wn.GREEN_PALE,boxShadow:`0 0 0 3px ${au(Wn.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Wn.BLUE_PALE,boxShadow:`0 0 0 3px ${au(Wn.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Wn.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Wn.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(rm,null),checkedIcon:S.createElement(ur,null),indeterminateIcon:S.createElement(cr,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Xn,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Wn.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Wn.GREYSCALE_0_55,color:Wn.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:Wn.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Wn.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Wn.GREYSCALE_0_55,"&:hover":{color:Wn.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:Wn.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Wn.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Yn,color:Wn.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Qn},secondary:{fontSize:Vn,color:Wn.GREYSCALE_45,fontWeight:Zn,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Yn,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Wn.GREYSCALE_0_03},"&:active":{backgroundColor:Wn.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Yn,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Wn.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Vn,borderBottom:`solid 1px ${Wn.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Yn,color:Wn.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Wn.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Wn.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Wn.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:Wn.RED}}},"&.Mui-focusVisible":{backgroundColor:Wn.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:Wn.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:Wn.GREEN,height:"24px","&.Mui-disabled":{color:Wn.GREYSCALE_0_15}},rail:{backgroundColor:Wn.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Wn.GREYSCALE_0_05}`,borderRadius:Xn,boxShadow:`inset 0px 0px 0px 1px ${Wn.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Wn.GREYSCALE_0_05}`,borderRadius:Xn},thumb:{height:"16px",width:"16px",borderRadius:Xn,backgroundColor:Wn.WHITE,boxShadow:`0px 1px 2px 0px ${Wn.GREYSCALE_0_15}, 0px 0px 0px 1px ${Wn.GREYSCALE_0_05}`,"&:hover":{borderRadius:Xn,boxShadow:`0 2px 4px 0 ${Wn.GREYSCALE_0_30}, 0 0 0 1px ${Wn.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Wn.GREYSCALE_0_15}, 0 0 0 1px ${Wn.GREYSCALE_0_06}, 0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Wn.GREYSCALE_0_15}, 0 0 0 1px ${Wn.GREYSCALE_0_06}, 0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Wn.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Wn.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Wn.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Wn.GREYSCALE_0_15},markLabel:{color:Wn.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Wn.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Wn.WHITE,color:Wn.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:Wn.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:Wn.GREEN_PALE,boxShadow:`0 0 0 3px ${au(Wn.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Wn.BLUE_PALE,boxShadow:`0 0 0 3px ${au(Wn.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Wn.GREYSCALE_0_15,borderRadius:Xn},thumb:{height:"16px",width:"16px",borderRadius:Xn,backgroundColor:Wn.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:Yn,fontWeight:Qn,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Wn.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`,backgroundColor:Wn.GREYSCALE_0_03,borderRadius:Xn},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Wn.GREYSCALE_25,"&.Mui-selected":{color:Wn.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Yn,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Wn.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Wn.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Wn.GREYSCALE_85}`,borderRight:`1px solid ${Wn.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Qn,backgroundColor:Wn.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:Wn.GREYSCALE_98,borderBottom:`1px solid ${Wn.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Wn.GREYSCALE_85}`,borderTop:`1px solid ${Wn.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Wn.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Wn.GREYSCALE_0_05,"&:hover":{backgroundColor:Wn.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Wn.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(fr,{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 ${Wn.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Yn,borderRadius:Xn,padding:"7px 16px",border:`1px solid ${Wn.GREYSCALE_0_15}`,backgroundColor:Wn.GREYSCALE_100_60,color:Wn.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Wn.GREYSCALE_0_10,border:`1px solid ${Wn.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Wn.GREYSCALE_0_03,border:`1px solid ${Wn.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Wn.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Wn.MISC_FOCUS_BORDER}`,border:`1px solid ${Wn.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Wn.GREYSCALE_25,backgroundColor:Wn.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Wn.GREYSCALE_0_10,border:`1px solid ${Wn.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Vn,height:24,width:24,padding:7},sizeLarge:{fontSize:Un,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Yn,borderRadius:Xn}}},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:Wn.GREYSCALE_20},tooltip:{backgroundColor:Wn.GREYSCALE_20,fontSize:Vn,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const im={mode:"light",primary:{light:Wn.GREEN_PALE,main:Wn.GREEN,dark:Wn.GREEN_DARK,contrastText:Wn.WHITE},secondary:{light:Wn.BLUE_PALE,main:Wn.BLUE,dark:Wn.BLUE_DARK,contrastText:Wn.WHITE},error:{light:Wn.RED_PALE,main:Wn.RED,dark:Wn.RED_DARK,contrastText:Wn.WHITE},warning:{light:Wn.ORANGE_PALE,main:Wn.ORANGE,dark:Wn.ORANGE_DARK,contrastText:Wn.WHITE},success:{light:Wn.GREEN_PALE,main:Wn.GREEN,dark:Wn.GREEN_DARK,contrastText:Wn.WHITE},info:{light:Wn.BLUE_PALE,main:Wn.BLUE,dark:Wn.BLUE_DARK,contrastText:Wn.WHITE},text:{primary:Wn.TEXT_PRIMARY,secondary:Wn.TEXT_SECONDARY,disabled:Wn.GREYSCALE_0_30},action:{hover:Wn.GREYSCALE_0_03,hoverOpacity:.05,selected:Wn.GREYSCALE_0_05,focus:Wn.MISC_FOCUS_BORDER},amethyst:{main:Wn.PURPLE,light:Wn.PURPLE_PALE,dark:Wn.PURPLE_DARK,contrastText:Wn.WHITE},background:{paper:Wn.WHITE,default:Wn.GREYSCALE_95},divider:Wn.GREYSCALE_0_15},am=e=>({components:om,palette:im,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:Yn,fontWeightLight:Jn,fontWeightRegular:Zn,fontWeightMedium:Qn,fontWeightBold:er,htmlFontSize:Yn,fontFamily:tr.FONT_FAMILY,button:{fontWeight:Qn,fontSize:Yn,textTransform:"none"},body1:{fontSize:Un,lineHeight:"24px"},body2:{fontSize:Yn,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Kn,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Un,fontWeight:Qn,lineHeight:"16px"},h6:{fontSize:Yn,fontWeight:Qn,lineHeight:"16px"},caption:{color:Wn.TEXT_SECONDARY},subtitle1:{fontSize:Yn,color:Wn.TEXT_SECONDARY},subtitle2:{fontSize:Vn,color:Wn.TEXT_SECONDARY}},shape:{borderRadius:Xn}}),lm={...Hn,MISC_FOCUS_BORDER:Wn.MISC_FOCUS_BORDER},sm=am().palette,um={TEXT:sm.text.primary,DISABLED:sm.text.disabled,HOVER:sm.action.hover,WHITE:lm.GREYSCALE_100,BORDER_LIGHT:lm.GREYSCALE_90,BORDER_MEDIUM:lm.GREYSCALE_85,BORDER_HEAVY:lm.GREYSCALE_50,DARK_MODE_TEXT:lm.GREYSCALE_95,DARK_MODE_BORDER:lm.GREYSCALE_95,DARK_MODE_DISABLED:lm.GREYSCALE_70,DARK_MODE_BACKGROUND:lm.GREYSCALE_20};function cm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function dm(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function pm(){}var fm=.7,hm=1/fm,mm="\\s*([+-]?\\d+)\\s*",gm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vm=/^#([0-9a-f]{3,8})$/,ym=new RegExp(`^rgb\\(${mm},${mm},${mm}\\)$`),xm=new RegExp(`^rgb\\(${bm},${bm},${bm}\\)$`),Sm=new RegExp(`^rgba\\(${mm},${mm},${mm},${gm}\\)$`),Em=new RegExp(`^rgba\\(${bm},${bm},${bm},${gm}\\)$`),Cm=new RegExp(`^hsl\\(${gm},${bm},${bm}\\)$`),wm=new RegExp(`^hsla\\(${gm},${bm},${bm},${gm}\\)$`),Rm={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 Lm(){return this.rgb().formatHex()}function Am(){return this.rgb().formatRgb()}function Im(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=vm.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Mm(t):3===n?new Om(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Dm(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Dm(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=ym.exec(e))?new Om(t[1],t[2],t[3],1):(t=xm.exec(e))?new Om(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Sm.exec(e))?Dm(t[1],t[2],t[3],t[4]):(t=Em.exec(e))?Dm(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Cm.exec(e))?zm(t[1],t[2]/100,t[3]/100,1):(t=wm.exec(e))?zm(t[1],t[2]/100,t[3]/100,t[4]):Rm.hasOwnProperty(e)?Mm(Rm[e]):"transparent"===e?new Om(NaN,NaN,NaN,0):null}function Mm(e){return new Om(e>>16&255,e>>8&255,255&e,1)}function Dm(e,t,n,r){return r<=0&&(e=t=n=NaN),new Om(e,t,n,r)}function Pm(e){return e instanceof pm||(e=Im(e)),e?new Om((e=e.rgb()).r,e.g,e.b,e.opacity):new Om}function _m(e,t,n,r){return 1===arguments.length?Pm(e):new Om(e,t,n,null==r?1:r)}function Om(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Tm(){return`#${Fm(this.r)}${Fm(this.g)}${Fm(this.b)}`}function km(){const e=qm(this.opacity);return`${1===e?"rgb(":"rgba("}${Nm(this.r)}, ${Nm(this.g)}, ${Nm(this.b)}${1===e?")":`, ${e})`}`}function qm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Nm(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fm(e){return((e=Nm(e))<16?"0":"")+e.toString(16)}function zm(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $m(e,t,n,r)}function jm(e){if(e instanceof $m)return new $m(e.h,e.s,e.l,e.opacity);if(e instanceof pm||(e=Im(e)),!e)return new $m;if(e instanceof $m)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new $m(a,l,s,e.opacity)}function $m(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Gm(e){return(e=(e||0)%360)<0?e+360:e}function Bm(e){return Math.max(0,Math.min(1,e||0))}function Hm(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}cm(pm,Im,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Lm,formatHex:Lm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return jm(this).formatHsl()},formatRgb:Am,toString:Am}),cm(Om,_m,dm(pm,{brighter(e){return e=null==e?hm:Math.pow(hm,e),new Om(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?fm:Math.pow(fm,e),new Om(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Om(Nm(this.r),Nm(this.g),Nm(this.b),qm(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:Tm,formatHex:Tm,formatHex8:function(){return`#${Fm(this.r)}${Fm(this.g)}${Fm(this.b)}${Fm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:km,toString:km})),cm($m,(function(e,t,n,r){return 1===arguments.length?jm(e):new $m(e,t,n,null==r?1:r)}),dm(pm,{brighter(e){return e=null==e?hm:Math.pow(hm,e),new $m(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?fm:Math.pow(fm,e),new $m(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Om(Hm(e>=240?e-240:e+120,o,r),Hm(e,o,r),Hm(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new $m(Gm(this.h),Bm(this.s),Bm(this.l),qm(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=qm(this.opacity);return`${1===e?"hsl(":"hsla("}${Gm(this.h)}, ${100*Bm(this.s)}%, ${100*Bm(this.l)}%${1===e?")":`, ${e})`}`}}));const Wm=Math.PI/180,Vm=180/Math.PI,Ym=.96422,Um=1,Km=.82521,Xm=4/29,Jm=6/29,Zm=3*Jm*Jm,Qm=Jm*Jm*Jm;function eg(e){if(e instanceof tg)return new tg(e.l,e.a,e.b,e.opacity);if(e instanceof lg)return sg(e);e instanceof Om||(e=Pm(e));var t,n,r=ig(e.r),o=ig(e.g),i=ig(e.b),a=ng((.2225045*r+.7168786*o+.0606169*i)/Um);return r===o&&o===i?t=n=a:(t=ng((.4360747*r+.3850649*o+.1430804*i)/Ym),n=ng((.0139322*r+.0971045*o+.7141733*i)/Km)),new tg(116*a-16,500*(t-a),200*(a-n),e.opacity)}function tg(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ng(e){return e>Qm?Math.pow(e,1/3):e/Zm+Xm}function rg(e){return e>Jm?e*e*e:Zm*(e-Xm)}function og(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ig(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ag(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof lg)return new lg(e.h,e.c,e.l,e.opacity);if(e instanceof tg||(e=eg(e)),0===e.a&&0===e.b)return new lg(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Vm;return new lg(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new lg(e,t,n,null==r?1:r)}function lg(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function sg(e){if(isNaN(e.h))return new tg(e.l,0,0,e.opacity);var t=e.h*Wm;return new tg(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}cm(tg,(function(e,t,n,r){return 1===arguments.length?eg(e):new tg(e,t,n,null==r?1:r)}),dm(pm,{brighter(e){return new tg(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new tg(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Om(og(3.1338561*(t=Ym*rg(t))-1.6168667*(e=Um*rg(e))-.4906146*(n=Km*rg(n))),og(-.9787684*t+1.9161415*e+.033454*n),og(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),cm(lg,ag,dm(pm,{brighter(e){return new lg(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new lg(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return sg(this).rgb()}}));const ug=(e,t)=>{const n=ag(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},cg=e=>{if(e){const t=_m(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},dg=e=>!!e&&0===_m(e).opacity,pg=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,fg=e=>{const t=pg.exec(e);if(t){const[,e,n,r,o]=t;return _m(+n,+r,+o,+e/255)}return _m(e)},hg=e=>{const t=fg(e);return Number.isNaN(t.r)?null:t.toString()},mg=e=>{e.stopPropagation(),e.preventDefault()},gg="#grid",bg=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},vg=(e,t,n,r,o)=>{const i=bg(".qv-object .qv-inner-object",n),a=bg(".qv-panel-sheet",n),l=bg(gg,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return hg(s);if("none"===u)return"transparent";if(void 0===u)return;const c=fg(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=dg(p),h=cg(f?s:p),m=((e,t,n)=>e&&!dg(e)?e:dg(t)?n&&!dg(n)?n:um.WHITE:t)(u,p,s);return{color:p,headerColor:m,isDark:h}},yg=(e,i,a,l)=>{const s=r(),u=((e,r={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[o,i]=t([]);return n((()=>{let t;return e&&(t=new MutationObserver((e=>{i(e)})),t.observe(e,r)),()=>{var e;null===(e=t)||void 0===e||e.disconnect()}}),[e,r]),o})(null==i?void 0:i.closest(gg),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return o((()=>({...s,background:vg(e,s,i,a,l)})),[s.name(),i,a,l,e,u])};function xg(e,t){const n=o((()=>({isLoading:!0})),t),[r,a]=i((async()=>{try{return await e()}finally{n.isLoading=!1}}),t);return[r,n.isLoading,a]}var Sg=Object.prototype.hasOwnProperty,Eg=Object.prototype.toString,Cg=Object.defineProperty,wg=Object.getOwnPropertyDescriptor,Rg=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Eg.call(e)},Lg=function(e){if(!e||"[object Object]"!==Eg.call(e))return!1;var t,n=Sg.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Sg.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Sg.call(e,t)},Ag=function(e,t){Cg&&"__proto__"===t.name?Cg(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ig=function(e,t){if("__proto__"===t){if(!Sg.call(e,t))return;if(wg)return wg(e,t).value}return e[t]};function Mg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Dg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Pg(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=Ig(l,n),l!==(o=Ig(t,n))&&(c&&o&&(Lg(o)||(i=Rg(o)))?(i?(i=!1,a=r&&Rg(r)?r:[]):a=r&&Lg(r)?r:{},Ag(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Ag(l,{name:n,newValue:o}));return l}));var _g=1/.7,Og="\\s*([+-]?\\d+)\\s*",Tg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",kg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qg=/^#([0-9a-f]{3,8})$/,Ng=new RegExp(`^rgb\\(${Og},${Og},${Og}\\)$`),Fg=new RegExp(`^rgb\\(${kg},${kg},${kg}\\)$`),zg=new RegExp(`^rgba\\(${Og},${Og},${Og},${Tg}\\)$`),jg=new RegExp(`^rgba\\(${kg},${kg},${kg},${Tg}\\)$`),$g=new RegExp(`^hsl\\(${Tg},${kg},${kg}\\)$`),Gg=new RegExp(`^hsla\\(${Tg},${kg},${kg},${Tg}\\)$`),Bg={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 Hg(){return this.rgb().formatHex()}function Wg(){return this.rgb().formatRgb()}function Vg(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qg.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Yg(t):3===n?new Jg(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ug(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ug(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=Ng.exec(e))?new Jg(t[1],t[2],t[3],1):(t=Fg.exec(e))?new Jg(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=zg.exec(e))?Ug(t[1],t[2],t[3],t[4]):(t=jg.exec(e))?Ug(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$g.exec(e))?rb(t[1],t[2]/100,t[3]/100,1):(t=Gg.exec(e))?rb(t[1],t[2]/100,t[3]/100,t[4]):Bg.hasOwnProperty(e)?Yg(Bg[e]):"transparent"===e?new Jg(NaN,NaN,NaN,0):null}function Yg(e){return new Jg(e>>16&255,e>>8&255,255&e,1)}function Ug(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jg(e,t,n,r)}function Kg(e){return e instanceof Pg||(e=Vg(e)),e?new Jg((e=e.rgb()).r,e.g,e.b,e.opacity):new Jg}function Xg(e,t,n,r){return 1===arguments.length?Kg(e):new Jg(e,t,n,null==r?1:r)}function Jg(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Zg(){return`#${nb(this.r)}${nb(this.g)}${nb(this.b)}`}function Qg(){const e=eb(this.opacity);return`${1===e?"rgb(":"rgba("}${tb(this.r)}, ${tb(this.g)}, ${tb(this.b)}${1===e?")":`, ${e})`}`}function eb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tb(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nb(e){return((e=tb(e))<16?"0":"")+e.toString(16)}function rb(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ib(e,t,n,r)}function ob(e){if(e instanceof ib)return new ib(e.h,e.s,e.l,e.opacity);if(e instanceof Pg||(e=Vg(e)),!e)return new ib;if(e instanceof ib)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new ib(a,l,s,e.opacity)}function ib(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ab(e){return(e=(e||0)%360)<0?e+360:e}function lb(e){return Math.max(0,Math.min(1,e||0))}function sb(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Mg(Pg,Vg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hg,formatHex:Hg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ob(this).formatHsl()},formatRgb:Wg,toString:Wg}),Mg(Jg,Xg,Dg(Pg,{brighter(e){return e=null==e?_g:Math.pow(_g,e),new Jg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Jg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jg(tb(this.r),tb(this.g),tb(this.b),eb(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:Zg,formatHex:Zg,formatHex8:function(){return`#${nb(this.r)}${nb(this.g)}${nb(this.b)}${nb(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Qg,toString:Qg})),Mg(ib,(function(e,t,n,r){return 1===arguments.length?ob(e):new ib(e,t,n,null==r?1:r)}),Dg(Pg,{brighter(e){return e=null==e?_g:Math.pow(_g,e),new ib(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ib(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Jg(sb(e>=240?e-240:e+120,o,r),sb(e,o,r),sb(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ib(ab(this.h),lb(this.s),lb(this.l),eb(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=eb(this.opacity);return`${1===e?"hsl(":"hsla("}${ab(this.h)}, ${100*lb(this.s)}%, ${100*lb(this.l)}%${1===e?")":`, ${e})`}`}}));const ub=Math.PI/180,cb=180/Math.PI,db=4/29,pb=6/29,fb=3*pb*pb;function hb(e){if(e instanceof mb)return new mb(e.l,e.a,e.b,e.opacity);if(e instanceof xb)return Sb(e);e instanceof Jg||(e=Kg(e));var t,n,r=yb(e.r),o=yb(e.g),i=yb(e.b),a=gb((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=gb((.4360747*r+.3850649*o+.1430804*i)/.96422),n=gb((.0139322*r+.0971045*o+.7141733*i)/.82521)),new mb(116*a-16,500*(t-a),200*(a-n),e.opacity)}function mb(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function gb(e){return e>.008856451679035631?Math.pow(e,1/3):e/fb+db}function bb(e){return e>pb?e*e*e:fb*(e-db)}function vb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function xb(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Sb(e){if(isNaN(e.h))return new mb(e.l,0,0,e.opacity);var t=e.h*ub;return new mb(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Mg(mb,(function(e,t,n,r){return 1===arguments.length?hb(e):new mb(e,t,n,null==r?1:r)}),Dg(Pg,{brighter(e){return new mb(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new mb(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Jg(vb(3.1338561*(t=.96422*bb(t))-1.6168667*(e=1*bb(e))-.4906146*(n=.82521*bb(n))),vb(-.9787684*t+1.9161415*e+.033454*n),vb(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Mg(xb,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof xb)return new xb(e.h,e.c,e.l,e.opacity);if(e instanceof mb||(e=hb(e)),0===e.a&&0===e.b)return new xb(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*cb;return new xb(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new xb(e,t,n,null==r?1:r)}),Dg(Pg,{brighter(e){return new xb(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new xb(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Sb(this).rgb()}}));var Eb,Cb=e=>()=>e;function wb(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Cb(isNaN(e)?t:e)}function Rb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function Lb(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Ab(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Mb)):void 0===t&&(t=Ib);for(var n,r,o,i,a,l=new _b(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new _b(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Pb)}function Ib(e){return e.children}function Mb(e){return Array.isArray(e)?e[1]:null}function Db(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Pb(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function _b(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?wb:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Cb(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Xg(e)).r,(t=Xg(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=wb(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),_b.prototype=Ab.prototype={constructor:_b,count:function(){return this.eachAfter(Lb)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Ab(this).eachBefore(Db)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},Eb=function(e){
99
+ `),ud.rippleVisible,gd,550,(({theme:e})=>e.transitions.easing.easeInOut),ud.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ud.child,ud.childLeaving,bd,550,(({theme:e})=>e.transitions.easing.easeInOut),ud.childPulsate,vd,(({theme:e})=>e.transitions.easing.easeInOut));var Sd=x.forwardRef((function(e,t){const n=ac({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Rr(n,cd),[l,s]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=x.useRef(!1),p=x.useRef(0),f=x.useRef(null),h=x.useRef(null);x.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=x.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,js.jsx(xd,{classes:{ripple:fc(o.ripple,ud.ripple),rippleVisible:fc(o.rippleVisible,ud.rippleVisible),ripplePulsate:fc(o.ripplePulsate,ud.ripplePulsate),child:fc(o.child,ud.child),childLeaving:fc(o.childLeaving,ud.childLeaving),childPulsate:fc(o.childPulsate,ud.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=x.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null: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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m]),b=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return x.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),js.jsx(yd,wr({className:fc(ud.root,o.root,i),ref:h},a,{children:js.jsx(Jc,{component:null,exit:!0,children:l})}))}));function Ed(e){return qu("MuiButtonBase",e)}var Cd=Nu("MuiButtonBase",["root","disabled","focusVisible"]);const wd=["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"],Rd=cc("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"},[`&.${Cd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ld=x.forwardRef((function(e,t){const n=ac({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=Rr(n,wd),O=x.useRef(null),T=x.useRef(null),k=Su(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Pu(),[j,$]=x.useState(!1);s&&j&&$(!1),x.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,B]=x.useState(!1);x.useEffect((()=>{B(!0)}),[]);const H=G&&!u&&!s;function W(e,t,n=c){return xu((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}x.useEffect((()=>{j&&d&&!u&&G&&T.current.pulsate()}),[u,d,j,G]);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=xu((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=x.useRef(!1),oe=xu((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=xu((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===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=Su(t,z,O),ue=wr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=vl({root:["root",t&&"disabled",n&&"focusVisible"]},Ed,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return js.jsxs(Rd,wr({as:ae,className:fc(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,H?js.jsx(Sd,wr({ref:k,center:o},M)):null]}))}));var Ad=Ld;function Id(e){return qu("MuiTypography",e)}Nu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Md=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Dd=cc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${pu(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>wr({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}))),Pd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_d={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Od=x.forwardRef((function(e,t){const n=ac({props:e,name:"MuiTypography"}),r=(e=>_d[e]||e)(n.color),o=Hs(wr({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Pd}=o,f=Rr(o,Md),h=wr({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||Pd[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return vl({root:["root",i,"inherit"!==e.align&&`align${pu(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Id,a)})(h);return js.jsx(Dd,wr({as:m,ref:t,ownerState:h,className:fc(g.root,a)},f))}));var Td=Od;const kd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function qd(e){const t=[],n=[];return Array.from(e.querySelectorAll(kd)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Nd(){return!0}function Fd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=qd,isEnabled:a=Nd,open:l}=e,s=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=nl(t.ref,h),g=x.useRef(null);x.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),x.useEffect((()=>{if(!l||!h.current)return;const e=Ja(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]),x.useEffect((()=>{if(!l||!h.current)return;const e=Ja(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{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(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return js.jsxs(x.Fragment,{children:[js.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),js.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const zd=x.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=x.useState(null),l=nl(x.isValidElement(n)?n.ref:null,t);if(el((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),el((()=>{if(i&&!o)return Qa(t,i),()=>{Qa(t,null)}}),[t,i,o]),o){if(x.isValidElement(n)){const e={ref:l};return x.cloneElement(n,e)}return js.jsx(x.Fragment,{children:n})}return js.jsx(x.Fragment,{children:i?F.createPortal(n,i):i})}));function jd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $d(e){return parseInt(Za(e).getComputedStyle(e).paddingRight,10)||0}function Gd(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&jd(e,o)}))}function Bd(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Hd(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ja(e);return t.body===e?Za(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=gl(Ja(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${$d(r)+e}px`;const t=Ja(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${$d(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Ja(r).body;else{const t=r.parentElement,n=Za(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const Wd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&jd(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Gd(t,e.mount,e.modalRef,r,!0);const o=Bd(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Bd(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Hd(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Bd(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&jd(e.modalRef,t),Gd(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&jd(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Vd(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Wd,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=nl(h,d),[g,b]=x.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},C=tl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ja(f.current).body;o.add(S(),e),h.current&&E()})),w=x.useCallback((()=>o.isTopModal(S())),[o]),R=tl((e=>{f.current=e,e&&(c&&w()?E():h.current&&jd(h.current,y))})),L=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{L()}),[L]),x.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=id(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Tn({},n,t);return Tn({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>Tn({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Ka((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ka((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const Yd=["onChange","maxRows","minRows","style","value"];function Ud(e){return parseInt(e,10)||0}const Kd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Xd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Jd=x.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=$n(e,Yd),{current:s}=x.useRef(null!=a),u=x.useRef(null),c=nl(t,u),d=x.useRef(null),p=x.useRef(0),[f,h]=x.useState({outerHeightStyle:0}),m=x.useCallback((()=>{const t=u.current,n=Za(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=Ud(n.paddingBottom)+Ud(n.paddingTop),s=Ud(n.borderBottomWidth)+Ud(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},b=x.useCallback((()=>{const e=m();Xd(e)||h((t=>g(t,e)))}),[m]);el((()=>{const e=()=>{p.current=0,(()=>{const e=m();Xd(e)||F.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=Xa(e),n=u.current,r=Za(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[m]),el((()=>{b()})),x.useEffect((()=>{p.current=0}),[a]);return js.jsxs(x.Fragment,{children:[js.jsx("textarea",Tn({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:Tn({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),js.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Tn({},Kd,i,{paddingTop:0,paddingBottom:0})})]})}));function Zd({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var Qd=x.createContext(void 0);function ep(){return x.useContext(Qd)}function tp(e){return js.jsx($s,wr({},e,{defaultTheme:oc,themeId:Cr}))}function np(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function rp(e,t=!1){return e&&(np(e.value)&&""!==e.value||t&&np(e.defaultValue)&&""!==e.defaultValue)}function op(e){return qu("MuiInputBase",e)}var ip=Nu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const ap=["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"],lp=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${pu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},sp=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},up=cc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:lp})((({theme:e,ownerState:t})=>wr({},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",[`&.${ip.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&wr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),cp=cc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:sp})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=wr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return wr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ip.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},[`&.${ip.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"})})),dp=js.jsx(tp,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),pp=x.forwardRef((function(e,t){var n;const r=ac({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:v,maxRows:y,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:T={},slots:k={},startAdornment:q,type:N="text",value:F}=r,z=Rr(r,ap),j=null!=b.value?b.value:F,{current:$}=x.useRef(null!=j),G=x.useRef(),B=x.useCallback((e=>{}),[]),H=Su(G,v,b.ref,B),[W,V]=x.useState(!1),Y=ep(),U=Zd({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:W,x.useEffect((()=>{!Y&&d&&W&&(V(!1),w&&w())}),[Y,d,W,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=x.useCallback((e=>{rp(e)?K&&K():X&&X()}),[K,X]);mu((()=>{$&&J({value:j})}),[j,J,$]);x.useEffect((()=>{J(G.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=wr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:S},Q),Z=Jd);x.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=wr({},r,{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:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return vl({root:["root",`color${pu(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${pu(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},op,t)})(ee),ne=k.root||s.Root||up,re=T.root||u.root||{},oe=k.input||s.Input||cp;return Q=wr({},Q,null!=(n=T.input)?n:u.input),js.jsxs(x.Fragment,{children:[!p&&dp,js.jsxs(ne,wr({},re,!od(ne)&&{ownerState:wr({},ee,re.ownerState)},{ref:t,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),L&&L(e)}},z,{className:fc(te.root,re.className,l,P&&"MuiInputBase-readOnly"),children:[q,js.jsx(Qd.Provider,{value:null,children:js.jsx(oe,wr({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:D,readOnly:P,required:U.required,rows:O,value:j,onKeyDown:I,onKeyUp:M,type:N},Q,!od(oe)&&{as:Z,ownerState:wr({},ee,Q.ownerState)},{ref:H,className:fc(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||G.current;if(null==t)throw new Error(Er(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,_?_(wr({},U,{startAdornment:q})):null]}))]})}));var fp=pp;function hp(e){return qu("MuiInput",e)}var mp=wr({},ip,Nu("MuiInput",["root","underline","input"]));function gp(e){return qu("MuiOutlinedInput",e)}var bp=wr({},ip,Nu("MuiOutlinedInput",["root","notchedOutline","input"]));function vp(e){return qu("MuiFilledInput",e)}var yp=wr({},ip,Nu("MuiFilledInput",["root","underline","input"])),xp=function(e,t){function n(n,r){return js.jsx(vc,wr({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=vc.muiName,x.memo(x.forwardRef(n))}(js.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Sp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ep={entering:{opacity:1},entered:{opacity:1}},Cp=x.forwardRef((function(e,t){const n=ic(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=Wc}=e,v=Rr(e,Sp),y=x.useRef(null),S=Su(y,a.ref,t),E=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{Zc(e);const r=Qc({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=Qc({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return js.jsx(b,wr({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,wr({style:wr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Ep[e],m,a.props.style),ref:S},t))}))}));var wp=Cp;function Rp(e){return qu("MuiBackdrop",e)}Nu("MuiBackdrop",["root","invisible"]);const Lp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ap=cc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>wr({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"}))),Ip=x.forwardRef((function(e,t){var n,r,o;const i=ac({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=wp,transitionDuration:g}=i,b=Rr(i,Lp),v=wr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return vl({root:["root",n&&"invisible"]},Rp,t)})(v),x=null!=(n=f.root)?n:c.root;return js.jsx(m,wr({in:p,timeout:g},b,{children:js.jsx(Ap,wr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:fc(y.root,l,null==x?void 0:x.className),ownerState:wr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Mp=Ip;var Dp=Nu("MuiBox",["root"]);const Pp=rc(),_p=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ga("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ws);return x.forwardRef((function(e,a){const l=Ds(n),s=Hs(e),{className:u,component:c="div"}=s,d=$n(s,Ys);return js.jsx(i,Tn({as:c,ref:a,className:Vs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Cr,defaultTheme:Pp,defaultClassName:Dp.root,generateClassName:Tu.generate});var Op=_p;function Tp(e){return qu("MuiButton",e)}var kp=Nu("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 qp=x.createContext({});var Np=x.createContext(void 0);const Fp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],zp=e=>wr({},"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}}),jp=cc(Ad,{shouldForwardProp:e=>lc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${pu(n.color)}`],t[`size${pu(n.size)}`],t[`${n.variant}Size${pu(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return wr({},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":wr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:su(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})`:su(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})`:su(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":wr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${kp.focusVisible}`]:wr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${kp.disabled}`]:wr({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 ${su(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${kp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${kp.disabled}`]:{boxShadow:"none"}})),$p=cc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${pu(n.size)}`]]}})((({ownerState:e})=>wr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},zp(e)))),Gp=cc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${pu(n.size)}`]]}})((({ownerState:e})=>wr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},zp(e)))),Bp=x.forwardRef((function(e,t){const n=x.useContext(qp),r=x.useContext(Np),o=ac({props:_u(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Rr(o,Fp),S=wr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return wr({},a,vl({root:["root",i,`${i}${pu(t)}`,`size${pu(o)}`,`${i}Size${pu(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${pu(o)}`],endIcon:["endIcon",`iconSize${pu(o)}`]},Tp,a))})(S),C=g&&js.jsx($p,{className:E.startIcon,ownerState:S,children:g}),w=p&&js.jsx(Gp,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return js.jsxs(jp,wr({ownerState:S,className:fc(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:fc(E.focusVisible,f),ref:t,type:b},y,{classes:E,children:[C,i,w]}))}));var Hp=Bp;function Wp(e){return qu("MuiModal",e)}Nu("MuiModal",["root","hidden","backdrop"]);const Vp=["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"],Yp=cc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>wr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Up=cc(Mp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Kp=x.forwardRef((function(e,t){var n,r,o,i,a,l;const s=ac({name:"MuiModal",props:e}),{BackdropComponent:u=Up,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!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=Rr(s,Vp),_=wr({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=Vd(wr({},_,{rootRef:t})),j=wr({},_,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return vl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Wp,r)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();G.onEnter=e,G.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:Yp,H=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=sd({elementType:B,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:fc(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=sd({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(wr({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:fc(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?js.jsx(zd,{ref:q,container:h,disablePortal:E,children:js.jsxs(B,wr({},Y,{children:[!R&&u?js.jsx(H,wr({},U)):null,js.jsx(Fd,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:x.cloneElement(f,G)})]}))}):null}));var Xp=Kp;function Jp(e){return qu("MuiDivider",e)}var Zp=Nu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Qp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ef=cc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>wr({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)`:su(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})=>wr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>wr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>wr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>wr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),tf=cc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>wr({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)`}))),nf=x.forwardRef((function(e,t){const n=ac({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Rr(n,Qp),h=wr({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return vl({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Jp,r)})(h);return js.jsx(ef,wr({as:a,className:fc(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?js.jsx(tf,{className:m.wrapper,ownerState:h,children:o}):null}))}));nf.muiSkipListHighlight=!0;var rf=nf;const of=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],af=cc(up,{shouldForwardProp:e=>lc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...lp(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return wr({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}},[`&.${yp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${yp.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${yp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yp.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(.${yp.disabled}, .${yp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${yp.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&wr({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}))})),lf=cc(cp,{name:"MuiFilledInput",slot:"Input",overridesResolver:sp})((({theme:e,ownerState:t})=>wr({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}))),sf=x.forwardRef((function(e,t){var n,r,o,i;const a=ac({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=Rr(a,of),g=wr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:n}=e;return wr({},t,vl({root:["root",!n&&"underline"],input:["input"]},vp,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?du(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:af,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:lf;return js.jsx(fp,wr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));sf.muiName="Input";var uf=sf;const cf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function df(e){return`scale(${e}, ${e**2})`}const pf={entering:{opacity:1,transform:df(1)},entered:{opacity:1,transform:"none"}},ff="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),hf=x.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Wc}=e,g=Rr(e,cf),b=x.useRef(),v=x.useRef(),y=ic(),S=x.useRef(null),E=Su(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{Zc(e);const{duration:n,delay:r,easing:o}=Qc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:ff?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=Qc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:ff?o:.666*o,delay:ff?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=df(.75),c&&c(e)})),M=C(d);return x.useEffect((()=>()=>{clearTimeout(b.current)}),[]),js.jsx(m,wr({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&(b.current=setTimeout(e,v.current||0)),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,wr({style:wr({opacity:0,transform:df(.75),visibility:"exited"!==e||a?void 0:"hidden"},pf[e],f,o.props.style),ref:E},t))}))}));hf.muiSupportAuto=!0;var mf=hf;const gf=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],bf=cc(up,{shouldForwardProp:e=>lc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...lp(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),wr({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"},[`&.${mp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${mp.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${mp.disabled}, .${mp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${mp.disabled}:before`]:{borderBottomStyle:"dotted"}})})),vf=cc(cp,{name:"MuiInput",slot:"Input",overridesResolver:sp})({}),yf=x.forwardRef((function(e,t){var n,r,o,i;const a=ac({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=Rr(a,gf),b=(e=>{const{classes:t,disableUnderline:n}=e;return wr({},t,vl({root:["root",!n&&"underline"],input:["input"]},hp,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?du(null!=f?f:u,v):v,x=null!=(n=null!=(r=h.root)?r:s.Root)?n:bf,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:vf;return js.jsx(fp,wr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));yf.muiName="Input";var xf=yf;function Sf(e){return qu("MuiLink",e)}var Ef=Nu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Cf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var wf=({theme:e,ownerState:t})=>{const n=(e=>Cf[e]||e)(t.color),r=Ol(e,`palette.${n}`,!1)||t.color,o=Ol(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:su(r,.4)};const Rf=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Lf=cc(Td,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${pu(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>wr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&wr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:wf({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"},[`&.${Ef.focusVisible}`]:{outline:"auto"}}))),Af=x.forwardRef((function(e,t){const n=ac({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=Rr(n,Rf),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=Pu(),[b,v]=x.useState(!1),y=Su(t,g),S=wr({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return vl({root:["root",`underline${pu(o)}`,"button"===n&&"button",r&&"focusVisible"]},Sf,t)})(S);return js.jsx(Lf,wr({color:o,className:fc(E.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),l&&l(e)},ref:y,ownerState:S,variant:c,sx:[...Object.keys(Cf).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var If=Af;var Mf=x.createContext({});function Df(e){return qu("MuiList",e)}Nu("MuiList",["root","padding","dense","subheader"]);const Pf=["children","className","component","dense","disablePadding","subheader"],_f=cc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>wr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Of=x.forwardRef((function(e,t){const n=ac({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Rr(n,Pf),c=x.useMemo((()=>({dense:a})),[a]),d=wr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return vl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Df,t)})(d);return js.jsx(Mf.Provider,{value:c,children:js.jsxs(_f,wr({as:i,className:fc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function Tf(e){return qu("MuiListItemIcon",e)}var kf=Nu("MuiListItemIcon",["root","alignItemsFlexStart"]);const qf=["className"],Nf=cc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>wr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Ff=x.forwardRef((function(e,t){const n=ac({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Rr(n,qf),i=wr({},n,{alignItems:x.useContext(Mf).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return vl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Tf,n)})(i);return js.jsx(Nf,wr({className:fc(a.root,r),ownerState:i,ref:t},o))}));var zf=Nu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const jf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function $f(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Gf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Bf(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Hf(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Bf(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Wf=x.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Rr(e,jf),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});mu((()=>{r&&p.current.focus()}),[r]),x.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(fu(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Su(p,t);let m=-1;x.Children.forEach(i,((e,t)=>{x.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=x.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),x.cloneElement(e,t)}return e}));return js.jsx(Of,wr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=fu(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Hf(t,r,s,l,$f);else if("ArrowUp"===n)e.preventDefault(),Hf(t,r,s,l,Gf);else if("Home"===n)e.preventDefault(),Hf(t,null,s,l,$f);else if("End"===n)e.preventDefault(),Hf(t,null,s,l,Gf);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Bf(r,o);o.previousKeyMatched&&(s||Hf(t,r,!1,l,$f,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Vf(e){return qu("MuiPopover",e)}Nu("MuiPopover",["root","paper"]);const Yf=["onEntering"],Uf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Kf=["slotProps"];function Xf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Jf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Zf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Qf(e){return"function"==typeof e?e():e}const eh=cc(Xp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),th=cc(rd,{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 nh=x.forwardRef((function(e,t){var n,r,o;const i=ac({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:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=mf,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=Rr(i.TransitionProps,Yf),A=Rr(i,Uf),I=null!=(n=null==y?void 0:y.paper)?n:b,M=x.useRef(),D=Su(M,I.ref),P=wr({},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 vl({root:["root"],paper:["paper"]},Vf,t)})(P),O=x.useCallback((()=>{if("anchorPosition"===c)return u;const e=Qf(l),t=(e&&1===e.nodeType?e:fu(M.current).body).getBoundingClientRect();return{top:t.top+Xf(t,s.vertical),left:t.left+Jf(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=x.useCallback((e=>({vertical:Xf(e,S.vertical),horizontal:Jf(e,S.horizontal)})),[S.horizontal,S.vertical]),k=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:Zf(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=hu(Qf(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Zf(n)}}),[l,c,O,T,m]),[q,N]=x.useState(g),F=x.useCallback((()=>{const e=M.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);x.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);x.useEffect((()=>{g&&F()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),x.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{F()})),t=hu(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?fu(Qf(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:eh,G=null!=(o=null==v?void 0:v.paper)?o:th,B=sd({elementType:G,externalSlotProps:wr({},I,{style:q?I.style:wr({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:fc(_.paper,null==I?void 0:I.className)}),H=sd({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:fc(_.root,p)}),{slotProps:W}=H,V=Rr(H,Kf);return js.jsx($,wr({},V,!od($)&&{slotProps:W,disableScrollLock:R},{children:js.jsx(E,wr({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:js.jsx(G,wr({},B,{children:d}))}))}))}));function rh(e){return qu("MuiMenu",e)}Nu("MuiMenu",["root","paper","list"]);const oh=["onEntering"],ih=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ah={vertical:"top",horizontal:"right"},lh={vertical:"top",horizontal:"left"},sh=cc(nh,{shouldForwardProp:e=>lc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uh=cc(th,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ch=cc(Wf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var dh=x.forwardRef((function(e,t){var n,r;const o=ac({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:v={}}=o,y=Rr(o.TransitionProps,oh),S=Rr(o,ih),E=ic(),C="rtl"===E.direction,w=wr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),R=(e=>{const{classes:t}=e;return vl({root:["root"],paper:["paper"],list:["list"]},rh,t)})(w),L=i&&!s&&d,A=x.useRef(null);let I=-1;x.Children.map(a,((e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const M=null!=(n=b.paper)?n:uh,D=null!=(r=v.paper)?r:p,P=sd({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),_=sd({elementType:M,externalSlotProps:D,ownerState:w,className:R.paper});return js.jsx(sh,wr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?ah:lh,slots:{paper:M,root:b.root},slotProps:{root:P,paper:_},open:d,ref:t,transitionDuration:h,TransitionProps:wr({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,E),m&&m(e,t)}},y),ownerState:w},S,{classes:f,children:js.jsx(ch,wr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||s),autoFocusItem:L,variant:g},u,{className:fc(R.list,u.className),children:a}))}))}));function ph(e){return qu("MuiMenuItem",e)}var fh=Nu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const hh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],mh=cc(Ad,{shouldForwardProp:e=>lc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>wr({},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"}},[`&.${fh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:su(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${fh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:su(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${fh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:su(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})`:su(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${fh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Zp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Zp.inset}`]:{marginLeft:52},[`& .${zf.root}`]:{marginTop:0,marginBottom:0},[`& .${zf.inset}`]:{paddingLeft:36},[`& .${kf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&wr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${kf.root} svg`]:{fontSize:"1.25rem"}}))));var gh=x.forwardRef((function(e,t){const n=ac({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Rr(n,hh),f=x.useContext(Mf),h=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=x.useRef(null);mu((()=>{r&&m.current&&m.current.focus()}),[r]);const g=wr({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return wr({},a,vl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},ph,a))})(n),v=Su(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),js.jsx(Mf.Provider,{value:h,children:js.jsx(mh,wr({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:fc(b.focusVisible,s),className:fc(b.root,d)},p,{ownerState:g,classes:b}))})}));function bh(e){return qu("MuiNativeSelect",e)}var vh=Nu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const yh=["className","disabled","error","IconComponent","inputRef","variant"],xh=({ownerState:e,theme:t})=>wr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":wr({},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"},[`&.${vh.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}}),Sh=cc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:lc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${vh.multiple}`]:t.multiple}]}})(xh),Eh=({ownerState:e,theme:t})=>wr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${vh.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Ch=cc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${pu(n.variant)}`],n.open&&t.iconOpen]}})(Eh),wh=x.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Rr(e,yh),u=wr({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return vl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${pu(n)}`,i&&"iconOpen",r&&"disabled"]},bh,t)})(u);return js.jsxs(x.Fragment,{children:[js.jsx(Sh,wr({ownerState:u,className:fc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:js.jsx(Ch,{as:i,ownerState:u,className:c.icon})]})}));var Rh,Lh=wh;const Ah=["children","classes","className","label","notched"],Ih=cc("fieldset",{shouldForwardProp:lc})({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%"}),Mh=cc("legend",{shouldForwardProp:lc})((({ownerState:e,theme:t})=>wr({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&&wr({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 Dh=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ph=cc(up,{shouldForwardProp:e=>lc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:lp})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return wr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bp.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bp.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${bp.focused} .${bp.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${bp.error} .${bp.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bp.disabled} .${bp.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&wr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),_h=cc((function(e){const{className:t,label:n,notched:r}=e,o=Rr(e,Ah),i=null!=n&&""!==n,a=wr({},e,{notched:r,withLabel:i});return js.jsx(Ih,wr({"aria-hidden":!0,className:t,ownerState:a},o,{children:js.jsx(Mh,{ownerState:a,children:i?js.jsx("span",{children:n}):Rh||(Rh=js.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}})),Oh=cc(cp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:sp})((({theme:e,ownerState:t})=>wr({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}))),Th=x.forwardRef((function(e,t){var n,r,o,i,a;const l=ac({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=Rr(l,Dh),b=(e=>{const{classes:t}=e;return wr({},t,vl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gp,t))})(l),v=ep(),y=Zd({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=wr({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),E=null!=(n=null!=(r=h.root)?r:s.Root)?n:Ph,C=null!=(o=null!=(i=h.input)?i:s.Input)?o:Oh;return js.jsx(fp,wr({slots:{root:E,input:C},renderSuffix:e=>js.jsx(_h,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=js.jsxs(x.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:wr({},b,{notchedOutline:null})}))}));Th.muiName="Input";var kh=Th;function qh(e){return qu("MuiSelect",e)}var Nh,Fh=Nu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const zh=["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"],jh=cc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Fh.select}`]:t.select},{[`&.${Fh.select}`]:t[n.variant]},{[`&.${Fh.error}`]:t.error},{[`&.${Fh.multiple}`]:t.multiple}]}})(xh,{[`&.${Fh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),$h=cc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${pu(n.variant)}`],n.open&&t.iconOpen]}})(Eh),Gh=cc("input",{shouldForwardProp:e=>sc(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Bh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Hh(e){return null==e||"string"==typeof e&&!e.trim()}const Wh=x.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,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=Rr(e,zh),[T,k]=yu({controlled:P,default:c,name:"Select"}),[q,N]=yu({controlled:L,default:u,name:"Select"}),F=x.useRef(null),z=x.useRef(null),[j,$]=x.useState(null),{current:G}=x.useRef(null!=L),[B,H]=x.useState(),W=Su(t,m),V=x.useCallback((e=>{z.current=e,e&&$(e)}),[]),Y=null==j?void 0:j.parentNode;x.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:F.current,value:T})),[T]),x.useEffect((()=>{u&&q&&j&&!G&&(H(a?null:Y.clientWidth),z.current.focus())}),[j,a]),x.useEffect((()=>{i&&z.current.focus()}),[i]),x.useEffect((()=>{if(!g)return;const e=fu(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),G||(H(a?null:Y.clientWidth),N(e))},K=x.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==n&&(k(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),E(o,e)}v||U(!1,t)}},J=null!==j&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(rp({value:T})||p)&&(I?Z=I(T):te=!0);const ne=K.map((e=>{if(!x.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(Er(2));t=T.some((t=>Bh(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Bh(T,e.props.value),t&&te&&(Q=e.props.children);return x.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=B;!a&&G&&j&&(oe=Y.clientWidth),re=void 0!==D?D:d?null:0;const ie=M.id||(y?`mui-component-select-${y}`:void 0),ae=wr({},e,{variant:_,value:T,open:J,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return vl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${pu(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},qh,t)})(ae),se=wr({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=vu();return js.jsxs(x.Fragment,{children:[js.jsx(jh,wr({ref:V,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!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:T,name:y}}),S(e))},onFocus:w},M,{ownerState:ae,className:fc(M.className,le.select,s),id:ie,children:Hh(Z)?Nh||(Nh=js.jsx("span",{className:"notranslate",children:"​"})):Z})),js.jsx(Gh,wr({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(k(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),js.jsx($h,{as:h,className:le.icon,ownerState:ae}),js.jsx(dh,wr({id:`menu-${y||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:wr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:wr({},b.slotProps,{paper:wr({},se,{style:wr({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var Vh=Wh;const Yh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Uh=["root"],Kh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>lc(e)&&"variant"!==e,slot:"Root"},Xh=cc(xf,Kh)(""),Jh=cc(kh,Kh)(""),Zh=cc(uf,Kh)(""),Qh=x.forwardRef((function(e,t){const n=ac({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=xp,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=Rr(n,Yh),L=b?Lh:Vh,A=Zd({props:n,muiFormControl:ep(),states:["variant","error"]}),I=A.variant||w,M=wr({},n,{variant:I,classes:i}),D=(e=>{const{classes:t}=e;return t})(M),P=Rr(D,Uh),_=d||{standard:js.jsx(Xh,{ownerState:M}),outlined:js.jsx(Jh,{label:f,ownerState:M}),filled:js.jsx(Zh,{ownerState:M})}[I],O=Su(t,_.ref);return js.jsx(x.Fragment,{children:x.cloneElement(_,wr({inputComponent:L,inputProps:wr({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:S,renderValue:E,SelectDisplayProps:wr({id:c},C)},p,{classes:p?du(P,p.classes):P},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:O,className:fc(_.props.className,a,D.root)},!d&&{variant:I},R))})}));Qh.muiName="Select";var em=Qh,tm=(e={})=>S.createElement(sr,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:Wn.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const nm={MuiAccordion:{styleOverrides:{root:{backgroundColor:Wn.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Wn.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(ir,{"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 ${Wn.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Wn.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`,borderRadius:Xn,backgroundColor:Wn.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 ${Wn.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Wn.WHITE,color:Wn.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:Xn},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Wn.GREYSCALE_0_15,backgroundColor:Wn.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Wn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Wn.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Wn.GREEN_PALE},"&:active":{backgroundColor:Wn.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Wn.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Wn.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Wn.BLUE_PALE},"&:active":{backgroundColor:Wn.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Wn.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Wn.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:Xn,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Wn.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Wn.GREYSCALE_0_15,backgroundColor:Wn.GREYSCALE_100_60,"&:active":{backgroundColor:Wn.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Wn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Wn.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Wn.PURPLE,"&.Mui-focusVisible":{borderColor:Wn.PURPLE,boxShadow:`0 0 0 3px ${su(Wn.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Wn.GREEN,"&.Mui-focusVisible":{borderColor:Wn.GREEN,boxShadow:`0 0 0 3px ${su(Wn.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Wn.BLUE,"&.Mui-focusVisible":{borderColor:Wn.BLUE,boxShadow:`0 0 0 3px ${su(Wn.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Wn.ORANGE,"&.Mui-focusVisible":{borderColor:Wn.ORANGE,boxShadow:`0 0 0 3px ${su(Wn.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Wn.RED,"&.Mui-focusVisible":{borderColor:Wn.RED,boxShadow:`0 0 0 3px ${su(Wn.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Wn.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Wn.PURPLE_PALE},"&:active":{backgroundColor:Wn.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Wn.PURPLE_PALE,boxShadow:`0 0 0 3px ${su(Wn.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Wn.GREEN_PALE},"&:active":{backgroundColor:Wn.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Wn.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Wn.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Wn.BLUE_PALE},"&:active":{backgroundColor:Wn.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Wn.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Wn.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Wn.ORANGE_PALE},"&:active":{backgroundColor:Wn.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Wn.ORANGE_PALE,boxShadow:`0 0 0 3px ${su(Wn.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Wn.RED_PALE},"&:active":{backgroundColor:Wn.RED_DARK},"&.Mui-focusVisible":{borderColor:Wn.RED_PALE,boxShadow:`0 0 0 3px ${su(Wn.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:Wn.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Wn.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Xn,boxShadow:`inset 0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Vn,borderRadius:Xn,color:Wn.TEXT_PRIMARY,backgroundColor:Wn.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Wn.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Wn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Wn.GREYSCALE_0_05,color:Wn.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Wn.GREEN,borderColor:Wn.GREEN},"&.MuiChip-outlinedInfo":{color:Wn.BLUE,borderColor:Wn.BLUE},"&.MuiChip-outlinedWarning":{color:Wn.ORANGE,borderColor:Wn.ORANGE},"&.MuiChip-outlinedError":{color:Wn.RED,borderColor:Wn.RED}},outlined:{border:`solid 1px ${Wn.GREYSCALE_0_15}`,backgroundColor:Wn.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Xn,boxShadow:"none",backgroundColor:Wn.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Wn.GREEN,borderColor:Wn.GREEN},outlinedSecondary:{color:Wn.BLUE,borderColor:Wn.BLUE},label:{fontFamily:tr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(ir,{"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:Xn},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Xn,fontSize:Yn,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Wn.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Wn.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Wn.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Wn.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Wn.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Xn,border:`solid 1px ${Wn.GREYSCALE_0_15}`,color:Wn.GREYSCALE_0_60,marginRight:0,width:Kn,height:Kn},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Wn.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Xn,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Wn.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Yn}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Vn,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Wn.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Wn.GREYSCALE_25,fontSize:Vn,fontFamily:tr.FONT_FAMILY,fontWeight:Qn,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Wn.TEXT_PRIMARY},"&.Mui-error":{color:Wn.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Wn.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Zn,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Wn.TEXT_SECONDARY,content:"'(required)'",fontWeight:Zn,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Yn,lineHeight:"16px",backgroundColor:Wn.WHITE,borderRadius:Xn,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Wn.GREYSCALE_0_05}`,borderColor:Wn.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Wn.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Wn.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Wn.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Wn.RED}`,boxShadow:`0px 0px 0px 1px ${Wn.RED}, inset 0 2px 0 0 ${Wn.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Wn.GREYSCALE_0_10}`,borderColor:Wn.GREYSCALE_0_10,backgroundColor:Wn.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Wn.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Wn.GREYSCALE_0_15,borderRadius:Xn,boxShadow:`inset 0 2px 0 0 ${Wn.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(ir,{...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:Wn.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Wn.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Wn.GREYSCALE_0_03},"&:active":{backgroundColor:Wn.GREYSCALE_0_10},"&:focus":{backgroundColor:Wn.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Wn.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Wn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Wn.GREYSCALE_0_30,"&:hover":{backgroundColor:Wn.GREYSCALE_0_0,borderColor:Wn.GREYSCALE_0_15},"& ~svg":{color:Wn.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Wn.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Xn}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Wn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Wn.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Yn,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Vn,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Vn,fontWeight:Qn,color:Wn.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Qn}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Wn.GREYSCALE_0_15}, 0px 0px 0px 1px ${Wn.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(dr,null),checkedIcon:S.createElement(pr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Wn.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Wn.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Wn.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Wn.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Wn.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Wn.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Wn.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(tm,null),checkedIcon:S.createElement(ur,null),indeterminateIcon:S.createElement(cr,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Xn,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Wn.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Wn.GREYSCALE_0_55,color:Wn.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:Wn.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Wn.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Wn.GREYSCALE_0_55,"&:hover":{color:Wn.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:Wn.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Wn.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Yn,color:Wn.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Qn},secondary:{fontSize:Vn,color:Wn.GREYSCALE_45,fontWeight:Zn,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Yn,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Wn.GREYSCALE_0_03},"&:active":{backgroundColor:Wn.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Yn,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Wn.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Vn,borderBottom:`solid 1px ${Wn.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Yn,color:Wn.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Wn.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Wn.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Wn.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:Wn.RED}}},"&.Mui-focusVisible":{backgroundColor:Wn.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:Wn.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:Wn.GREEN,height:"24px","&.Mui-disabled":{color:Wn.GREYSCALE_0_15}},rail:{backgroundColor:Wn.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Wn.GREYSCALE_0_05}`,borderRadius:Xn,boxShadow:`inset 0px 0px 0px 1px ${Wn.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Wn.GREYSCALE_0_05}`,borderRadius:Xn},thumb:{height:"16px",width:"16px",borderRadius:Xn,backgroundColor:Wn.WHITE,boxShadow:`0px 1px 2px 0px ${Wn.GREYSCALE_0_15}, 0px 0px 0px 1px ${Wn.GREYSCALE_0_05}`,"&:hover":{borderRadius:Xn,boxShadow:`0 2px 4px 0 ${Wn.GREYSCALE_0_30}, 0 0 0 1px ${Wn.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Wn.GREYSCALE_0_15}, 0 0 0 1px ${Wn.GREYSCALE_0_06}, 0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Wn.GREYSCALE_0_15}, 0 0 0 1px ${Wn.GREYSCALE_0_06}, 0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Wn.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Wn.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Wn.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Wn.GREYSCALE_0_15},markLabel:{color:Wn.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Wn.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Wn.WHITE,color:Wn.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:Wn.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:Wn.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Wn.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Wn.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Wn.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Wn.GREYSCALE_0_15,borderRadius:Xn},thumb:{height:"16px",width:"16px",borderRadius:Xn,backgroundColor:Wn.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:Yn,fontWeight:Qn,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Wn.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Wn.MISC_FOCUS_BORDER}`,backgroundColor:Wn.GREYSCALE_0_03,borderRadius:Xn},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Wn.GREYSCALE_25,"&.Mui-selected":{color:Wn.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Yn,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Wn.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Wn.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Wn.GREYSCALE_85}`,borderRight:`1px solid ${Wn.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Qn,backgroundColor:Wn.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:Wn.GREYSCALE_98,borderBottom:`1px solid ${Wn.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Wn.GREYSCALE_85}`,borderTop:`1px solid ${Wn.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Wn.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Wn.GREYSCALE_0_05,"&:hover":{backgroundColor:Wn.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Wn.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(fr,{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 ${Wn.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Yn,borderRadius:Xn,padding:"7px 16px",border:`1px solid ${Wn.GREYSCALE_0_15}`,backgroundColor:Wn.GREYSCALE_100_60,color:Wn.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Wn.GREYSCALE_0_10,border:`1px solid ${Wn.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Wn.GREYSCALE_0_03,border:`1px solid ${Wn.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Wn.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Wn.MISC_FOCUS_BORDER}`,border:`1px solid ${Wn.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Wn.GREYSCALE_25,backgroundColor:Wn.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Wn.GREYSCALE_0_10,border:`1px solid ${Wn.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Vn,height:24,width:24,padding:7},sizeLarge:{fontSize:Un,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Yn,borderRadius:Xn}}},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:Wn.GREYSCALE_20},tooltip:{backgroundColor:Wn.GREYSCALE_20,fontSize:Vn,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const rm={mode:"light",primary:{light:Wn.GREEN_PALE,main:Wn.GREEN,dark:Wn.GREEN_DARK,contrastText:Wn.WHITE},secondary:{light:Wn.BLUE_PALE,main:Wn.BLUE,dark:Wn.BLUE_DARK,contrastText:Wn.WHITE},error:{light:Wn.RED_PALE,main:Wn.RED,dark:Wn.RED_DARK,contrastText:Wn.WHITE},warning:{light:Wn.ORANGE_PALE,main:Wn.ORANGE,dark:Wn.ORANGE_DARK,contrastText:Wn.WHITE},success:{light:Wn.GREEN_PALE,main:Wn.GREEN,dark:Wn.GREEN_DARK,contrastText:Wn.WHITE},info:{light:Wn.BLUE_PALE,main:Wn.BLUE,dark:Wn.BLUE_DARK,contrastText:Wn.WHITE},text:{primary:Wn.TEXT_PRIMARY,secondary:Wn.TEXT_SECONDARY,disabled:Wn.GREYSCALE_0_30},action:{hover:Wn.GREYSCALE_0_03,hoverOpacity:.05,selected:Wn.GREYSCALE_0_05,focus:Wn.MISC_FOCUS_BORDER},amethyst:{main:Wn.PURPLE,light:Wn.PURPLE_PALE,dark:Wn.PURPLE_DARK,contrastText:Wn.WHITE},background:{paper:Wn.WHITE,default:Wn.GREYSCALE_95},divider:Wn.GREYSCALE_0_15},om=e=>({components:nm,palette:rm,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:Yn,fontWeightLight:Jn,fontWeightRegular:Zn,fontWeightMedium:Qn,fontWeightBold:er,htmlFontSize:Yn,fontFamily:tr.FONT_FAMILY,button:{fontWeight:Qn,fontSize:Yn,textTransform:"none"},body1:{fontSize:Un,lineHeight:"24px"},body2:{fontSize:Yn,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Kn,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Un,fontWeight:Qn,lineHeight:"16px"},h6:{fontSize:Yn,fontWeight:Qn,lineHeight:"16px"},caption:{color:Wn.TEXT_SECONDARY},subtitle1:{fontSize:Yn,color:Wn.TEXT_SECONDARY},subtitle2:{fontSize:Vn,color:Wn.TEXT_SECONDARY}},shape:{borderRadius:Xn}}),im={...Hn,MISC_FOCUS_BORDER:Wn.MISC_FOCUS_BORDER},am=om().palette,lm={TEXT:am.text.primary,DISABLED:am.text.disabled,HOVER:am.action.hover,WHITE:im.GREYSCALE_100,BORDER_LIGHT:im.GREYSCALE_90,BORDER_MEDIUM:im.GREYSCALE_85,BORDER_HEAVY:im.GREYSCALE_50,DARK_MODE_TEXT:im.GREYSCALE_95,DARK_MODE_BORDER:im.GREYSCALE_95,DARK_MODE_DISABLED:im.GREYSCALE_70,DARK_MODE_BACKGROUND:im.GREYSCALE_20};function sm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function um(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function cm(){}var dm=.7,pm=1/dm,fm="\\s*([+-]?\\d+)\\s*",hm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gm=/^#([0-9a-f]{3,8})$/,bm=new RegExp(`^rgb\\(${fm},${fm},${fm}\\)$`),vm=new RegExp(`^rgb\\(${mm},${mm},${mm}\\)$`),ym=new RegExp(`^rgba\\(${fm},${fm},${fm},${hm}\\)$`),xm=new RegExp(`^rgba\\(${mm},${mm},${mm},${hm}\\)$`),Sm=new RegExp(`^hsl\\(${hm},${mm},${mm}\\)$`),Em=new RegExp(`^hsla\\(${hm},${mm},${mm},${hm}\\)$`),Cm={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 wm(){return this.rgb().formatHex()}function Rm(){return this.rgb().formatRgb()}function Lm(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=gm.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Am(t):3===n?new Pm(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Im(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Im(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=bm.exec(e))?new Pm(t[1],t[2],t[3],1):(t=vm.exec(e))?new Pm(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ym.exec(e))?Im(t[1],t[2],t[3],t[4]):(t=xm.exec(e))?Im(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Sm.exec(e))?Nm(t[1],t[2]/100,t[3]/100,1):(t=Em.exec(e))?Nm(t[1],t[2]/100,t[3]/100,t[4]):Cm.hasOwnProperty(e)?Am(Cm[e]):"transparent"===e?new Pm(NaN,NaN,NaN,0):null}function Am(e){return new Pm(e>>16&255,e>>8&255,255&e,1)}function Im(e,t,n,r){return r<=0&&(e=t=n=NaN),new Pm(e,t,n,r)}function Mm(e){return e instanceof cm||(e=Lm(e)),e?new Pm((e=e.rgb()).r,e.g,e.b,e.opacity):new Pm}function Dm(e,t,n,r){return 1===arguments.length?Mm(e):new Pm(e,t,n,null==r?1:r)}function Pm(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function _m(){return`#${qm(this.r)}${qm(this.g)}${qm(this.b)}`}function Om(){const e=Tm(this.opacity);return`${1===e?"rgb(":"rgba("}${km(this.r)}, ${km(this.g)}, ${km(this.b)}${1===e?")":`, ${e})`}`}function Tm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function km(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qm(e){return((e=km(e))<16?"0":"")+e.toString(16)}function Nm(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new zm(e,t,n,r)}function Fm(e){if(e instanceof zm)return new zm(e.h,e.s,e.l,e.opacity);if(e instanceof cm||(e=Lm(e)),!e)return new zm;if(e instanceof zm)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new zm(a,l,s,e.opacity)}function zm(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function jm(e){return(e=(e||0)%360)<0?e+360:e}function $m(e){return Math.max(0,Math.min(1,e||0))}function Gm(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}sm(cm,Lm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:wm,formatHex:wm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Fm(this).formatHsl()},formatRgb:Rm,toString:Rm}),sm(Pm,Dm,um(cm,{brighter(e){return e=null==e?pm:Math.pow(pm,e),new Pm(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?dm:Math.pow(dm,e),new Pm(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pm(km(this.r),km(this.g),km(this.b),Tm(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:_m,formatHex:_m,formatHex8:function(){return`#${qm(this.r)}${qm(this.g)}${qm(this.b)}${qm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Om,toString:Om})),sm(zm,(function(e,t,n,r){return 1===arguments.length?Fm(e):new zm(e,t,n,null==r?1:r)}),um(cm,{brighter(e){return e=null==e?pm:Math.pow(pm,e),new zm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?dm:Math.pow(dm,e),new zm(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Pm(Gm(e>=240?e-240:e+120,o,r),Gm(e,o,r),Gm(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new zm(jm(this.h),$m(this.s),$m(this.l),Tm(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=Tm(this.opacity);return`${1===e?"hsl(":"hsla("}${jm(this.h)}, ${100*$m(this.s)}%, ${100*$m(this.l)}%${1===e?")":`, ${e})`}`}}));const Bm=Math.PI/180,Hm=180/Math.PI,Wm=.96422,Vm=1,Ym=.82521,Um=4/29,Km=6/29,Xm=3*Km*Km,Jm=Km*Km*Km;function Zm(e){if(e instanceof Qm)return new Qm(e.l,e.a,e.b,e.opacity);if(e instanceof ig)return ag(e);e instanceof Pm||(e=Mm(e));var t,n,r=rg(e.r),o=rg(e.g),i=rg(e.b),a=eg((.2225045*r+.7168786*o+.0606169*i)/Vm);return r===o&&o===i?t=n=a:(t=eg((.4360747*r+.3850649*o+.1430804*i)/Wm),n=eg((.0139322*r+.0971045*o+.7141733*i)/Ym)),new Qm(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Qm(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function eg(e){return e>Jm?Math.pow(e,1/3):e/Xm+Um}function tg(e){return e>Km?e*e*e:Xm*(e-Um)}function ng(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function rg(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function og(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ig)return new ig(e.h,e.c,e.l,e.opacity);if(e instanceof Qm||(e=Zm(e)),0===e.a&&0===e.b)return new ig(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Hm;return new ig(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ig(e,t,n,null==r?1:r)}function ig(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ag(e){if(isNaN(e.h))return new Qm(e.l,0,0,e.opacity);var t=e.h*Bm;return new Qm(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}sm(Qm,(function(e,t,n,r){return 1===arguments.length?Zm(e):new Qm(e,t,n,null==r?1:r)}),um(cm,{brighter(e){return new Qm(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Qm(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Pm(ng(3.1338561*(t=Wm*tg(t))-1.6168667*(e=Vm*tg(e))-.4906146*(n=Ym*tg(n))),ng(-.9787684*t+1.9161415*e+.033454*n),ng(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),sm(ig,og,um(cm,{brighter(e){return new ig(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ig(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ag(this).rgb()}}));const lg=(e,t)=>{const n=og(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},sg=e=>{if(e){const t=Dm(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},ug=e=>!!e&&0===Dm(e).opacity,cg=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,dg=e=>{const t=cg.exec(e);if(t){const[,e,n,r,o]=t;return Dm(+n,+r,+o,+e/255)}return Dm(e)},pg=e=>{const t=dg(e);return Number.isNaN(t.r)?null:t.toString()},fg=e=>{e.stopPropagation(),e.preventDefault()},hg="#grid",mg=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},gg=(e,t,n,r,o)=>{const i=mg(".qv-object .qv-inner-object",n),a=mg(".qv-panel-sheet",n),l=mg(hg,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return pg(s);if("none"===u)return"transparent";if(void 0===u)return;const c=dg(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=ug(p),h=sg(f?s:p),m=((e,t,n)=>e&&!ug(e)?e:ug(t)?n&&!ug(n)?n:lm.WHITE:t)(u,p,s);return{color:p,headerColor:m,isDark:h}},bg=(e,i,a,l)=>{const s=r(),u=((e,r={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[o,i]=t([]);return n((()=>{let t;return e&&(t=new MutationObserver((e=>{i(e)})),t.observe(e,r)),()=>{var e;null===(e=t)||void 0===e||e.disconnect()}}),[e,r]),o})(null==i?void 0:i.closest(hg),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return o((()=>({...s,background:gg(e,s,i,a,l)})),[s.name(),i,a,l,e,u])};function vg(e,t){const n=o((()=>({isLoading:!0})),t),[r,a]=i((async()=>{try{return await e()}finally{n.isLoading=!1}}),t);return[r,n.isLoading,a]}var yg=Object.prototype.hasOwnProperty,xg=Object.prototype.toString,Sg=Object.defineProperty,Eg=Object.getOwnPropertyDescriptor,Cg=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===xg.call(e)},wg=function(e){if(!e||"[object Object]"!==xg.call(e))return!1;var t,n=yg.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&yg.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||yg.call(e,t)},Rg=function(e,t){Sg&&"__proto__"===t.name?Sg(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Lg=function(e,t){if("__proto__"===t){if(!yg.call(e,t))return;if(Eg)return Eg(e,t).value}return e[t]};function Ag(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ig(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mg(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=Lg(l,n),l!==(o=Lg(t,n))&&(c&&o&&(wg(o)||(i=Cg(o)))?(i?(i=!1,a=r&&Cg(r)?r:[]):a=r&&wg(r)?r:{},Rg(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Rg(l,{name:n,newValue:o}));return l}));var Dg=1/.7,Pg="\\s*([+-]?\\d+)\\s*",_g="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Og="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tg=/^#([0-9a-f]{3,8})$/,kg=new RegExp(`^rgb\\(${Pg},${Pg},${Pg}\\)$`),qg=new RegExp(`^rgb\\(${Og},${Og},${Og}\\)$`),Ng=new RegExp(`^rgba\\(${Pg},${Pg},${Pg},${_g}\\)$`),Fg=new RegExp(`^rgba\\(${Og},${Og},${Og},${_g}\\)$`),zg=new RegExp(`^hsl\\(${_g},${Og},${Og}\\)$`),jg=new RegExp(`^hsla\\(${_g},${Og},${Og},${_g}\\)$`),$g={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 Gg(){return this.rgb().formatHex()}function Bg(){return this.rgb().formatRgb()}function Hg(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Tg.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Wg(t):3===n?new Kg(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Vg(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Vg(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=kg.exec(e))?new Kg(t[1],t[2],t[3],1):(t=qg.exec(e))?new Kg(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ng.exec(e))?Vg(t[1],t[2],t[3],t[4]):(t=Fg.exec(e))?Vg(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=zg.exec(e))?tb(t[1],t[2]/100,t[3]/100,1):(t=jg.exec(e))?tb(t[1],t[2]/100,t[3]/100,t[4]):$g.hasOwnProperty(e)?Wg($g[e]):"transparent"===e?new Kg(NaN,NaN,NaN,0):null}function Wg(e){return new Kg(e>>16&255,e>>8&255,255&e,1)}function Vg(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kg(e,t,n,r)}function Yg(e){return e instanceof Mg||(e=Hg(e)),e?new Kg((e=e.rgb()).r,e.g,e.b,e.opacity):new Kg}function Ug(e,t,n,r){return 1===arguments.length?Yg(e):new Kg(e,t,n,null==r?1:r)}function Kg(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Xg(){return`#${eb(this.r)}${eb(this.g)}${eb(this.b)}`}function Jg(){const e=Zg(this.opacity);return`${1===e?"rgb(":"rgba("}${Qg(this.r)}, ${Qg(this.g)}, ${Qg(this.b)}${1===e?")":`, ${e})`}`}function Zg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function eb(e){return((e=Qg(e))<16?"0":"")+e.toString(16)}function tb(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rb(e,t,n,r)}function nb(e){if(e instanceof rb)return new rb(e.h,e.s,e.l,e.opacity);if(e instanceof Mg||(e=Hg(e)),!e)return new rb;if(e instanceof rb)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new rb(a,l,s,e.opacity)}function rb(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ob(e){return(e=(e||0)%360)<0?e+360:e}function ib(e){return Math.max(0,Math.min(1,e||0))}function ab(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ag(Mg,Hg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gg,formatHex:Gg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nb(this).formatHsl()},formatRgb:Bg,toString:Bg}),Ag(Kg,Ug,Ig(Mg,{brighter(e){return e=null==e?Dg:Math.pow(Dg,e),new Kg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Kg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kg(Qg(this.r),Qg(this.g),Qg(this.b),Zg(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:Xg,formatHex:Xg,formatHex8:function(){return`#${eb(this.r)}${eb(this.g)}${eb(this.b)}${eb(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Jg,toString:Jg})),Ag(rb,(function(e,t,n,r){return 1===arguments.length?nb(e):new rb(e,t,n,null==r?1:r)}),Ig(Mg,{brighter(e){return e=null==e?Dg:Math.pow(Dg,e),new rb(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new rb(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Kg(ab(e>=240?e-240:e+120,o,r),ab(e,o,r),ab(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new rb(ob(this.h),ib(this.s),ib(this.l),Zg(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=Zg(this.opacity);return`${1===e?"hsl(":"hsla("}${ob(this.h)}, ${100*ib(this.s)}%, ${100*ib(this.l)}%${1===e?")":`, ${e})`}`}}));const lb=Math.PI/180,sb=180/Math.PI,ub=4/29,cb=6/29,db=3*cb*cb;function pb(e){if(e instanceof fb)return new fb(e.l,e.a,e.b,e.opacity);if(e instanceof vb)return yb(e);e instanceof Kg||(e=Yg(e));var t,n,r=bb(e.r),o=bb(e.g),i=bb(e.b),a=hb((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=hb((.4360747*r+.3850649*o+.1430804*i)/.96422),n=hb((.0139322*r+.0971045*o+.7141733*i)/.82521)),new fb(116*a-16,500*(t-a),200*(a-n),e.opacity)}function fb(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function hb(e){return e>.008856451679035631?Math.pow(e,1/3):e/db+ub}function mb(e){return e>cb?e*e*e:db*(e-ub)}function gb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function bb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vb(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function yb(e){if(isNaN(e.h))return new fb(e.l,0,0,e.opacity);var t=e.h*lb;return new fb(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ag(fb,(function(e,t,n,r){return 1===arguments.length?pb(e):new fb(e,t,n,null==r?1:r)}),Ig(Mg,{brighter(e){return new fb(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new fb(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Kg(gb(3.1338561*(t=.96422*mb(t))-1.6168667*(e=1*mb(e))-.4906146*(n=.82521*mb(n))),gb(-.9787684*t+1.9161415*e+.033454*n),gb(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ag(vb,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof vb)return new vb(e.h,e.c,e.l,e.opacity);if(e instanceof fb||(e=pb(e)),0===e.a&&0===e.b)return new vb(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*sb;return new vb(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new vb(e,t,n,null==r?1:r)}),Ig(Mg,{brighter(e){return new vb(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new vb(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return yb(this).rgb()}}));var xb,Sb=e=>()=>e;function Eb(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Sb(isNaN(e)?t:e)}function Cb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function wb(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Rb(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ab)):void 0===t&&(t=Lb);for(var n,r,o,i,a,l=new Db(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Db(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Mb)}function Lb(e){return e.children}function Ab(e){return Array.isArray(e)?e[1]:null}function Ib(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Mb(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Db(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?Eb:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Sb(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Ug(e)).r,(t=Ug(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Eb(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),Db.prototype=Rb.prototype={constructor:Db,count:function(){return this.eachAfter(wb)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Rb(this).eachBefore(Ib)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},xb=function(e){
100
100
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
101
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),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(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(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"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},Eb({exports:{}});const Ob=3,Tb="N";function kb(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function qb({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=Ob}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=A((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=Rb(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=Rb((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=kb(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(Tb).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var Nb,Fb=N;Nb=Fb.createRoot,Fb.hydrateRoot;function zb(e,t){const[n,r]=I(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var jb={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 $b=({translator:e})=>(A((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(jb).forEach((t=>{e.add(jb[t])}))}}(e)),[e]),e),Gb=document.createElement("textarea");function Bb(e){Gb.value=e,document.body.appendChild(Gb),Gb.select(),Gb.setSelectionRange(0,Gb.value.length),document.execCommand("copy"),document.body.removeChild(Gb)}Gb.style.position="absolute",Gb.style.left="-9999px",Gb.setAttribute("readonly","");function Hb(){null==a||a(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Tt}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>Bb(n))):Bb(n))})(r)}})}))}var Wb="$$material";function Vb(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}Vb.propTypes={children:Fn.node,injectFirst:Fn.bool};const Yb=pa((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var Ub=Yb;
102
- /**
103
- * @mui/styled-engine-sc v6.0.0-alpha.18
104
- *
105
- * @license MIT
106
- * This source code is licensed under the MIT license found in the
107
- * LICENSE file in the root directory of this source tree.
108
- */
109
- function Kb(e,t){let n;return n=t?ca(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ca(e),n}Yb.propTypes={defaultTheme:Fn.object,styles:Fn.oneOfType([Fn.array,Fn.string,Fn.object,Fn.func])};var Xb=Object.freeze({__proto__:null,GlobalStyles:Ub,StyledEngineProvider:Vb,ThemeContext:na,css:la,default:Kb,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:fa});const Jb=["values","unit","step"],Zb=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)=>Tn({},e,{[t.key]:t.val})),{})};function Qb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=$n(e,Jb),i=Zb(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Tn({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var ev={borderRadius:4};function tv(e,t){return t?ya(e,t,{clone:!1}):e}const nv={xs:0,sm:600,md:900,lg:1200,xl:1536},rv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${nv[e]}px)`};function ov(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||rv;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||rv;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||nv).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function iv(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function av(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:iv(e,n)||r,t&&(o=t(o,r,e)),o}function lv(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=iv(e.theme,r)||{};return ov(e,i,(e=>{let r=av(a,o,e);return e===r&&"string"==typeof e&&(r=av(a,o,`${t}${"default"===e?"":Wa(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const sv={m:"margin",p:"padding"},uv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},dv=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!cv[e])return[e];e=cv[e]}const[t,n]=e.split(""),r=sv[t],o=uv[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),pv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function hv(e,t,n,r){var o;const i=null!=(o=iv(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function mv(e){return hv(e,"spacing",8)}function gv(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function bv(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=gv(t,n),e)),{})}(dv(n),r);return ov(e,e[n],o)}function vv(e,t){const n=mv(e.theme);return Object.keys(e).map((r=>bv(e,t,r,n))).reduce(tv,{})}function yv(e){return vv(e,pv)}function xv(e){return vv(e,fv)}function Sv(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?tv(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Ev(e){return"number"!=typeof e?e:`${e}px solid`}function Cv(e,t){return lv({prop:e,themeKey:"borders",transform:t})}yv.propTypes={},yv.filterProps=pv,xv.propTypes={},xv.filterProps=fv;const wv=Cv("border",Ev),Rv=Cv("borderTop",Ev),Lv=Cv("borderRight",Ev),Av=Cv("borderBottom",Ev),Iv=Cv("borderLeft",Ev),Mv=Cv("borderColor"),Dv=Cv("borderTopColor"),Pv=Cv("borderRightColor"),_v=Cv("borderBottomColor"),Ov=Cv("borderLeftColor"),Tv=Cv("outline",Ev),kv=Cv("outlineColor"),qv=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=hv(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:gv(t,e)});return ov(e,e.borderRadius,n)}return null};qv.propTypes={},qv.filterProps=["borderRadius"],Sv(wv,Rv,Lv,Av,Iv,Mv,Dv,Pv,_v,Ov,qv,Tv,kv);const Nv=e=>{if(void 0!==e.gap&&null!==e.gap){const t=hv(e.theme,"spacing",8),n=e=>({gap:gv(t,e)});return ov(e,e.gap,n)}return null};Nv.propTypes={},Nv.filterProps=["gap"];const Fv=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=hv(e.theme,"spacing",8),n=e=>({columnGap:gv(t,e)});return ov(e,e.columnGap,n)}return null};Fv.propTypes={},Fv.filterProps=["columnGap"];const zv=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=hv(e.theme,"spacing",8),n=e=>({rowGap:gv(t,e)});return ov(e,e.rowGap,n)}return null};zv.propTypes={},zv.filterProps=["rowGap"];function jv(e,t){return"grey"===t?t:e}Sv(Nv,Fv,zv,lv({prop:"gridColumn"}),lv({prop:"gridRow"}),lv({prop:"gridAutoFlow"}),lv({prop:"gridAutoColumns"}),lv({prop:"gridAutoRows"}),lv({prop:"gridTemplateColumns"}),lv({prop:"gridTemplateRows"}),lv({prop:"gridTemplateAreas"}),lv({prop:"gridArea"}));function $v(e){return e<=1&&0!==e?100*e+"%":e}Sv(lv({prop:"color",themeKey:"palette",transform:jv}),lv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:jv}),lv({prop:"backgroundColor",themeKey:"palette",transform:jv}));const Gv=lv({prop:"width",transform:$v}),Bv=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||nv[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:$v(t)}};return ov(e,e.maxWidth,t)}return null};Bv.filterProps=["maxWidth"];const Hv=lv({prop:"minWidth",transform:$v}),Wv=lv({prop:"height",transform:$v}),Vv=lv({prop:"maxHeight",transform:$v}),Yv=lv({prop:"minHeight",transform:$v});lv({prop:"size",cssProperty:"width",transform:$v}),lv({prop:"size",cssProperty:"height",transform:$v});Sv(Gv,Bv,Hv,Wv,Vv,Yv,lv({prop:"boxSizing"}));var Uv={border:{themeKey:"borders",transform:Ev},borderTop:{themeKey:"borders",transform:Ev},borderRight:{themeKey:"borders",transform:Ev},borderBottom:{themeKey:"borders",transform:Ev},borderLeft:{themeKey:"borders",transform:Ev},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ev},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qv},color:{themeKey:"palette",transform:jv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:jv},backgroundColor:{themeKey:"palette",transform:jv},p:{style:xv},pt:{style:xv},pr:{style:xv},pb:{style:xv},pl:{style:xv},px:{style:xv},py:{style:xv},padding:{style:xv},paddingTop:{style:xv},paddingRight:{style:xv},paddingBottom:{style:xv},paddingLeft:{style:xv},paddingX:{style:xv},paddingY:{style:xv},paddingInline:{style:xv},paddingInlineStart:{style:xv},paddingInlineEnd:{style:xv},paddingBlock:{style:xv},paddingBlockStart:{style:xv},paddingBlockEnd:{style:xv},m:{style:yv},mt:{style:yv},mr:{style:yv},mb:{style:yv},ml:{style:yv},mx:{style:yv},my:{style:yv},margin:{style:yv},marginTop:{style:yv},marginRight:{style:yv},marginBottom:{style:yv},marginLeft:{style:yv},marginX:{style:yv},marginY:{style:yv},marginInline:{style:yv},marginInlineStart:{style:yv},marginInlineEnd:{style:yv},marginBlock:{style:yv},marginBlockStart:{style:yv},marginBlockEnd:{style:yv},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:Nv},rowGap:{style:zv},columnGap:{style:Fv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$v},maxWidth:{style:Bv},minWidth:{transform:$v},height:{transform:$v},maxHeight:{transform:$v},minHeight:{transform:$v},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Kv(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=iv(n,l)||{};if(u)return u(o);return ov(o,t,(t=>{let n=av(c,s,t);return t===n&&"string"==typeof t&&(n=av(c,s,`${e}${"default"===t?"":Wa(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Uv;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=tv(s,e(n,o,i,a));else{const e=ov({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=tv(s,e):s[n]=t({sx:o,theme:i})}else s=tv(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Xv=Kv();Xv.filterProps=["sx"];var Jv=Xv;function Zv(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const Qv=["breakpoints","palette","spacing","shape"];function ey(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=$n(e,Qv),l=Qb(n),s=function(e=8){if(e.mui)return e;const t=mv({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=ya({breakpoints:l,direction:"ltr",components:{},palette:Tn({mode:"light"},r),spacing:s,shape:Tn({},ev,i)},a);return u.applyStyles=Zv,u=t.reduce(((e,t)=>ya(e,t)),u),u.unstable_sxConfig=Tn({},Uv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Jv({sx:e,theme:this})},u}var ty=Object.freeze({__proto__:null,default:ey,private_createBreakpoints:Qb,unstable_applyStyles:Zv});function ny(e=null){const t=x.useContext(na);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ry=ey();function oy(e=ry){return ny(e)}const iy=["sx"],ay=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Uv;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function ly(e){const{sx:t}=e,n=$n(e,iy),{systemProps:r,otherProps:o}=ay(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return ba(n)?Tn({},r,n):r}:Tn({},r,t),Tn({},o,{sx:i})}var sy=Object.freeze({__proto__:null,default:Jv,extendSxProp:ly,unstable_createStyleFunctionSx:Kv,unstable_defaultSxConfig:Uv});const uy=["className","component"];function cy({props:e,name:t,defaultTheme:n,themeId:r}){let o=oy(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?ml(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function dy(e){if(e.type)return e;if("#"===e.charAt(0))return dy(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Lr(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Lr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function py(e,t){return e=dy(e),t=function(e,t=0,n=1){return El(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}const fy=["value"],hy=x.createContext();function my(e){let{value:t}=e,n=$n(e,fy);return Fs.jsx(hy.Provider,Tn({value:null==t||t},n))}const gy={};function by(e,t,n,r=!1){return x.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Tn({},t,{[e]:i}):i;return r?()=>a:a}return Tn({},t,e?{[e]:n}:n)}),[e,t,n,r])}function vy(e){const{children:t,theme:n,themeId:r}=e,o=ny(gy),i=su()||gy,a=by(r,o,n),l=by(r,i,n,!0),s="rtl"===a.direction;return Fs.jsx(cu,{theme:l,children:Fs.jsx(na.Provider,{value:a,children:Fs.jsx(my,{value:s,children:t})})})}var yy={},xy={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(xy);var Sy=xy.exports,Ey=j(Ar),Cy=j(Cl),wy=Sy;Object.defineProperty(yy,"__esModule",{value:!0});var Ry=yy.alpha=Fy;yy.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Oy(e),a=Oy(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ky({type:"rgb",values:l})},yy.colorChannel=void 0;var Ly=yy.darken=zy;yy.decomposeColor=Oy,yy.emphasize=$y;var Ay=yy.getContrastRatio=function(e,t){const n=Ny(e),r=Ny(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};yy.getLuminance=Ny,yy.hexToRgb=_y,yy.hslToRgb=qy;var Iy=yy.lighten=jy;yy.private_safeAlpha=function(e,t,n){try{return Fy(e,t)}catch(t){return e}},yy.private_safeColorChannel=void 0,yy.private_safeDarken=function(e,t,n){try{return zy(e,t)}catch(t){return e}},yy.private_safeEmphasize=function(e,t,n){try{return $y(e,t)}catch(t){return e}},yy.private_safeLighten=function(e,t,n){try{return jy(e,t)}catch(t){return e}},yy.recomposeColor=ky,yy.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Oy(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 My=wy(Ey),Dy=wy(Cy);function Py(e,t=0,n=1){return(0,Dy.default)(e,t,n)}function _y(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Oy(e){if(e.type)return e;if("#"===e.charAt(0))return Oy(_y(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,My.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,My.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Ty=e=>{const t=Oy(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};yy.colorChannel=Ty;function ky(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function qy(e){e=Oy(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),ky({type:l,values:s})}function Ny(e){let t="hsl"===(e=Oy(e)).type||"hsla"===e.type?Oy(qy(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 Fy(e,t){return e=Oy(e),t=Py(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ky(e)}function zy(e,t){if(e=Oy(e),t=Py(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ky(e)}function jy(e,t){if(e=Oy(e),t=Py(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ky(e)}function $y(e,t=.15){return Ny(e)>.5?zy(e,t):jy(e,t)}yy.private_safeColorChannel=(e,t)=>{try{return Ty(e)}catch(t){return e}};var Gy={black:"#000",white:"#fff"};var By={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 Hy={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 Wy={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 Vy={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 Yy={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 Uy={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 Ky={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 Xy=["mode","contrastThreshold","tonalOffset"],Jy={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:Gy.white,default:Gy.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}},Zy={text:{primary:Gy.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:Gy.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 Qy(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Iy(e.main,o):"dark"===t&&(e.dark=Ly(e.main,i)))}function ex(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=$n(e,Xy),i=e.primary||function(e="light"){return"dark"===e?{main:Yy[200],light:Yy[50],dark:Yy[400]}:{main:Yy[700],light:Yy[400],dark:Yy[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Hy[200],light:Hy[50],dark:Hy[400]}:{main:Hy[500],light:Hy[300],dark:Hy[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Wy[500],light:Wy[300],dark:Wy[700]}:{main:Wy[700],light:Wy[400],dark:Wy[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Uy[400],light:Uy[300],dark:Uy[700]}:{main:Uy[700],light:Uy[500],dark:Uy[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ky[400],light:Ky[300],dark:Ky[700]}:{main:Ky[800],light:Ky[500],dark:Ky[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Vy[400],light:Vy[300],dark:Vy[700]}:{main:"#ed6c02",light:Vy[500],dark:Vy[900]}}(t);function d(e){return Ay(e,Zy.text.primary)>=n?Zy.text.primary:Jy.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Tn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Lr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Lr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Qy(e,"light",o,r),Qy(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Zy,light:Jy};return ya(Tn({common:Tn({},Gy),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:By,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const tx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const nx={textTransform:"uppercase"},rx='"Roboto", "Helvetica", "Arial", sans-serif';function ox(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=rx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=$n(n,tx),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return Tn({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===rx?{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,nx),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,nx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ya(Tn({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function ix(...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 ax=["none",ix(0,2,1,-1,0,1,1,0,0,1,3,0),ix(0,3,1,-2,0,2,2,0,0,1,5,0),ix(0,3,3,-2,0,3,4,0,0,1,8,0),ix(0,2,4,-1,0,4,5,0,0,1,10,0),ix(0,3,5,-1,0,5,8,0,0,1,14,0),ix(0,3,5,-1,0,6,10,0,0,1,18,0),ix(0,4,5,-2,0,7,10,1,0,2,16,1),ix(0,5,5,-3,0,8,10,1,0,3,14,2),ix(0,5,6,-3,0,9,12,1,0,3,16,2),ix(0,6,6,-3,0,10,14,1,0,4,18,3),ix(0,6,7,-4,0,11,15,1,0,4,20,3),ix(0,7,8,-4,0,12,17,2,0,5,22,4),ix(0,7,8,-4,0,13,19,2,0,5,24,4),ix(0,7,9,-4,0,14,21,2,0,5,26,4),ix(0,8,9,-5,0,15,22,2,0,6,28,5),ix(0,8,10,-5,0,16,24,2,0,6,30,5),ix(0,8,11,-5,0,17,26,2,0,6,32,5),ix(0,9,11,-5,0,18,28,2,0,7,34,6),ix(0,9,12,-6,0,19,29,2,0,7,36,6),ix(0,10,13,-6,0,20,31,3,0,8,38,7),ix(0,10,13,-6,0,21,33,3,0,8,40,7),ix(0,10,14,-6,0,22,35,3,0,8,42,7),ix(0,11,14,-7,0,23,36,3,0,9,44,8),ix(0,11,15,-7,0,24,38,3,0,9,46,8)];const lx=["duration","easing","delay"],sx={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)"},ux={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function cx(e){return`${Math.round(e)}ms`}function dx(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function px(e){const t=Tn({},sx,e.easing),n=Tn({},ux,e.duration);return Tn({getAutoHeightDuration:dx,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return $n(r,lx),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:cx(o)} ${i} ${"string"==typeof a?a:cx(a)}`)).join(",")}},e,{easing:t,duration:n})}var fx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const hx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function mx(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=$n(e,hx);if(e.vars)throw new Error(Lr(18));const l=ex(r),s=ey(e);let u=ya(s,{mixins:(c=s.breakpoints,d=n,Tn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:ax.slice(),typography:ox(l,i),transitions:px(o),zIndex:Tn({},fx)});var c,d;return u=ya(u,a),u=t.reduce(((e,t)=>ya(e,t)),u),u.unstable_sxConfig=Tn({},Uv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Jv({sx:e,theme:this})},u}var gx=mx();function bx(){const e=oy(gx);return e[Wb]||e}function vx({props:e,name:t}){return cy({props:e,name:t,defaultTheme:gx,themeId:Wb})}var yx,xx={},Sx={exports:{}};var Ex,Cx={exports:{}};var wx=j(Xb),Rx=j(Sa),Lx=j(Va),Ax=j(Ha),Ix=j(ty),Mx=j(sy),Dx=Sy;Object.defineProperty(xx,"__esModule",{value:!0});var Px=xx.default=function(e={}){const{themeId:t,defaultTheme:n=Bx,rootShouldForwardProp:r=Gx,slotShouldForwardProp:o=Gx}=e,i=e=>(0,Nx.default)((0,_x.default)({},e,{theme:Wx((0,_x.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Tx.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Vx(Hx(s))}=a,p=(0,Ox.default)(a,jx),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Gx;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,Tx.default)(e,(0,_x.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,kx.isPlainObject)(e)?r=>Yx(e,(0,_x.default)({},r,{theme:Wx({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=Wx((0,_x.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Yx(n,(0,_x.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=Wx((0,_x.default)({},e,{defaultTheme:n,themeId:t}));return Yx({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,_x.default)({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};xx.shouldForwardProp=Gx,xx.systemDefaultTheme=void 0;var _x=Dx((yx||(yx=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Sx)),Sx.exports)),Ox=Dx((Ex||(Ex=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(Cx)),Cx.exports)),Tx=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=$x(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(wx),kx=Rx;Dx(Lx),Dx(Ax);var qx=Dx(Ix),Nx=Dx(Mx);const Fx=["ownerState"],zx=["variants"],jx=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return($x=function(e){return e?n:t})(e)}function Gx(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Bx=xx.systemDefaultTheme=(0,qx.default)(),Hx=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Wx({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Vx(e){return e?(t,n)=>n[e]:null}function Yx(e,t){let{ownerState:n}=t,r=(0,Ox.default)(t,Fx);const o="function"==typeof e?e((0,_x.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Yx(e,(0,_x.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Ox.default)(o,zx);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,_x.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,_x.default)({ownerState:n},r,n)):e.style))})),t}return o}var Ux=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var Kx=Px({themeId:Wb,defaultTheme:gx,rootShouldForwardProp:Ux});const Xx=["theme"];function Jx(e){let{theme:t}=e,n=$n(e,Xx);const r=t[Wb];return Fs.jsx(vy,Tn({},n,{themeId:r?Wb:void 0,theme:r||t}))}var Zx=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const Qx=pc(kp,{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)":{[`& .${Nt}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${Nt}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),eS=pc(kp)({position:"absolute",height:"100%",width:"3px"}),tS=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=M({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},h=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};zb((()=>p&&h()),[e]);const m=e=>{const t=Math.max(e,Ft.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:zt.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},b=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;m(t)},v=e=>{mg(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;m(t)},x=e=>{mg(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},E=!r&&l?e=>{if(e.key===kt.LEFT||e.key===kt.RIGHT){mg(e);const t=5,n=e.key===kt.LEFT?-t:t;m(c.current.columnWidth+n)}else e.key===kt.SPACE||e.key===kt.ENTER?(mg(e),l(e),g()):e.key===kt.ESC&&(mg(e),l(e),m(c.current.initWidth))}:void 0;return S.createElement(Qx,{className:qt,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==s||s(!0),h(e.clientX)},onDoubleClick:()=>a({type:zt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==s||s(!0),h(e.touches[0].clientX))},onKeyDown:E,onBlur:l,onFocus:()=>h(),"data-testid":qt},S.createElement(eS,{className:Nt}))};function nS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),oS=D(rS);function iS(){return iS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iS.apply(this,arguments)}const aS=pc(kp,{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"}))),lS=pc(oS,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),sS=pc(fh)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),uS=pc(af)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),cS=pc(vh)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),dS=pc(vh,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),pS=pc("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"}))),fS=pc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),hS=pc(qd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),mS=pc(jf)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function gS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){gS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),vS=D(bS);let yS={};const xS=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=I(!1),p=M(null),f=P((e=>{e.stopPropagation(),d(!1)}),[d]);return S.createElement(S.Fragment,null,S.createElement(dS,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),yS={}),null!=a&&a.length&&(d(!0),yS[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&S.createElement(pS,null),S.createElement(fS,null,S.createElement(mS,null,S.createElement(o,null)),S.createElement(hS,{variant:"body2"},r)),null!=a&&a.length?S.createElement(vS,null):null),(null==a?void 0:a.length)&&S.createElement(CS,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=yS,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},SS=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&S.createElement(cS,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>S.createElement(xS,iS({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),ES={appear:200,enter:200,exit:100},CS=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?S.createElement(sS,iS({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:ES,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[SS({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?S.createElement(uS,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,wS={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},RS=(e,t)=>e.some((e=>t[e]>0));function LS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const AS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){LS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),IS=D(AS);function MS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const DS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){MS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),PS=D(DS);function _S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_S(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),TS=D(OS);function kS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),NS=D(qS);function FS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),jS=D(zS);function $S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$S(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),BS=D(GS);function HS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const WS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),VS=D(WS);function YS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const US=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),KS=D(US);function XS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),ZS=D(JS);function QS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const eE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){QS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),tE=D(eE);let nE=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const rE=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[nE.SORTING]){const{isActivelySorted:n,sortDirection:i,isPivot:a}=e,l=!a&&!n||"D"===i,s=!a&&!n||"A"===i;d.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e)),r(!1)},icon:IS,enabled:l,isActive:!!n&&"A"===i,autoFocus:l},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e)),r(!1)},icon:NS,enabled:s,isActive:!!n&&"D"===i,autoFocus:!l&&s}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[nE.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:jS,enabled:!0}]}]),n[nE.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:tE,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:BS,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:ZS,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:VS,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:KS,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:PS,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[nE.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:TS,enabled:!0}]}]),d},oE=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const h=$b({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:E}=(({headerData:e,app:t})=>{const[n,r]=I(null),[o,i]=I(wS);return _((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:P((()=>i(wS)),[]),updateSelectionActionsEnabledStatus:P((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:RS(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:RS(["qSelected"],n.qStateCounts),canSelectPossible:RS(["qOption"],n.qStateCounts),canSelectAlternative:RS(["qAlternative"],n.qStateCounts),canSelectExcluded:RS(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),C=P((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,b,g]);_((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{E(e)})).catch((e=>console.error(e))))}),[e,x,E,null==d?void 0:d.model]);const w=P((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?S.createElement(aS,{rightAligned:"right"===m,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&S.createElement(lS,{height:_t,className:Ot,"data-testid":Ot,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},S.createElement(oS,null)),S.createElement(CS,{open:e,anchorEl:n.current,onClose:w,menuGroups:rE({headerData:r,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:C,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},iE=e=>e.isDark?{background:e.color,borderColor:um.DARK_MODE_BORDER,color:um.DARK_MODE_TEXT,disabledColor:um.DARK_MODE_DISABLED,iconColor:um.DARK_MODE_TEXT}:{background:e.color,borderColor:um.BORDER_MEDIUM,color:um.TEXT,disabledColor:um.DISABLED},aE=pc(kp,{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}`}))),lE=pc(nm,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),sE=pc(Vp,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),uE=pc(qd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),cE=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=A((()=>iE(r.background)),[r]);if(!n.active)return null;const a=o?S.createElement(aE,{footerStyle:i},e):null;return t?N.createPortal(e,t):a},dE=O({}),pE=()=>E(dE),fE=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=A((()=>iE(p.background)),[p]),v=o?o.getBoundingClientRect().width:h.width,y=$b({translator:d}),x=A((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:g,width:v})),[t,n,r,o,i,a,l,s,u,c,y,p,f,h,m,b,g,v]);return S.createElement(dE.Provider,{value:x},e)};let hE=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),mE=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 gE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){gE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),vE=D(bE);function yE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){yE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),SE=D(xE);function EE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const CE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){EE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),wE=D(CE),RE={FirstPage:SE,PreviousPage:vE,NextPage:vS,LastPage:wE,FirstPageRTL:wE,PreviousPageRTL:vS,NextPageRTL:vE,LastPageRTL:SE},LE=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=pE(),u=RE[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},AE=()=>{const{pageInfo:e,width:t}=pE(),n=0===e.page,{IconComponent:r,styledProps:o}=LE({type:hE.FirstPage,disabledCondition:n,pageNumber:0});return t<=mE.FirstPage?null:S.createElement(sE,o,S.createElement(r,{height:_t}))},IE=(e,t,n=!1)=>{n&&e.key===kt.TAB&&!e.shiftKey&&(mg(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},ME=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=pE(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=LE({type:hE.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>IE(e,t,r):null;return o<=mE.LastPage?null:S.createElement(sE,iS({},l,{onKeyDown:s}),S.createElement(a,{height:_t}))},DE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=pE(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=LE({type:hE.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>mE.FirstPage&&o>mE.LastPage)&&t.enabled?e=>IE(e,t,r):null;return S.createElement(sE,iS({},l,{onKeyDown:s}),S.createElement(a,{height:_t}))},PE=()=>{const{pageInfo:e}=pE(),t=0===e.page,{IconComponent:n,styledProps:r}=LE({type:hE.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return S.createElement(sE,r,S.createElement(n,{height:_t}))},_E=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=pE(),{page:o,rowsPerPage:i}=n;if(t<=mE.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return S.createElement(uE,{variant:"caption"},a)},OE=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=pE(),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 S.createElement(S.Fragment,null,S.createElement(uE,{variant:"caption",id:d},u,":"),S.createElement(lE,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},TE=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=pE();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>mE.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=S.createElement(S.Fragment,null,t.rowsPerPageOptions.map((e=>S.createElement("option",{key:e,value:e},e))));return S.createElement(OE,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},kE=1e3,qE="…",NE=({totalPages:e,page:t})=>{const n=Math.min(e,kE),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-kE):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return S.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(S.createElement("option",{key:"startMoreOptions",value:qE,disabled:!0},qE)),o<e-1&&a.push(S.createElement("option",{key:"endMoreOptions",value:qE,disabled:!0},qE)),S.createElement(S.Fragment,null,a)},FE=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=pE(),{page:o}=e;if(t<=mE.SelectPage)return null;const i=S.createElement(NE,{totalPages:n,page:o});return S.createElement(OE,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};var zE=T((e=>S.createElement(fE,e,S.createElement(TE,null),S.createElement(FE,null),S.createElement(_E,null),S.createElement(AE,null),S.createElement(PE,null),S.createElement(DE,null),S.createElement(ME,null))));const jE=e=>S.createElement(cE,e,S.createElement(zE,e)),$E=O({}),GE=()=>E($E),BE=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})=>{const u=A((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})),[n,r,t,o,i,a,l,s]);return Fs.jsx($E.Provider,{value:u,children:e})},HE=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=GE(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:en;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:Fs.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:Fs.jsx("span",{style:{...dn,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},WE=O({}),VE=()=>E(WE),YE=({children:e,styleService:t})=>Fs.jsx(WE.Provider,{value:t,children:e}),UE=21,KE=20,XE=KE,JE=16+on+1,ZE=.75;let QE=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),eC=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const tC=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===QE.Image},nC="/qHyperCubeDef",rC=-1,oC="PSEUDO-DIM",iC=e=>void 0===e?tn:e,aC=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,lC=e=>aC(e,Ft.PixelsDefault),sC=(e,t)=>aC(e,Ft.PercentageDefault)*t/100,uC=({layoutService:e,fitToContentWidth:t,tableWidth:n,lastRowHeader:r,isOnlyOneColumnInXAxis:o})=>{let i=t;const{indentModeColumnWidth:a}=e;if(a.type===zt.Auto)i=t;else if(a.type===zt.Pixels){var l;o&&a.pixels&&(r.columnWidthLocation===It.Measures||r.id===oC)?i=a.pixels:null!==(l=r.columnWidth)&&void 0!==l&&l.pixels&&(i=r.columnWidth.pixels)}else a.type===zt.Percentage&&a.percentage&&(i=n*(a.percentage/100));return Math.min(n*ZE,i)},cC=(e,t,n)=>{switch(null==t?void 0:t.type){case zt.Pixels:return lC(t.pixels);case zt.Percentage:return sC(t.percentage,e);case zt.FitToContent:case zt.Auto:default:return n}},dC=({headers:e,layoutService:t,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:r,measureTextForHeader:o,longestMeasureValuePossible:i})=>e.reduce(((e,a,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s}},isFullyExpanded:u}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=a;if(!f)return e+0;if(c===oC)return e+0;const h=n(p),m=!u&&f&&d<s-1?UE:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+JE+m+h+g)}),0),pC=(e,t,n,r)=>{const o=100*e/t,i=r*ZE*(o/100),a=n*(o/100);return Math.min(a,i)},fC=(e,t,n,r)=>r*(n/100)*(100*e/t/100),hC=(e,t)=>e.some((e=>e===t*ZE)),mC=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a})=>{let l=[];const s=r*ZE,u=t.data[t.data.length-1][0],c=Math.min(s,n.at(-1)),d=Math.min(s,dC({headers:u,layoutService:e,estimateWidthForDimensionValue:a})),p=Math.min(s,((e,t)=>e.reduce(((e,n)=>Math.max(e,JE+t(n.qFallbackTitle))),0))(e.visibleMeasureInfo,i));let f=0;const h=u.findIndex((e=>e.id===oC));if(e.hasPseudoDimOnLeft)if(0===h){const e=Math.max(c,d,p);l=[Math.max(24,e-c),c]}else{f=Math.min(s,dC({headers:u.slice(0,h),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:p}));const t=Math.max(c,d,f);l=[Math.max(24,t-c),c]}else l=[Math.max(24,d-c),c];const m=Math.min(s,l.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:g}=e;o&&o<=s&&(g.type=zt.Pixels,g.pixels=o);return[zt.Pixels,zt.Percentage].includes(g.type)||hC(l,r)?((e,t,n,r)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=hC(e,n);s===zt.Auto&&d&&(o>i?o-=i:i-=o),s===zt.Pixels&&u&&(o=pC(e[0],l,u,n),i=pC(e[1],l,u,n)),s===zt.Percentage&&c&&(o=fC(e[0],l,c,n),i=fC(e[1],l,c,n));const p=i-r;p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(l,g,r,c):{leftGridWidth:m,leftGridColumnWidths:l,leftGridFullWidth:m}};function gC({layoutService:e,tableWidth:t,headersData:n}){const r=t*ZE,o=VE(),{measureText:i}=qb(o.header),{estimateWidth:a}=qb({...o.dimensionValues,fontWeight:iC(o.dimensionValues.fontWeight)}),{measureText:l}=qb({...o.dimensionValues,...o.measureLabels}),s=P(((o,s)=>{const{layout:{qHyperCube:{qNoOfLeftDims:u,topHeadersColumnWidth:c}},visibleMeasureInfo:d,isFullyExpanded:p,isIndentModeEnabled:f}=e,h=(e=0)=>d.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=l(r)+JE,a=Math.max(i,e);return Math.max(n,f?a:cC(t,o,a))}),0),m=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===oC)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?XE:0;return JE+i(t)+KE+r})(r);return Math.max(o,t)}),0);let g=0,b=n.data.at(-1);f&&n.size.x>1&&b&&b[0]&&(b=b[0]);const v=b.map(((i,l)=>{let d=JE;if((!f||f&&1===n.size.x)&&o&&void 0!==s&&s===i.colIdx)d=f?Math.min(r,o):o;else{let r;i.columnWidthLocation===It.Pivot?r=c:i.columnWidthLocation===It.Dimension&&({columnWidth:r}=i);let o=0;i.isLeftDimension?o=i.id===oC?h():Math.max(m(l),((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=t,l=e.getDimensionInfo(i);if(tC(l))return Ft.PixelsDefault;const s=!p&&o&&n<u-1?UE:0;return JE+a(r)+s})(i,l)):i.isLeftDimension||(o=m(l),i.columnWidthLocation===It.Measures&&(o=h(o))),d=f?uC({layoutService:e,lastRowHeader:i,fitToContentWidth:o,tableWidth:t,isOnlyOneColumnInXAxis:1===n.size.x}):cC(t,r,o)}return g+=d,d}));return f&&n.size.x>1?mC({layoutService:e,headersData:n,columnWidths:v,tableWidth:t,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a}):{leftGridWidth:Math.min(r,g),leftGridColumnWidths:v,leftGridFullWidth:g}}),[a,n,e,i,l,t,r]),[u,c]=I(s);zb((()=>{c(s())}),[s]);const d=P(((e,t)=>{c(s(e,t))}),[s]);return{...u,overrideLeftGridWidth:d}}function bC({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=VE(),{estimateWidth:c,measureText:d}=qb(u.measureValues),{estimateWidth:p}=qb({...u.dimensionValues,fontWeight:iC(u.dimensionValues.fontWeight)}),f=t-o-on,h=n.at(-1),m=h===rC,g=a.length-i>n.length?UE:0,b=A((()=>{const e=m?s:[h],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(Ft.PixelsMax,Math.max(Ft.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(n){case zt.Pixels:i(t,lC(o));break;case zt.Percentage:i(t,sC(a,f));break;case zt.FitToContent:i(t,((e,t,n)=>n?Ft.PixelsDefault:JE+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,tC(e)));break;case zt.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(Ft.AutoMinPivot,i)}))}return n}),[m,s,h,l.x,f,c,d,p,g]),v=A((()=>{if(m){return s.reduce(((e,t,n)=>e+b[n]),0)/s.length}return b[0]}),[m,b,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=P((t=>m&&void 0!==t?b[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:v-y),[m,b,e,v,y]),S=l.x*v;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let vC;const yC=new Uint8Array(16);function xC(){if(!vC&&(vC="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!vC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return vC(yC)}const SC=[];for(let e=0;e<256;++e)SC.push((e+256).toString(16).slice(1));var EC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function CC(e,t,n){if(EC.randomUUID&&!t&&!e)return EC.randomUUID();const r=(e=e||{}).random||(e.rng||xC)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return SC[e[t+0]]+SC[e[t+1]]+SC[e[t+2]]+SC[e[t+3]]+"-"+SC[e[t+4]]+SC[e[t+5]]+"-"+SC[e[t+6]]+SC[e[t+7]]+"-"+SC[e[t+8]]+SC[e[t+9]]+"-"+SC[e[t+10]]+SC[e[t+11]]+SC[e[t+12]]+SC[e[t+13]]+SC[e[t+14]]+SC[e[t+15]]}(r)}const wC=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:CC()},RC=e=>e===rC?oC:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:wC()})(e),LC=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===rC?n.columnWidthLocation=It.Measures:n.isLeftDimension?n.columnWidthLocation=It.Dimension:t.at(-1)===rC?n.columnWidthLocation=It.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=It.Pivot))},AC=(e,t,n)=>{var r;const o=RC(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===rC?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:It.Measures,isPivot:!0}:{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],isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:It.Dimension,isPivot:!0}},IC=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===rC?o.slice(0,-1):o);const i=r.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,n,r)=>{const o=n===r.length-1;l[i-1][n]=AC(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=AC(e,t,o)})),l},MC=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(rC)?IC({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(IC({layoutService:e,lastRow:t,lastCol:n})),e.isIndentModeEnabled&&r[r.length-1].length>1&&(r[r.length-1]=[r.at(-1),...new Array(r[0]?r[0].length-1:0).fill(null)]),r.length&&(null===(o=r.at(-1))||void 0===o||o.forEach(((t,r)=>{if(Array.isArray(t)){const r=t;for(let t=0;t<r.length;t++)LC({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else LC({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),r})(e,t,n);return{data:i,size:{x:null!==(r=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0,y:i.length}}};function DC(e){return DC="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},DC(e)}function PC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function OC(e,t,n){return t&&_C(e.prototype,t),n&&_C(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function TC(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&&qC(e,t)}function kC(e){return kC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kC(e)}function qC(e,t){return qC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qC(e,t)}function NC(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 FC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kC(e);if(t){var o=kC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return NC(this,n)}}function zC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jC(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 jC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $C={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:GC(e),value:GC(t),useEqualSign:n}}(n,o,i))}})),t}};function GC(e){try{return decodeURIComponent(e)}catch(t){return e}}function BC(e){if(!(this instanceof BC))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return $C.fromSearchString(t.search)}}})}function HC(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}BC.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},BC.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=HC((t=e[r]).key),t.value?n+="=".concat(HC(t.value)):n+=t.useEqualSign?"=":"";return n};var WC,VC=function(){function e(t){PC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return OC(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}(),YC=function(){function e(){PC(this,e)}return OC(e,[{key:"decode",value:function(e){for(var t,n="",r=new VC(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),UC=function(e){return e>=0&&e<=1114111},KC=function(e){return e.match(/[\s]/)},XC=function(e){TC(n,e);var t=FC(n);function n(){return PC(this,n),t.apply(this,arguments)}return OC(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!KC(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return UC(a)?String.fromCharCode(a):"�"}}]),n}(YC),JC=function(){function e(t,n){PC(this,e),this._key=t,this._value=n}return OC(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),ZC=function(){function e(){PC(this,e)}return OC(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return JC.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return JC.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||JC.newInstanceIfNeeded(e,t,this._value)}}]),e}(),QC=function(){function e(){PC(this,e),this.clear()}return OC(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 ZC);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),ew=function(){var e,t,n,r=[],o=[],i=new QC;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),tw=function(e){TC(n,e);var t=FC(n);function n(){return PC(this,n),t.apply(this,arguments)}return OC(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,ew.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=ew.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&UC(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&UC(r)?String.fromCharCode(r):null}}]),n}(YC),nw=function(e){TC(n,e);var t=FC(n);function n(){return PC(this,n),t.apply(this,arguments)}return OC(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),UC(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(YC),rw=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(WC=document.createElement("div"));var ow=Array.prototype.indexOf,iw=[",",".","_"," "],aw={default:[",",".","-","_"," "]},lw={width:["%"],height:["%"]},sw={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},uw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":sw.image,"background-color":sw.color,"border-color":sw.color,"border-image":sw.image,color:sw.color,icon:sw.image,"list-style-image":sw.image,"outline-color":sw.color},cw={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function dw(e,t,n){var r;if(t){if(ow)return ow.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function pw(e){if(null==e)return"";var t,n=document.createTextNode(e);return WC.appendChild(n),t=WC.innerHTML,WC.removeChild(n),t}function fw(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=mw(e).toLowerCase(),t=mw(t),dw(e,cw.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<cw.attr_val;i++)if(t.toLowerCase().match(cw.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=lw[e])||(r=aw.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&dw(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function hw(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=mw(e).toLowerCase(),t=mw(t),dw(e,cw.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<cw.css_val.length;r++)if(t.toLowerCase().indexOf(cw.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=uw[e])||(o=sw.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&dw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function mw(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new tw,new nw,new XC];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var gw=[],bw=0;bw<255;bw++)gw[bw]=bw>=48&&bw<=57||bw>=65&&bw<=90||bw>=97&&bw<=122?null:bw.toString(16);var vw=function(e){return pw(e.unsafe)},yw=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=hw(t,n[t],!0),i+=hw(t,n[t],!0),o[t]=r[t]);return e.map?o:i},xw=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=fw(i,t[i],!0),o+=fw(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function Sw(e,t){throw new Error(t)}var Ew={canonicalize:mw,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===DC(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?vw(e):"css"===e.context?(null!=e.map&&"object"!==DC(e.map)&&Sw(this,"Invalid parameter type"),yw(e)):"attr"===e.context?(null!=e.map&&"object"!==DC(e.map)&&Sw(this,"Invalid parameter type"),xw(e)):void Sw(this,"Invalid parameter type")},encodeForAttr:fw,encodeForAttr2:function(e){return fw("nonsens",e,!0)},encodeForCSS:hw,encodeForHref:function(e){mw(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new BC(e),n=BC.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+BC.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=iw),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),dw(o,t)>=0||null==gw[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:pw,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=mw(t).toLowerCase():Sw(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=zC(null!==(t=rw.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const Cw=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},ww=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"}}},Rw=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&Ew.isSafeDataURL(t)?{type:QE.Image,url:t,text:e,imageSize:n,resolvedImagePosition:ww(r)}:{type:QE.Text,url:void 0,text:e},Lw=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===eC.Attribute||null==n?void 0:n.urlLabel},Aw=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:QE.Link,url:Ew.encodeForHref(t),text:e}}catch(t){return{type:QE.Text,url:void 0,text:e}}},Iw=(e,t,n,r)=>{var o,i;const a=(e=>{switch(null==e?void 0:e.type){case"url":return QE.Link;case"image":return QE.Image;default:return QE.Text}})(t);return a!==QE.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===QE.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===eC.Attribute){var o;const r=Lw(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return Aw({text:i,url:r})}if(r===eC.Dimension){var i;const r=Lw(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return Aw({text:r,url:e.qText})}return{type:QE.Text,url:void 0,text:e.qText}})(e,t,n):{type:QE.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=Cw(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return Rw({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return Rw({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=Cw(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return Rw({text:i,url:t,imageSize:r,imagePosition:o})}return{type:QE.Text,url:void 0,text:e.qText}})(e,t,n)},Mw=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?hg(s):null,c=l?hg(l):null,d=((e,t)=>e||!t?null:cg(t)?um.WHITE:um.TEXT)(c,u);return{color:null!=d?d:c,background:u}},Dw=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:Dw(e,t)),e),Pw=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:nn-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,Dw(l,e))},_w=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const h=!c&&e.qType===Gt.NX_DIM_CELL_PSEUDO;let m="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;m=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else m=e.qText;const g={id:wC(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:Pw(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===Gt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===Gt.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===Gt.NX_DIM_CELL_NULL,isPseudoDimension:h,expressionColor:Mw(s,e),selectionCellType:u?$t.NX_CELL_LEFT:$t.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:h?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:Iw({...e,qText:m},l===rC?void 0:l.representation,s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},Ow=(e,t,n,r,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,h=-1){e[f]||(e[f]={}),s&&h++;const m=o.leftDimensionInfoIndexes.indexOf(rC);p.forEach(((p,g)=>{var b;u+=0===g?0:1;const v=n.qTop-r.page*r.rowsPerPage,y=Math.max(0,v+u-p.qUp),x=n.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&h<=m){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===Gt.NX_DIM_CELL_NORMAL||p.qType===Gt.NX_DIM_CELL_NULL||p.qType===Gt.NX_DIM_CELL_TOTAL)h<m&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===Gt.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},h=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let L=f;s&&(L=m>=1&&h>=m?h+1:h,0===h&&0===m&&0===p.qSubNodes.length&&(L=0));const A=s&&void 0===(null===(b=e[f][y])||void 0===b?void 0:b.ref.qText)||!e[f][y]?_w({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:h},env:l,pageInfo:r}):e[f][y];if(e[f][y]=A,p.qSubNodes.length){const e=s?0:f+1;t(c||A,A,p.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},Tw=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r[n+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},kw=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},qw=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=Ow(e.grid,l,s,n,r,o,i,a);Tw(u,n.rowsOnCurrentPage);const c=kw(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},Nw=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===Gt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:wC(),ref:t,isNull:u}}))})),o},Fw=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?Nw({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},zw=(e,t,n,r,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var h;u+=0===f?0:1;const m=n.qLeft+u-d.qUp,g=null!==(h=e[p][m])&&void 0!==h?h:_w({node:d,parent:c,root:a,x:m,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,env:l,pageInfo:s});e[p][m]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},jw=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=zw(e.grid,s,u,n,r,o,i,a,l);Tw(c,n.size.x);const d=kw(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},$w=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),Gw=(e,t,n,r,o)=>{const{env:i}=GE(),[a,l]=I(null),s=((e,t,n)=>A((()=>({left:e.map($w),top:t.map($w),measures:n.map($w)})),[n,e,t]))(r,o,t.visibleMeasureInfo),u=A((()=>MC(t,o,r)),[t,o,r]),c=P((()=>e.slice(1).reduce(((e,t)=>Fw({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return Nw({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),d=P((()=>e.slice(1).reduce(((e,r)=>jw({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n})),((e,t,n,r,o,i,a)=>{const{qArea:l,qTop:s}=e,u=zw([],s,l,t,n,r,o,i,a);Tw(u,t.size.x);const c=kw(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(e[0],t,o,s.top,u.size.y,i,n))),[e,t,o,s.top,u.size.y,i,n]),p=P((()=>e.slice(1).reduce(((e,o)=>qw({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})),((e,t,n,r,o,i)=>{const{qArea:a,qLeft:l}=e,s=Ow([],l,a,n,t,r,o,i);Tw(s,n.rowsOnCurrentPage);const u=kw(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(e[0],t,n,r,s.left,i))),[e,t,n,r,s,i]),[f,h]=I((()=>c())),[m,g]=I((()=>d())),[b,v]=I((()=>p()));zb((()=>{h(c())}),[c]),zb((()=>{g(d())}),[d]),zb((()=>{v(p())}),[p]),zb((()=>{a&&a.forEach((e=>{h((t=>Fw({prevData:t,dataPage:e,pageInfo:n}))),g((r=>jw({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n}))),v((o=>qw({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=P((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:m,leftDimensionData:b,attrExprInfoIndexes:s,nextPageHandler:y}},Bw=Math.sqrt(1e4),Hw=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/Ft.PixelsMin)}),Ww=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/Bw),r=Math.ceil(e.qHeight/Bw);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*Bw,qTop:e.qTop+n*Bw,qWidth:Math.min(Bw,e.qWidth-o*Bw),qHeight:Math.min(Bw,e.qHeight-n*Bw)});return t};function Vw({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=M(e);return t.current=e,t})(n.page),i=e,a=P((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,nC,e,t,!1))}),[i]),l=P((async(e,t)=>{await(null==i?void 0:i.collapseTop(nC,e,t,!1))}),[i]),s=P((async(e,t)=>{await(null==i?void 0:i.expandLeft(nC,e,t,!1))}),[i]),u=P((async(e,t)=>{await(null==i?void 0:i.expandTop(nC,e,t,!1))}),[i]),c=P((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(nC,e.reduce(((e,t)=>[...e,...Ww(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=P(((t,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case It.Dimension:c=[{qPath:`${nC}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case It.Measures:if(o)c=l.map(((e,t)=>({qPath:`${nC}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${nC}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case It.Pivot:c=[{qPath:`${nC}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:n,oldValue:r}=e;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...t})}}));null==e||e.applyPatches(d,!0)}),[e,r]),p=P((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${nC}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return A((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const Yw=(e,t)=>e>t?Pt.Forward:e<t?Pt.Backward:Pt.None,Uw=(e,t,n)=>(r,o)=>{if(r===Gt.NX_DIM_CELL_PSEUDO)return rC;const i=t[n+o];return e[i]},Kw=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},Xw=({width:e,height:t,children:n,isLeftGrid:r})=>Fs.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+on},children:n}),Jw=e=>`scrollable-container--${e}`,Zw=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=GE();return Fs.jsx("div",{ref:t,"data-key":Jw(u),style:{width:n,height:r,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var Qw=S.forwardRef(Zw);const eR=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>Fs.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function tR(){return tR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tR.apply(this,arguments)}function nR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rR(e,t){return rR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rR(e,t)}function oR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rR(e,t)}var iR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function aR(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||iR(r)&&iR(o)))return!1;var r,o;return!0}function lR(e,t){var n;void 0===t&&(t=aR);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function sR(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var uR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function cR(e){cancelAnimationFrame(e.id)}function dR(e,t){var n=uR();var r={id:requestAnimationFrame((function o(){uR()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var pR=-1;function fR(e){if(void 0===e&&(e=!1),-1===pR||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),pR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return pR}var hR=null;function mR(e){if(void 0===e&&(e=!1),null===hR||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?hR="positive-descending":(t.scrollLeft=1,hR=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),hR}return hR}var gR=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function bR(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,nR(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:nR(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=lR((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=lR((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=lR((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(mR()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&cR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=dR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}oR(t,e),t.getDerivedStateFromProps=function(e,t){return vR(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=fR();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(mR()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&cR(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?gR: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(r>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:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:tR({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,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof r){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,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),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,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),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}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var vR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},yR=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},xR=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},SR=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},ER=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?CR(e,t,n,i,0,r):wR(e,t,n,Math.max(0,i),r)},CR=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=SR(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},wR=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&SR(e,t,r,n).offset<o;)r+=a,a*=2;return CR(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},RR=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=SR(e,t,n,i),u="column"===e?xR(t,i):yR(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},LR=bR({getColumnOffset:function(e,t,n){return SR("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return ER("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=SR("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=SR("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:yR,getEstimatedTotalWidth:xR,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return RR("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return RR("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return SR("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return ER("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=SR("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=SR("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),AR=function(e,t){return e};function IR(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,nR(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:nR(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=lR((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=lR((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,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},r._getItemStyleCache=void 0,r._getItemStyleCache=lR((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(mR()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&cR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=dR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}oR(t,e),t.getDerivedStateFromProps=function(e,t){return MR(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?fR():0:s.scrollHeight>s.clientHeight?fR():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(mR()){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&&cR(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?AR: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=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:tR({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],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var MR=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},DR=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},PR=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=DR(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},_R=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&DR(e,n,t).offset<r;)n+=i,i*=2;return PR(e,t,Math.min(n,o-1),Math.floor(n/2),r)},OR=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},TR=IR({getItemOffset:function(e,t,n){return DR(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:OR,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=DR(e,t,o),p=OR(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?PR(e,t,o,0,n):_R(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=DR(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=DR(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function kR(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var qR=["style"],NR=["style"];function FR(e,t){var n=e.style,r=sR(e,qR),o=t.style,i=sR(t,NR);return!kR(n,o)&&!kR(r,i)}const zR=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),jR=10,$R=(e,t)=>e.current===Pt.Backward?t:0,GR=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e[o];if(void 0===n||void 0===n[t])return!0}return!1},BR=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,HR=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(GR(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&BR(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},WR=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Pt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return HR({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},VR=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=$R(n,jR),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+jR,l-u),pageTop:o,qHeight:a}})(r,o,n),u=HR({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...WR({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},YR=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},UR=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,KR=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(YR(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&UR(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},XR=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=$R(n,jR),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+jR,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=KR({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===Pt.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=KR({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},JR=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Pt.None&&(p=XR({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Pt.None&&(f=VR({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Pt.None&&a.current===Pt.None&&(p=KR({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(h)},ZR=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(JR,100),QR=at(JR,75),eL=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=VE();return Fs.jsx("div",{style:{...e,...cn,...hn(n,r,l,o),...gn({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},tL=({children:e,verticalAlign:t,width:n,right:r})=>Fs.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,alignSelf:t},children:e}),nL=e=>{const{type:t,imageSize:n}=e;return t!==QE.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},rL=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function oL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iL=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){oL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),aL=D(iL);function lL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sL=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),uL=D(sL),cL=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(qt)};function dL(e,t){const n=e.isActive(),[r,o]=I(new Map),[i,a]=I(null);_((()=>{const n=()=>{a(null),o(new Map)},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}}),[e,t]);const l=P((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===$t.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=P((t=>async n=>{if(cL(n))return;if(e.isActive()||await e.begin([nC]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,n)=>{const r=new Map(t);return r.has(e.ref.qElemNo)?(r.delete(e.ref.qElemNo),{nextSelectedPivotCells:r,nextSelectedField:0===r.size?null:n}):(r.set(e.ref.qElemNo,e),{nextSelectedPivotCells:r,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===$t.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[nC,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,r,i]),u=P((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return A((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const pL=O({select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),fL=()=>E(pL),hL=({children:e,selections:t,updatePageInfo:n})=>{const r=dL(t,n);return Fs.jsx(pL.Provider,{value:r,children:e})};var mL;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(mL||(mL={}));const gL={brighter:.5,darker:.3,opacity:.03},bL=(e,{cell:t,styleService:n})=>{if(e===mL.Background||e===mL.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},vL=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=bL(mL.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?bL(mL.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${ug(i=o,gL)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},yL=({cell:e,styleService:t,isCellSelected:n})=>n?"white":bL(mL.Color,{cell:e,styleService:t}),xL=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=bL(mL.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?tn:o},SL=({cell:e,styleService:t})=>bL(mL.FontStyle,{cell:e,styleService:t}),EL=({cell:e,styleService:t})=>bL(mL.TextDecoration,{cell:e,styleService:t}),CL=e=>e?"pointer":"default",wL=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},RL=(e,t)=>{if(!e.isLeftColumn||e.representation.type===QE.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},LL=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=VE(),{interactions:i}=GE(),{isActive:a}=fL();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=yL({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=e.ref.qCanExpand?uL:aL;let d;return d=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,Fs.jsx(c,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...RL(e,o)},onClick:l?void 0:wL({cell:e,expandOrCollapse:d})})},AL=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},IL=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},ML=({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o})=>{const i=`calc(100% - ${n?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==r?a*Math.max(r,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}}},DL=(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"}},PL=e=>{if("alwaysFit"===e)return"contain"},_L=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=GE(),t=M(null),{promise:n,resolve:r}=A((()=>rL()),[]);return _((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(o=t.current)&&void 0!==o&&o.complete&&r()),()=>r()}),[t,e,n,r]),{onLoad:P((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return Fs.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==d?void 0:d.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...ML({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:Fs.jsx("img",{src:s,alt:u,style:{width:IL(c),height:AL(c),objectFit:PL(c),objectPosition:DL(c,d),...f},onLoad:l,ref:a})})},OL=(e,t,n)=>{if(!n.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN")||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}},TL={display:"flex",flexDirection:"row",alignItems:"center"},kL={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},qL=(e,t,n,r)=>t?{...kL,...e.nullValues}:n?{...TL,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...TL,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},NL=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...dn,...!n&&pn(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?tn:s,fontStyle:u,textDecoration:c}},FL=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==QE.Image?OL(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},zL=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():r.text,s=NL(n,o,i,a,e.isNull);return r.type!==QE.Image||e.isNull?Fs.jsx("span",{style:{padding:4,...s},children:l}):Fs.jsx(_L,{representation:r,styleService:n,textStyle:s,isLeftColumn:!0})},jL=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},$L="flex-start",GL=(e,t)=>{return e.isNull?$L:t.type===QE.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:$L;var n},BL=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=VE(),{env:a}=GE(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:b}=r,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 Fs.jsx(eL,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?jL(g,t):jL(m,e),E=u.visibleMeasureInfo[S],C=Iw(v.ref,E.representation,b[S],a),w=!v.isNull&&f(e,t),R=v.isNull?u.getNullValueText():C.text,L=!v.isNull||!Number.isNaN(+R),A=Mw(b[S],v.ref),I={...qL(i,v.isNull,w,A.background),...hn(y,x,i.grid.border,c),...gn({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...cn,padding:"0px 4px",display:"flex",justifyContent:FL(v,E,C,L,a.flags)};return Fs.jsx("div",{className:Tt,title:R,style:{...I,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Fs.jsx(tL,{width:nL(C),verticalAlign:GL(v,C),children:Fs.jsx(zL,{cell:v,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:A.color})})})};var HL=S.memo(BL,FR);const WL=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},VL=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},YL={...un,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},UL=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,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}=VE(),x={...YL,borderColor:v,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>P((r=>{var o;const i=n?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[r];return zR(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>P((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return zR(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,n,r)=>P(((o,i)=>{var a,l;return!!(null!==(a=t.grid.at(r-1))&&void 0!==a&&null!==(a=a[o])&&void 0!==a&&a.isTotal||null!==(l=e.grid.at(n-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal)}),[t,e,n,r]))(s,u,d.length,c.length),w=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>{const{downloadService:u}=GE();return P((async({overscanColumnStartIndex:c,overscanColumnStopIndex:d,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{e.gridColumnStartIndex=c,e.gridRowStartIndex=p,e.gridWidth=d-c+1,e.gridHeight=f-p+1;const h=e.gridWidth+i+(s.current===Pt.None?0:jR),m=e.gridHeight+a+(l.current===Pt.None?0:jR);let g=ZR;m*h>1500&&(g=QR),g(t,r,n,o,e,l,s,u)}),[e,r,t,n,l,s,o,i,a,u])})({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:b});return zb((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),k((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:Fs.jsx(LR,{ref:t,style:x,columnCount:a.size.x,columnWidth:h,height:n,rowCount:m.rowsOnCurrentPage,rowHeight:r,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:r(),estimatedColumnWidth:h(),itemKey:VL,children:HL})};var KL=T(UL);function XL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JL=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"}),S.createElement("use",{fillRule:"evenodd"})),ZL=D(JL),QL=e=>{const[t,n]=I(!1);return zb((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},eA=({interactions:e,dataModel:t})=>{const[n,r]=I(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=QL([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!cL(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function tA(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===an.Transparent?um.WHITE:l,u=null===(o=Im(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=Im(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}const nA=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a})=>{const{interactions:l}=GE(),{isActive:s}=fL(),u=VE(),[,c]=I({});if(!(e.canBeResized&&!!l.active&&!s))return null;const d=tA(u,e);return Fs.jsx(tS,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:d,updateWidthCallback:t=>{c({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{null==n||n.applyColumnWidth(t,e),a&&(null==n||n.applyIndentModeColumnWidth(t))},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})},rA=e=>e.scrollTop;function oA(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function iA(e){return xl("MuiPaper",e)}Sl("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 aA=["className","component","elevation","square","variant"],lA=Kx("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Tn({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&&Tn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ry("#fff",Zx(t.elevation))}, ${Ry("#fff",Zx(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var sA=x.forwardRef((function(e,t){const n=vx({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=$n(n,aA),u=Tn({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return gl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},iA,o)})(u);return Fs.jsx(lA,Tn({as:o,ownerState:u,className:Hs(c.root,r),ref:t},s))}));function uA(e){return"string"==typeof e}function cA(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function dA(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const pA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fA(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=$n(e,pA),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Hs(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Tn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Tn({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=cA(Tn({},o,r)),l=dA(r),s=dA(o),u=t(a),c=Hs(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Tn({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Tn({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Tn({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||uA(e)?t:Tn({},t,{ownerState:Tn({},t.ownerState,n)})}(n,Tn({},s,{ref:el(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var hA=Sl("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const mA=["center","classes","className"];let gA,bA,vA,yA,xA=e=>e;const SA=fa(gA||(gA=xA`
101
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),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(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(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"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},xb({exports:{}});const Pb=3,_b="N";function Ob(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function Tb({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=Pb}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=A((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=Cb(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=Cb((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=Ob(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(_b).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var kb,qb=N;kb=qb.createRoot,qb.hydrateRoot;function Nb(e,t){const[n,r]=I(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var Fb={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 zb=({translator:e})=>(A((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Fb).forEach((t=>{e.add(Fb[t])}))}}(e)),[e]),e),jb=document.createElement("textarea");function $b(e){jb.value=e,document.body.appendChild(jb),jb.select(),jb.setSelectionRange(0,jb.value.length),document.execCommand("copy"),document.body.removeChild(jb)}jb.style.position="absolute",jb.style.left="-9999px",jb.setAttribute("readonly","");function Gb(){null==a||a(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Tt}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>$b(n))):$b(n))})(r)}})}))}var Bb="$$material";const Hb=["values","unit","step"],Wb=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)=>Tn({},e,{[t.key]:t.val})),{})};function Vb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=$n(e,Hb),i=Wb(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Tn({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var Yb={borderRadius:4};function Ub(e,t){return t?Sa(e,t,{clone:!1}):e}const Kb={xs:0,sm:600,md:900,lg:1200,xl:1536},Xb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Kb[e]}px)`};function Jb(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Xb;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Xb;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Kb).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Zb(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Qb(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Zb(e,n)||r,t&&(o=t(o,r,e)),o}function ev(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Zb(e.theme,r)||{};return Jb(e,i,(e=>{let r=Qb(a,o,e);return e===r&&"string"==typeof e&&(r=Qb(a,o,`${t}${"default"===e?"":Ya(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const tv={m:"margin",p:"padding"},nv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},rv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ov=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!rv[e])return[e];e=rv[e]}const[t,n]=e.split(""),r=tv[t],o=nv[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),iv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],av=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function lv(e,t,n,r){var o;const i=null!=(o=Zb(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function sv(e){return lv(e,"spacing",8)}function uv(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function cv(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=uv(t,n),e)),{})}(ov(n),r);return Jb(e,e[n],o)}function dv(e,t){const n=sv(e.theme);return Object.keys(e).map((r=>cv(e,t,r,n))).reduce(Ub,{})}function pv(e){return dv(e,iv)}function fv(e){return dv(e,av)}function hv(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Ub(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function mv(e){return"number"!=typeof e?e:`${e}px solid`}function gv(e,t){return ev({prop:e,themeKey:"borders",transform:t})}pv.propTypes={},pv.filterProps=iv,fv.propTypes={},fv.filterProps=av;const bv=gv("border",mv),vv=gv("borderTop",mv),yv=gv("borderRight",mv),xv=gv("borderBottom",mv),Sv=gv("borderLeft",mv),Ev=gv("borderColor"),Cv=gv("borderTopColor"),wv=gv("borderRightColor"),Rv=gv("borderBottomColor"),Lv=gv("borderLeftColor"),Av=gv("outline",mv),Iv=gv("outlineColor"),Mv=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=lv(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:uv(t,e)});return Jb(e,e.borderRadius,n)}return null};Mv.propTypes={},Mv.filterProps=["borderRadius"],hv(bv,vv,yv,xv,Sv,Ev,Cv,wv,Rv,Lv,Mv,Av,Iv);const Dv=e=>{if(void 0!==e.gap&&null!==e.gap){const t=lv(e.theme,"spacing",8),n=e=>({gap:uv(t,e)});return Jb(e,e.gap,n)}return null};Dv.propTypes={},Dv.filterProps=["gap"];const Pv=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=lv(e.theme,"spacing",8),n=e=>({columnGap:uv(t,e)});return Jb(e,e.columnGap,n)}return null};Pv.propTypes={},Pv.filterProps=["columnGap"];const _v=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=lv(e.theme,"spacing",8),n=e=>({rowGap:uv(t,e)});return Jb(e,e.rowGap,n)}return null};_v.propTypes={},_v.filterProps=["rowGap"];function Ov(e,t){return"grey"===t?t:e}hv(Dv,Pv,_v,ev({prop:"gridColumn"}),ev({prop:"gridRow"}),ev({prop:"gridAutoFlow"}),ev({prop:"gridAutoColumns"}),ev({prop:"gridAutoRows"}),ev({prop:"gridTemplateColumns"}),ev({prop:"gridTemplateRows"}),ev({prop:"gridTemplateAreas"}),ev({prop:"gridArea"}));function Tv(e){return e<=1&&0!==e?100*e+"%":e}hv(ev({prop:"color",themeKey:"palette",transform:Ov}),ev({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ov}),ev({prop:"backgroundColor",themeKey:"palette",transform:Ov}));const kv=ev({prop:"width",transform:Tv}),qv=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Kb[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Tv(t)}};return Jb(e,e.maxWidth,t)}return null};qv.filterProps=["maxWidth"];const Nv=ev({prop:"minWidth",transform:Tv}),Fv=ev({prop:"height",transform:Tv}),zv=ev({prop:"maxHeight",transform:Tv}),jv=ev({prop:"minHeight",transform:Tv});ev({prop:"size",cssProperty:"width",transform:Tv}),ev({prop:"size",cssProperty:"height",transform:Tv});hv(kv,qv,Nv,Fv,zv,jv,ev({prop:"boxSizing"}));var $v={border:{themeKey:"borders",transform:mv},borderTop:{themeKey:"borders",transform:mv},borderRight:{themeKey:"borders",transform:mv},borderBottom:{themeKey:"borders",transform:mv},borderLeft:{themeKey:"borders",transform:mv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:mv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Mv},color:{themeKey:"palette",transform:Ov},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ov},backgroundColor:{themeKey:"palette",transform:Ov},p:{style:fv},pt:{style:fv},pr:{style:fv},pb:{style:fv},pl:{style:fv},px:{style:fv},py:{style:fv},padding:{style:fv},paddingTop:{style:fv},paddingRight:{style:fv},paddingBottom:{style:fv},paddingLeft:{style:fv},paddingX:{style:fv},paddingY:{style:fv},paddingInline:{style:fv},paddingInlineStart:{style:fv},paddingInlineEnd:{style:fv},paddingBlock:{style:fv},paddingBlockStart:{style:fv},paddingBlockEnd:{style:fv},m:{style:pv},mt:{style:pv},mr:{style:pv},mb:{style:pv},ml:{style:pv},mx:{style:pv},my:{style:pv},margin:{style:pv},marginTop:{style:pv},marginRight:{style:pv},marginBottom:{style:pv},marginLeft:{style:pv},marginX:{style:pv},marginY:{style:pv},marginInline:{style:pv},marginInlineStart:{style:pv},marginInlineEnd:{style:pv},marginBlock:{style:pv},marginBlockStart:{style:pv},marginBlockEnd:{style:pv},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:Dv},rowGap:{style:_v},columnGap:{style:Pv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tv},maxWidth:{style:qv},minWidth:{transform:Tv},height:{transform:Tv},maxHeight:{transform:Tv},minHeight:{transform:Tv},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Gv(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Zb(n,l)||{};if(u)return u(o);return Jb(o,t,(t=>{let n=Qb(c,s,t);return t===n&&"string"==typeof t&&(n=Qb(c,s,`${e}${"default"===t?"":Ya(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:$v;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=Ub(s,e(n,o,i,a));else{const e=Jb({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Ub(s,e):s[n]=t({sx:o,theme:i})}else s=Ub(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Bv=Gv();Bv.filterProps=["sx"];var Hv=Bv;function Wv(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const Vv=["breakpoints","palette","spacing","shape"];function Yv(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=$n(e,Vv),l=Vb(n),s=function(e=8){if(e.mui)return e;const t=sv({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=Sa({breakpoints:l,direction:"ltr",components:{},palette:Tn({mode:"light"},r),spacing:s,shape:Tn({},Yb,i)},a);return u.applyStyles=Wv,u=t.reduce(((e,t)=>Sa(e,t)),u),u.unstable_sxConfig=Tn({},$v,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Hv({sx:e,theme:this})},u}var Uv=Object.freeze({__proto__:null,default:Yv,private_createBreakpoints:Vb,unstable_applyStyles:Wv});function Kv(e=null){const t=x.useContext(na);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Xv=Yv();function Jv(e=Xv){return Kv(e)}const Zv=["sx"],Qv=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:$v;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function ey(e){const{sx:t}=e,n=$n(e,Zv),{systemProps:r,otherProps:o}=Qv(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return ya(n)?Tn({},r,n):r}:Tn({},r,t),Tn({},o,{sx:i})}var ty=Object.freeze({__proto__:null,default:Hv,extendSxProp:ey,unstable_createStyleFunctionSx:Gv,unstable_defaultSxConfig:$v});const ny=["className","component"];function ry({props:e,name:t,defaultTheme:n,themeId:r}){let o=Jv(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?bl(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function oy(e){if(e.type)return e;if("#"===e.charAt(0))return oy(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Lr(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Lr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function iy(e,t){return e=oy(e),t=function(e,t=0,n=1){return wl(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}var ay=x.createContext(null);function ly(){return x.useContext(ay)}var sy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function uy(e){const{children:t,theme:n}=e,r=ly(),o=x.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Tn({},e,t)}(r,n);return null!=e&&(e[sy]=null!==r),e}),[n,r]);return js.jsx(ay.Provider,{value:o,children:t})}const cy=["value"],dy=x.createContext();function py(e){let{value:t}=e,n=$n(e,cy);return js.jsx(dy.Provider,Tn({value:null==t||t},n))}const fy={};function hy(e,t,n,r=!1){return x.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Tn({},t,{[e]:i}):i;return r?()=>a:a}return Tn({},t,e?{[e]:n}:n)}),[e,t,n,r])}function my(e){const{children:t,theme:n,themeId:r}=e,o=Kv(fy),i=ly()||fy,a=hy(r,o,n),l=hy(r,i,n,!0),s="rtl"===a.direction;return js.jsx(uy,{theme:l,children:js.jsx(na.Provider,{value:a,children:js.jsx(py,{value:s,children:t})})})}var gy={},by={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(by);var vy=by.exports,yy=j(Ar),xy=j(Rl),Sy=vy;Object.defineProperty(gy,"__esModule",{value:!0});var Ey=gy.alpha=ky;gy.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Dy(e),a=Dy(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return _y({type:"rgb",values:l})},gy.colorChannel=void 0;var Cy=gy.darken=qy;gy.decomposeColor=Dy,gy.emphasize=Fy;var wy=gy.getContrastRatio=function(e,t){const n=Ty(e),r=Ty(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};gy.getLuminance=Ty,gy.hexToRgb=My,gy.hslToRgb=Oy;var Ry=gy.lighten=Ny;gy.private_safeAlpha=function(e,t,n){try{return ky(e,t)}catch(t){return e}},gy.private_safeColorChannel=void 0,gy.private_safeDarken=function(e,t,n){try{return qy(e,t)}catch(t){return e}},gy.private_safeEmphasize=function(e,t,n){try{return Fy(e,t)}catch(t){return e}},gy.private_safeLighten=function(e,t,n){try{return Ny(e,t)}catch(t){return e}},gy.recomposeColor=_y,gy.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Dy(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 Ly=Sy(yy),Ay=Sy(xy);function Iy(e,t=0,n=1){return(0,Ay.default)(e,t,n)}function My(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Dy(e){if(e.type)return e;if("#"===e.charAt(0))return Dy(My(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Ly.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,Ly.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Py=e=>{const t=Dy(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};gy.colorChannel=Py;function _y(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Oy(e){e=Dy(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),_y({type:l,values:s})}function Ty(e){let t="hsl"===(e=Dy(e)).type||"hsla"===e.type?Dy(Oy(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 ky(e,t){return e=Dy(e),t=Iy(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,_y(e)}function qy(e,t){if(e=Dy(e),t=Iy(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return _y(e)}function Ny(e,t){if(e=Dy(e),t=Iy(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return _y(e)}function Fy(e,t=.15){return Ty(e)>.5?qy(e,t):Ny(e,t)}gy.private_safeColorChannel=(e,t)=>{try{return Py(e)}catch(t){return e}};var zy={black:"#000",white:"#fff"};var jy={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 $y={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 Gy={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 By={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 Hy={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 Wy={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 Vy={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 Yy=["mode","contrastThreshold","tonalOffset"],Uy={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:zy.white,default:zy.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}},Ky={text:{primary:zy.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:zy.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 Xy(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Ry(e.main,o):"dark"===t&&(e.dark=Cy(e.main,i)))}function Jy(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=$n(e,Yy),i=e.primary||function(e="light"){return"dark"===e?{main:Hy[200],light:Hy[50],dark:Hy[400]}:{main:Hy[700],light:Hy[400],dark:Hy[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:$y[200],light:$y[50],dark:$y[400]}:{main:$y[500],light:$y[300],dark:$y[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Gy[500],light:Gy[300],dark:Gy[700]}:{main:Gy[700],light:Gy[400],dark:Gy[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Wy[400],light:Wy[300],dark:Wy[700]}:{main:Wy[700],light:Wy[500],dark:Wy[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Vy[400],light:Vy[300],dark:Vy[700]}:{main:Vy[800],light:Vy[500],dark:Vy[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:By[400],light:By[300],dark:By[700]}:{main:"#ed6c02",light:By[500],dark:By[900]}}(t);function d(e){return wy(e,Ky.text.primary)>=n?Ky.text.primary:Uy.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Tn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Lr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Lr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Xy(e,"light",o,r),Xy(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ky,light:Uy};return Sa(Tn({common:Tn({},zy),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:jy,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Zy=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Qy={textTransform:"uppercase"},ex='"Roboto", "Helvetica", "Arial", sans-serif';function tx(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=ex,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=$n(n,Zy),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return Tn({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===ex?{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,Qy),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Qy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Sa(Tn({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function nx(...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 rx=["none",nx(0,2,1,-1,0,1,1,0,0,1,3,0),nx(0,3,1,-2,0,2,2,0,0,1,5,0),nx(0,3,3,-2,0,3,4,0,0,1,8,0),nx(0,2,4,-1,0,4,5,0,0,1,10,0),nx(0,3,5,-1,0,5,8,0,0,1,14,0),nx(0,3,5,-1,0,6,10,0,0,1,18,0),nx(0,4,5,-2,0,7,10,1,0,2,16,1),nx(0,5,5,-3,0,8,10,1,0,3,14,2),nx(0,5,6,-3,0,9,12,1,0,3,16,2),nx(0,6,6,-3,0,10,14,1,0,4,18,3),nx(0,6,7,-4,0,11,15,1,0,4,20,3),nx(0,7,8,-4,0,12,17,2,0,5,22,4),nx(0,7,8,-4,0,13,19,2,0,5,24,4),nx(0,7,9,-4,0,14,21,2,0,5,26,4),nx(0,8,9,-5,0,15,22,2,0,6,28,5),nx(0,8,10,-5,0,16,24,2,0,6,30,5),nx(0,8,11,-5,0,17,26,2,0,6,32,5),nx(0,9,11,-5,0,18,28,2,0,7,34,6),nx(0,9,12,-6,0,19,29,2,0,7,36,6),nx(0,10,13,-6,0,20,31,3,0,8,38,7),nx(0,10,13,-6,0,21,33,3,0,8,40,7),nx(0,10,14,-6,0,22,35,3,0,8,42,7),nx(0,11,14,-7,0,23,36,3,0,9,44,8),nx(0,11,15,-7,0,24,38,3,0,9,46,8)];const ox=["duration","easing","delay"],ix={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)"},ax={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lx(e){return`${Math.round(e)}ms`}function sx(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ux(e){const t=Tn({},ix,e.easing),n=Tn({},ax,e.duration);return Tn({getAutoHeightDuration:sx,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return $n(r,ox),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:lx(o)} ${i} ${"string"==typeof a?a:lx(a)}`)).join(",")}},e,{easing:t,duration:n})}var cx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const dx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function px(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=$n(e,dx);if(e.vars)throw new Error(Lr(18));const l=Jy(r),s=Yv(e);let u=Sa(s,{mixins:(c=s.breakpoints,d=n,Tn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:rx.slice(),typography:tx(l,i),transitions:ux(o),zIndex:Tn({},cx)});var c,d;return u=Sa(u,a),u=t.reduce(((e,t)=>Sa(e,t)),u),u.unstable_sxConfig=Tn({},$v,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Hv({sx:e,theme:this})},u}var fx=px();function hx(){const e=Jv(fx);return e[Bb]||e}function mx({props:e,name:t}){return ry({props:e,name:t,defaultTheme:fx,themeId:Bb})}var gx,bx={},vx={exports:{}};var yx,xx={exports:{}};var Sx=j(va),Ex=j(Ca),Cx=j(Ua),wx=j(Va),Rx=j(Uv),Lx=j(ty),Ax=vy;Object.defineProperty(bx,"__esModule",{value:!0});var Ix=bx.default=function(e={}){const{themeId:t,defaultTheme:n=jx,rootShouldForwardProp:r=zx,slotShouldForwardProp:o=zx}=e,i=e=>(0,Tx.default)((0,Mx.default)({},e,{theme:Gx((0,Mx.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Px.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Bx($x(s))}=a,p=(0,Dx.default)(a,Nx),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=zx;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,Px.default)(e,(0,Mx.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,_x.isPlainObject)(e)?r=>Hx(e,(0,Mx.default)({},r,{theme:Gx({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=Gx((0,Mx.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Hx(n,(0,Mx.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=Gx((0,Mx.default)({},e,{defaultTheme:n,themeId:t}));return Hx({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,Mx.default)({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};bx.shouldForwardProp=zx,bx.systemDefaultTheme=void 0;var Mx=Ax((gx||(gx=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(vx)),vx.exports)),Dx=Ax((yx||(yx=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(xx)),xx.exports)),Px=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Fx(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Sx),_x=Ex;Ax(Cx),Ax(wx);var Ox=Ax(Rx),Tx=Ax(Lx);const kx=["ownerState"],qx=["variants"],Nx=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Fx(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Fx=function(e){return e?n:t})(e)}function zx(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const jx=bx.systemDefaultTheme=(0,Ox.default)(),$x=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Gx({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Bx(e){return e?(t,n)=>n[e]:null}function Hx(e,t){let{ownerState:n}=t,r=(0,Dx.default)(t,kx);const o="function"==typeof e?e((0,Mx.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Hx(e,(0,Mx.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Dx.default)(o,qx);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Mx.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Mx.default)({ownerState:n},r,n)):e.style))})),t}return o}var Wx=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var Vx=Ix({themeId:Bb,defaultTheme:fx,rootShouldForwardProp:Wx});const Yx=["theme"];function Ux(e){let{theme:t}=e,n=$n(e,Yx);const r=t[Bb];return js.jsx(my,Tn({},n,{themeId:r?Bb:void 0,theme:r||t}))}var Kx=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const Xx=cc(Op,{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)":{[`& .${Nt}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${Nt}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),Jx=cc(Op)({position:"absolute",height:"100%",width:"3px"}),Zx=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=M({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},h=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};Nb((()=>p&&h()),[e]);const m=e=>{const t=Math.max(e,Ft.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:zt.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},b=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;m(t)},v=e=>{fg(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;m(t)},x=e=>{fg(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},E=!r&&l?e=>{if(e.key===kt.LEFT||e.key===kt.RIGHT){fg(e);const t=5,n=e.key===kt.LEFT?-t:t;m(c.current.columnWidth+n)}else e.key===kt.SPACE||e.key===kt.ENTER?(fg(e),l(e),g()):e.key===kt.ESC&&(fg(e),l(e),m(c.current.initWidth))}:void 0;return S.createElement(Xx,{className:qt,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==s||s(!0),h(e.clientX)},onDoubleClick:()=>a({type:zt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==s||s(!0),h(e.touches[0].clientX))},onKeyDown:E,onBlur:l,onFocus:()=>h(),"data-testid":qt},S.createElement(Jx,{className:Nt}))};function Qx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const eS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Qx(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),tS=D(eS);function nS(){return nS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nS.apply(null,arguments)}const rS=cc(Op,{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"}))),oS=cc(tS,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),iS=cc(dh)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),aS=cc(rf)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),lS=cc(gh)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),sS=cc(gh,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),uS=cc("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"}))),cS=cc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),dS=cc(Td)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),pS=cc(Ff)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function fS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),mS=D(hS);let gS={};const bS=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=I(!1),p=M(null),f=P((e=>{e.stopPropagation(),d(!1)}),[d]);return S.createElement(S.Fragment,null,S.createElement(sS,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),gS={}),null!=a&&a.length&&(d(!0),gS[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&S.createElement(uS,null),S.createElement(cS,null,S.createElement(pS,null,S.createElement(o,null)),S.createElement(dS,{variant:"body2"},r)),null!=a&&a.length?S.createElement(mS,null):null),(null==a?void 0:a.length)&&S.createElement(xS,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=gS,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},vS=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&S.createElement(lS,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>S.createElement(bS,nS({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),yS={appear:200,enter:200,exit:100},xS=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?S.createElement(iS,nS({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:yS,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[vS({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?S.createElement(aS,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,SS={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},ES=(e,t)=>e.some((e=>t[e]>0));function CS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){CS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),RS=D(wS);function LS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const AS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){LS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),IS=D(AS);function MS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const DS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){MS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),PS=D(DS);function _S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_S(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),TS=D(OS);function kS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),NS=D(qS);function FS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),jS=D(zS);function $S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$S(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),BS=D(GS);function HS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const WS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),VS=D(WS);function YS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const US=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),KS=D(US);function XS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),ZS=D(JS);let QS=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const eE=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[QS.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);d.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e)),r(!1)},icon:RS,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e)),r(!1)},icon:TS,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[QS.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:NS,enabled:!0}]}]),n[QS.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:ZS,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:jS,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:KS,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:BS,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:VS,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:IS,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[QS.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:PS,enabled:!0}]}]),d},tE=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const h=zb({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:E}=(({headerData:e,app:t})=>{const[n,r]=I(null),[o,i]=I(SS);return _((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:P((()=>i(SS)),[]),updateSelectionActionsEnabledStatus:P((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:ES(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:ES(["qSelected"],n.qStateCounts),canSelectPossible:ES(["qOption"],n.qStateCounts),canSelectAlternative:ES(["qAlternative"],n.qStateCounts),canSelectExcluded:ES(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),C=P((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,b,g]);_((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{E(e)})).catch((e=>console.error(e))))}),[e,x,E,null==d?void 0:d.model]);const w=P((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?S.createElement(rS,{rightAligned:"right"===m,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&S.createElement(oS,{height:_t,className:Ot,"data-testid":Ot,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},S.createElement(tS,null)),S.createElement(xS,{open:e,anchorEl:n.current,onClose:w,menuGroups:eE({headerData:r,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:C,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},nE=e=>e.isDark?{background:e.color,borderColor:lm.DARK_MODE_BORDER,color:lm.DARK_MODE_TEXT,disabledColor:lm.DARK_MODE_DISABLED,iconColor:lm.DARK_MODE_TEXT}:{background:e.color,borderColor:lm.BORDER_MEDIUM,color:lm.TEXT,disabledColor:lm.DISABLED},rE=cc(Op,{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}`}))),oE=cc(em,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),iE=cc(Hp,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),aE=cc(Td)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),lE=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=A((()=>nE(r.background)),[r]);if(!n.active)return null;const a=o?S.createElement(rE,{footerStyle:i},e):null;return t?N.createPortal(e,t):a},sE=O({}),uE=()=>E(sE),cE=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=A((()=>nE(p.background)),[p]),v=o?o.getBoundingClientRect().width:h.width,y=zb({translator:d}),x=A((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:g,width:v})),[t,n,r,o,i,a,l,s,u,c,y,p,f,h,m,b,g,v]);return S.createElement(sE.Provider,{value:x},e)};let dE=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),pE=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 fE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),mE=D(hE);function gE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){gE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),vE=D(bE);function yE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){yE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),SE=D(xE),EE={FirstPage:vE,PreviousPage:mE,NextPage:mS,LastPage:SE,FirstPageRTL:SE,PreviousPageRTL:mS,NextPageRTL:mE,LastPageRTL:vE},CE=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=uE(),u=EE[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},wE=()=>{const{pageInfo:e,width:t}=uE(),n=0===e.page,{IconComponent:r,styledProps:o}=CE({type:dE.FirstPage,disabledCondition:n,pageNumber:0});return t<=pE.FirstPage?null:S.createElement(iE,o,S.createElement(r,{height:_t}))},RE=(e,t,n=!1)=>{n&&e.key===kt.TAB&&!e.shiftKey&&(fg(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},LE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=uE(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=CE({type:dE.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>RE(e,t,r):null;return o<=pE.LastPage?null:S.createElement(iE,nS({},l,{onKeyDown:s}),S.createElement(a,{height:_t}))},AE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=uE(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=CE({type:dE.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>pE.FirstPage&&o>pE.LastPage)&&t.enabled?e=>RE(e,t,r):null;return S.createElement(iE,nS({},l,{onKeyDown:s}),S.createElement(a,{height:_t}))},IE=()=>{const{pageInfo:e}=uE(),t=0===e.page,{IconComponent:n,styledProps:r}=CE({type:dE.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return S.createElement(iE,r,S.createElement(n,{height:_t}))},ME=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=uE(),{page:o,rowsPerPage:i}=n;if(t<=pE.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return S.createElement(aE,{variant:"caption"},a)},DE=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=uE(),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 S.createElement(S.Fragment,null,S.createElement(aE,{variant:"caption",id:d},u,":"),S.createElement(oE,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},PE=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=uE();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>pE.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=S.createElement(S.Fragment,null,t.rowsPerPageOptions.map((e=>S.createElement("option",{key:e,value:e},e))));return S.createElement(DE,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},_E=1e3,OE="…",TE=({totalPages:e,page:t})=>{const n=Math.min(e,_E),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-_E):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return S.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(S.createElement("option",{key:"startMoreOptions",value:OE,disabled:!0},OE)),o<e-1&&a.push(S.createElement("option",{key:"endMoreOptions",value:OE,disabled:!0},OE)),S.createElement(S.Fragment,null,a)},kE=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=uE(),{page:o}=e;if(t<=pE.SelectPage)return null;const i=S.createElement(TE,{totalPages:n,page:o});return S.createElement(DE,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};var qE=T((e=>S.createElement(cE,e,S.createElement(PE,null),S.createElement(kE,null),S.createElement(ME,null),S.createElement(wE,null),S.createElement(IE,null),S.createElement(AE,null),S.createElement(LE,null))));const NE=e=>S.createElement(lE,e,S.createElement(qE,e)),FE=O({}),zE=()=>E(FE),jE=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})=>{const u=A((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})),[n,r,t,o,i,a,l,s]);return js.jsx(FE.Provider,{value:u,children:e})},$E=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=zE(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:en;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:js.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:js.jsx("span",{style:{...dn,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},GE=O({}),BE=()=>E(GE),HE=({children:e,styleService:t})=>js.jsx(GE.Provider,{value:t,children:e}),WE=21,VE=20,YE=VE,UE=16+on+1,KE=.75;let XE=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),JE=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const ZE=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===XE.Image},QE="/qHyperCubeDef",eC=-1,tC="PSEUDO-DIM",nC=e=>void 0===e?tn:e,rC=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,oC=e=>rC(e,Ft.PixelsDefault),iC=(e,t)=>rC(e,Ft.PercentageDefault)*t/100,aC=(e,t,n)=>{switch(null==t?void 0:t.type){case zt.Pixels:return oC(t.pixels);case zt.Percentage:return iC(t.percentage,e);case zt.FitToContent:case zt.Auto:default:return n}},lC=({headers:e,layoutService:t,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:r,measureTextForHeader:o,longestMeasureValuePossible:i})=>e.reduce(((e,a,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s}},isFullyExpanded:u}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=a;if(!f)return e+0;if(c===tC)return e+0;const h=n(p),m=!u&&f&&d<s-1?WE:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+UE+m+h+g)}),0),sC=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*UE;return Math.max(e,o+t(r.qFallbackTitle))}),0),uC=(e,t,n,r)=>{const o=100*e/t,i=r*KE*(o/100),a=n*(o/100);return Math.min(a,i)},cC=(e,t,n,r)=>r*(n/100)*(100*e/t/100),dC=(e,t)=>e.some((e=>e>=t*KE)),pC=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l})=>{let s=[];const u=r*KE,c=t.data[t.data.length-1][0],d=Math.min(u,n.at(-1)),p=Math.min(u,lC({headers:c,layoutService:e,estimateWidthForDimensionValue:a})),f=Math.min(u,sC(e.visibleMeasureInfo,i));let h=0;const m=c.findIndex((e=>e.id===tC));if(e.hasPseudoDimOnLeft)if(0===m){const e=Math.max(d,p,f);s=[Math.max(24,e-d),d]}else{const t=Math.min(u,sC(e.visibleMeasureInfo,l,!0));h=Math.min(u,lC({headers:c.slice(0,m),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const n=Math.max(d,p,h);s=[Math.max(24,n-d),d]}else s=[Math.max(24,p-d),d];const g=Math.min(u,s.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:b}=e;o&&o<=u&&(b.type=zt.Pixels,b.pixels=o);return[zt.Pixels,zt.Percentage].includes(b.type)||dC(s,r)?((e,t,n,r)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=dC(e,n);s===zt.Auto&&d&&(o>i?o-=i:i-=o),s===zt.Pixels&&u&&(o=uC(e[0],l,u,n),i=uC(e[1],l,u,n)),s===zt.Percentage&&c&&(o=cC(e[0],l,c,n),i=cC(e[1],l,c,n));const p=i-r;p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(s,b,r,d):{leftGridWidth:g,leftGridColumnWidths:s,leftGridFullWidth:g}};function fC({layoutService:e,tableWidth:t,headersData:n}){const r=t*KE,o=BE(),{measureText:i}=Tb(o.header),{estimateWidth:a,measureText:l}=Tb({...o.dimensionValues,fontWeight:nC(o.dimensionValues.fontWeight)}),{measureText:s}=Tb({...o.dimensionValues,...o.measureLabels}),u=P(((o,u)=>{const{layout:{qHyperCube:{qNoOfLeftDims:c,topHeadersColumnWidth:d}},visibleMeasureInfo:p,isFullyExpanded:f,isIndentModeEnabled:h}=e,m=(e=0)=>p.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=s(r)+UE,a=Math.max(i,e);return Math.max(n,h?a:aC(t,o,a))}),0),g=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===tC)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?YE:0;return UE+i(t)+VE+r})(r);return Math.max(o,t)}),0);let b=0,v=n.data.at(-1);h&&n.size.x>1&&v&&v[0]&&(v=v[0]);const y=v.map(((i,l)=>{let s=UE;if((!h||h&&1===n.size.x)&&o&&void 0!==u&&u===i.colIdx)s=h?Math.min(r,o):o;else{let r;i.columnWidthLocation===It.Pivot?r=d:i.columnWidthLocation===It.Dimension&&({columnWidth:r}=i);let o=0;i.isLeftDimension?o=i.id===tC?m():Math.max(g(l),((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=t,l=e.getDimensionInfo(i);if(ZE(l))return Ft.PixelsDefault;const s=!f&&o&&n<c-1?WE:0;return UE+a(r)+s})(i,l)):i.isLeftDimension||(o=g(l),i.columnWidthLocation===It.Measures&&(o=m(o))),h&&1===n.size.x&&(r=e.indentModeColumnWidth),s=aC(t,r,o)}return b+=s,s}));return h&&n.size.x>1?pC({layoutService:e,headersData:n,columnWidths:y,tableWidth:t,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l}):{leftGridWidth:Math.min(r,b),leftGridColumnWidths:y,leftGridFullWidth:b}}),[t,n,e,r,i,s,a,l]),[c,d]=I(u);Nb((()=>{d(u())}),[u]);const p=P(((e,t)=>{d(u(e,t))}),[u]);return{...c,overrideLeftGridWidth:p}}function hC({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=BE(),{estimateWidth:c,measureText:d}=Tb(u.measureValues),{estimateWidth:p}=Tb({...u.dimensionValues,fontWeight:nC(u.dimensionValues.fontWeight)}),f=t-o-on,h=n.at(-1),m=h===eC,g=a.length-i>n.length?WE:0,b=A((()=>{const e=m?s:[h],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(Ft.PixelsMax,Math.max(Ft.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(n){case zt.Pixels:i(t,oC(o));break;case zt.Percentage:i(t,iC(a,f));break;case zt.FitToContent:i(t,((e,t,n)=>n?Ft.PixelsDefault:UE+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,ZE(e)));break;case zt.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(Ft.AutoMinPivot,i)}))}return n}),[m,s,h,l.x,f,c,d,p,g]),v=A((()=>{if(m){return s.reduce(((e,t,n)=>e+b[n]),0)/s.length}return b[0]}),[m,b,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=P((t=>m&&void 0!==t?b[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:v-y),[m,b,e,v,y]),S=l.x*v;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let mC;const gC=new Uint8Array(16);function bC(){if(!mC&&(mC="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!mC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mC(gC)}const vC=[];for(let e=0;e<256;++e)vC.push((e+256).toString(16).slice(1));var yC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function xC(e,t,n){if(yC.randomUUID&&!t&&!e)return yC.randomUUID();const r=(e=e||{}).random||(e.rng||bC)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return vC[e[t+0]]+vC[e[t+1]]+vC[e[t+2]]+vC[e[t+3]]+"-"+vC[e[t+4]]+vC[e[t+5]]+"-"+vC[e[t+6]]+vC[e[t+7]]+"-"+vC[e[t+8]]+vC[e[t+9]]+"-"+vC[e[t+10]]+vC[e[t+11]]+vC[e[t+12]]+vC[e[t+13]]+vC[e[t+14]]+vC[e[t+15]]}(r)}const SC=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:xC()},EC=e=>e===eC?tC:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:SC()})(e),CC=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===eC?n.columnWidthLocation=It.Measures:n.isLeftDimension?n.columnWidthLocation=It.Dimension:t.at(-1)===eC?n.columnWidthLocation=It.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=It.Pivot))},wC=(e,t,n)=>{var r;const o=EC(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===eC?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:It.Measures,isPivot:!0}:{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],isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:It.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},RC=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===eC?o.slice(0,-1):o);const i=r.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,n,r)=>{const o=n===r.length-1;l[i-1][n]=wC(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=wC(e,t,o)})),l},LC=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(eC)?RC({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(RC({layoutService:e,lastRow:t,lastCol:n})),e.isIndentModeEnabled&&r[r.length-1].length>1&&(r[r.length-1]=[r.at(-1),...new Array(r[0]?r[0].length-1:0).fill(null)]),r.length&&(null===(o=r.at(-1))||void 0===o||o.forEach(((t,r)=>{if(Array.isArray(t)){const r=t;for(let t=0;t<r.length;t++)CC({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else CC({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),r})(e,t,n);return{data:i,size:{x:null!==(r=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0,y:i.length}}};function AC(e){return AC="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},AC(e)}function IC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function DC(e,t,n){return t&&MC(e.prototype,t),n&&MC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function PC(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&&OC(e,t)}function _C(e){return _C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_C(e)}function OC(e,t){return OC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OC(e,t)}function TC(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 kC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_C(e);if(t){var o=_C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return TC(this,n)}}function qC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return NC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NC(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 NC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var FC={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:zC(e),value:zC(t),useEqualSign:n}}(n,o,i))}})),t}};function zC(e){try{return decodeURIComponent(e)}catch(t){return e}}function jC(e){if(!(this instanceof jC))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return FC.fromSearchString(t.search)}}})}function $C(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}jC.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},jC.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=$C((t=e[r]).key),t.value?n+="=".concat($C(t.value)):n+=t.useEqualSign?"=":"";return n};var GC,BC=function(){function e(t){IC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return DC(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}(),HC=function(){function e(){IC(this,e)}return DC(e,[{key:"decode",value:function(e){for(var t,n="",r=new BC(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),WC=function(e){return e>=0&&e<=1114111},VC=function(e){return e.match(/[\s]/)},YC=function(e){PC(n,e);var t=kC(n);function n(){return IC(this,n),t.apply(this,arguments)}return DC(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!VC(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return WC(a)?String.fromCharCode(a):"�"}}]),n}(HC),UC=function(){function e(t,n){IC(this,e),this._key=t,this._value=n}return DC(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),KC=function(){function e(){IC(this,e)}return DC(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return UC.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return UC.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||UC.newInstanceIfNeeded(e,t,this._value)}}]),e}(),XC=function(){function e(){IC(this,e),this.clear()}return DC(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 KC);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),JC=function(){var e,t,n,r=[],o=[],i=new XC;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),ZC=function(e){PC(n,e);var t=kC(n);function n(){return IC(this,n),t.apply(this,arguments)}return DC(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,JC.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=JC.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&WC(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&WC(r)?String.fromCharCode(r):null}}]),n}(HC),QC=function(e){PC(n,e);var t=kC(n);function n(){return IC(this,n),t.apply(this,arguments)}return DC(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),WC(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(HC),ew=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(GC=document.createElement("div"));var tw=Array.prototype.indexOf,nw=[",",".","_"," "],rw={default:[",",".","-","_"," "]},ow={width:["%"],height:["%"]},iw={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},aw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":iw.image,"background-color":iw.color,"border-color":iw.color,"border-image":iw.image,color:iw.color,icon:iw.image,"list-style-image":iw.image,"outline-color":iw.color},lw={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function sw(e,t,n){var r;if(t){if(tw)return tw.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function uw(e){if(null==e)return"";var t,n=document.createTextNode(e);return GC.appendChild(n),t=GC.innerHTML,GC.removeChild(n),t}function cw(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=pw(e).toLowerCase(),t=pw(t),sw(e,lw.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<lw.attr_val;i++)if(t.toLowerCase().match(lw.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=ow[e])||(r=rw.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&sw(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function dw(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=pw(e).toLowerCase(),t=pw(t),sw(e,lw.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<lw.css_val.length;r++)if(t.toLowerCase().indexOf(lw.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=aw[e])||(o=iw.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&sw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function pw(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new ZC,new QC,new YC];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var fw=[],hw=0;hw<255;hw++)fw[hw]=hw>=48&&hw<=57||hw>=65&&hw<=90||hw>=97&&hw<=122?null:hw.toString(16);var mw=function(e){return uw(e.unsafe)},gw=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=dw(t,n[t],!0),i+=dw(t,n[t],!0),o[t]=r[t]);return e.map?o:i},bw=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=cw(i,t[i],!0),o+=cw(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function vw(e,t){throw new Error(t)}var yw={canonicalize:pw,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===AC(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?mw(e):"css"===e.context?(null!=e.map&&"object"!==AC(e.map)&&vw(this,"Invalid parameter type"),gw(e)):"attr"===e.context?(null!=e.map&&"object"!==AC(e.map)&&vw(this,"Invalid parameter type"),bw(e)):void vw(this,"Invalid parameter type")},encodeForAttr:cw,encodeForAttr2:function(e){return cw("nonsens",e,!0)},encodeForCSS:dw,encodeForHref:function(e){pw(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new jC(e),n=jC.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+jC.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=nw),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),sw(o,t)>=0||null==fw[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:uw,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=pw(t).toLowerCase():vw(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=qC(null!==(t=ew.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const xw=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},Sw=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"}}},Ew=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&yw.isSafeDataURL(t)?{type:XE.Image,url:t,text:e,imageSize:n,resolvedImagePosition:Sw(r)}:{type:XE.Text,url:void 0,text:e},Cw=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===JE.Attribute||null==n?void 0:n.urlLabel},ww=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:XE.Link,url:yw.encodeForHref(t),text:e}}catch(t){return{type:XE.Text,url:void 0,text:e}}},Rw=(e,t,n,r)=>{var o,i;const a=(e=>{switch(null==e?void 0:e.type){case"url":return XE.Link;case"image":return XE.Image;default:return XE.Text}})(t);return a!==XE.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===XE.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===JE.Attribute){var o;const r=Cw(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return ww({text:i,url:r})}if(r===JE.Dimension){var i;const r=Cw(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return ww({text:r,url:e.qText})}return{type:XE.Text,url:void 0,text:e.qText}})(e,t,n):{type:XE.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=xw(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return Ew({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return Ew({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=xw(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return Ew({text:i,url:t,imageSize:r,imagePosition:o})}return{type:XE.Text,url:void 0,text:e.qText}})(e,t,n)},Lw=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?pg(s):null,c=l?pg(l):null,d=((e,t)=>e||!t?null:sg(t)?lm.WHITE:lm.TEXT)(c,u);return{color:null!=d?d:c,background:u}},Aw=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:Aw(e,t)),e),Iw=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:nn-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,Aw(l,e))},Mw=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const h=!c&&e.qType===Gt.NX_DIM_CELL_PSEUDO;let m="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;m=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else m=e.qText;const g={id:SC(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:Iw(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===Gt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===Gt.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===Gt.NX_DIM_CELL_NULL,isPseudoDimension:h,expressionColor:Lw(s,e),selectionCellType:u?$t.NX_CELL_LEFT:$t.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:h?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:Rw({...e,qText:m},l===eC?void 0:l.representation,s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},Dw=(e,t,n,r,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,h=-1){e[f]||(e[f]={}),s&&h++;const m=o.leftDimensionInfoIndexes.indexOf(eC);p.forEach(((p,g)=>{var b;u+=0===g?0:1;const v=n.qTop-r.page*r.rowsPerPage,y=Math.max(0,v+u-p.qUp),x=n.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&h<=m){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===Gt.NX_DIM_CELL_NORMAL||p.qType===Gt.NX_DIM_CELL_NULL||p.qType===Gt.NX_DIM_CELL_TOTAL)h<m&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===Gt.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},h=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let L=f;s&&(L=m>=1&&h>=m?h+1:h,0===h&&0===m&&0===p.qSubNodes.length&&(L=0));const A=s&&void 0===(null===(b=e[f][y])||void 0===b?void 0:b.ref.qText)||!e[f][y]?Mw({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:h},env:l,pageInfo:r}):e[f][y];if(e[f][y]=A,p.qSubNodes.length){const e=s?0:f+1;t(c||A,A,p.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},Pw=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r[n+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},_w=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},Ow=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=Dw(e.grid,l,s,n,r,o,i,a);Pw(u,n.rowsOnCurrentPage);const c=_w(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},Tw=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===Gt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:SC(),ref:t,isNull:u}}))})),o},kw=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?Tw({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},qw=(e,t,n,r,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var h;u+=0===f?0:1;const m=n.qLeft+u-d.qUp,g=null!==(h=e[p][m])&&void 0!==h?h:Mw({node:d,parent:c,root:a,x:m,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,env:l,pageInfo:s});e[p][m]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},Nw=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=qw(e.grid,s,u,n,r,o,i,a,l);Pw(c,n.size.x);const d=_w(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},Fw=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),zw=(e,t,n,r,o)=>{const{env:i}=zE(),[a,l]=I(null),s=((e,t,n)=>A((()=>({left:e.map(Fw),top:t.map(Fw),measures:n.map(Fw)})),[n,e,t]))(r,o,t.visibleMeasureInfo),u=A((()=>LC(t,o,r)),[t,o,r]),c=P((()=>e.slice(1).reduce(((e,t)=>kw({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return Tw({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),d=P((()=>e.slice(1).reduce(((e,r)=>Nw({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n})),((e,t,n,r,o,i,a)=>{const{qArea:l,qTop:s}=e,u=qw([],s,l,t,n,r,o,i,a);Pw(u,t.size.x);const c=_w(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(e[0],t,o,s.top,u.size.y,i,n))),[e,t,o,s.top,u.size.y,i,n]),p=P((()=>e.slice(1).reduce(((e,o)=>Ow({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})),((e,t,n,r,o,i)=>{const{qArea:a,qLeft:l}=e,s=Dw([],l,a,n,t,r,o,i);Pw(s,n.rowsOnCurrentPage);const u=_w(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(e[0],t,n,r,s.left,i))),[e,t,n,r,s,i]),[f,h]=I((()=>c())),[m,g]=I((()=>d())),[b,v]=I((()=>p()));Nb((()=>{h(c())}),[c]),Nb((()=>{g(d())}),[d]),Nb((()=>{v(p())}),[p]),Nb((()=>{a&&a.forEach((e=>{h((t=>kw({prevData:t,dataPage:e,pageInfo:n}))),g((r=>Nw({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n}))),v((o=>Ow({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=P((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:m,leftDimensionData:b,attrExprInfoIndexes:s,nextPageHandler:y}},jw=Math.sqrt(1e4),$w=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/Ft.PixelsMin)}),Gw=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/jw),r=Math.ceil(e.qHeight/jw);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*jw,qTop:e.qTop+n*jw,qWidth:Math.min(jw,e.qWidth-o*jw),qHeight:Math.min(jw,e.qHeight-n*jw)});return t};function Bw({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=M(e);return t.current=e,t})(n.page),i=e,a=P((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,QE,e,t,!1))}),[i]),l=P((async(e,t)=>{await(null==i?void 0:i.collapseTop(QE,e,t,!1))}),[i]),s=P((async(e,t)=>{await(null==i?void 0:i.expandLeft(QE,e,t,!1))}),[i]),u=P((async(e,t)=>{await(null==i?void 0:i.expandTop(QE,e,t,!1))}),[i]),c=P((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(QE,e.reduce(((e,t)=>[...e,...Gw(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=P(((t,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case It.Dimension:c=[{qPath:`${QE}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case It.Measures:if(o)c=l.map(((e,t)=>({qPath:`${QE}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${QE}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case It.Pivot:c=[{qPath:`${QE}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:n,oldValue:r}=e;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...t})}}));null==e||e.applyPatches(d,!0)}),[e,r]),p=P((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${QE}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return A((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const Hw=(e,t)=>e>t?Pt.Forward:e<t?Pt.Backward:Pt.None,Ww=(e,t,n)=>(r,o)=>{if(r===Gt.NX_DIM_CELL_PSEUDO)return eC;const i=t[n+o];return e[i]},Vw=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},Yw=({width:e,height:t,children:n,isLeftGrid:r})=>js.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+on},children:n}),Uw=e=>`scrollable-container--${e}`,Kw=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=zE();return js.jsx("div",{ref:t,"data-key":Uw(u),style:{width:n,height:r,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var Xw=S.forwardRef(Kw);const Jw=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>js.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function Zw(){return Zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zw.apply(this,arguments)}function Qw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eR(e,t){return eR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eR(e,t)}function tR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,eR(e,t)}var nR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function rR(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||nR(r)&&nR(o)))return!1;var r,o;return!0}function oR(e,t){var n;void 0===t&&(t=rR);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function iR(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var aR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function lR(e){cancelAnimationFrame(e.id)}function sR(e,t){var n=aR();var r={id:requestAnimationFrame((function o(){aR()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var uR=-1;function cR(e){if(void 0===e&&(e=!1),-1===uR||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),uR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return uR}var dR=null;function pR(e){if(void 0===e&&(e=!1),null===dR||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?dR="positive-descending":(t.scrollLeft=1,dR=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),dR}return dR}var fR=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function hR(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,Qw(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Qw(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=oR((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=oR((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=oR((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(pR()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&lR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=sR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}tR(t,e),t.getDerivedStateFromProps=function(e,t){return mR(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=cR();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(pR()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&lR(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?fR: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(r>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:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Zw({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,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof r){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,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),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,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),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}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var mR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},gR=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},bR=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},vR=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},yR=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?xR(e,t,n,i,0,r):SR(e,t,n,Math.max(0,i),r)},xR=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=vR(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},SR=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&vR(e,t,r,n).offset<o;)r+=a,a*=2;return xR(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},ER=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=vR(e,t,n,i),u="column"===e?bR(t,i):gR(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},CR=hR({getColumnOffset:function(e,t,n){return vR("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return yR("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=vR("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=vR("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:gR,getEstimatedTotalWidth:bR,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return ER("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return ER("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return vR("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return yR("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=vR("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=vR("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),wR=function(e,t){return e};function RR(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,Qw(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Qw(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=oR((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=oR((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,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},r._getItemStyleCache=void 0,r._getItemStyleCache=oR((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(pR()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&lR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=sR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}tR(t,e),t.getDerivedStateFromProps=function(e,t){return LR(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?cR():0:s.scrollHeight>s.clientHeight?cR():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(pR()){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&&lR(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?wR: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=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Zw({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],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var LR=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},AR=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},IR=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=AR(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},MR=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&AR(e,n,t).offset<r;)n+=i,i*=2;return IR(e,t,Math.min(n,o-1),Math.floor(n/2),r)},DR=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},PR=RR({getItemOffset:function(e,t,n){return AR(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:DR,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=AR(e,t,o),p=DR(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?IR(e,t,o,0,n):MR(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=AR(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=AR(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function _R(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var OR=["style"],TR=["style"];function kR(e,t){var n=e.style,r=iR(e,OR),o=t.style,i=iR(t,TR);return!_R(n,o)&&!_R(r,i)}const qR=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),NR=10,FR=(e,t)=>e.current===Pt.Backward?t:0,zR=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e[o];if(void 0===n||void 0===n[t])return!0}return!1},jR=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,$R=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(zR(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&jR(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},GR=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Pt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return $R({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},BR=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=FR(n,NR),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+NR,l-u),pageTop:o,qHeight:a}})(r,o,n),u=$R({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...GR({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},HR=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},WR=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,VR=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(HR(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&WR(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},YR=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=FR(n,NR),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+NR,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=VR({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===Pt.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=VR({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},UR=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Pt.None&&(p=YR({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Pt.None&&(f=BR({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Pt.None&&a.current===Pt.None&&(p=VR({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(h)},KR=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(UR,100),XR=at(UR,75),JR=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=BE();return js.jsx("div",{style:{...e,...cn,...hn(n,r,l,o),...gn({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},ZR=({children:e,verticalAlign:t,width:n,right:r})=>js.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,alignSelf:t},children:e}),QR=e=>{const{type:t,imageSize:n}=e;return t!==XE.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},eL=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function tL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nL=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),rL=D(nL);function oL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iL=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){oL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),aL=D(iL),lL=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(qt)};function sL(e,t){const n=e.isActive(),[r,o]=I(new Map),[i,a]=I(null);_((()=>{const n=()=>{a(null),o(new Map)},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}}),[e,t]);const l=P((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===$t.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=P((t=>async n=>{if(lL(n))return;if(e.isActive()||await e.begin([QE]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,n)=>{const r=new Map(t);return r.has(e.ref.qElemNo)?(r.delete(e.ref.qElemNo),{nextSelectedPivotCells:r,nextSelectedField:0===r.size?null:n}):(r.set(e.ref.qElemNo,e),{nextSelectedPivotCells:r,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===$t.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[QE,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,r,i]),u=P((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return A((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const uL=O({select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),cL=()=>E(uL),dL=({children:e,selections:t,updatePageInfo:n})=>{const r=sL(t,n);return js.jsx(uL.Provider,{value:r,children:e})};var pL;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(pL||(pL={}));const fL={brighter:.5,darker:.3,opacity:.03},hL=(e,{cell:t,styleService:n})=>{if(e===pL.Background||e===pL.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},mL=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=hL(pL.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?hL(pL.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${lg(i=o,fL)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},gL=({cell:e,styleService:t,isCellSelected:n})=>n?"white":hL(pL.Color,{cell:e,styleService:t}),bL=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=hL(pL.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?tn:o},vL=({cell:e,styleService:t})=>hL(pL.FontStyle,{cell:e,styleService:t}),yL=({cell:e,styleService:t})=>hL(pL.TextDecoration,{cell:e,styleService:t}),xL=e=>e?"pointer":"default",SL=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},EL=(e,t)=>{if(!e.isLeftColumn||e.representation.type===XE.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},CL=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=BE(),{interactions:i}=zE(),{isActive:a}=cL();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=gL({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=e.ref.qCanExpand?aL:rL;let d;return d=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,js.jsx(c,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...EL(e,o)},onClick:l?void 0:SL({cell:e,expandOrCollapse:d})})},wL=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},RL=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},LL=({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o})=>{const i=`calc(100% - ${n?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==r?a*Math.max(r,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}}},AL=(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"}},IL=e=>{if("alwaysFit"===e)return"contain"},ML=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=zE(),t=M(null),{promise:n,resolve:r}=A((()=>eL()),[]);return _((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(o=t.current)&&void 0!==o&&o.complete&&r()),()=>r()}),[t,e,n,r]),{onLoad:P((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return js.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==d?void 0:d.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...LL({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:js.jsx("img",{src:s,alt:u,style:{width:RL(c),height:wL(c),objectFit:IL(c),objectPosition:AL(c,d),...f},onLoad:l,ref:a})})},DL=(e,t,n)=>{if(!n.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN")||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}},PL={display:"flex",flexDirection:"row",alignItems:"center"},_L={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},OL=(e,t,n,r)=>t?{..._L,...e.nullValues}:n?{...PL,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...PL,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},TL=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...dn,...!n&&pn(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?tn:s,fontStyle:u,textDecoration:c}},kL=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==XE.Image?DL(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},qL=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():r.text,s=TL(n,o,i,a,e.isNull);return r.type!==XE.Image||e.isNull?js.jsx("span",{style:{padding:4,...s},children:l}):js.jsx(ML,{representation:r,styleService:n,textStyle:s,isLeftColumn:!0})},NL=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},FL="flex-start",zL=(e,t)=>{return e.isNull?FL:t.type===XE.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:FL;var n},jL=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=BE(),{env:a}=zE(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:b}=r,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 js.jsx(JR,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?NL(g,t):NL(m,e),E=u.visibleMeasureInfo[S],C=Rw(v.ref,E.representation,b[S],a),w=!v.isNull&&f(e,t),R=v.isNull?u.getNullValueText():C.text,L=!v.isNull||!Number.isNaN(+R),A=Lw(b[S],v.ref),I={...OL(i,v.isNull,w,A.background),...hn(y,x,i.grid.border,c),...gn({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...cn,padding:"0px 4px",display:"flex",justifyContent:kL(v,E,C,L,a.flags)};return js.jsx("div",{className:Tt,title:R,style:{...I,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:js.jsx(ZR,{width:QR(C),verticalAlign:zL(v,C),children:js.jsx(qL,{cell:v,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:A.color})})})};var $L=S.memo(jL,kR);const GL=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},BL=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},HL={...un,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},WL=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,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}=BE(),x={...HL,borderColor:v,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>P((r=>{var o;const i=n?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[r];return qR(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>P((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return qR(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,n,r,o)=>P(((i,a)=>{var l,s;return!!(null!==(l=t.grid.at(r-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal||null!==(s=e.grid.at(o?0:n-1))&&void 0!==s&&null!==(s=s[a])&&void 0!==s&&s.isTotal)}),[t,e,n,r,o]))(s,u,d.length,c.length,a.isIndentModeEnabled),w=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>{const{downloadService:u}=zE();return P((async({overscanColumnStartIndex:c,overscanColumnStopIndex:d,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{e.gridColumnStartIndex=c,e.gridRowStartIndex=p,e.gridWidth=d-c+1,e.gridHeight=f-p+1;const h=e.gridWidth+i+(s.current===Pt.None?0:NR),m=e.gridHeight+a+(l.current===Pt.None?0:NR);let g=KR;m*h>1500&&(g=XR),g(t,r,n,o,e,l,s,u)}),[e,r,t,n,l,s,o,i,a,u])})({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:b});return Nb((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),k((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:js.jsx(CR,{ref:t,style:x,columnCount:a.size.x,columnWidth:h,height:n,rowCount:m.rowsOnCurrentPage,rowHeight:r,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:r(),estimatedColumnWidth:h(),itemKey:BL,children:$L})};var VL=T(WL);function YL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const UL=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"}),S.createElement("use",{fillRule:"evenodd"})),KL=D(UL),XL=e=>{const[t,n]=I(!1);return Nb((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},JL=({interactions:e,dataModel:t})=>{const[n,r]=I(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=XL([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!lL(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function ZL(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===an.Transparent?lm.WHITE:l,u=null===(o=Lm(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=Lm(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}const QL=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{const{interactions:s}=zE(),{isActive:u}=cL(),c=BE(),[,d]=I({});if(!(e.canBeResized&&!!s.active&&!u))return null;const p=ZL(c,e);return js.jsx(Zx,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:p,updateWidthCallback:t=>{d({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var r;a?null==n||n.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=l?l:0)*KE,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==n||n.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})},eA=e=>e.scrollTop;function tA(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function nA(e){return El("MuiPaper",e)}Cl("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 rA=["className","component","elevation","square","variant"],oA=Vx("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Tn({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&&Tn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ey("#fff",Kx(t.elevation))}, ${Ey("#fff",Kx(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var iA=x.forwardRef((function(e,t){const n=mx({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=$n(n,rA),u=Tn({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return vl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},nA,o)})(u);return js.jsx(oA,Tn({as:o,ownerState:u,className:Vs(c.root,r),ref:t},s))}));function aA(e){return"string"==typeof e}function lA(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function sA(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const uA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function cA(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=$n(e,uA),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Vs(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Tn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Tn({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=lA(Tn({},o,r)),l=sA(r),s=sA(o),u=t(a),c=Vs(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Tn({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Tn({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Tn({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||aA(e)?t:Tn({},t,{ownerState:Tn({},t.ownerState,n)})}(n,Tn({},s,{ref:nl(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var dA=Cl("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const pA=["center","classes","className"];let fA,hA,mA,gA,bA=e=>e;const vA=pa(fA||(fA=bA`
110
102
  0% {
111
103
  transform: scale(0);
112
104
  opacity: 0.1;
@@ -116,7 +108,7 @@ function Kb(e,t){let n;return n=t?ca(e).withConfig({displayName:t.label,shouldFo
116
108
  transform: scale(1);
117
109
  opacity: 0.3;
118
110
  }
119
- `)),EA=fa(bA||(bA=xA`
111
+ `)),yA=pa(hA||(hA=bA`
120
112
  0% {
121
113
  opacity: 1;
122
114
  }
@@ -124,7 +116,7 @@ function Kb(e,t){let n;return n=t?ca(e).withConfig({displayName:t.label,shouldFo
124
116
  100% {
125
117
  opacity: 0;
126
118
  }
127
- `)),CA=fa(vA||(vA=xA`
119
+ `)),xA=pa(mA||(mA=bA`
128
120
  0% {
129
121
  transform: scale(1);
130
122
  }
@@ -136,7 +128,7 @@ function Kb(e,t){let n;return n=t?ca(e).withConfig({displayName:t.label,shouldFo
136
128
  100% {
137
129
  transform: scale(1);
138
130
  }
139
- `)),wA=Kx("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),RA=Kx((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=x.useState(!1),p=Hs(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Hs(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),x.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Fs.jsx("span",{className:p,style:f,children:Fs.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(yA||(yA=xA`
131
+ `)),SA=Vx("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),EA=Vx((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=x.useState(!1),p=Vs(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Vs(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),x.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),js.jsx("span",{className:p,style:f,children:js.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(gA||(gA=bA`
140
132
  opacity: 0;
141
133
  position: absolute;
142
134
 
@@ -179,4 +171,4 @@ function Kb(e,t){let n;return n=t?ca(e).withConfig({displayName:t.label,shouldFo
179
171
  animation-iteration-count: infinite;
180
172
  animation-delay: 200ms;
181
173
  }
182
- `),hA.rippleVisible,SA,550,(({theme:e})=>e.transitions.easing.easeInOut),hA.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),hA.child,hA.childLeaving,EA,550,(({theme:e})=>e.transitions.easing.easeInOut),hA.childPulsate,CA,(({theme:e})=>e.transitions.easing.easeInOut));var LA=x.forwardRef((function(e,t){const n=vx({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=$n(n,mA),[l,s]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=x.useRef(!1),p=ol(),f=x.useRef(null),h=x.useRef(null),m=x.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Fs.jsx(RA,{classes:{ripple:Hs(o.ripple,hA.ripple),rippleVisible:Hs(o.rippleVisible,hA.rippleVisible),ripplePulsate:Hs(o.ripplePulsate,hA.ripplePulsate),child:Hs(o.child,hA.child),childLeaving:Hs(o.childLeaving,hA.childLeaving),childPulsate:Hs(o.childPulsate,hA.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=x.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null: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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,p]),b=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return x.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Fs.jsx(wA,Tn({className:Hs(hA.root,o.root,i),ref:h},a,{children:Fs.jsx(Qc,{component:null,exit:!0,children:l})}))}));function AA(e){return xl("MuiButtonBase",e)}var IA=Sl("MuiButtonBase",["root","disabled","focusVisible"]);const MA=["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"],DA=Kx("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"},[`&.${IA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),PA=x.forwardRef((function(e,t){const n=vx({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=$n(n,MA),O=x.useRef(null),T=x.useRef(null),k=el(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=fl(),[j,$]=x.useState(!1);s&&j&&$(!1),x.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,B]=x.useState(!1);x.useEffect((()=>{B(!0)}),[]);const H=G&&!u&&!s;function W(e,t,n=c){return Qa((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}x.useEffect((()=>{j&&d&&!u&&G&&T.current.pulsate()}),[u,d,j,G]);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=Qa((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=x.useRef(!1),oe=Qa((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=Qa((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===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=el(t,z,O),ue=Tn({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=gl({root:["root",t&&"disabled",n&&"focusVisible"]},AA,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Fs.jsxs(DA,Tn({as:ae,className:Hs(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,H?Fs.jsx(LA,Tn({ref:k,center:o},M)):null]}))}));var _A=PA;const OA=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function TA(e){const t=[],n=[];return Array.from(e.querySelectorAll(OA)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function kA(){return!0}function qA(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=TA,isEnabled:a=kA,open:l}=e,s=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=el(t.ref,h),g=x.useRef(null);x.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),x.useEffect((()=>{if(!l||!h.current)return;const e=Ka(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]),x.useEffect((()=>{if(!l||!h.current)return;const e=Ka(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{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(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Fs.jsxs(x.Fragment,{children:[Fs.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Fs.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const NA=x.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=x.useState(null),l=el(x.isValidElement(n)?n.ref:null,t);if(Za((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Za((()=>{if(i&&!o)return Ja(t,i),()=>{Ja(t,null)}}),[t,i,o]),o){if(x.isValidElement(n)){const e={ref:l};return x.cloneElement(n,e)}return Fs.jsx(x.Fragment,{children:n})}return Fs.jsx(x.Fragment,{children:i?F.createPortal(n,i):i})}));function FA(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function zA(e){return parseInt(Xa(e).getComputedStyle(e).paddingRight,10)||0}function jA(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&FA(e,o)}))}function $A(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function GA(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ka(e);return t.body===e?Xa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=hl(Ka(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${zA(r)+e}px`;const t=Ka(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${zA(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Ka(r).body;else{const t=r.parentElement,n=Xa(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const BA=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&FA(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);jA(t,e.mount,e.modalRef,r,!0);const o=$A(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=$A(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=GA(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=$A(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&FA(e.modalRef,t),jA(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&FA(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function HA(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=BA,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=el(h,d),[g,b]=x.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},C=Qa((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ka(f.current).body;o.add(S(),e),h.current&&E()})),w=x.useCallback((()=>o.isTopModal(S())),[o]),R=Qa((e=>{f.current=e,e&&(c&&w()?E():h.current&&FA(h.current,y))})),L=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{L()}),[L]),x.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=cA(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Tn({},n,t);return Tn({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>Tn({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Ya((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ya((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const WA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],VA={entering:{opacity:1},entered:{opacity:1}},YA=x.forwardRef((function(e,t){const n=bx(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=Yc}=e,v=$n(e,WA),y=x.useRef(null),S=el(y,a.ref,t),E=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{rA(e);const r=oA({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=oA({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return Fs.jsx(b,Tn({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,Tn({style:Tn({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},VA[e],m,a.props.style),ref:S},t))}))}));var UA=YA;function KA(e){return xl("MuiBackdrop",e)}Sl("MuiBackdrop",["root","invisible"]);const XA=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],JA=Kx("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Tn({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"}))),ZA=x.forwardRef((function(e,t){var n,r,o;const i=vx({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=UA,transitionDuration:g}=i,b=$n(i,XA),v=Tn({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return gl({root:["root",n&&"invisible"]},KA,t)})(v),x=null!=(n=f.root)?n:c.root;return Fs.jsx(m,Tn({in:p,timeout:g},b,{children:Fs.jsx(JA,Tn({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:Hs(y.root,l,null==x?void 0:x.className),ownerState:Tn({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var QA=ZA;var eI=Sl("MuiBox",["root"]);const tI=mx(),nI=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Kb("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Jv);return x.forwardRef((function(e,a){const l=oy(n),s=ly(e),{className:u,component:c="div"}=s,d=$n(s,uy);return Fs.jsx(i,Tn({as:c,ref:a,className:Hs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Wb,defaultTheme:tI,defaultClassName:eI.root,generateClassName:vl.generate});var rI=nI;function oI(e){return xl("MuiModal",e)}Sl("MuiModal",["root","hidden","backdrop"]);const iI=["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"],aI=Kx("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Tn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),lI=Kx(QA,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),sI=x.forwardRef((function(e,t){var n,r,o,i,a,l;const s=vx({name:"MuiModal",props:e}),{BackdropComponent:u=lI,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!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=$n(s,iI),_=Tn({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=HA(Tn({},_,{rootRef:t})),j=Tn({},_,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return gl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},oI,r)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();G.onEnter=e,G.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:aI,H=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=fA({elementType:B,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:Hs(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=fA({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(Tn({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Hs(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?Fs.jsx(NA,{ref:q,container:h,disablePortal:E,children:Fs.jsxs(B,Tn({},Y,{children:[!R&&u?Fs.jsx(H,Tn({},U)):null,Fs.jsx(qA,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:x.cloneElement(f,G)})]}))}):null}));var uI=sI;var cI=Sl("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const dI=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function pI(e){return`scale(${e}, ${e**2})`}const fI={entering:{opacity:1,transform:pI(1)},entered:{opacity:1,transform:"none"}},hI="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),mI=x.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Yc}=e,g=$n(e,dI),b=ol(),v=x.useRef(),y=bx(),S=x.useRef(null),E=el(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{rA(e);const{duration:n,delay:r,easing:o}=oA({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:hI?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=oA({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:hI?o:.666*o,delay:hI?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=pI(.75),c&&c(e)})),M=C(d);return Fs.jsx(m,Tn({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,Tn({style:Tn({opacity:0,transform:pI(.75),visibility:"exited"!==e||a?void 0:"hidden"},fI[e],f,o.props.style),ref:E},t))}))}));mI.muiSupportAuto=!0;var gI=mI;var bI=x.createContext({});function vI(e){return xl("MuiList",e)}Sl("MuiList",["root","padding","dense","subheader"]);const yI=["children","className","component","dense","disablePadding","subheader"],xI=Kx("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Tn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var SI=x.forwardRef((function(e,t){const n=vx({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=$n(n,yI),c=x.useMemo((()=>({dense:a})),[a]),d=Tn({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return gl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},vI,t)})(d);return Fs.jsx(bI.Provider,{value:c,children:Fs.jsxs(xI,Tn({as:i,className:Hs(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var EI=Sl("MuiListItemIcon",["root","alignItemsFlexStart"]);var CI=Sl("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const wI=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function RI(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function LI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function AI(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function II(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&AI(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var MI=x.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=$n(e,wI),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Za((()=>{r&&p.current.focus()}),[r]),x.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${hl(Ka(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=el(p,t);let m=-1;x.Children.forEach(i,((e,t)=>{x.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=x.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),x.cloneElement(e,t)}return e}));return Fs.jsx(SI,Tn({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Ka(t).activeElement;if("ArrowDown"===n)e.preventDefault(),II(t,r,s,l,RI);else if("ArrowUp"===n)e.preventDefault(),II(t,r,s,l,LI);else if("Home"===n)e.preventDefault(),II(t,null,s,l,RI);else if("End"===n)e.preventDefault(),II(t,null,s,l,LI);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&AI(r,o);o.previousKeyMatched&&(s||II(t,r,!1,l,RI,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function DI(e){return xl("MuiPopover",e)}Sl("MuiPopover",["root","paper"]);const PI=["onEntering"],_I=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],OI=["slotProps"];function TI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function kI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function qI(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function NI(e){return"function"==typeof e?e():e}const FI=Kx(uI,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zI=Kx(sA,{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 jI=x.forwardRef((function(e,t){var n,r,o;const i=vx({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:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=gI,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=$n(i.TransitionProps,PI),A=$n(i,_I),I=null!=(n=null==y?void 0:y.paper)?n:b,M=x.useRef(),D=el(M,I.ref),P=Tn({},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 gl({root:["root"],paper:["paper"]},DI,t)})(P),O=x.useCallback((()=>{if("anchorPosition"===c)return u;const e=NI(l),t=(e&&1===e.nodeType?e:Ka(M.current).body).getBoundingClientRect();return{top:t.top+TI(t,s.vertical),left:t.left+kI(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=x.useCallback((e=>({vertical:TI(e,S.vertical),horizontal:kI(e,S.horizontal)})),[S.horizontal,S.vertical]),k=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:qI(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Xa(NI(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:qI(n)}}),[l,c,O,T,m]),[q,N]=x.useState(g),F=x.useCallback((()=>{const e=M.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);x.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);x.useEffect((()=>{g&&F()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),x.useEffect((()=>{if(!g)return;const e=Ua((()=>{F()})),t=Xa(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?Ka(NI(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:FI,G=null!=(o=null==v?void 0:v.paper)?o:zI,B=fA({elementType:G,externalSlotProps:Tn({},I,{style:q?I.style:Tn({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:Hs(_.paper,null==I?void 0:I.className)}),H=fA({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:Hs(_.root,p)}),{slotProps:W}=H,V=$n(H,OI);return Fs.jsx($,Tn({},V,!uA($)&&{slotProps:W,disableScrollLock:R},{children:Fs.jsx(E,Tn({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:Fs.jsx(G,Tn({},B,{children:d}))}))}))}));function $I(e){return xl("MuiMenu",e)}Sl("MuiMenu",["root","paper","list"]);const GI=["onEntering"],BI=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],HI={vertical:"top",horizontal:"right"},WI={vertical:"top",horizontal:"left"},VI=Kx(jI,{shouldForwardProp:e=>Ux(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YI=Kx(zI,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),UI=Kx(MI,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var KI=x.forwardRef((function(e,t){var n,r;const o=vx({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:v={}}=o,y=$n(o.TransitionProps,GI),S=$n(o,BI),E=(()=>{const e=x.useContext(hy);return null!=e&&e})(),C=Tn({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return gl({root:["root"],paper:["paper"],list:["list"]},$I,t)})(C),R=i&&!s&&d,L=x.useRef(null);let A=-1;x.Children.map(a,((e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(n=b.paper)?n:YI,M=null!=(r=v.paper)?r:p,D=fA({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,l]}),P=fA({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return Fs.jsx(VI,Tn({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?HI:WI,slots:{paper:I,root:b.root},slotProps:{root:D,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:Tn({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:C},S,{classes:f,children:Fs.jsx(UI,Tn({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:g},u,{className:Hs(w.list,u.className),children:a}))}))}));function XI(e){return xl("MuiMenuItem",e)}var JI=Sl("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const ZI=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],QI=Kx(_A,{shouldForwardProp:e=>Ux(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Tn({},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"}},[`&.${JI.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ry(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${JI.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ry(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${JI.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ry(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})`:Ry(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${JI.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${JI.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${cI.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${cI.inset}`]:{marginLeft:52},[`& .${CI.root}`]:{marginTop:0,marginBottom:0},[`& .${CI.inset}`]:{paddingLeft:36},[`& .${EI.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Tn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${EI.root} svg`]:{fontSize:"1.25rem"}}))));var eM=x.forwardRef((function(e,t){const n=vx({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=$n(n,ZI),f=x.useContext(bI),h=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=x.useRef(null);Za((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Tn({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Tn({},a,gl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},XI,a))})(n),v=el(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),Fs.jsx(bI.Provider,{value:h,children:Fs.jsx(QI,Tn({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Hs(b.focusVisible,s),className:Hs(b.root,d)},p,{ownerState:g,classes:b}))})}));const tM=Kx(rI,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),nM=Kx("div")({position:"absolute",left:0,bottom:0}),rM=Kx("div")({...sn,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),oM=Kx("div")((()=>({...sn}))),iM=Kx("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),aM=Kx(KI)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),lM=Kx(eM,{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}}}))),sM=Kx("span")({textOverflow:"ellipsis",overflow:"hidden"}),uM=Kx("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:KE,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),cM={[nE.SORTING]:!0,[nE.SELECTIONS]:!0,[nE.SEARCHING]:!0},dM=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,iconsVisibilityStatus:s,columnWidth:u,overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:p})=>{var f;const h=M(null),m=VE(),{app:g,model:b,interactions:v,embed:y,env:{flags:x}}=GE(),{fontSize:S,fontFamily:E,fontStyle:C,fontWeight:w,textDecoration:R,color:L,background:A,hoverBackground:I,activeBackground:D}=m.header,P=M(null),{shouldShowLockIcon:_,shouldShowMenuIcon:O}=s,{open:T,setOpen:k,handleOpenMenu:q,setIsAdjustingWidth:N}=eA({interactions:v,dataModel:e}),F={sortFromMenu:async e=>{e.stopPropagation(),await l(t)}},z={embed:y,listboxRef:h},j={model:b,app:g},{labelTextAlign:$}=null!==(f=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},G=OL($,"flex-start",x);return Fs.jsxs(tM,{className:Tt,title:t.label,interactions:v,background:T?D:A,hoverBackground:I,shouldShowMenuIcon:O,isDimension:t.isDim,style:{...n,...cn,...mn(t,i,r,o,m.grid.border),color:L},"data-testid":"title-cell",onClick:q,children:[Fs.jsxs(rM,{children:[_&&Fs.jsx(oM,{children:Fs.jsx(ZL,{height:12})}),Fs.jsx(iM,{fontFamily:E,fontSize:S,fontStyle:C,fontWeight:w,textDecoration:R,justifyContent:G,children:Fs.jsx("span",{style:dn,children:t.label})})]}),t.isDim&&Fs.jsxs(Fs.Fragment,{children:[Fs.jsx(oE,{headerData:t,translator:a,anchorRef:P,open:T,setOpen:k,interactions:v,menuAvailabilityFlags:cM,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:j,shouldShowMenuIcon:O}),Fs.jsx(nM,{ref:h}),Fs.jsx(nM,{ref:P})]}),Fs.jsx(nA,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:N,shouldApplyIndentModeColumnWidth:p})]})},pM=({rowSpan:e,columnSpan:t})=>{const n=VE();return e>0&&t>0?Fs.jsx("div",{style:{...un,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function fM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),mM=D(hM);function gM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){gM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),S.createElement("use",{fillRule:"evenodd"})),vM=D(bM),yM=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=VE(),{interactions:i}=GE(),{isActive:a}=fL(),{setIsAdjustingWidth:l}=QL([e]);if(!(!!i.active&&!a))return null;const s=tA(o,{isLeftColumn:!0});return Fs.jsx(tS,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*ZE))},confirmWidthCallback:o=>{var i;if(o.type===zt.FitToContent)return void e.applyIndentModeColumnWidth({type:zt.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*ZE);r(a),e.applyIndentModeColumnWidth({type:zt.Pixels,pixels:a})},setIsAdjustingWidth:l})};function xM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const SM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),EM=D(SM),CM=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=M(null),i=M(null),{app:a,model:l,interactions:s,embed:u}=GE(),{open:c,setOpen:d,handleOpenMenu:p}=eA({interactions:s,dataModel:n});return Fs.jsxs(lM,{component:"div",onClick:p,isActive:c,children:[Fs.jsx(sM,{children:e.label}),Fs.jsxs(uM,{className:"indent-mode-dropdown-more",visible:c,children:[Fs.jsx(EM,{}),e.isDim&&Fs.jsxs(Fs.Fragment,{children:[Fs.jsx(oE,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:cM,sortRelatedArgs:{sortFromMenu:async t=>{t.stopPropagation(),await r(e)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),Fs.jsx(nM,{ref:i}),Fs.jsx(nM,{ref:o})]})]})]})},wM=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===oC,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===oC;return!(r&&a&&l)&&((null==t?void 0:t.id)!==oC&&e<n.length-1)},RM=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=VE(),{interactions:u}=GE(),[c,d]=I(!1),p=M(null),{headerCellHeight:f}=s,{color:h,background:m,hoverBackground:g,activeBackground:b,fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=QL([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return Fs.jsxs(tM,{isDimension:!0,background:c?b:m,interactions:u,hoverBackground:g,style:{...R,...cn,color:h},onClick:e=>u.active&&!cL(e)&&!C&&d(!c),children:[Fs.jsxs(rM,{children:[Fs.jsx(iM,{fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:Fs.jsx("span",{style:dn,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?Fs.jsx(vM,{}):Fs.jsx(mM,{}),Fs.jsx(nM,{ref:p})]}),Fs.jsx(aM,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==oC&&Fs.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:Fs.jsx(CM,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),wM({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&Fs.jsx(uS,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),Fs.jsx(yM,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},LM={display:"grid",width:"fit-content"},AM=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>Fs.jsxs("div",{style:{...LM,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&Fs.jsx(pM,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((u,p)=>{let f=[];if(d.isIndentModeEnabled&&i.size.x>1&&p+1===i.size.y){const r=i.data.at(-1);return f.push(Fs.jsx(RM,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,overrideLeftGridWidth:c,leftGridWidth:n,tableWidth:t},r[0][0].id)),f}return f=u.reduce(((t,n,u)=>{if(n){const f=s(u,n.isLocked,n.label),h=d.isIndentModeEnabled&&1===i.size.x;t.push(Fs.jsx(dM,{dataModel:e,style:{width:r[u],height:o,gridColumn:d.isIndentModeEnabled&&i.size.x>1?2:u+1,gridRow:p+1,zIndex:i.size.x-u},isLastRow:p===i.size.y-1,isFirstColumn:0===u,isLastColumn:u===i.size.x-1,translator:a,changeSortOrder:l,cell:n,iconsVisibilityStatus:f,columnWidth:r[u],overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:h},n.id))}return t}),[]),f}))]});var IM=T(AM);const MM=(e,t,n,r,o)=>{k((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},DM=(e,t)=>{zb((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},PM=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===QE.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:n}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return OL(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return OL(u,i,r)},_M=()=>{},OM=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=VE(),{interactions:f,env:{flags:h}}=GE(),{select:m,isLocked:g}=fL(),{layoutService:b,showLastBorder:v}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?m(r):void 0;return Fs.jsx("div",{className:Tt,title:f.passive?t:void 0,style:{...n,...hn(a,l,p.grid.border,v),...gn({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...cn,padding:"0px 4px",cursor:CL(x),background:vL({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:b.size.x-r.x,justifyContent:PM(r,b,s,h),display:"flex",...b.isIndentModeEnabled&&s&&{paddingLeft:24*(null!==(d=r.indentLevel)&&void 0!==d?d:0)}},"aria-hidden":"true",onClick:S,onKeyUp:_M,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,children:e})},TM=e=>e.stopPropagation(),kM=({href:e,text:t,interactions:n,color:r})=>S.createElement(Df,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:TM,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),qM=({children:e,textStyle:t})=>Fs.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),NM=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=fL(),{interactions:i}=GE();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...dn,...pn(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:yL({cell:e,styleService:t,isCellSelected:n}),fontWeight:xL({cell:e,styleService:t}),fontStyle:SL({cell:e,styleService:t}),textDecoration:EL({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==QE.Image||e.isTotal?(e.representation.type!==QE.Link||o||e.isTotal||(a=Fs.jsx(kM,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),Fs.jsx(qM,{textStyle:l,children:a})):Fs.jsx(_L,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},FM=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==QE.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},zM=({index:e,style:t,data:n})=>{const r=VE(),{isSelected:o}=fL(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=QL([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,h=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),m=s?e===c-1:d,g=s?d:e===c-1,b=zR(h,p,f.isIndentModeEnabled);if(void 0===h){const{background:n}=r.dimensionValues;return Fs.jsx(eL,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:b})}const v=o(h);return Fs.jsxs(OM,{text:h.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:g,isCellSelected:v,showTotalCellDivider:b,cell:h,data:n,isAdjustingWidth:i,children:[Fs.jsxs(tL,{verticalAlign:FM(h),width:nL(h.representation),right:h.isLeftColumn?void 0:4,children:[Fs.jsx(LL,{isLeftColumn:s,isCellSelected:v,cell:h,dataModel:l}),Fs.jsx(NM,{isLeftColumn:s,isCellSelected:v,cell:h,styleService:r})]}),Fs.jsx(nA,{cellInfo:{...h,columnWidthLocation:h.isPseudoDimension?It.Measures:It.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var jM=S.memo(zM,FR);const $M=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},GM=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},BM=(e,t)=>n=>{e.current&&(e.current[t]=n)},HM={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...un},WM={overflow:"hidden",willChange:"auto",flexShrink:0},VM=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=VE();DM(t,a),MM(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return Fs.jsx("div",{style:{...HM,borderColor:p},children:a.grid.map(((n,p)=>{const h=p===a.columnCount-1,m=RC(s[p]),{itemCount:g,estimatedItemSize:b,listValues:v}=GM(n,f,u.rowsOnCurrentPage,h),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,v,d,h,c.qcy);return Fs.jsx(TR,{ref:BM(t,p),style:{...WM,flexGrow:h?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:v,totalDividerIndex:a.totalDividerIndex},itemKey:WL,estimatedItemSize:b,children:jM},m)}))})};var YM=T(VM);const UM={overflow:"hidden",willChange:"auto"},KM={...un,borderWidth:"0px 0px 0px 1px"},XM=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=VE(),p={...KM,borderColor:c,height:o};DM(t,a),MM(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?Fs.jsx("div",{style:{width:r,height:o,...KM}}):Fs.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=GM(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.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?RC(g):`empty ${c}`;return Fs.jsx(TR,{ref:BM(t,c),style:UM,height:n(),width:r,itemCount:p,itemSize:$M({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:WL,estimatedItemSize:h,children:jM},b)}))})};var JM=T(XM);const ZM=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=VE(),u=((e,t,n)=>A((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return A((()=>{var e,n,a,l;const s=Kw(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=Kw(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(Uw(i,o,0)),visibleTopDimensionInfo:u.map(Uw(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=P((async t=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:r}=t,o=[];o.push({qPath:`/qHyperCubeDef/qDimensions/${r}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(o,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(e),{headersData:f,measureData:h,topDimensionData:m,leftDimensionData:g,attrExprInfoIndexes:b,nextPageHandler:v}=Gw(o,r,i,c,d),y=Vw({model:e,nextPageHandler:v,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:L,topGridRef:D,verticalScrollbarWidth:O,horizontalScrollbarHeight:T,horizontalScrollbarHeightSetter:q,verticalScrollDirection:N,horizontalScrollDirection:F}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=GE(),f=M(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=M(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=M(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=M(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),b=M(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),v=M(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=M(0),x=M(0),S=M(Pt.None),E=M(Pt.None),[C,w]=I(0),[R,L]=I(0),A=e=>{E.current=Yw(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=Yw(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};k((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),k((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=m.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r: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]),k((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const D=P((e=>{if(e)return void L(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)}L(t)}),[L]);return k((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}D()}),[D,e,t,r.width,r.height,d,p]),k((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,m,h,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Dt.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Dt.DATA_GRID}`&&(A(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=v.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(A(e),null===(n=b.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=v.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:v,leftGridRef:b,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:D,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:z,headerGridHeight:j,topGridHeight:$,leftGridHeight:G,dataGridHeight:B,allRowsVisible:H}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=VE(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-on,l),dataGridHeight:Math.min(r.height-c-on,l),allRowsVisible:c+on+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:m,tableRect:u,horizontalScrollbarHeight:T}),{leftGridWidth:W,leftGridColumnWidths:V,rightGridWidth:Y,totalWidth:U,showLastRightBorder:K,getRightGridColumnWidth:X,getHeaderCellsIconsVisibilityStatus:J,overrideLeftGridWidth:Z}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=VE(),{measureText:l}=qb(a.header),s=gC({layoutService:e,tableWidth:t,headersData:n}),u=bC({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+on,d=c<t,p=P(((e,t,n="")=>{const r=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(n)+JE;return t&&a+XE<=r&&(i=!0,a+=XE),a+KE<=r&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return _((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:r,tableWidth:u.width,headersData:f,visibleTopDimensionInfo:d,verticalScrollbarWidth:O,horizontalScrollbarHeightSetter:q}),{rootWrapper:Q,leftWrapper:ee,rightWrapper:te}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+on,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:n},leftGrid:{width:s,height:r-m+f}},rightWrapper:{containers:{scrollable:{width:u+on-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:z,headerGridHeight:j,leftGridHeight:G,topGridHeight:$,dataGridHeight:B,allRowsVisible:H,totalWidth:U,leftGridWidth:W,rightGridWidth:Y,verticalScrollbarWidth:O,horizontalScrollbarHeight:T}),ne=P((()=>l),[l]),re=P((()=>s),[s]);return(()=>{const{downloadService:e}=GE();_((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Fs.jsx(Qw,{ref:E,...Q.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Dt.CONTAINER_GRID,children:Fs.jsx(Xw,{...Q.fullSize,children:Fs.jsxs(eR,{...Q.sticky,style:{display:"grid",gridTemplateColumns:W?`${ee.containers.scrollable.width}px ${te.containers.scrollable.width}px`:`${te.containers.scrollable.width}px`},children:[Boolean(W)&&Fs.jsx(Qw,{ref:C,...ee.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Dt.LEFT_GRID,children:Fs.jsx(Xw,{isLeftGrid:!0,...ee.containers.fullSize,children:Fs.jsxs(eR,{isLeftGrid:!0,...ee.containers.sticky,children:[Fs.jsx(IM,{dataModel:y,tableWidth:u.width,leftGridWidth:W,columnWidths:V,getHeaderCellsIconsVisibilityStatus:J,rowHight:l,height:ee.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:Z,layoutService:r}),Fs.jsx(YM,{dataModel:y,leftGridRef:L,...ee.leftGrid,columnWidths:V,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:H},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),Fs.jsx(Qw,{ref:w,...te.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Dt.DATA_GRID,children:Fs.jsx(Xw,{...te.containers.fullSize,children:Fs.jsxs(eR,{...te.containers.sticky,children:[Fs.jsx(JM,{dataModel:y,topGridRef:D,rowHightCallback:ne,...te.topGrid,layoutService:r,topDimensionData:m,showLastBorder:{right:K,bottom:!1},getRightGridColumnWidth:X,headersData:f}),Fs.jsx(KL,{dataModel:y,dataGridRef:R,rowHightCallback:re,...te.dataGrid,viewService:n,layoutService:r,measureData:h,leftDimensionData:g,topDimensionData:m,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:b.measures,showLastBorder:{right:K,bottom:H},getRightGridColumnWidth:X,pageInfo:i,verticalScrollDirection:N,horizontalScrollDirection:F})]})})})]})})})},QM=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=GE(),{layout:u,hasData:c}=t;return Fs.jsxs(Fs.Fragment,{children:[c&&Fs.jsx(ZM,{...e}),Fs.jsx(HE,{translator:n,layoutService:t}),Fs.jsx(jE,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u})]})},eD={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",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:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},tD=12,nD=14,rD=16,oD=24,iD=3,aD=300,lD=400,sD=600,uD=700,cD={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};jn(eD.GREYSCALE_0,.05),jn(eD.GREEN_PALE,.5),jn(eD.BLUE_PALE,.5),jn(eD.GREEN_PALE,.5),jn(eD.BLUE_PALE,.5),jn(eD.GREEN_PALE,.5),jn(eD.BLUE_PALE,.5);var dD;function pD(){return pD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pD.apply(this,arguments)}jn(eD.GREEN_PALE,.5),jn(eD.BLUE_PALE,.5),jn(eD.GREEN_PALE,.5),jn(eD.BLUE_PALE,.5);var fD,hD=function(e){return x.createElement("svg",pD({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),dD||(dD=x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function mD(){return mD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mD.apply(this,arguments)}var gD=function(e){return x.createElement("svg",mD({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),fD||(fD=x.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 bD({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return S.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var vD=(e={})=>S.createElement(bD,{...e},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},S.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),S.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"}))),yD=(e={})=>S.createElement(bD,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),S.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),xD=(e={})=>S.createElement(bD,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},S.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),SD=(e={})=>S.createElement(bD,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),S.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"}))),ED=({className:e})=>S.createElement(bD,{fontSize:"small",className:e},S.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},S.createElement("g",{transform:"translate(4.324187, 1.300372)"},S.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"}),S.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"})))))),CD=(e={})=>S.createElement(bD,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:eD.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const wD={MuiAccordion:{styleOverrides:{root:{backgroundColor:eD.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:eD.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(hD,{"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 ${eD.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:eD.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${eD.MISC_FOCUS_BORDER}`,borderRadius:iD,backgroundColor:eD.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 ${eD.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:eD.WHITE,color:eD.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:iD},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${eD.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:eD.GREYSCALE_0_15,backgroundColor:eD.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:eD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${eD.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:eD.GREEN_PALE},"&:active":{backgroundColor:eD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:eD.GREEN_PALE,boxShadow:`0 0 0 3px ${py(eD.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:eD.BLUE_PALE},"&:active":{backgroundColor:eD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:eD.BLUE_PALE,boxShadow:`0 0 0 3px ${py(eD.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:iD,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:eD.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${eD.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:eD.GREYSCALE_0_15,backgroundColor:eD.GREYSCALE_100_60,"&:active":{backgroundColor:eD.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:eD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${eD.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:eD.PURPLE,"&.Mui-focusVisible":{borderColor:eD.PURPLE,boxShadow:`0 0 0 3px ${py(eD.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:eD.GREEN,"&.Mui-focusVisible":{borderColor:eD.GREEN,boxShadow:`0 0 0 3px ${py(eD.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:eD.BLUE,"&.Mui-focusVisible":{borderColor:eD.BLUE,boxShadow:`0 0 0 3px ${py(eD.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:eD.ORANGE,"&.Mui-focusVisible":{borderColor:eD.ORANGE,boxShadow:`0 0 0 3px ${py(eD.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:eD.RED,"&.Mui-focusVisible":{borderColor:eD.RED,boxShadow:`0 0 0 3px ${py(eD.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:eD.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:eD.PURPLE_PALE},"&:active":{backgroundColor:eD.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:eD.PURPLE_PALE,boxShadow:`0 0 0 3px ${py(eD.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:eD.GREEN_PALE},"&:active":{backgroundColor:eD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:eD.GREEN_PALE,boxShadow:`0 0 0 3px ${py(eD.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:eD.BLUE_PALE},"&:active":{backgroundColor:eD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:eD.BLUE_PALE,boxShadow:`0 0 0 3px ${py(eD.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:eD.ORANGE_PALE},"&:active":{backgroundColor:eD.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:eD.ORANGE_PALE,boxShadow:`0 0 0 3px ${py(eD.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:eD.RED_PALE},"&:active":{backgroundColor:eD.RED_DARK},"&.Mui-focusVisible":{borderColor:eD.RED_PALE,boxShadow:`0 0 0 3px ${py(eD.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:eD.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:eD.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:iD,boxShadow:`inset 0 0 0 2px ${eD.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(gD,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:tD,borderRadius:iD,color:eD.TEXT_PRIMARY,backgroundColor:eD.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:eD.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${eD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:eD.GREYSCALE_0_05,color:eD.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:eD.GREEN,borderColor:eD.GREEN},"&.MuiChip-outlinedInfo":{color:eD.BLUE,borderColor:eD.BLUE},"&.MuiChip-outlinedWarning":{color:eD.ORANGE,borderColor:eD.ORANGE},"&.MuiChip-outlinedError":{color:eD.RED,borderColor:eD.RED}},outlined:{border:`solid 1px ${eD.GREYSCALE_0_15}`,backgroundColor:eD.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:iD,boxShadow:"none",backgroundColor:eD.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:eD.GREEN,borderColor:eD.GREEN},outlinedSecondary:{color:eD.BLUE,borderColor:eD.BLUE},label:{fontFamily:cD.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(gD,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(hD,{"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:iD},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:iD,fontSize:nD,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:eD.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${eD.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:eD.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:eD.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:eD.GREYSCALE_0_05}}},popupIndicator:{borderRadius:iD,border:`solid 1px ${eD.GREYSCALE_0_15}`,color:eD.GREYSCALE_0_60,marginRight:0,width:oD,height:oD},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${eD.GREYSCALE_0_15}`},clearIndicator:{borderRadius:iD,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:eD.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:nD}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:tD,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:eD.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:eD.GREYSCALE_25,fontSize:tD,fontFamily:cD.FONT_FAMILY,fontWeight:sD,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:eD.TEXT_PRIMARY},"&.Mui-error":{color:eD.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:eD.TEXT_SECONDARY,content:"'(optional)'",fontWeight:lD,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:eD.TEXT_SECONDARY,content:"'(required)'",fontWeight:lD,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:nD,lineHeight:"16px",backgroundColor:eD.WHITE,borderRadius:iD,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${eD.GREYSCALE_0_05}`,borderColor:eD.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${eD.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${eD.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${eD.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${eD.RED}`,boxShadow:`0px 0px 0px 1px ${eD.RED}, inset 0 2px 0 0 ${eD.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${eD.GREYSCALE_0_10}`,borderColor:eD.GREYSCALE_0_10,backgroundColor:eD.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:eD.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:eD.GREYSCALE_0_15,borderRadius:iD,boxShadow:`inset 0 2px 0 0 ${eD.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(hD,{...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:eD.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:eD.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:eD.GREYSCALE_0_03},"&:active":{backgroundColor:eD.GREYSCALE_0_10},"&:focus":{backgroundColor:eD.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${eD.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${eD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:eD.GREYSCALE_0_30,"&:hover":{backgroundColor:eD.GREYSCALE_0_0,borderColor:eD.GREYSCALE_0_15},"& ~svg":{color:eD.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${eD.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:iD}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:eD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${eD.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:eD.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:nD,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:tD,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:tD,fontWeight:sD,color:eD.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:sD}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${eD.GREYSCALE_0_15}, 0px 0px 0px 1px ${eD.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(xD,null),checkedIcon:S.createElement(SD,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:eD.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${eD.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:eD.GREEN_PALE,boxShadow:`0 0 0 3px ${py(eD.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:eD.BLUE_PALE,boxShadow:`0 0 0 3px ${py(eD.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:eD.GREYSCALE_0_20}},"&.Mui-disabled":{fill:eD.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(CD,null),checkedIcon:S.createElement(vD,null),indeterminateIcon:S.createElement(yD,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:iD,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:eD.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:eD.GREYSCALE_0_55,color:eD.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:eD.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:eD.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:eD.GREYSCALE_0_55,"&:hover":{color:eD.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:eD.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:eD.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:nD,color:eD.TEXT_PRIMARY,lineHeight:"16px",fontWeight:sD},secondary:{fontSize:tD,color:eD.GREYSCALE_45,fontWeight:lD,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:nD,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:eD.GREYSCALE_0_03},"&:active":{backgroundColor:eD.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:nD,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:eD.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:tD,borderBottom:`solid 1px ${eD.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:nD,color:eD.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:eD.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:eD.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:eD.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:eD.RED}}},"&.Mui-focusVisible":{backgroundColor:eD.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:eD.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:eD.GREEN,height:"24px","&.Mui-disabled":{color:eD.GREYSCALE_0_15}},rail:{backgroundColor:eD.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${eD.GREYSCALE_0_05}`,borderRadius:iD,boxShadow:`inset 0px 0px 0px 1px ${eD.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${eD.GREYSCALE_0_05}`,borderRadius:iD},thumb:{height:"16px",width:"16px",borderRadius:iD,backgroundColor:eD.WHITE,boxShadow:`0px 1px 2px 0px ${eD.GREYSCALE_0_15}, 0px 0px 0px 1px ${eD.GREYSCALE_0_05}`,"&:hover":{borderRadius:iD,boxShadow:`0 2px 4px 0 ${eD.GREYSCALE_0_30}, 0 0 0 1px ${eD.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${eD.GREYSCALE_0_15}, 0 0 0 1px ${eD.GREYSCALE_0_06}, 0 0 0 2px ${eD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${eD.GREYSCALE_0_15}, 0 0 0 1px ${eD.GREYSCALE_0_06}, 0 0 0 2px ${eD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:eD.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:eD.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:eD.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:eD.GREYSCALE_0_15},markLabel:{color:eD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:eD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:eD.WHITE,color:eD.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:eD.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:eD.GREEN_PALE,boxShadow:`0 0 0 3px ${py(eD.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:eD.BLUE_PALE,boxShadow:`0 0 0 3px ${py(eD.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:eD.GREYSCALE_0_15,borderRadius:iD},thumb:{height:"16px",width:"16px",borderRadius:iD,backgroundColor:eD.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:nD,fontWeight:sD,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${eD.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${eD.MISC_FOCUS_BORDER}`,backgroundColor:eD.GREYSCALE_0_03,borderRadius:iD},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:eD.GREYSCALE_25,"&.Mui-selected":{color:eD.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:nD,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},scrollableY:{marginBlock:"4px"},scrollButtons:{borderRadius:iD,"&:hover":{backgroundColor:`${eD.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{"& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"3px"},"& .MuiTabs-scrollButtons":{marginBlock:"-1px",borderTop:`1px solid ${eD.GREYSCALE_0_15}`,borderBottom:`1px solid ${eD.GREYSCALE_0_15}`},"& .MuiTab-root":{fontWeight:"normal",borderRadius:iD,marginBlock:"4px","&.Mui-selected":{backgroundColor:eD.GREYSCALE_0_05},"&:hover":{backgroundColor:`${eD.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${eD.GREYSCALE_85}`,borderRight:`1px solid ${eD.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:sD,backgroundColor:eD.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:eD.GREYSCALE_98,borderBottom:`1px solid ${eD.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${eD.GREYSCALE_85}`,borderTop:`1px solid ${eD.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:eD.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:eD.GREYSCALE_0_05,"&:hover":{backgroundColor:eD.GREYSCALE_0_03}},"&&:hover":{backgroundColor:eD.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(ED,{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 ${eD.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:nD,borderRadius:iD,padding:"7px 16px",border:`1px solid ${eD.GREYSCALE_0_15}`,backgroundColor:eD.GREYSCALE_100_60,color:eD.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:eD.GREYSCALE_0_10,border:`1px solid ${eD.GREYSCALE_0_30}`},"&:hover":{backgroundColor:eD.GREYSCALE_0_03,border:`1px solid ${eD.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:eD.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${eD.MISC_FOCUS_BORDER}`,border:`1px solid ${eD.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:eD.GREYSCALE_25,backgroundColor:eD.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:eD.GREYSCALE_0_10,border:`1px solid ${eD.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:tD,height:24,width:24,padding:7},sizeLarge:{fontSize:rD,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:nD,borderRadius:iD}}},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:eD.GREYSCALE_20},tooltip:{backgroundColor:eD.GREYSCALE_20,fontSize:tD,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var RD=e=>wD;const LD={mode:"light",primary:{ultraLight:eD.GREEN_ULTRA_LIGHT,light:eD.GREEN_PALE,main:eD.GREEN,dark:eD.GREEN_DARK,extraDark:eD.GREEN_EXTRA_DARK,contrastText:eD.WHITE},secondary:{ultraLight:eD.BLUE_ULTRA_LIGHT,light:eD.BLUE_PALE,main:eD.BLUE,dark:eD.BLUE_DARK,extraDark:eD.BLUE_EXTRA_DARK,contrastText:eD.WHITE},error:{ultraLight:eD.RED_ULTRA_LIGHT,light:eD.RED_PALE,main:eD.RED,dark:eD.RED_DARK,extraDark:eD.RED_EXTRA_DARK,contrastText:eD.WHITE},warning:{ultraLight:eD.ORANGE_ULTRA_LIGHT,light:eD.ORANGE_PALE,main:eD.ORANGE,dark:eD.ORANGE_DARK,extraDark:eD.ORANGE_EXTRA_DARK,contrastText:eD.WHITE},success:{ultraLight:eD.GREEN_ULTRA_LIGHT,light:eD.GREEN_PALE,main:eD.GREEN,dark:eD.GREEN_DARK,extraDark:eD.GREEN_EXTRA_DARK,contrastText:eD.WHITE},info:{ultraLight:eD.BLUE_ULTRA_LIGHT,light:eD.BLUE_PALE,main:eD.BLUE,dark:eD.BLUE_DARK,extraDark:eD.BLUE_EXTRA_DARK,contrastText:eD.WHITE},text:{primary:eD.TEXT_PRIMARY,secondary:eD.TEXT_SECONDARY,disabled:eD.GREYSCALE_0_30},action:{hover:eD.GREYSCALE_0_03,hoverOpacity:.03,selected:eD.GREYSCALE_0_05,selectedOpacity:.05,focus:eD.MISC_FOCUS_BORDER},amethyst:{ultraLight:eD.WHITE,main:eD.PURPLE,light:eD.PURPLE_PALE,dark:eD.PURPLE_DARK,extraDark:eD.GREYSCALE_0_0,contrastText:eD.WHITE},background:{paper:eD.WHITE,default:eD.GREYSCALE_95},divider:eD.GREYSCALE_0_15},AD=e=>LD,ID=(e="light")=>({components:RD(),palette:AD(),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:nD,fontWeightLight:aD,fontWeightRegular:lD,fontWeightMedium:sD,fontWeightBold:uD,htmlFontSize:nD,fontFamily:cD.FONT_FAMILY,button:{fontWeight:sD,fontSize:nD,textTransform:"none"},body1:{fontSize:rD,lineHeight:"24px"},body2:{fontSize:nD,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:oD,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:rD,fontWeight:sD,lineHeight:"16px"},h6:{fontSize:nD,fontWeight:sD,lineHeight:"16px"},caption:{color:eD.TEXT_SECONDARY},subtitle1:{fontSize:nD,color:eD.TEXT_SECONDARY},subtitle2:{fontSize:tD,color:eD.TEXT_SECONDARY}},shape:{borderRadius:iD}});const MD=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=ID();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),mx({...n,direction:e})}("ltr");e.render(Fs.jsx(S.StrictMode,{children:Fs.jsx(Jx,{theme:p,children:Fs.jsx(BE,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:Fs.jsx(hL,{selections:n,updatePageInfo:t.updatePageInfo,children:Fs.jsx(YE,{styleService:r,children:Fs.jsx(QM,{...t})})})})})}))},DD={darker:.15,brighter:.3,opacity:.03},PD={darker:.3,brighter:.5,opacity:.05};var _D,OD,TD,kD;!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"}(_D||(_D={})),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"}(OD||(OD={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(TD||(TD={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(kD||(kD={}));const qD=e=>e?`${parseInt(e,10)}px`:void 0,ND=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?an.Transparent:n}},FD=(e,t)=>+(parseInt(e,10)*rn*t+8).toFixed(2),zD=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?tn:"normal",jD=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",$D=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function GD(e,t){return o((()=>e),t)}const BD={},HD=e=>{const t=o((()=>({current:BD})),[]);return t.current=t.current===BD?e:t.current,t},WD=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,VD=(e,t,n)=>{var r,i;const a=null!==(r=null==n?void 0:n.qHyperCubeDef.qShowTotalsAbove)&&void 0!==r&&r,l=null!==(i=null==n?void 0:n.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i;return o((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r})=>{var o,i,a;const{qHyperCube:l,nullValueRepresentation:s,snapshotData:u}=e,{qNoOfLeftDims:c,qEffectiveInterColumnSortOrder:d,qMeasureInfo:p,qDimensionInfo:f}=l,h=!!u,m=null!==(o=null==u||null===(i=u.content)||void 0===i?void 0:i.rowsPerPage)&&void 0!==o?o:15e3,g={x:Math.min(e.qHyperCube.qSize.qcx,nn),y:Math.min(e.qHyperCube.qSize.qcy,m)},b=d.slice(0,c),v=e=>b.some((t=>t===e)),y=v(rC),x=new Map(d.map((e=>{var t;return[null!==(t=f[e])&&void 0!==t?t:rC,e]}))),S=p.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==s?void 0:s.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(y)return 0;const n=e%S.length;return t?n:p.findIndex((e=>e===S[n]))},getDimensionInfo:e=>e===rC?rC:f[e],getDimensionInfoIndex:e=>{var t;return null!==(t=x.get(e))&&void 0!==t?t:-1},size:g,isSnapshot:h,hasLimitedData:!h&&g.x<e.qHyperCube.qSize.qcx,hasData:g.x>0&&g.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:y,leftDimensionInfoIndexes:b,isLeftDimension:v,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:S,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(a=e.qHyperCube.indentModeColumnWidth)&&void 0!==a?a:{type:zt.Auto,pixels:Ft.PixelsDefault,percentage:Ft.PercentageDefault}}})({layout:e,flags:t,qShowTotalsAbove:a,qAlwaysFullyExpanded:l})),[e,a,l,t])},YD=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=HD(e);return t.current=e,t})(Hw(o));return xg((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(nn,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(nC,Ww(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},UD=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),KD=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:UD({rowsPerPage:n,totalRowCount:e,page:t})}),XD=15,JD=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:o})=>{var i;return s((async e=>{if(!e.snapshotData||!r||e.snapshotData.content)return e;if(null!=r&&r.getHyperCubePivotData){const{scrollTop:i,scrollLeft:a,leftGridScrollLeft:l}=t,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-XD,0),u=Math.max(l+o-XD,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=Hw(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(t,o,n),u=Ww(s),c={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData(nC,[c,...u]),scrollTop:i,scrollLeft:a,leftGridScrollLeft:l,page:o.page,rowsPerPage:o.rowsPerPage},e.snapshotData.object.size.w=n.width,e.snapshotData.object.size.h=n.height}return e})),u((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var ZD={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 QD=()=>{const e=c(),t=e.language();return o((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(ZD).forEach((t=>{e.add(ZD[t])}))}}(e)),[e]),{translator:e,language:t}},eP=e=>{const{flags:r}=e,a=d(),s=(e=>{const t=o((()=>Nb(e)),[e]);return n((()=>()=>t.unmount()),[t]),t})(a),u=p(),c=f(),x=h(),S=m(),E=g(),C=b(),w=(e=>{const{viewState:t}=l(),n=HD(new Set),r=void 0!==t&&e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:a,resolve:s}=o((()=>rL()),[]),u=GD((e=>{n.current.add(e)}),[n]),c=GD(at((async()=>{await Promise.all(n.current),s()}),1e3),[s,n]);return i((async()=>{r&&await a}),[a,r]),o((()=>({viewState:t,isDownloadedAsPDForImage:r,notifyIsDoneRendering:c,waitForPromise:u})),[c,r,t,u])})(e),[R,L]=((e,t)=>xg((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(c,u),A=VD(u,r,R),I=v(),M=yg(u,a),{translator:D,language:P}=QD(),{pageInfo:_,updatePageInfo:O}=((e,r)=>{const{size:o,layout:{qHyperCube:{qSize:i}}}=e,a=r.isDownloadedAsPDForImage||e.isSnapshot,l=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[s,u]=t((()=>{const t=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,r);return{page:t,shouldShowPagination:i.qcy>o.y&&!a,...KD(i.qcy,t,l)}}));return n((()=>{u((t=>({...t,...KD(e.layout.qHyperCube.qSize.qcy,t.page,l),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y&&!a})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,u,a,l]),n((()=>{const{page:e,totalPages:t}=s;if(e+1>t){const e=t-1,n=UD({...s,page:e});u({...s,page:e,rowsOnCurrentPage:n})}}),[s]),{pageInfo:s,updatePageInfo:e=>u({...s,...e,rowsOnCurrentPage:UD({...s,...e})})}})(A,w),T=((e,t,n)=>o((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0}})(n,t.snapshotData)),[n,e.page,t.snapshotData]))(_,u,w),k=JD({rect:y(),layoutService:A,viewService:T,model:c,pageInfo:_}),[q,N]=YD({model:c,layoutService:A,viewService:T,pageInfo:_,rect:k}),F=o((()=>((e,t,n)=>{var r,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,T,k,q,N,F,z,j,$,G,B,H,W,V,Y,U,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.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,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[_D.LineClamp])&&void 0!==i?i:oe(OD.Grid,TD.Grid,kD.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[_D.ColumnLineClamp])&&void 0!==l?l:oe(OD.Grid,TD.Grid,kD.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=ND(e,null==J?void 0:J[_D.Background]))&&void 0!==u?u:oe(OD.Dimension,TD.LabelName,kD.BackgroundColor))&&void 0!==s?s:an.Transparent,se={header:{fontSize:null!==(c=null!==(d=qD(null==J?void 0:J[_D.FontSize]))&&void 0!==d?d:oe(OD.Dimension,TD.LabelName,kD.FontSize))&&void 0!==c?c:Qt,fontFamily:null!==(p=null!==(f=null==J?void 0:J[_D.FontFamily])&&void 0!==f?f:oe(OD.Dimension,TD.LabelName,kD.FontFamily))&&void 0!==p?p:en,fontWeight:zD(null==J?void 0:J[_D.FontStyle],tn),fontStyle:jD(null==J?void 0:J[_D.FontStyle]),textDecoration:$D(null==J?void 0:J[_D.FontStyle]),color:null!==(h=null!==(m=ND(e,null==J?void 0:J[_D.FontColor]))&&void 0!==m?m:oe(OD.Dimension,TD.LabelName,kD.Color))&&void 0!==h?h:um.TEXT,background:le,hoverBackground:ug(le,DD),activeBackground:ug(le,PD)},dimensionValues:{fontSize:null!==(g=null!==(b=qD(null==Z?void 0:Z[_D.FontSize]))&&void 0!==b?b:oe(OD.Dimension,TD.LabelValue,kD.FontSize))&&void 0!==g?g:Qt,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[_D.FontFamily])&&void 0!==y?y:oe(OD.Dimension,TD.LabelValue,kD.FontFamily))&&void 0!==v?v:en,fontWeight:zD(null==Z?void 0:Z[_D.FontStyle],void 0),fontStyle:jD(null==Z?void 0:Z[_D.FontStyle]),textDecoration:$D(null==Z?void 0:Z[_D.FontStyle]),color:null!==(x=null!==(S=ND(e,null==Z?void 0:Z[_D.FontColor]))&&void 0!==S?S:oe(OD.Dimension,TD.LabelValue,kD.Color))&&void 0!==x?x:um.TEXT,background:null!==(E=null!==(C=ND(e,null==Z?void 0:Z[_D.Background]))&&void 0!==C?C:oe(OD.Dimension,TD.LabelValue,kD.BackgroundColor))&&void 0!==E?E:an.Transparent},measureValues:{fontSize:null!==(w=null!==(R=qD(null==Q?void 0:Q[_D.FontSize]))&&void 0!==R?R:oe(OD.Measure,TD.LabelValue,kD.FontSize))&&void 0!==w?w:Qt,fontFamily:null!==(L=null!==(A=null==Q?void 0:Q[_D.FontFamily])&&void 0!==A?A:oe(OD.Measure,TD.LabelValue,kD.FontFamily))&&void 0!==L?L:en,fontWeight:zD(null==Q?void 0:Q[_D.FontStyle],"normal"),fontStyle:jD(null==Q?void 0:Q[_D.FontStyle]),textDecoration:$D(null==Q?void 0:Q[_D.FontStyle]),color:null!==(I=null!==(M=ND(e,null==Q?void 0:Q[_D.FontColor]))&&void 0!==M?M:oe(OD.Measure,TD.LabelValue,kD.Color))&&void 0!==I?I:an.FontSecondary,background:null!==(D=null!==(P=ND(e,null==Q?void 0:Q[_D.Background]))&&void 0!==P?P:oe(OD.Measure,TD.LabelValue,kD.BackgroundColor))&&void 0!==D?D:an.Transparent},measureLabels:{fontWeight:zD(null==ee?void 0:ee[_D.FontStyle],"normal"),fontStyle:jD(null==ee?void 0:ee[_D.FontStyle]),textDecoration:$D(null==ee?void 0:ee[_D.FontStyle]),color:null!==(_=null!==(O=ND(e,null==ee?void 0:ee[_D.FontColor]))&&void 0!==O?O:oe(OD.Measure,TD.LabelName,kD.Color))&&void 0!==_?_:an.FontSecondary,background:null!==(T=null!==(k=ND(e,null==ee?void 0:ee[_D.Background]))&&void 0!==k?k:oe(OD.Measure,TD.LabelName,kD.BackgroundColor))&&void 0!==T?T:an.Transparent},totalValues:{fontWeight:zD(null==te?void 0:te[_D.FontStyle],tn),fontStyle:jD(null==te?void 0:te[_D.FontStyle]),textDecoration:$D(null==te?void 0:te[_D.FontStyle]),color:null!==(q=null!==(N=ND(e,null==te?void 0:te[_D.FontColor]))&&void 0!==N?N:oe(OD.Total,TD.LabelValue,kD.Color))&&void 0!==q?q:um.TEXT,background:null!==(F=null!==(z=ND(e,null==te?void 0:te[_D.Background]))&&void 0!==z?z:oe(OD.Total,TD.LabelValue,kD.BackgroundColor))&&void 0!==F?F:an.Transparent},nullValues:{fontWeight:zD(null==ne?void 0:ne[_D.FontStyle],"normal"),fontStyle:jD(null==ne?void 0:ne[_D.FontStyle]),textDecoration:$D(null==ne?void 0:ne[_D.FontStyle]),color:null!==(j=null!==($=ND(e,null==ne?void 0:ne[_D.FontColor]))&&void 0!==$?$:oe(OD.Null,TD.LabelValue,kD.Color))&&void 0!==j?j:um.TEXT,background:null!==(G=null!==(B=ND(e,null==ne?void 0:ne[_D.Background]))&&void 0!==B?B:oe(OD.Null,TD.LabelValue,kD.BackgroundColor))&&void 0!==G?G:an.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(H=null!==(W=ND(e,null==re?void 0:re[_D.Border]))&&void 0!==W?W:oe(OD.Grid,TD.Grid,kD.BorderColor))&&void 0!==H?H:an.DividerLight,divider:null!==(V=null!==(Y=ND(e,null==re?void 0:re[_D.Divider]))&&void 0!==Y?Y:oe(OD.Grid,TD.Divider,kD.BorderColor))&&void 0!==V?V:an.DividerDark,background:null!==(U=null!==(K=ND(e,null==re?void 0:re[_D.Background]))&&void 0!==K?K:oe(OD.Grid,TD.Grid,kD.BackgroundColor))&&void 0!==U?U:an.Transparent}};return se.headerCellHeight=Math.max(FD(se.header.fontSize,ae),FD(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(FD(se.measureValues.fontSize,ie),FD(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=FD(se.dimensionValues.fontSize,1),se})(M,A,r)),[M,A,r]),z=(e=>o((()=>[...new Set([WD(e.header),WD(e.dimensionValues),WD({...e.dimensionValues,...e.measureLabels}),WD({...e.dimensionValues,...e.nullValues}),WD({...e.dimensionValues,...e.totalValues}),WD(e.measureValues),WD({...e.measureValues,...e.nullValues}),WD({...e.measureValues,...e.totalValues})])]),[e]))(F),j=(e=>{const[t,n]=i((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return n?(console.warn("Failed to load font:",n),!0):!!t})(z);r.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&Hb(),n((()=>{!N&&c&&(null==k?void 0:k.width)&&(null==k?void 0:k.height)&&I&&T&&A&&F&&!!q&&!L&&j&&MD(s,{model:c,app:x,rect:k,selections:I,viewService:T,layoutService:A,downloadService:w,qPivotDataPages:q,styleService:F,translator:D,pageInfo:_,updatePageInfo:O,interactions:C,embed:S,keyboard:E,theme:M,env:e})}),[c,x,k,null==k?void 0:k.width,null==k?void 0:k.height,C,I,T,A,w,N,q,F,s,j,D,P,_,O,R,L,S,E,M,e])},tP={version:"3.8.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:[]},nP=e=>({...tP,qHyperCubeDef:{...tP.qHyperCubeDef,qIndentMode:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE")}})}}}));
174
+ `),dA.rippleVisible,vA,550,(({theme:e})=>e.transitions.easing.easeInOut),dA.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),dA.child,dA.childLeaving,yA,550,(({theme:e})=>e.transitions.easing.easeInOut),dA.childPulsate,xA,(({theme:e})=>e.transitions.easing.easeInOut));var CA=x.forwardRef((function(e,t){const n=mx({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=$n(n,pA),[l,s]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=x.useRef(!1),p=al(),f=x.useRef(null),h=x.useRef(null),m=x.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,js.jsx(EA,{classes:{ripple:Vs(o.ripple,dA.ripple),rippleVisible:Vs(o.rippleVisible,dA.rippleVisible),ripplePulsate:Vs(o.ripplePulsate,dA.ripplePulsate),child:Vs(o.child,dA.child),childLeaving:Vs(o.childLeaving,dA.childLeaving),childPulsate:Vs(o.childPulsate,dA.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=x.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null: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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,p]),b=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return x.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),js.jsx(SA,Tn({className:Vs(dA.root,o.root,i),ref:h},a,{children:js.jsx(Jc,{component:null,exit:!0,children:l})}))}));function wA(e){return El("MuiButtonBase",e)}var RA=Cl("MuiButtonBase",["root","disabled","focusVisible"]);const LA=["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"],AA=Vx("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"},[`&.${RA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),IA=x.forwardRef((function(e,t){const n=mx({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=$n(n,LA),O=x.useRef(null),T=x.useRef(null),k=nl(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=ml(),[j,$]=x.useState(!1);s&&j&&$(!1),x.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,B]=x.useState(!1);x.useEffect((()=>{B(!0)}),[]);const H=G&&!u&&!s;function W(e,t,n=c){return tl((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}x.useEffect((()=>{j&&d&&!u&&G&&T.current.pulsate()}),[u,d,j,G]);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=tl((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=x.useRef(!1),oe=tl((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=tl((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===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=nl(t,z,O),ue=Tn({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=vl({root:["root",t&&"disabled",n&&"focusVisible"]},wA,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return js.jsxs(AA,Tn({as:ae,className:Vs(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,H?js.jsx(CA,Tn({ref:k,center:o},M)):null]}))}));var MA=IA;const DA=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function PA(e){const t=[],n=[];return Array.from(e.querySelectorAll(DA)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function _A(){return!0}function OA(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=PA,isEnabled:a=_A,open:l}=e,s=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=nl(t.ref,h),g=x.useRef(null);x.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),x.useEffect((()=>{if(!l||!h.current)return;const e=Ja(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]),x.useEffect((()=>{if(!l||!h.current)return;const e=Ja(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{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(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return js.jsxs(x.Fragment,{children:[js.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),js.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const TA=x.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=x.useState(null),l=nl(x.isValidElement(n)?n.ref:null,t);if(el((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),el((()=>{if(i&&!o)return Qa(t,i),()=>{Qa(t,null)}}),[t,i,o]),o){if(x.isValidElement(n)){const e={ref:l};return x.cloneElement(n,e)}return js.jsx(x.Fragment,{children:n})}return js.jsx(x.Fragment,{children:i?F.createPortal(n,i):i})}));function kA(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function qA(e){return parseInt(Za(e).getComputedStyle(e).paddingRight,10)||0}function NA(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&kA(e,o)}))}function FA(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function zA(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ja(e);return t.body===e?Za(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=gl(Ja(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${qA(r)+e}px`;const t=Ja(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${qA(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Ja(r).body;else{const t=r.parentElement,n=Za(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const jA=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&kA(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);NA(t,e.mount,e.modalRef,r,!0);const o=FA(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=FA(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=zA(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=FA(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&kA(e.modalRef,t),NA(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&kA(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function $A(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=jA,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=nl(h,d),[g,b]=x.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},C=tl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ja(f.current).body;o.add(S(),e),h.current&&E()})),w=x.useCallback((()=>o.isTopModal(S())),[o]),R=tl((e=>{f.current=e,e&&(c&&w()?E():h.current&&kA(h.current,y))})),L=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{L()}),[L]),x.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=lA(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Tn({},n,t);return Tn({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>Tn({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Ka((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ka((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const GA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],BA={entering:{opacity:1},entered:{opacity:1}},HA=x.forwardRef((function(e,t){const n=hx(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=Wc}=e,v=$n(e,GA),y=x.useRef(null),S=nl(y,a.ref,t),E=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{eA(e);const r=tA({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=tA({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return js.jsx(b,Tn({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,Tn({style:Tn({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},BA[e],m,a.props.style),ref:S},t))}))}));var WA=HA;function VA(e){return El("MuiBackdrop",e)}Cl("MuiBackdrop",["root","invisible"]);const YA=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],UA=Vx("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Tn({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"}))),KA=x.forwardRef((function(e,t){var n,r,o;const i=mx({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=WA,transitionDuration:g}=i,b=$n(i,YA),v=Tn({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return vl({root:["root",n&&"invisible"]},VA,t)})(v),x=null!=(n=f.root)?n:c.root;return js.jsx(m,Tn({in:p,timeout:g},b,{children:js.jsx(UA,Tn({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:Vs(y.root,l,null==x?void 0:x.className),ownerState:Tn({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var XA=KA;var JA=Cl("MuiBox",["root"]);const ZA=px(),QA=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ga("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Hv);return x.forwardRef((function(e,a){const l=Jv(n),s=ey(e),{className:u,component:c="div"}=s,d=$n(s,ny);return js.jsx(i,Tn({as:c,ref:a,className:Vs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Bb,defaultTheme:ZA,defaultClassName:JA.root,generateClassName:xl.generate});var eI=QA;function tI(e){return El("MuiModal",e)}Cl("MuiModal",["root","hidden","backdrop"]);const nI=["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"],rI=Vx("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Tn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),oI=Vx(XA,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),iI=x.forwardRef((function(e,t){var n,r,o,i,a,l;const s=mx({name:"MuiModal",props:e}),{BackdropComponent:u=oI,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!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=$n(s,nI),_=Tn({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=$A(Tn({},_,{rootRef:t})),j=Tn({},_,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return vl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},tI,r)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();G.onEnter=e,G.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:rI,H=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=cA({elementType:B,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:Vs(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=cA({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(Tn({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Vs(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?js.jsx(TA,{ref:q,container:h,disablePortal:E,children:js.jsxs(B,Tn({},Y,{children:[!R&&u?js.jsx(H,Tn({},U)):null,js.jsx(OA,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:x.cloneElement(f,G)})]}))}):null}));var aI=iI;var lI=Cl("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const sI=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function uI(e){return`scale(${e}, ${e**2})`}const cI={entering:{opacity:1,transform:uI(1)},entered:{opacity:1,transform:"none"}},dI="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),pI=x.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Wc}=e,g=$n(e,sI),b=al(),v=x.useRef(),y=hx(),S=x.useRef(null),E=nl(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{eA(e);const{duration:n,delay:r,easing:o}=tA({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:dI?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=tA({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:dI?o:.666*o,delay:dI?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=uI(.75),c&&c(e)})),M=C(d);return js.jsx(m,Tn({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,Tn({style:Tn({opacity:0,transform:uI(.75),visibility:"exited"!==e||a?void 0:"hidden"},cI[e],f,o.props.style),ref:E},t))}))}));pI.muiSupportAuto=!0;var fI=pI;var hI=x.createContext({});function mI(e){return El("MuiList",e)}Cl("MuiList",["root","padding","dense","subheader"]);const gI=["children","className","component","dense","disablePadding","subheader"],bI=Vx("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Tn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var vI=x.forwardRef((function(e,t){const n=mx({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=$n(n,gI),c=x.useMemo((()=>({dense:a})),[a]),d=Tn({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return vl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},mI,t)})(d);return js.jsx(hI.Provider,{value:c,children:js.jsxs(bI,Tn({as:i,className:Vs(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var yI=Cl("MuiListItemIcon",["root","alignItemsFlexStart"]);var xI=Cl("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const SI=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function EI(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function CI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function wI(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function RI(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&wI(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var LI=x.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=$n(e,SI),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});el((()=>{r&&p.current.focus()}),[r]),x.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${gl(Ja(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=nl(p,t);let m=-1;x.Children.forEach(i,((e,t)=>{x.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=x.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),x.cloneElement(e,t)}return e}));return js.jsx(vI,Tn({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Ja(t).activeElement;if("ArrowDown"===n)e.preventDefault(),RI(t,r,s,l,EI);else if("ArrowUp"===n)e.preventDefault(),RI(t,r,s,l,CI);else if("Home"===n)e.preventDefault(),RI(t,null,s,l,EI);else if("End"===n)e.preventDefault(),RI(t,null,s,l,CI);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&wI(r,o);o.previousKeyMatched&&(s||RI(t,r,!1,l,EI,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function AI(e){return El("MuiPopover",e)}Cl("MuiPopover",["root","paper"]);const II=["onEntering"],MI=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],DI=["slotProps"];function PI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function _I(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function OI(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function TI(e){return"function"==typeof e?e():e}const kI=Vx(aI,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qI=Vx(iA,{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 NI=x.forwardRef((function(e,t){var n,r,o;const i=mx({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:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=fI,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=$n(i.TransitionProps,II),A=$n(i,MI),I=null!=(n=null==y?void 0:y.paper)?n:b,M=x.useRef(),D=nl(M,I.ref),P=Tn({},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 vl({root:["root"],paper:["paper"]},AI,t)})(P),O=x.useCallback((()=>{if("anchorPosition"===c)return u;const e=TI(l),t=(e&&1===e.nodeType?e:Ja(M.current).body).getBoundingClientRect();return{top:t.top+PI(t,s.vertical),left:t.left+_I(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=x.useCallback((e=>({vertical:PI(e,S.vertical),horizontal:_I(e,S.horizontal)})),[S.horizontal,S.vertical]),k=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:OI(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Za(TI(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:OI(n)}}),[l,c,O,T,m]),[q,N]=x.useState(g),F=x.useCallback((()=>{const e=M.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);x.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);x.useEffect((()=>{g&&F()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),x.useEffect((()=>{if(!g)return;const e=Xa((()=>{F()})),t=Za(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?Ja(TI(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:kI,G=null!=(o=null==v?void 0:v.paper)?o:qI,B=cA({elementType:G,externalSlotProps:Tn({},I,{style:q?I.style:Tn({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:Vs(_.paper,null==I?void 0:I.className)}),H=cA({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:Vs(_.root,p)}),{slotProps:W}=H,V=$n(H,DI);return js.jsx($,Tn({},V,!aA($)&&{slotProps:W,disableScrollLock:R},{children:js.jsx(E,Tn({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:js.jsx(G,Tn({},B,{children:d}))}))}))}));function FI(e){return El("MuiMenu",e)}Cl("MuiMenu",["root","paper","list"]);const zI=["onEntering"],jI=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],$I={vertical:"top",horizontal:"right"},GI={vertical:"top",horizontal:"left"},BI=Vx(NI,{shouldForwardProp:e=>Wx(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),HI=Vx(qI,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),WI=Vx(LI,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var VI=x.forwardRef((function(e,t){var n,r;const o=mx({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:v={}}=o,y=$n(o.TransitionProps,zI),S=$n(o,jI),E=(()=>{const e=x.useContext(dy);return null!=e&&e})(),C=Tn({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return vl({root:["root"],paper:["paper"],list:["list"]},FI,t)})(C),R=i&&!s&&d,L=x.useRef(null);let A=-1;x.Children.map(a,((e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(n=b.paper)?n:HI,M=null!=(r=v.paper)?r:p,D=cA({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,l]}),P=cA({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return js.jsx(BI,Tn({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?$I:GI,slots:{paper:I,root:b.root},slotProps:{root:D,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:Tn({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:C},S,{classes:f,children:js.jsx(WI,Tn({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:g},u,{className:Vs(w.list,u.className),children:a}))}))}));function YI(e){return El("MuiMenuItem",e)}var UI=Cl("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const KI=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],XI=Vx(MA,{shouldForwardProp:e=>Wx(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Tn({},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"}},[`&.${UI.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ey(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${UI.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ey(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${UI.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ey(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})`:Ey(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${UI.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${UI.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${lI.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${lI.inset}`]:{marginLeft:52},[`& .${xI.root}`]:{marginTop:0,marginBottom:0},[`& .${xI.inset}`]:{paddingLeft:36},[`& .${yI.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Tn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${yI.root} svg`]:{fontSize:"1.25rem"}}))));var JI=x.forwardRef((function(e,t){const n=mx({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=$n(n,KI),f=x.useContext(hI),h=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=x.useRef(null);el((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Tn({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Tn({},a,vl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},YI,a))})(n),v=nl(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),js.jsx(hI.Provider,{value:h,children:js.jsx(XI,Tn({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Vs(b.focusVisible,s),className:Vs(b.root,d)},p,{ownerState:g,classes:b}))})}));const ZI=Vx(eI,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),QI=Vx("div")({position:"absolute",left:0,bottom:0}),eM=Vx("div")({...sn,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),tM=Vx("div")((()=>({...sn}))),nM=Vx("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),rM=Vx(VI)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),oM=Vx(JI,{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}}}))),iM=Vx("span")({textOverflow:"ellipsis",overflow:"hidden"}),aM=Vx("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:VE,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),lM={[QS.SORTING]:!0,[QS.SELECTIONS]:!0,[QS.SEARCHING]:!0},sM=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,iconsVisibilityStatus:s,columnWidth:u,overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:p,tableWidth:f})=>{var h;const m=M(null),g=BE(),{app:b,model:v,interactions:y,embed:x,env:{flags:S}}=zE(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:A,background:I,hoverBackground:D,activeBackground:P}=g.header,_=M(null),{shouldShowLockIcon:O,shouldShowMenuIcon:T}=s,{open:k,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=JL({interactions:y,dataModel:e}),z={sortFromMenu:async e=>{e.stopPropagation(),await l(t)}},j={embed:x,listboxRef:m},$={model:v,app:b},{labelTextAlign:G}=null!==(h=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==h?h:{},B=DL(G,"flex-start",S);return js.jsxs(ZI,{className:Tt,title:t.label,interactions:y,background:k?P:I,hoverBackground:D,shouldShowMenuIcon:T,isDimension:t.isDim,style:{...n,...cn,...mn(t,i,r,o,g.grid.border),color:A},"data-testid":"title-cell",onClick:N,children:[js.jsxs(eM,{children:[O&&js.jsx(tM,{children:js.jsx(KL,{height:12})}),js.jsx(nM,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:B,children:js.jsx("span",{style:dn,children:t.label})})]}),t.isDim&&js.jsxs(js.Fragment,{children:[js.jsx(tE,{headerData:t,translator:a,anchorRef:_,open:k,setOpen:q,interactions:y,menuAvailabilityFlags:lM,sortRelatedArgs:z,searchRelatedArgs:j,selectionRelatedArgs:$,shouldShowMenuIcon:T}),js.jsx(QI,{ref:m}),js.jsx(QI,{ref:_})]}),js.jsx(QL,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:F,shouldApplyIndentModeColumnWidth:p,tableWidth:f})]})},uM=({rowSpan:e,columnSpan:t})=>{const n=BE();return e>0&&t>0?js.jsx("div",{style:{...un,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function cM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),pM=D(dM);function fM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),S.createElement("use",{fillRule:"evenodd"})),mM=D(hM),gM=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=BE(),{interactions:i}=zE(),{isActive:a}=cL(),{setIsAdjustingWidth:l}=XL([e]);if(!(!!i.active&&!a))return null;const s=ZL(o,{isLeftColumn:!0});return js.jsx(Zx,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*KE))},confirmWidthCallback:o=>{var i;if(o.type===zt.FitToContent)return void e.applyIndentModeColumnWidth({type:zt.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*KE);r(a),e.applyIndentModeColumnWidth({type:zt.Pixels,pixels:a})},setIsAdjustingWidth:l})};function bM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){bM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.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"})),yM=D(vM),xM=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=M(null),i=M(null),{app:a,model:l,interactions:s,embed:u}=zE(),{open:c,setOpen:d,handleOpenMenu:p}=JL({interactions:s,dataModel:n});return js.jsxs(oM,{component:"div",onClick:p,isActive:c,children:[js.jsx(iM,{children:e.label}),js.jsxs(aM,{className:"indent-mode-dropdown-more",visible:c,children:[js.jsx(yM,{}),e.isDim&&js.jsxs(js.Fragment,{children:[js.jsx(tE,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:lM,sortRelatedArgs:{sortFromMenu:async t=>{t.stopPropagation(),await r(e)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),js.jsx(QI,{ref:i}),js.jsx(QI,{ref:o})]})]})]})},SM=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===tC,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===tC;return!(r&&a&&l)&&((null==t?void 0:t.id)!==tC&&e<n.length-1)},EM=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=BE(),{interactions:u}=zE(),[c,d]=I(!1),p=M(null),{headerCellHeight:f}=s,{color:h,background:m,hoverBackground:g,activeBackground:b,fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=XL([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return js.jsxs(ZI,{isDimension:!0,background:c?b:m,interactions:u,hoverBackground:g,style:{...R,...cn,color:h},onClick:e=>u.active&&!lL(e)&&!C&&d(!c),"data-testid":"indentModeHeaderCellWrapper",children:[js.jsxs(eM,{children:[js.jsx(nM,{fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:js.jsx("span",{style:dn,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?js.jsx(mM,{}):js.jsx(pM,{}),js.jsx(QI,{ref:p})]}),js.jsx(rM,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==tC&&js.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:js.jsx(xM,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),SM({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&js.jsx(aS,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),js.jsx(gM,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},CM={display:"grid",width:"fit-content"},wM=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>js.jsxs("div",{style:{...CM,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&js.jsx(uM,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((u,p)=>{let f=[];if(d.isIndentModeEnabled&&i.size.x>1&&p+1===i.size.y){const r=i.data.at(-1);return f.push(js.jsx(EM,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,overrideLeftGridWidth:c,leftGridWidth:n,tableWidth:t},r[0][0].id)),f}return f=u.reduce(((n,u,f)=>{if(u){const h=s(f,u.isLocked,u.label),m=d.isIndentModeEnabled&&1===i.size.x;n.push(js.jsx(sM,{dataModel:e,style:{width:r[f],height:o,gridColumn:d.isIndentModeEnabled&&i.size.x>1?2:f+1,gridRow:p+1,zIndex:i.size.x-f},isLastRow:p===i.size.y-1,isFirstColumn:0===f,isLastColumn:f===i.size.x-1,translator:a,changeSortOrder:l,cell:u,iconsVisibilityStatus:h,columnWidth:r[f],overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:m,tableWidth:t},u.id))}return n}),[]),f}))]});var RM=T(wM);const LM=(e,t,n,r,o)=>{k((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},AM=(e,t)=>{Nb((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},IM=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===XE.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:n}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return DL(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return DL(u,i,r)},MM=()=>{},DM=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=BE(),{interactions:f,env:{flags:h}}=zE(),{select:m,isLocked:g}=cL(),{layoutService:b,showLastBorder:v}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?m(r):void 0;return js.jsx("div",{className:Tt,title:f.passive?t:void 0,style:{...n,...hn(a,l,p.grid.border,v),...gn({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...cn,padding:"0px 4px",cursor:xL(x),background:mL({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:b.size.x-r.x,justifyContent:IM(r,b,s,h),display:"flex",...b.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onClick:S,onKeyUp:MM,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,children:e})},PM=e=>e.stopPropagation(),_M=({href:e,text:t,interactions:n,color:r})=>S.createElement(If,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:PM,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),OM=({children:e,textStyle:t})=>js.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),TM=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=cL(),{interactions:i}=zE();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...dn,...pn(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:gL({cell:e,styleService:t,isCellSelected:n}),fontWeight:bL({cell:e,styleService:t}),fontStyle:vL({cell:e,styleService:t}),textDecoration:yL({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==XE.Image||e.isTotal?(e.representation.type!==XE.Link||o||e.isTotal||(a=js.jsx(_M,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),js.jsx(OM,{textStyle:l,children:a})):js.jsx(ML,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},kM=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==XE.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},qM=({index:e,style:t,data:n})=>{const r=BE(),{isSelected:o}=cL(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=XL([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,h=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),m=s?e===c-1:d,g=s?d:e===c-1,b=qR(h,p,f.isIndentModeEnabled);if(void 0===h){const{background:n}=r.dimensionValues;return js.jsx(JR,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:b})}const v=o(h);return js.jsxs(DM,{text:h.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:g,isCellSelected:v,showTotalCellDivider:b,cell:h,data:n,isAdjustingWidth:i,children:[js.jsxs(ZR,{verticalAlign:kM(h),width:QR(h.representation),right:h.isLeftColumn?void 0:4,children:[js.jsx(CL,{isLeftColumn:s,isCellSelected:v,cell:h,dataModel:l}),js.jsx(TM,{isLeftColumn:s,isCellSelected:v,cell:h,styleService:r})]}),js.jsx(QL,{cellInfo:{...h,columnWidthLocation:h.isPseudoDimension?It.Measures:It.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var NM=S.memo(qM,kR);const FM=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},zM=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},jM=(e,t)=>n=>{e.current&&(e.current[t]=n)},$M={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...un},GM={overflow:"hidden",willChange:"auto",flexShrink:0},BM=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=BE();AM(t,a),LM(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return js.jsx("div",{style:{...$M,borderColor:p},children:a.grid.map(((n,p)=>{const h=p===a.columnCount-1,m=EC(s[p]),{itemCount:g,estimatedItemSize:b,listValues:v}=zM(n,f,u.rowsOnCurrentPage,h),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,v,d,h,c.qcy);return js.jsx(PR,{ref:jM(t,p),style:{...GM,flexGrow:h?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:v,totalDividerIndex:a.totalDividerIndex},itemKey:GL,estimatedItemSize:b,children:NM},m)}))})};var HM=T(BM);const WM={overflow:"hidden",willChange:"auto"},VM={...un,borderWidth:"0px 0px 0px 1px"},YM=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=BE(),p={...VM,borderColor:c,height:o};AM(t,a),LM(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?js.jsx("div",{style:{width:r,height:o,...VM}}):js.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=zM(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.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?EC(g):`empty ${c}`;return js.jsx(PR,{ref:jM(t,c),style:WM,height:n(),width:r,itemCount:p,itemSize:FM({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:GL,estimatedItemSize:h,children:NM},b)}))})};var UM=T(YM);const KM=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=BE(),u=((e,t,n)=>A((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return A((()=>{var e,n,a,l;const s=Vw(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=Vw(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(Ww(i,o,0)),visibleTopDimensionInfo:u.map(Ww(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=P((async t=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:r}=t,o=[];o.push({qPath:`/qHyperCubeDef/qDimensions/${r}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(o,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(e),{headersData:f,measureData:h,topDimensionData:m,leftDimensionData:g,attrExprInfoIndexes:b,nextPageHandler:v}=zw(o,r,i,c,d),y=Bw({model:e,nextPageHandler:v,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:L,topGridRef:D,verticalScrollbarWidth:O,horizontalScrollbarHeight:T,horizontalScrollbarHeightSetter:q,verticalScrollDirection:N,horizontalScrollDirection:F}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=zE(),f=M(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=M(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=M(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=M(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),b=M(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),v=M(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=M(0),x=M(0),S=M(Pt.None),E=M(Pt.None),[C,w]=I(0),[R,L]=I(0),A=e=>{E.current=Hw(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=Hw(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};k((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),k((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=m.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r: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]),k((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const D=P((e=>{if(e)return void L(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)}L(t)}),[L]);return k((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}D()}),[D,e,t,r.width,r.height,d,p]),k((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,m,h,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Dt.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Dt.DATA_GRID}`&&(A(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=v.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(A(e),null===(n=b.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=v.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:v,leftGridRef:b,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:D,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:z,headerGridHeight:j,topGridHeight:$,leftGridHeight:G,dataGridHeight:B,allRowsVisible:H}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=BE(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-on,l),dataGridHeight:Math.min(r.height-c-on,l),allRowsVisible:c+on+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:m,tableRect:u,horizontalScrollbarHeight:T}),{leftGridWidth:W,leftGridColumnWidths:V,rightGridWidth:Y,totalWidth:U,showLastRightBorder:K,getRightGridColumnWidth:X,getHeaderCellsIconsVisibilityStatus:J,overrideLeftGridWidth:Z}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=BE(),{measureText:l}=Tb(a.header),s=fC({layoutService:e,tableWidth:t,headersData:n}),u=hC({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+on,d=c<t,p=P(((t,r,o="")=>{let i=t;e.isIndentModeEnabled&&(i=1,1===n.size.x&&(i=0));const a=s.leftGridColumnWidths[i];let u=!1,c=!1,d=l(o)+UE;return r&&d+YE<=a&&(c=!0,d+=YE),d+VE<=a&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[s.leftGridColumnWidths,l,e.isIndentModeEnabled,n.size.x]);return _((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:r,tableWidth:u.width,headersData:f,visibleTopDimensionInfo:d,verticalScrollbarWidth:O,horizontalScrollbarHeightSetter:q}),{rootWrapper:Q,leftWrapper:ee,rightWrapper:te}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+on,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:n},leftGrid:{width:s,height:r-m+f}},rightWrapper:{containers:{scrollable:{width:u+on-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:z,headerGridHeight:j,leftGridHeight:G,topGridHeight:$,dataGridHeight:B,allRowsVisible:H,totalWidth:U,leftGridWidth:W,rightGridWidth:Y,verticalScrollbarWidth:O,horizontalScrollbarHeight:T}),ne=P((()=>l),[l]),re=P((()=>s),[s]);return(()=>{const{downloadService:e}=zE();_((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),js.jsx(Xw,{ref:E,...Q.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Dt.CONTAINER_GRID,children:js.jsx(Yw,{...Q.fullSize,children:js.jsxs(Jw,{...Q.sticky,style:{display:"grid",gridTemplateColumns:W?`${ee.containers.scrollable.width}px ${te.containers.scrollable.width}px`:`${te.containers.scrollable.width}px`},children:[Boolean(W)&&js.jsx(Xw,{ref:C,...ee.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Dt.LEFT_GRID,children:js.jsx(Yw,{isLeftGrid:!0,...ee.containers.fullSize,children:js.jsxs(Jw,{isLeftGrid:!0,...ee.containers.sticky,children:[js.jsx(RM,{dataModel:y,tableWidth:u.width,leftGridWidth:W,columnWidths:V,getHeaderCellsIconsVisibilityStatus:J,rowHight:l,height:ee.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:Z,layoutService:r}),js.jsx(HM,{dataModel:y,leftGridRef:L,...ee.leftGrid,columnWidths:V,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:H},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),js.jsx(Xw,{ref:w,...te.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Dt.DATA_GRID,children:js.jsx(Yw,{...te.containers.fullSize,children:js.jsxs(Jw,{...te.containers.sticky,children:[js.jsx(UM,{dataModel:y,topGridRef:D,rowHightCallback:ne,...te.topGrid,layoutService:r,topDimensionData:m,showLastBorder:{right:K,bottom:!1},getRightGridColumnWidth:X,headersData:f}),js.jsx(VL,{dataModel:y,dataGridRef:R,rowHightCallback:re,...te.dataGrid,viewService:n,layoutService:r,measureData:h,leftDimensionData:g,topDimensionData:m,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:b.measures,showLastBorder:{right:K,bottom:H},getRightGridColumnWidth:X,pageInfo:i,verticalScrollDirection:N,horizontalScrollDirection:F})]})})})]})})})},XM=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=zE(),{layout:u,hasData:c}=t;return js.jsxs(js.Fragment,{children:[c&&js.jsx(KM,{...e}),js.jsx($E,{translator:n,layoutService:t}),js.jsx(NE,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u})]})},JM={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",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:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},ZM=12,QM=14,eD=16,tD=24,nD=3,rD=300,oD=400,iD=600,aD=700,lD={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};jn(JM.GREYSCALE_0,.05),jn(JM.GREEN_PALE,.5),jn(JM.BLUE_PALE,.5),jn(JM.GREEN_PALE,.5),jn(JM.BLUE_PALE,.5),jn(JM.GREEN_PALE,.5),jn(JM.BLUE_PALE,.5);var sD;function uD(){return uD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uD.apply(this,arguments)}jn(JM.GREEN_PALE,.5),jn(JM.BLUE_PALE,.5),jn(JM.GREEN_PALE,.5),jn(JM.BLUE_PALE,.5);var cD,dD=function(e){return x.createElement("svg",uD({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),sD||(sD=x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function pD(){return pD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pD.apply(this,arguments)}var fD=function(e){return x.createElement("svg",pD({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),cD||(cD=x.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 hD({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return S.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var mD=(e={})=>S.createElement(hD,{...e},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},S.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),S.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"}))),gD=(e={})=>S.createElement(hD,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),S.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),bD=(e={})=>S.createElement(hD,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},S.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),vD=(e={})=>S.createElement(hD,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),S.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"}))),yD=({className:e})=>S.createElement(hD,{fontSize:"small",className:e},S.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},S.createElement("g",{transform:"translate(4.324187, 1.300372)"},S.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"}),S.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"})))))),xD=(e={})=>S.createElement(hD,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:JM.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const SD={MuiAccordion:{styleOverrides:{root:{backgroundColor:JM.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:JM.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(dD,{"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 ${JM.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:JM.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${JM.MISC_FOCUS_BORDER}`,borderRadius:nD,backgroundColor:JM.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 ${JM.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:JM.WHITE,color:JM.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:nD},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${JM.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:JM.GREYSCALE_0_15,backgroundColor:JM.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:JM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${JM.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:JM.GREEN_PALE},"&:active":{backgroundColor:JM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:JM.GREEN_PALE,boxShadow:`0 0 0 3px ${iy(JM.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:JM.BLUE_PALE},"&:active":{backgroundColor:JM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:JM.BLUE_PALE,boxShadow:`0 0 0 3px ${iy(JM.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:nD,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:JM.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${JM.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:JM.GREYSCALE_0_15,backgroundColor:JM.GREYSCALE_100_60,"&:active":{backgroundColor:JM.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:JM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${JM.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:JM.PURPLE,"&.Mui-focusVisible":{borderColor:JM.PURPLE,boxShadow:`0 0 0 3px ${iy(JM.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:JM.GREEN,"&.Mui-focusVisible":{borderColor:JM.GREEN,boxShadow:`0 0 0 3px ${iy(JM.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:JM.BLUE,"&.Mui-focusVisible":{borderColor:JM.BLUE,boxShadow:`0 0 0 3px ${iy(JM.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:JM.ORANGE,"&.Mui-focusVisible":{borderColor:JM.ORANGE,boxShadow:`0 0 0 3px ${iy(JM.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:JM.RED,"&.Mui-focusVisible":{borderColor:JM.RED,boxShadow:`0 0 0 3px ${iy(JM.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:JM.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:JM.PURPLE_PALE},"&:active":{backgroundColor:JM.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:JM.PURPLE_PALE,boxShadow:`0 0 0 3px ${iy(JM.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:JM.GREEN_PALE},"&:active":{backgroundColor:JM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:JM.GREEN_PALE,boxShadow:`0 0 0 3px ${iy(JM.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:JM.BLUE_PALE},"&:active":{backgroundColor:JM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:JM.BLUE_PALE,boxShadow:`0 0 0 3px ${iy(JM.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:JM.ORANGE_PALE},"&:active":{backgroundColor:JM.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:JM.ORANGE_PALE,boxShadow:`0 0 0 3px ${iy(JM.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:JM.RED_PALE},"&:active":{backgroundColor:JM.RED_DARK},"&.Mui-focusVisible":{borderColor:JM.RED_PALE,boxShadow:`0 0 0 3px ${iy(JM.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:JM.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:JM.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:nD,boxShadow:`inset 0 0 0 2px ${JM.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(fD,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:ZM,borderRadius:nD,color:JM.TEXT_PRIMARY,backgroundColor:JM.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:JM.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${JM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:JM.GREYSCALE_0_05,color:JM.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:JM.GREEN,borderColor:JM.GREEN},"&.MuiChip-outlinedInfo":{color:JM.BLUE,borderColor:JM.BLUE},"&.MuiChip-outlinedWarning":{color:JM.ORANGE,borderColor:JM.ORANGE},"&.MuiChip-outlinedError":{color:JM.RED,borderColor:JM.RED}},outlined:{border:`solid 1px ${JM.GREYSCALE_0_15}`,backgroundColor:JM.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:nD,boxShadow:"none",backgroundColor:JM.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:JM.GREEN,borderColor:JM.GREEN},outlinedSecondary:{color:JM.BLUE,borderColor:JM.BLUE},label:{fontFamily:lD.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(fD,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(dD,{"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:nD},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:nD,fontSize:QM,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:JM.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${JM.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:JM.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:JM.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:JM.GREYSCALE_0_05}}},popupIndicator:{borderRadius:nD,border:`solid 1px ${JM.GREYSCALE_0_15}`,color:JM.GREYSCALE_0_60,marginRight:0,width:tD,height:tD},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${JM.GREYSCALE_0_15}`},clearIndicator:{borderRadius:nD,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:JM.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:QM}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:ZM,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:JM.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:JM.GREYSCALE_25,fontSize:ZM,fontFamily:lD.FONT_FAMILY,fontWeight:iD,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:JM.TEXT_PRIMARY},"&.Mui-error":{color:JM.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:JM.TEXT_SECONDARY,content:"'(optional)'",fontWeight:oD,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:JM.TEXT_SECONDARY,content:"'(required)'",fontWeight:oD,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:QM,lineHeight:"16px",backgroundColor:JM.WHITE,borderRadius:nD,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${JM.GREYSCALE_0_05}`,borderColor:JM.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${JM.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${JM.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${JM.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${JM.RED}`,boxShadow:`0px 0px 0px 1px ${JM.RED}, inset 0 2px 0 0 ${JM.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${JM.GREYSCALE_0_10}`,borderColor:JM.GREYSCALE_0_10,backgroundColor:JM.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:JM.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:JM.GREYSCALE_0_15,borderRadius:nD,boxShadow:`inset 0 2px 0 0 ${JM.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(dD,{...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:JM.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:JM.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:JM.GREYSCALE_0_03},"&:active":{backgroundColor:JM.GREYSCALE_0_10},"&:focus":{backgroundColor:JM.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${JM.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${JM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:JM.GREYSCALE_0_30,"&:hover":{backgroundColor:JM.GREYSCALE_0_0,borderColor:JM.GREYSCALE_0_15},"& ~svg":{color:JM.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${JM.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:nD}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:JM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${JM.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:JM.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:QM,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:ZM,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:ZM,fontWeight:iD,color:JM.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:iD}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${JM.GREYSCALE_0_15}, 0px 0px 0px 1px ${JM.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(bD,null),checkedIcon:S.createElement(vD,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:JM.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${JM.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:JM.GREEN_PALE,boxShadow:`0 0 0 3px ${iy(JM.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:JM.BLUE_PALE,boxShadow:`0 0 0 3px ${iy(JM.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:JM.GREYSCALE_0_20}},"&.Mui-disabled":{fill:JM.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(xD,null),checkedIcon:S.createElement(mD,null),indeterminateIcon:S.createElement(gD,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:nD,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:JM.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:JM.GREYSCALE_0_55,color:JM.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:JM.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:JM.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:JM.GREYSCALE_0_55,"&:hover":{color:JM.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:JM.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:JM.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:QM,color:JM.TEXT_PRIMARY,lineHeight:"16px",fontWeight:iD},secondary:{fontSize:ZM,color:JM.GREYSCALE_45,fontWeight:oD,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:QM,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:JM.GREYSCALE_0_03},"&:active":{backgroundColor:JM.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:QM,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:JM.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:ZM,borderBottom:`solid 1px ${JM.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:QM,color:JM.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:JM.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:JM.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:JM.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:JM.RED}}},"&.Mui-focusVisible":{backgroundColor:JM.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:JM.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:JM.GREEN,height:"24px","&.Mui-disabled":{color:JM.GREYSCALE_0_15}},rail:{backgroundColor:JM.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${JM.GREYSCALE_0_05}`,borderRadius:nD,boxShadow:`inset 0px 0px 0px 1px ${JM.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${JM.GREYSCALE_0_05}`,borderRadius:nD},thumb:{height:"16px",width:"16px",borderRadius:nD,backgroundColor:JM.WHITE,boxShadow:`0px 1px 2px 0px ${JM.GREYSCALE_0_15}, 0px 0px 0px 1px ${JM.GREYSCALE_0_05}`,"&:hover":{borderRadius:nD,boxShadow:`0 2px 4px 0 ${JM.GREYSCALE_0_30}, 0 0 0 1px ${JM.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${JM.GREYSCALE_0_15}, 0 0 0 1px ${JM.GREYSCALE_0_06}, 0 0 0 2px ${JM.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${JM.GREYSCALE_0_15}, 0 0 0 1px ${JM.GREYSCALE_0_06}, 0 0 0 2px ${JM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:JM.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:JM.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:JM.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:JM.GREYSCALE_0_15},markLabel:{color:JM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:JM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:JM.WHITE,color:JM.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:JM.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:JM.GREEN_PALE,boxShadow:`0 0 0 3px ${iy(JM.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:JM.BLUE_PALE,boxShadow:`0 0 0 3px ${iy(JM.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:JM.GREYSCALE_0_15,borderRadius:nD},thumb:{height:"16px",width:"16px",borderRadius:nD,backgroundColor:JM.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:QM,fontWeight:iD,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${JM.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${JM.MISC_FOCUS_BORDER}`,backgroundColor:JM.GREYSCALE_0_03,borderRadius:nD},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:JM.GREYSCALE_25,"&.Mui-selected":{color:JM.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:QM,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},scrollButtons:{borderRadius:nD,"&:hover":{backgroundColor:`${JM.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"3px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${JM.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${JM.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:nD,marginBlock:"4px","&.Mui-selected":{backgroundColor:JM.GREYSCALE_0_05},"&:hover":{backgroundColor:`${JM.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${JM.GREYSCALE_85}`,borderRight:`1px solid ${JM.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:iD,backgroundColor:JM.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:JM.GREYSCALE_98,borderBottom:`1px solid ${JM.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${JM.GREYSCALE_85}`,borderTop:`1px solid ${JM.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:JM.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:JM.GREYSCALE_0_05,"&:hover":{backgroundColor:JM.GREYSCALE_0_03}},"&&:hover":{backgroundColor:JM.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(yD,{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 ${JM.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:QM,borderRadius:nD,padding:"7px 16px",border:`1px solid ${JM.GREYSCALE_0_15}`,backgroundColor:JM.GREYSCALE_100_60,color:JM.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:JM.GREYSCALE_0_10,border:`1px solid ${JM.GREYSCALE_0_30}`},"&:hover":{backgroundColor:JM.GREYSCALE_0_03,border:`1px solid ${JM.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:JM.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${JM.MISC_FOCUS_BORDER}`,border:`1px solid ${JM.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:JM.GREYSCALE_25,backgroundColor:JM.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:JM.GREYSCALE_0_10,border:`1px solid ${JM.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:ZM,height:24,width:24,padding:7},sizeLarge:{fontSize:eD,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:QM,borderRadius:nD}}},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:JM.GREYSCALE_20},tooltip:{backgroundColor:JM.GREYSCALE_20,fontSize:ZM,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var ED=e=>SD;const CD={mode:"light",primary:{ultraLight:JM.GREEN_ULTRA_LIGHT,light:JM.GREEN_PALE,main:JM.GREEN,dark:JM.GREEN_DARK,extraDark:JM.GREEN_EXTRA_DARK,contrastText:JM.WHITE},secondary:{ultraLight:JM.BLUE_ULTRA_LIGHT,light:JM.BLUE_PALE,main:JM.BLUE,dark:JM.BLUE_DARK,extraDark:JM.BLUE_EXTRA_DARK,contrastText:JM.WHITE},error:{ultraLight:JM.RED_ULTRA_LIGHT,light:JM.RED_PALE,main:JM.RED,dark:JM.RED_DARK,extraDark:JM.RED_EXTRA_DARK,contrastText:JM.WHITE},warning:{ultraLight:JM.ORANGE_ULTRA_LIGHT,light:JM.ORANGE_PALE,main:JM.ORANGE,dark:JM.ORANGE_DARK,extraDark:JM.ORANGE_EXTRA_DARK,contrastText:JM.WHITE},success:{ultraLight:JM.GREEN_ULTRA_LIGHT,light:JM.GREEN_PALE,main:JM.GREEN,dark:JM.GREEN_DARK,extraDark:JM.GREEN_EXTRA_DARK,contrastText:JM.WHITE},info:{ultraLight:JM.BLUE_ULTRA_LIGHT,light:JM.BLUE_PALE,main:JM.BLUE,dark:JM.BLUE_DARK,extraDark:JM.BLUE_EXTRA_DARK,contrastText:JM.WHITE},text:{primary:JM.TEXT_PRIMARY,secondary:JM.TEXT_SECONDARY,disabled:JM.GREYSCALE_0_30},action:{hover:JM.GREYSCALE_0_03,hoverOpacity:.03,selected:JM.GREYSCALE_0_05,selectedOpacity:.05,focus:JM.MISC_FOCUS_BORDER},amethyst:{ultraLight:JM.WHITE,main:JM.PURPLE,light:JM.PURPLE_PALE,dark:JM.PURPLE_DARK,extraDark:JM.GREYSCALE_0_0,contrastText:JM.WHITE},background:{paper:JM.WHITE,default:JM.GREYSCALE_95},divider:JM.GREYSCALE_0_15},wD=e=>CD,RD=(e="light")=>({components:ED(),palette:wD(),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:QM,fontWeightLight:rD,fontWeightRegular:oD,fontWeightMedium:iD,fontWeightBold:aD,htmlFontSize:QM,fontFamily:lD.FONT_FAMILY,button:{fontWeight:iD,fontSize:QM,textTransform:"none"},body1:{fontSize:eD,lineHeight:"24px"},body2:{fontSize:QM,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:tD,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:eD,fontWeight:iD,lineHeight:"16px"},h6:{fontSize:QM,fontWeight:iD,lineHeight:"16px"},caption:{color:JM.TEXT_SECONDARY},subtitle1:{fontSize:QM,color:JM.TEXT_SECONDARY},subtitle2:{fontSize:ZM,color:JM.TEXT_SECONDARY}},shape:{borderRadius:nD}});const LD=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=RD();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),px({...n,direction:e})}("ltr");e.render(js.jsx(S.StrictMode,{children:js.jsx(Ux,{theme:p,children:js.jsx(jE,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:js.jsx(dL,{selections:n,updatePageInfo:t.updatePageInfo,children:js.jsx(HE,{styleService:r,children:js.jsx(XM,{...t})})})})})}))},AD={darker:.15,brighter:.3,opacity:.03},ID={darker:.3,brighter:.5,opacity:.05};var MD,DD,PD,_D;!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"}(MD||(MD={})),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"}(DD||(DD={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(PD||(PD={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(_D||(_D={}));const OD=e=>e?`${parseInt(e,10)}px`:void 0,TD=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?an.Transparent:n}},kD=(e,t)=>+(parseInt(e,10)*rn*t+8).toFixed(2),qD=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?tn:"normal",ND=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",FD=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function zD(e,t){return o((()=>e),t)}const jD={},$D=e=>{const t=o((()=>({current:jD})),[]);return t.current=t.current===jD?e:t.current,t},GD=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,BD=(e,t,n)=>{var r,i,a;const l=null!==(r=null==n?void 0:n.qHyperCubeDef.qShowTotalsAbove)&&void 0!==r&&r,s=null!==(i=null==n?void 0:n.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i,u=null!==(a=1===Math.abs(null==n?void 0:n.qHyperCubeDef.qSortbyYValue))&&void 0!==a&&a;return o((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r,isSortedByFirstMeasure:o})=>{var i,a,l;const{qHyperCube:s,nullValueRepresentation:u,snapshotData:c}=e,{qNoOfLeftDims:d,qEffectiveInterColumnSortOrder:p,qMeasureInfo:f,qDimensionInfo:h}=s,m=!!c,g=null!==(i=null==c||null===(a=c.content)||void 0===a?void 0:a.rowsPerPage)&&void 0!==i?i:15e3,b={x:Math.min(e.qHyperCube.qSize.qcx,nn),y:Math.min(e.qHyperCube.qSize.qcy,g)},v=p.slice(0,d),y=e=>v.some((t=>t===e)),x=y(eC),S=new Map(p.map((e=>{var t;return[null!==(t=h[e])&&void 0!==t?t:eC,e]}))),E=f.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==u?void 0:u.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(x)return 0;const n=e%E.length;return t?n:f.findIndex((e=>e===E[n]))},getDimensionInfo:e=>e===eC?eC:h[e],getDimensionInfoIndex:e=>{var t;return null!==(t=S.get(e))&&void 0!==t?t:-1},size:b,isSnapshot:m,hasLimitedData:!m&&b.x<e.qHyperCube.qSize.qcx,hasData:b.x>0&&b.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:x,leftDimensionInfoIndexes:v,isLeftDimension:y,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:E,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(l=e.qHyperCube.indentModeColumnWidth)&&void 0!==l?l:{type:zt.Auto,pixels:Ft.PixelsDefault,percentage:Ft.PercentageDefault},isSortedByFirstMeasure:o}})({layout:e,flags:t,qShowTotalsAbove:l,qAlwaysFullyExpanded:s,isSortedByFirstMeasure:u})),[e,l,s,u,t])},HD=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=$D(e);return t.current=e,t})($w(o));return vg((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(nn,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(QE,Gw(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},WD=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),VD=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:WD({rowsPerPage:n,totalRowCount:e,page:t})}),YD=15,UD=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:o})=>{var i;return s((async e=>{if(!e.snapshotData||!r||e.snapshotData.content)return e;if(null!=r&&r.getHyperCubePivotData){const{scrollTop:i,scrollLeft:a,leftGridScrollLeft:l}=t,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-YD,0),u=Math.max(l+o-YD,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=$w(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(t,o,n),u=Gw(s),c={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData(QE,[c,...u]),scrollTop:i,scrollLeft:a,leftGridScrollLeft:l,page:o.page,rowsPerPage:o.rowsPerPage},e.snapshotData.object.size.w=n.width,e.snapshotData.object.size.h=n.height}return e})),u((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var KD={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 XD=()=>{const e=c(),t=e.language();return o((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(KD).forEach((t=>{e.add(KD[t])}))}}(e)),[e]),{translator:e,language:t}},JD=e=>{const{flags:r}=e,a=d(),s=(e=>{const t=o((()=>kb(e)),[e]);return n((()=>()=>t.unmount()),[t]),t})(a),u=p(),c=f(),x=h(),S=m(),E=g(),C=b(),w=(e=>{const{viewState:t}=l(),n=$D(new Set),r=void 0!==t&&e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:a,resolve:s}=o((()=>eL()),[]),u=zD((e=>{n.current.add(e)}),[n]),c=zD(at((async()=>{await Promise.all(n.current),s()}),1e3),[s,n]);return i((async()=>{r&&await a}),[a,r]),o((()=>({viewState:t,isDownloadedAsPDForImage:r,notifyIsDoneRendering:c,waitForPromise:u})),[c,r,t,u])})(e),[R,L]=((e,t)=>vg((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(c,u),A=BD(u,r,R),I=v(),M=bg(u,a),{translator:D,language:P}=XD(),{pageInfo:_,updatePageInfo:O}=((e,r)=>{const{size:o,layout:{qHyperCube:{qSize:i}}}=e,a=r.isDownloadedAsPDForImage||e.isSnapshot,l=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[s,u]=t((()=>{const t=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,r);return{page:t,shouldShowPagination:i.qcy>o.y&&!a,...VD(i.qcy,t,l)}}));return n((()=>{u((t=>({...t,...VD(e.layout.qHyperCube.qSize.qcy,t.page,l),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y&&!a})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,u,a,l]),n((()=>{const{page:e,totalPages:t}=s;if(e+1>t){const e=t-1,n=WD({...s,page:e});u({...s,page:e,rowsOnCurrentPage:n})}}),[s]),{pageInfo:s,updatePageInfo:e=>u({...s,...e,rowsOnCurrentPage:WD({...s,...e})})}})(A,w),T=((e,t,n)=>o((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0}})(n,t.snapshotData)),[n,e.page,t.snapshotData]))(_,u,w),k=UD({rect:y(),layoutService:A,viewService:T,model:c,pageInfo:_}),[q,N]=HD({model:c,layoutService:A,viewService:T,pageInfo:_,rect:k}),F=o((()=>((e,t,n)=>{var r,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,T,k,q,N,F,z,j,$,G,B,H,W,V,Y,U,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.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,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[MD.LineClamp])&&void 0!==i?i:oe(DD.Grid,PD.Grid,_D.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[MD.ColumnLineClamp])&&void 0!==l?l:oe(DD.Grid,PD.Grid,_D.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=TD(e,null==J?void 0:J[MD.Background]))&&void 0!==u?u:oe(DD.Dimension,PD.LabelName,_D.BackgroundColor))&&void 0!==s?s:an.Transparent,se={header:{fontSize:null!==(c=null!==(d=OD(null==J?void 0:J[MD.FontSize]))&&void 0!==d?d:oe(DD.Dimension,PD.LabelName,_D.FontSize))&&void 0!==c?c:Qt,fontFamily:null!==(p=null!==(f=null==J?void 0:J[MD.FontFamily])&&void 0!==f?f:oe(DD.Dimension,PD.LabelName,_D.FontFamily))&&void 0!==p?p:en,fontWeight:qD(null==J?void 0:J[MD.FontStyle],tn),fontStyle:ND(null==J?void 0:J[MD.FontStyle]),textDecoration:FD(null==J?void 0:J[MD.FontStyle]),color:null!==(h=null!==(m=TD(e,null==J?void 0:J[MD.FontColor]))&&void 0!==m?m:oe(DD.Dimension,PD.LabelName,_D.Color))&&void 0!==h?h:lm.TEXT,background:le,hoverBackground:lg(le,AD),activeBackground:lg(le,ID)},dimensionValues:{fontSize:null!==(g=null!==(b=OD(null==Z?void 0:Z[MD.FontSize]))&&void 0!==b?b:oe(DD.Dimension,PD.LabelValue,_D.FontSize))&&void 0!==g?g:Qt,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[MD.FontFamily])&&void 0!==y?y:oe(DD.Dimension,PD.LabelValue,_D.FontFamily))&&void 0!==v?v:en,fontWeight:qD(null==Z?void 0:Z[MD.FontStyle],void 0),fontStyle:ND(null==Z?void 0:Z[MD.FontStyle]),textDecoration:FD(null==Z?void 0:Z[MD.FontStyle]),color:null!==(x=null!==(S=TD(e,null==Z?void 0:Z[MD.FontColor]))&&void 0!==S?S:oe(DD.Dimension,PD.LabelValue,_D.Color))&&void 0!==x?x:lm.TEXT,background:null!==(E=null!==(C=TD(e,null==Z?void 0:Z[MD.Background]))&&void 0!==C?C:oe(DD.Dimension,PD.LabelValue,_D.BackgroundColor))&&void 0!==E?E:an.Transparent},measureValues:{fontSize:null!==(w=null!==(R=OD(null==Q?void 0:Q[MD.FontSize]))&&void 0!==R?R:oe(DD.Measure,PD.LabelValue,_D.FontSize))&&void 0!==w?w:Qt,fontFamily:null!==(L=null!==(A=null==Q?void 0:Q[MD.FontFamily])&&void 0!==A?A:oe(DD.Measure,PD.LabelValue,_D.FontFamily))&&void 0!==L?L:en,fontWeight:qD(null==Q?void 0:Q[MD.FontStyle],"normal"),fontStyle:ND(null==Q?void 0:Q[MD.FontStyle]),textDecoration:FD(null==Q?void 0:Q[MD.FontStyle]),color:null!==(I=null!==(M=TD(e,null==Q?void 0:Q[MD.FontColor]))&&void 0!==M?M:oe(DD.Measure,PD.LabelValue,_D.Color))&&void 0!==I?I:an.FontSecondary,background:null!==(D=null!==(P=TD(e,null==Q?void 0:Q[MD.Background]))&&void 0!==P?P:oe(DD.Measure,PD.LabelValue,_D.BackgroundColor))&&void 0!==D?D:an.Transparent},measureLabels:{fontWeight:qD(null==ee?void 0:ee[MD.FontStyle],"normal"),fontStyle:ND(null==ee?void 0:ee[MD.FontStyle]),textDecoration:FD(null==ee?void 0:ee[MD.FontStyle]),color:null!==(_=null!==(O=TD(e,null==ee?void 0:ee[MD.FontColor]))&&void 0!==O?O:oe(DD.Measure,PD.LabelName,_D.Color))&&void 0!==_?_:an.FontSecondary,background:null!==(T=null!==(k=TD(e,null==ee?void 0:ee[MD.Background]))&&void 0!==k?k:oe(DD.Measure,PD.LabelName,_D.BackgroundColor))&&void 0!==T?T:an.Transparent},totalValues:{fontWeight:qD(null==te?void 0:te[MD.FontStyle],tn),fontStyle:ND(null==te?void 0:te[MD.FontStyle]),textDecoration:FD(null==te?void 0:te[MD.FontStyle]),color:null!==(q=null!==(N=TD(e,null==te?void 0:te[MD.FontColor]))&&void 0!==N?N:oe(DD.Total,PD.LabelValue,_D.Color))&&void 0!==q?q:lm.TEXT,background:null!==(F=null!==(z=TD(e,null==te?void 0:te[MD.Background]))&&void 0!==z?z:oe(DD.Total,PD.LabelValue,_D.BackgroundColor))&&void 0!==F?F:an.Transparent},nullValues:{fontWeight:qD(null==ne?void 0:ne[MD.FontStyle],"normal"),fontStyle:ND(null==ne?void 0:ne[MD.FontStyle]),textDecoration:FD(null==ne?void 0:ne[MD.FontStyle]),color:null!==(j=null!==($=TD(e,null==ne?void 0:ne[MD.FontColor]))&&void 0!==$?$:oe(DD.Null,PD.LabelValue,_D.Color))&&void 0!==j?j:lm.TEXT,background:null!==(G=null!==(B=TD(e,null==ne?void 0:ne[MD.Background]))&&void 0!==B?B:oe(DD.Null,PD.LabelValue,_D.BackgroundColor))&&void 0!==G?G:an.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(H=null!==(W=TD(e,null==re?void 0:re[MD.Border]))&&void 0!==W?W:oe(DD.Grid,PD.Grid,_D.BorderColor))&&void 0!==H?H:an.DividerLight,divider:null!==(V=null!==(Y=TD(e,null==re?void 0:re[MD.Divider]))&&void 0!==Y?Y:oe(DD.Grid,PD.Divider,_D.BorderColor))&&void 0!==V?V:an.DividerDark,background:null!==(U=null!==(K=TD(e,null==re?void 0:re[MD.Background]))&&void 0!==K?K:oe(DD.Grid,PD.Grid,_D.BackgroundColor))&&void 0!==U?U:an.Transparent}};return se.headerCellHeight=Math.max(kD(se.header.fontSize,ae),kD(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(kD(se.measureValues.fontSize,ie),kD(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=kD(se.dimensionValues.fontSize,1),se})(M,A,r)),[M,A,r]),z=(e=>o((()=>[...new Set([GD(e.header),GD(e.dimensionValues),GD({...e.dimensionValues,...e.measureLabels}),GD({...e.dimensionValues,...e.nullValues}),GD({...e.dimensionValues,...e.totalValues}),GD(e.measureValues),GD({...e.measureValues,...e.nullValues}),GD({...e.measureValues,...e.totalValues})])]),[e]))(F),j=(e=>{const[t,n]=i((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return n?(console.warn("Failed to load font:",n),!0):!!t})(z);r.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&Gb(),n((()=>{!N&&c&&(null==k?void 0:k.width)&&(null==k?void 0:k.height)&&I&&T&&A&&F&&!!q&&!L&&j&&LD(s,{model:c,app:x,rect:k,selections:I,viewService:T,layoutService:A,downloadService:w,qPivotDataPages:q,styleService:F,translator:D,pageInfo:_,updatePageInfo:O,interactions:C,embed:S,keyboard:E,theme:M,env:e})}),[c,x,k,null==k?void 0:k.width,null==k?void 0:k.height,C,I,T,A,w,N,q,F,s,j,D,P,_,O,R,L,S,E,M,e])},ZD={version:"3.8.2",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:[]},QD=e=>({...ZD,qHyperCubeDef:{...ZD.qHyperCubeDef,qIndentMode:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE")}})}}}));