@nebula.js/sn-table 1.18.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/esm/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  /*
2
- * @nebula.js/sn-table v1.18.0
2
+ * @nebula.js/sn-table v1.19.0
3
3
  * Copyright (c) 2022 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- import{useMemo as e,useTheme as t,onContextMenu as n,useElement as r,useStaleLayout as o,useOptions as i,useApp as a,useModel as s,useConstraints as l,useTranslator as c,useSelections as u,useKeyboard as d,useRect as p,useState as f,usePromise as m,useEffect as g}from"@nebula.js/stardust";import*as h from"react";import b,{useState as v,useMemo as y,useEffect as x,useContext as S,useRef as w,createElement as C,Children as E,isValidElement as k,cloneElement as T,createContext as R,useCallback as A,useReducer as P,memo as D}from"react";import*as O from"react-dom";import I,{flushSync as M}from"react-dom";const N={version:JSON.stringify("1.18.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],columnWidths:[]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},components:[]};function F(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function L(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var q,j={};q=j,(()=>{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)},s=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},l=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,c,u,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(m&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(m,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{default:()=>Pe});var e=n(229),t=n.n(e);const o=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var s=a[i];return a[i]=n,{updated:n,previous:s}}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};var a="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function l(e){return a+e+s}function c(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}function u(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],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=c(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=u(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function p(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function m(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 g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return"[$(=Replace(GetObjectField(".concat(e,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function b(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function y(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function x(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,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=y(d(r[0],o),g(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var u=d(r[0],o),p=d(r[1],o),f=g(0),m=g(1),h=y(u,f),b=y(p,m);return"".concat(a,"({1<").concat(h,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function S(e){return"".concat(e,"(")}function w(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const C={isFullRange:p,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=l(m(t));if(!n.showExcludedValues)return a;var s=x({modifier:n,dimensions:r,dimensionAndFieldList:o}),c=i?"":", 0";if(r&&1===r.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(c,")")}if(r&&2===r.length){var d=g(0),p=g(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(c,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!p(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:b,getAboveComp:function(e,t,n,r){return h(e,t)+n+b(r)},getFunctionPrefix:S,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return S(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:x,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===w({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=g(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:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(a);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+a.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:d,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 s=w({properties:t,layout:n});return s>=o&&s<=a},getExpressionWithMarkers:l,canExtract:function(e){var t=e.indexOf(a),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")}};function E(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 k(e){return k="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},k(e)}var T=t().bind(null,!0),R={},A=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===k(e)}function D(e){return void 0===e}function O(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function I(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=D(e[n||t])?i:e[t],e=e[n||t]}})),e}function M(e,t){var n=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){M(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(!M(e[r],t[r]))return!1;return!0}return e===t}R.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?T({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);M(i,a)||O(t,o)||(D(a)?r.push({op:"add",path:s,value:i}):P(i)&&P(a)?r=r.concat(R.generate(a,i,s)):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]&&D(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(M(t,o))return r;if(!D(t[0])&&D(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),o.splice(s,1)):r=r.concat(R.generate(o[s],t[i],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){D(t[o])&&!O(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},R.apply=function(e,t){t.forEach((function(t){var n,r,o=I(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return E(e)}(r=c)||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 E(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)?E(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(P(a)&&P(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!O(n,e)&&delete n[e]})),T(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 u=I(e,t.from);A(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},R.clone=function(e){return T({},e)},R.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},R.updateObject=function(e,t){Object.keys(e).length?R.apply(e,R.generate(e,t)):T(e,t)};const N=R,F=function(e,n,r){if(!e)return Promise.resolve();var o=N.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 L="accumulation";function q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===L)return n[r]}function j(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===L)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const $={translationKey:"properties.modifier.accumulation",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return C.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,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=C.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=C.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=C.getNumStepComp(n,l),p=C.getAboveComp(n,l,u,d),f=C.getRangeComp("RangeSum",p);if(C.needDimension({modifier:n,properties:r,layout:o})){var m=C.getDimComp(c,1),g=C.getDimComp(c,0),h=C.getAggrComp(f,m,g);f=n.showExcludedValues?C.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:h}):h}return f},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,z)},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!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(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(j(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(j(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(j(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(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(L))return!1;var i=q(t,e);return i&&!i.disabled}};return n}};var _="movingAverage";function B(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===_)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===_)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return C.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,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=C.getNumDimensions({properties:o,layout:a}));var u=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=C.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),f=C.getNumStepComp(r,c),m=C.getAboveComp(r,c,p,f);if(r.nullSuppression)t=C.getRangeComp("RangeAvg",m);else{var g=C.getRangeComp("RangeSum",m),h=function(e,t){var n=C.getRowNoComp(e,t);if(!C.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,c);t="".concat(g," / ").concat(h)}var b=t;if(C.needDimension({modifier:r,properties:o,layout:a})){var v=C.getDimComp(u,1),y=C.getDimComp(u,0),x=C.getAggrComp(b,v,y);b=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=B(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=B(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=B(t,e);return i&&!i.disabled}};return n}};var U="difference";function K(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===U)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===U)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var X={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const Y={translationKey:"properties.modifier.difference",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return C.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:C.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=C.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=C.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=C.getAboveComp(n,l,u),p="".concat(u," - ").concat(d);if(C.needDimension({modifier:n,properties:r,layout:o})){var f=C.getDimComp(c,1),m=C.getDimComp(c,0),g=C.getAggrComp(p,f,m);p=n.showExcludedValues?C.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:g}):g}return p},initModifier:function(e){Object.keys(X).forEach((function(t){void 0===e[t]&&(e[t]=X[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!C.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.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(G(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(G(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=K(t,e);return i&&!i.disabled}};return n}};var J="normalization";function Z(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 Q(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}function ee(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}function te(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=ee(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=ee(t,1);t.splice(r,1)}return t}(Z(e,r).selectionScope,i),i}function ne(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=ee(t,0);t.splice(r,1)}return t}(Z(e,n).dimensionalScope,r),r}var re={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function oe(e){return 2===e?"{1}":""}function ie(e,t,n){return 1===e?"{$<".concat(C.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function ae(e,t){return 0===e&&t>1||2===e?"Total":""}function se(e,t,n){return 0===e&&t>1?"<".concat(C.getDimDefWithWrapper(n),">"):""}const le={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return C.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:C.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=C.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=C.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var s=oe(t),l=ie(t,n,r),c=""===s&&""===l?"":s||l,u=ae(o,i),d=se(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=C.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(p,"))")}(u,d,n.field,n.value,p,l,n.primaryDimension)},initModifier:function(e){Object.keys(re).forEach((function(t){void 0===e[t]&&(e[t]=re[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!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(Q(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 ne(n,t,e)}},field:{refFn:function(t){return"".concat(Q(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===Z(t,e).selectionScope}},value:{refFn:function(t){return"".concat(Q(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===Z(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(Q(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 te(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(Q(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===(Z(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return C.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=Z(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:oe,getFieldSelectionComp:ie,getTotalComp:ae,getSelectedDimComp:se};var ce="qDef.base",ue="qDef.qDef",de="qDef.base.qDef",pe="qLibraryId",fe="qDef.base.qLibraryId";const me={getExpression:function(e){var t=i(e,de);return void 0!==t?t:i(e,ue)},getExpressionRef:function(e){return void 0!==i(e,de)?de:ue},getLibraryIdRef:function(e){return i(e,fe)?fe:pe},getLibraryId:function(e){return i(e,fe)||i(e,pe)},getLabelRef:function(e){return i(e,ce)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,ce)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ge="qDef.qDef",he="qDef.base.qDef",be="qLibraryId",ve="qDef.base.qLibraryId",ye="qDef.qLabel",xe="qDef.qLabelExpression",Se="qDef.base.qLabel",we="qDef.base.qLabelExpression",Ce="qDef.qAggrFunc",Ee="qDef.base.qAggrFunc",ke={initBase:function(e,t){(t||ke.isValid(e))&&(o(e,he,i(e,ge)),o(e,ve,i(e,be)),o(e,Se,i(e,ye)),o(e,we,i(e,xe)))},restoreBase:function(e){ke.isValid(e)&&(o(e,ge,i(e,he)),o(e,be,i(e,ve)),o(e,ye,i(e,Se)),o(e,xe,i(e,we)),i(e,Ce)&&i(e,Ee)&&o(e,Ce,i(e,Ee)),delete e.qDef.base)},isValid:function(e){var t=i(e,he),n=i(e,ve);return void 0!==t||void 0!==n}};const Te=ke;function Re(e){return Re="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},Re(e)}var Ae={accumulation:$,movingAverage:V,difference:Y,normalization:le};const Pe={modifiers:Ae,apply:Oe,applyModifiers:Ie,cleanUpMeasure:Me,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:Ne,getActiveModifier:Fe,initBase:Te.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:n,layout:r})}))},measureBase:me,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);Ke({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||et({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Le};var De={};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,s=e.masterItem,l=!1;De[n.id]=De[n.id]||{isFirstTime:!0};var c=De[n.id].isFirstTime;if(De[n.id].isFirstTime=!1,r&&"object"===Re(r))return Ie({model:n,properties:r});var u=n?n.layout:void 0,d=i(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(u,"qHyperCube.qMeasureInfo"),f=De[n.id].lastReloadTime;if(De[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:u})){var m=Ve({measures:p,layout:u,model:n,lastReloadTime:f});return m||Xe({measures:p,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);$e(r);var o=tt(r);return Ye({model:n}).then((function(t){return Je({libraryIds:o,model:n}).then((function(o){return m&&Ue({properties:r}),Ie({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return Ge(p)?n.getEffectiveProperties().then((function(e){return rt({model:n,properties:e})})):Promise.resolve(l)}function Ie(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},o):o),$e(o);var p=tt(o);return nt({model:n,libraryIds:p,masterItem:c}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=qe(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Me(e)})),Promise.resolve();var l=a?void 0:tt(r);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Je({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ke({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Te.isValid(n)||Te.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===Re(e)&&!e.disabled){if(s++,"object"!==Re(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ae[e.type].initModifier(e);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ae[r.type].generateExpression({expression:s,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,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:l,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ae[r.type].updateModifier&&Ae[r.type].updateModifier(r,o.qHyperCubeDef);var a=me.getExpression(n),s=""===a?a:Ae[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,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||Le(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Le(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}),_e(n)):Me(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Qe({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Me(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Re(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Te.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,_e(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ke({modifiers:je(e),properties:n,layout:r})}))}function Fe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ae[r.type]&&!r.disabled)return r}}function Le(e){var t=Fe(e);return!t||Ae[t.type].enableTotalsFunction(e)}function qe(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 ze(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){qe(e).forEach((function(e){return function(e){var n=Fe(e);n&&(void 0!==n.outputExpression&&ze(n)!==e.qDef.qDef?delete e.qDef.base:!Te.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function _e(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Re(t)&&(t.disabled||!Ae[t.type]&&ze(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=Be(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,n=e.properties,r=e.layout;return!He(t)&&Ke({modifiers:je(t),properties:n,layout:r})}function Ve(e){var t=e.measures,n=e.layout,r=e.model,o=e.lastReloadTime;return i(r,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}function Ue(e){var t=e.properties;qe(t).forEach((function(e){return function(e){var t=e.measure;if(We({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Re(e)&&!e.disabled){if(n++,"object"!==Re(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Be(t)&&C.simplifyExpression(t.qDef.base.qDef)!==C.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}function Ke(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Re(e)||e.disabled||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ge(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Re(e.base)}))}function Xe(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 Ke({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Je(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={},s=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Ze(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Qe(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Ze)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Ze)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ze)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ze);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):F(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function et(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Re(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function tt(e){var t=qe(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ke({modifiers:r,properties:e})){var i=He(t);i&&n.push(i),o=o||et({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function nt(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(De[t.id].masterItemSubscriber=De[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=i(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var o=l(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds: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]&&s.push(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},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()}))}}),De[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}function rt(e){var n=e.model,r=e.properties,o=tt(r);return nt({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return qe(r).forEach((function(e){return Me(e)})),Qe({oldProperties:e,newProperties:r,model:n})}))}})(),q.default=r.default,Object.defineProperty(q,"__esModule",{value:!0})})();var z=F(j);const $={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},_={visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellColoring:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"}]}},B={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},H=e=>{var t,n,r;return[{type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,key:"theme",defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"general",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",width:9,min:5,max:300,placeholder:"",change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"general",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",width:9,min:5,max:300,placeholder:"",change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",dualOutput:!0}}}}}}},hoverEffectSection:{translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"general",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]},{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(n=t.sense)&&void 0!==n&&null!==(r=n.isUnsupportedFeature)&&void 0!==r&&r.call(n,"totals"))}]},W=e=>{var t,n,r,o,i,a;return{type:"items",component:"accordion",items:{data:{type:"items",component:"columns",translation:"Common.Data",sortIndexRef:"qHyperCubeDef.qColumnOrder",allowMove:!0,allowAdd:!0,addTranslation:"Common.Columns",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",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},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},...$,..._,...B}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",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},...$,..._,...B,totalsAggr:{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!z.hasActiveModifiers({measures:[e],properties:t.properties})||z.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(n=t.sense)&&void 0!==n&&null!==(r=n.isUnsupportedFeature)&&void 0!==r&&r.call(n,"totals")?"None":"Expr"},totalsAggrFuncMessage:{component:"text",translation:"Object.Table.AggrFuncMessage",show:(e,t)=>"noTotals"===(null==t?void 0:t.properties.totals.position)&&!t.properties.totals.show}}}},show:!(null!=e&&null!==(o=e.anything)&&void 0!==o&&null!==(i=o.sense)&&void 0!==i&&null!==(a=i.isUnsupportedFeature)&&void 0!==a&&a.call(i,"totals"))}}}}},sorting:{uses:"sorting"},addOns:{type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},settings:{uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:H(e)},...e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")&&{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"}}}}}}}}};function V(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function U(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}function K(e){return e>0?0:1}function G(e){return e.translator.get("Visualizations.Descriptions.Column")}function X(e){return{definition:W(e),...e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")&&{exploration:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!0}},classification:{tags:["exploration"],exclusive:!0}}},data:{measures:{min:K,max:1e3,description:()=>G(e),add(e,t,n){const{qColumnOrder:r,columnWidths:o}=n.hcProperties,i=n.getDimensions().length+n.getMeasures().length-1;V(r,i),o.splice(r[i],0,-1)},remove(e,t,n,r){const{qColumnOrder:o,columnWidths:i}=n.hcProperties,a=(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r;U(o,a),i.splice(a,1)}},dimensions:{min:K,max:1e3,description:()=>G(e),add(e,t,n){const{qColumnOrder:r,columnWidths:o}=n.hcProperties,i=n.getDimensions().length-1;return V(r,i),o.splice(i,0,-1),e},remove(e,t,n,r){const{qColumnOrder:o,columnWidths:i}=n.hcProperties;U(o,r),i.splice(o[r],1)}}},support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0}}}var Y;!function(e){e.A="asc",e.D="desc",e.N="asc"}(Y||(Y={}));function J(e,t){return[...t].reverse().find((t=>t*e<=1e4))||Math.floor(1e4/e)}function Z(e,t,n,r,o){var i;return e?0===n&&0===o[0]?t.totals.label:"":null===(i=t.qHyperCube.qGrandTotalRow[n-r])||void 0===i?void 0:i.qText}async function Q(e,t,n,r){const{page:o,rowsPerPage:i,rowsPerPageOptions:a}=n,{qHyperCube:s}=t,l=s.qSize.qcx,c=s.qSize.qcy,u=Math.ceil(c/i),d=c>10,p=o*i,f=Math.min(i,c-p);if(o>0&&p>=c&&n)return r({...n,page:0}),null;if(f*l>1e4&&n)return r({...n,rowsPerPage:J(l,a),page:0}),null;const m=function({qColumnOrder:e,qDimensionInfo:t,qMeasureInfo:n}){const r=t.length+n.length;return(null==e?void 0:e.length)===r?e:Array.from(Array(r).keys())}(s),g=m.map((e=>function(e,t,n){var r;const{qDimensionInfo:o,qMeasureInfo:i}=e.qHyperCube,a=o.length,s=t<a,l=s?o[t]:i[t-a],c=7005===(null===(r=l.qError)||void 0===r?void 0:r.qErrorCode),u=s&&l.qLocked,d=s?"left":"right";return!c&&{isDim:s,isLocked:u,width:200,label:l.qFallbackTitle,id:`col-${t}`,align:!l.textAlign||l.textAlign.auto?d:l.textAlign.align,stylingIDs:l.qAttrExprInfo.map((e=>e.id)),sortDirection:l.qSortIndicator?Y[l.qSortIndicator]:Y.A,dataColIdx:t,totalInfo:Z(s,e,t,a,n)}}(t,e,m))).filter(Boolean),h=(await e.getHyperCubeData("/qHyperCubeDef",[{qTop:p,qLeft:0,qHeight:f,qWidth:l}]))[0].qMatrix.map(((e,t)=>{const n={key:`row-${t}`};return g.forEach(((r,o)=>{n[r.id]={...e[o],rowIdx:t+p,colIdx:m[o],isSelectable:r.isDim&&!r.isLocked,rawRowIdx:t,rawColIdx:o,isLastRow:t===f-1}})),n})),b=function(e){var t;const[n,r,o,i,a]=[0===e.qHyperCube.qDimensionInfo.length,e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.qHyperCube.qMeasureInfo.length>0,null===(t=e.totals)||void 0===t?void 0:t.show];if(o&&(r&&i||!a&&n)){if(a||!a&&"top"===e.totals.position)return"top";if(!a&&"bottom"===e.totals.position)return"bottom"}return"noTotals"}(t);return{totalColumnCount:l,totalRowCount:c,totalPages:u,paginationNeeded:d,rows:h,columns:g,totalsPosition:b}}var ee,te={exports:{}},ne={},re=Symbol.for("react.element"),oe=Symbol.for("react.portal"),ie=Symbol.for("react.fragment"),ae=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),le=Symbol.for("react.provider"),ce=Symbol.for("react.context"),ue=Symbol.for("react.server_context"),de=Symbol.for("react.forward_ref"),pe=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),he=Symbol.for("react.offscreen");function be(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case re:switch(e=e.type){case ie:case se:case ae:case pe:case fe:return e;default:switch(e=e&&e.$$typeof){case ue:case ce:case de:case ge:case me:case le:return e;default:return t}}case oe:return t}}}ee=Symbol.for("react.module.reference"),ne.ContextConsumer=ce,ne.ContextProvider=le,ne.Element=re,ne.ForwardRef=de,ne.Fragment=ie,ne.Lazy=ge,ne.Memo=me,ne.Portal=oe,ne.Profiler=se,ne.StrictMode=ae,ne.Suspense=pe,ne.SuspenseList=fe,ne.isAsyncMode=function(){return!1},ne.isConcurrentMode=function(){return!1},ne.isContextConsumer=function(e){return be(e)===ce},ne.isContextProvider=function(e){return be(e)===le},ne.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===re},ne.isForwardRef=function(e){return be(e)===de},ne.isFragment=function(e){return be(e)===ie},ne.isLazy=function(e){return be(e)===ge},ne.isMemo=function(e){return be(e)===me},ne.isPortal=function(e){return be(e)===oe},ne.isProfiler=function(e){return be(e)===se},ne.isStrictMode=function(e){return be(e)===ae},ne.isSuspense=function(e){return be(e)===pe},ne.isSuspenseList=function(e){return be(e)===fe},ne.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ie||e===se||e===ae||e===pe||e===fe||e===he||"object"==typeof e&&null!==e&&(e.$$typeof===ge||e.$$typeof===me||e.$$typeof===le||e.$$typeof===ce||e.$$typeof===de||e.$$typeof===ee||void 0!==e.getModuleId)},ne.typeOf=be,te.exports=ne;function ve(e){function t(e,r,l,c,p){for(var f,m,g,h,x,w=0,C=0,E=0,k=0,T=0,I=0,N=g=f=0,L=0,q=0,j=0,z=0,$=l.length,_=$-1,B="",H="",W="",V="";L<$;){if(m=l.charCodeAt(L),L===_&&0!==C+k+E+w&&(0!==C&&(m=47===C?10:47),k=E=w=0,$++,_++),0===C+k+E+w){if(L===_&&(0<q&&(B=B.replace(d,"")),0<B.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:B+=l.charAt(L)}m=59}switch(m){case 123:for(f=(B=B.trim()).charCodeAt(0),g=1,z=++L;L<$;){switch(m=l.charCodeAt(L)){case 123:g++;break;case 125:g--;break;case 47:switch(m=l.charCodeAt(L+1)){case 42:case 47:e:{for(N=L+1;N<_;++N)switch(l.charCodeAt(N)){case 47:if(42===m&&42===l.charCodeAt(N-1)&&L+2!==N){L=N+1;break e}break;case 10:if(47===m){L=N+1;break e}}L=N}}break;case 91:m++;case 40:m++;case 34:case 39:for(;L++<_&&l.charCodeAt(L)!==m;);}if(0===g)break;L++}if(g=l.substring(z,L),0===f&&(f=(B=B.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<q&&(B=B.replace(d,"")),m=B.charCodeAt(1)){case 100:case 109:case 115:case 45:q=r;break;default:q=O}if(z=(g=t(r,q,g,m,p+1)).length,0<M&&(x=s(3,g,q=n(O,B,j),r,A,R,z,m,p,c),B=q.join(""),void 0!==x&&0===(z=(g=x.trim()).length)&&(m=0,g="")),0<z)switch(m){case 115:B=B.replace(S,a);case 100:case 109:case 45:g=B+"{"+g+"}";break;case 107:g=(B=B.replace(b,"$1 $2"))+"{"+g+"}",g=1===D||2===D&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=B+g,112===c&&(H+=g,g="")}else g=""}else g=t(r,n(r,B,j),g,c,p+1);W+=g,g=j=q=N=f=0,B="",m=l.charCodeAt(++L);break;case 125:case 59:if(1<(z=(B=(0<q?B.replace(d,""):B).trim()).length))switch(0===N&&(f=B.charCodeAt(0),45===f||96<f&&123>f)&&(z=(B=B.replace(" ",":")).length),0<M&&void 0!==(x=s(1,B,r,e,A,R,H.length,c,p,c))&&0===(z=(B=x.trim()).length)&&(B="\0\0"),f=B.charCodeAt(0),m=B.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){V+=B+l.charAt(L);break}default:58!==B.charCodeAt(z-1)&&(H+=o(B,f,m,B.charCodeAt(2)))}j=q=N=f=0,B="",m=l.charCodeAt(++L)}}switch(m){case 13:case 10:47===C?C=0:0===1+f&&107!==c&&0<B.length&&(q=1,B+="\0"),0<M*F&&s(0,B,r,e,A,R,H.length,c,p,c),R=1,A++;break;case 59:case 125:if(0===C+k+E+w){R++;break}default:switch(R++,h=l.charAt(L),m){case 9:case 32:if(0===k+w+C)switch(T){case 44:case 58:case 9:case 32:h="";break;default:32!==m&&(h=" ")}break;case 0:h="\\0";break;case 12:h="\\f";break;case 11:h="\\v";break;case 38:0===k+C+w&&(q=j=1,h="\f"+h);break;case 108:if(0===k+C+w+P&&0<N)switch(L-N){case 2:112===T&&58===l.charCodeAt(L-3)&&(P=T);case 8:111===I&&(P=I)}break;case 58:0===k+C+w&&(N=L);break;case 44:0===C+E+k+w&&(q=1,h+="\r");break;case 34:case 39:0===C&&(k=k===m?0:0===k?m:k);break;case 91:0===k+C+E&&w++;break;case 93:0===k+C+E&&w--;break;case 41:0===k+C+w&&E--;break;case 40:if(0===k+C+w){if(0===f)if(2*T+3*I==533);else f=1;E++}break;case 64:0===C+E+k+w+N+g&&(g=1);break;case 42:case 47:if(!(0<k+w+E))switch(C){case 0:switch(2*m+3*l.charCodeAt(L+1)){case 235:C=47;break;case 220:z=L,C=42}break;case 42:47===m&&42===T&&z+2!==L&&(33===l.charCodeAt(z+2)&&(H+=l.substring(z,L+1)),h="",C=0)}}0===C&&(B+=h)}I=T,T=m,L++}if(0<(z=H.length)){if(q=r,0<M&&(void 0!==(x=s(2,H,q,e,A,R,z,c,p,c))&&0===(H=x).length))return V+H+W;if(H=q.join(",")+"{"+H+"}",0!=D*P){switch(2!==D||i(H,2)||(P=0),P){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(v,"::-webkit-input-$1")+H.replace(v,"::-moz-$1")+H.replace(v,":-ms-input-$1")+H}P=0}}return V+H+W}function n(e,t,n){var o=t.trim().split(g);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===D||2===D&&i(l,1)?"-webkit-"+l+l:l}if(0===D||2===D&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(T,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(x,"tb");break;case 232:l=a.replace(x,"tb-rl");break;case 220:l=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),N(2!==t?r:r.replace(E,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,l,u){for(var d,p=0,f=t;p<M;++p)switch(d=I[p].call(c,e,f,n,r,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?D=1:(D=2,N=e):D=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<M){var o=s(-1,n,r,r,A,R,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(O,r,n,0,0);return 0<M&&(void 0!==(o=s(-2,i,r,r,A,R,i.length,0,0,0))&&(i=o)),"",P=0,R=A=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,g=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,C=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,R=1,A=1,P=0,D=1,O=[],I=[],M=0,N=null,F=0;return c.use=function e(t){switch(t){case void 0:case null:M=I.length=0;break;default:if("function"==typeof t)I[M++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else F=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}var ye={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function xe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Se=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,we=xe((function(e){return Se.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ce={exports:{}},Ee={},ke="function"==typeof Symbol&&Symbol.for,Te=ke?Symbol.for("react.element"):60103,Re=ke?Symbol.for("react.portal"):60106,Ae=ke?Symbol.for("react.fragment"):60107,Pe=ke?Symbol.for("react.strict_mode"):60108,De=ke?Symbol.for("react.profiler"):60114,Oe=ke?Symbol.for("react.provider"):60109,Ie=ke?Symbol.for("react.context"):60110,Me=ke?Symbol.for("react.async_mode"):60111,Ne=ke?Symbol.for("react.concurrent_mode"):60111,Fe=ke?Symbol.for("react.forward_ref"):60112,Le=ke?Symbol.for("react.suspense"):60113,qe=ke?Symbol.for("react.suspense_list"):60120,je=ke?Symbol.for("react.memo"):60115,ze=ke?Symbol.for("react.lazy"):60116,$e=ke?Symbol.for("react.block"):60121,_e=ke?Symbol.for("react.fundamental"):60117,Be=ke?Symbol.for("react.responder"):60118,He=ke?Symbol.for("react.scope"):60119;function We(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Te:switch(e=e.type){case Me:case Ne:case Ae:case De:case Pe:case Le:return e;default:switch(e=e&&e.$$typeof){case Ie:case Fe:case ze:case je:case Oe:return e;default:return t}}case Re:return t}}}function Ve(e){return We(e)===Ne}Ee.AsyncMode=Me,Ee.ConcurrentMode=Ne,Ee.ContextConsumer=Ie,Ee.ContextProvider=Oe,Ee.Element=Te,Ee.ForwardRef=Fe,Ee.Fragment=Ae,Ee.Lazy=ze,Ee.Memo=je,Ee.Portal=Re,Ee.Profiler=De,Ee.StrictMode=Pe,Ee.Suspense=Le,Ee.isAsyncMode=function(e){return Ve(e)||We(e)===Me},Ee.isConcurrentMode=Ve,Ee.isContextConsumer=function(e){return We(e)===Ie},Ee.isContextProvider=function(e){return We(e)===Oe},Ee.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Te},Ee.isForwardRef=function(e){return We(e)===Fe},Ee.isFragment=function(e){return We(e)===Ae},Ee.isLazy=function(e){return We(e)===ze},Ee.isMemo=function(e){return We(e)===je},Ee.isPortal=function(e){return We(e)===Re},Ee.isProfiler=function(e){return We(e)===De},Ee.isStrictMode=function(e){return We(e)===Pe},Ee.isSuspense=function(e){return We(e)===Le},Ee.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ae||e===Ne||e===De||e===Pe||e===Le||e===qe||"object"==typeof e&&null!==e&&(e.$$typeof===ze||e.$$typeof===je||e.$$typeof===Oe||e.$$typeof===Ie||e.$$typeof===Fe||e.$$typeof===_e||e.$$typeof===Be||e.$$typeof===He||e.$$typeof===$e)},Ee.typeOf=We;var Ue=Ce.exports=Ee,Ke={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ge={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ye={};function Je(e){return Ue.isMemo(e)?Xe:Ye[e.$$typeof]||Ke}Ye[Ue.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ye[Ue.Memo]=Xe;var Ze=Object.defineProperty,Qe=Object.getOwnPropertyNames,et=Object.getOwnPropertySymbols,tt=Object.getOwnPropertyDescriptor,nt=Object.getPrototypeOf,rt=Object.prototype;var ot=function e(t,n,r){if("string"!=typeof n){if(rt){var o=nt(n);o&&o!==rt&&e(t,o,r)}var i=Qe(n);et&&(i=i.concat(et(n)));for(var a=Je(t),s=Je(n),l=0;l<i.length;++l){var c=i[l];if(!(Ge[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=tt(n,c);try{Ze(t,c,u)}catch(e){}}}}return t};function it(){return(it=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var at=function(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},st=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!te.exports.typeOf(e)},lt=Object.freeze([]),ct=Object.freeze({});function ut(e){return"function"==typeof e}function dt(e){return e.displayName||e.name||"Component"}function pt(e){return e&&"string"==typeof e.styledComponentId}var ft="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",mt="undefined"!=typeof window&&"HTMLElement"in window,gt=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&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.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),ht={};function bt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var vt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&bt(16,""+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),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.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)}},t.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+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),yt=new Map,xt=new Map,St=1,wt=function(e){if(yt.has(e))return yt.get(e);for(;xt.has(St);)St++;var t=St++;return yt.set(e,t),xt.set(t,e),t},Ct=function(e){return xt.get(e)},Et=function(e,t){t>=St&&(St=t+1),yt.set(e,t),xt.set(t,e)},kt="style["+ft+'][data-styled-version="5.3.5"]',Tt=new RegExp("^"+ft+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Rt=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)},At=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(Tt);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(Et(c,l),Rt(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},Pt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(ft))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(ft,"active"),r.setAttribute("data-styled-version","5.3.5");var a="undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Dt=function(){function e(e){var t=this.element=Pt(e);t.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}bt(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Ot=function(){function e(e){var t=this.element=Pt(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),It=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Mt=mt,Nt={isServer:!mt,useCSSOMInjection:!gt},Ft=function(){function e(e,t,n){void 0===e&&(e=ct),void 0===t&&(t={}),this.options=it({},Nt,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&mt&&Mt&&(Mt=!1,function(e){for(var t=document.querySelectorAll(kt),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(ft)&&(At(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return wt(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(it({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new It(o):r?new Dt(o):new Ot(o),new vt(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(wt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(wt(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(wt(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=Ct(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var l=ft+".g"+o+'[id="'+i+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),Lt=/(a)(d)/gi,qt=function(e){return String.fromCharCode(e+(e>25?39:97))};function jt(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=qt(t%52)+n;return(qt(t%52)+n).replace(Lt,"$1-$2")}var zt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$t=function(e){return zt(5381,e)};function _t(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ut(n)&&!pt(n))return!1}return!0}var Bt=$t("5.3.5"),Ht=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&_t(e),this.componentId=t,this.baseHash=zt(Bt,t),this.baseStyle=n,Ft.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ln(this.rules,e,t,n).join(""),a=jt(zt(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=zt(this.baseHash,n.hash),u="",d=0;d<l;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var f=ln(p,e,t,n),m=Array.isArray(f)?f.join(""):f;c=zt(c,m+d),u+=m}}if(u){var g=jt(c>>>0);if(!t.hasNameForId(r,g)){var h=n(u,"."+g,void 0,r);t.insertRules(r,g,h)}o.push(g)}}return o.join(" ")},e}(),Wt=/^\s*\/\/.*$/gm,Vt=[":","[",".","#"];function Ut(e){var t,n,r,o,i=void 0===e?ct:e,a=i.options,s=void 0===a?ct:a,l=i.plugins,c=void 0===l?lt:l,u=new ve(s),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,l,c,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),f=function(e,r,i){return 0===r&&-1!==Vt.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var l=e.replace(Wt,""),c=i&&a?a+" "+i+" { "+l+" }":l;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),u(a||!i?"":i,c)}return u.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||bt(15),zt(e,t.name)}),5381).toString():"",m}var Kt=b.createContext();Kt.Consumer;var Gt=b.createContext(),Xt=(Gt.Consumer,new Ft),Yt=Ut();function Jt(){return S(Kt)||Xt}function Zt(){return S(Gt)||Yt}function Qt(e){var t=v(e.stylisPlugins),n=t[0],r=t[1],o=Jt(),i=y((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=y((function(){return Ut({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return x((function(){(function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0})(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),b.createElement(Kt.Provider,{value:i},b.createElement(Gt.Provider,{value:a},e.children))}var en=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Yt);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return bt(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Yt),this.name+e.hash},e}(),tn=/([A-Z])/,nn=/([A-Z])/g,rn=/^ms-/,on=function(e){return"-"+e.toLowerCase()};function an(e){return tn.test(e)?e.replace(nn,on).replace(rn,"-ms-"):e}var sn=function(e){return null==e||!1===e||""===e};function ln(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=ln(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return sn(e)?"":pt(e)?"."+e.styledComponentId:ut(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ln(e(t),t,n,r):e instanceof en?n?(e.inject(n,r),e.getName(r)):e:st(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!sn(t[a])&&(Array.isArray(t[a])&&t[a].isCss||ut(t[a])?i.push(an(a)+":",t[a],";"):st(t[a])?i.push.apply(i,e(t[a],a)):i.push(an(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in ye?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var cn=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function un(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ut(e)||st(e)?cn(ln(at(lt,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:cn(ln(at(e,n)))}var dn=function(e,t,n){return void 0===n&&(n=ct),e.theme!==n.theme&&e.theme||t||n.theme},pn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,fn=/(^-|-$)/g;function mn(e){return e.replace(pn,"-").replace(fn,"")}var gn=function(e){return jt($t(e)>>>0)};function hn(e){return"string"==typeof e&&!0}var bn=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},vn=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function yn(e,t,n){var r=e[n];bn(t)&&bn(r)?xn(r,t):e[n]=t}function xn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(bn(a))for(var s in a)vn(s)&&yn(e,a[s],s)}return e}var Sn=b.createContext();Sn.Consumer;var wn={};function Cn(e,t,n){var r=pt(e),o=!hn(e),i=t.attrs,a=void 0===i?lt:i,s=t.componentId,l=void 0===s?function(e,t){var n="string"!=typeof e?"sc":mn(e);wn[n]=(wn[n]||0)+1;var r=n+"-"+gn("5.3.5"+n+wn[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):s,c=t.displayName,u=void 0===c?function(e){return hn(e)?"styled."+e:"Styled("+dt(e)+")"}(e):c,d=t.displayName&&t.componentId?mn(t.displayName)+"-"+t.componentId:t.componentId||l,p=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,f=t.shouldForwardProp;r&&e.shouldForwardProp&&(f=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var m,g=new Ht(n,d,r?e.componentStyle:void 0),h=g.isStatic&&0===a.length,v=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,l=e.shouldForwardProp,c=e.styledComponentId,u=e.target,d=function(e,t,n){void 0===e&&(e=ct);var r=it({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in ut(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(dn(t,S(Sn),a)||ct,t,o),p=d[0],f=d[1],m=function(e,t,n,r){var o=Jt(),i=Zt();return t?e.generateAndInjectStyles(ct,o,i):e.generateAndInjectStyles(n,o,i)}(i,r,p),g=n,h=f.$as||t.$as||f.as||t.as||u,b=hn(h),v=f!==t?it({},t,{},f):t,y={};for(var x in v)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?y.as=v[x]:(l?l(x,we,h):!b||we(x))&&(y[x]=v[x]));return t.style&&f.style!==t.style&&(y.style=it({},t.style,{},f.style)),y.className=Array.prototype.concat(s,c,m!==c?m:null,t.className,f.className).filter(Boolean).join(" "),y.ref=g,C(h,y)}(m,e,t,h)};return v.displayName=u,(m=b.forwardRef(v)).attrs=p,m.componentStyle=g,m.displayName=u,m.shouldForwardProp=f,m.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):lt,m.styledComponentId=d,m.target=r?e.target:e,m.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(hn(e)?e:mn(dt(e)));return Cn(e,it({},o,{attrs:p,componentId:i}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?xn({},e.defaultProps,t):t}}),m.toString=function(){return"."+m.styledComponentId},o&&ot(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var En=function(e){return function e(t,n,r){if(void 0===r&&(r=ct),!te.exports.isValidElementType(n))return bt(1,String(n));var o=function(){return t(n,r,un.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,it({},r,{},o))},o.attrs=function(o){return e(t,n,it({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(Cn,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){En[e]=En(e)}));var kn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=_t(e),Ft.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(ln(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Ft.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Tn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=un.apply(void 0,[e].concat(n)).join(""),i=gn(o);return new en(i,o)}function Rn(){return Rn=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},Rn.apply(this,arguments)}function An(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 Pn={exports:{}};function Dn(){}function On(){}On.resetWarningCache=Dn;function In(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}Pn.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:On,resetWarningCache:Dn};return n.PropTypes=n,n}(),In.propTypes={children:Pn.exports.node,injectFirst:Pn.exports.bool};const Mn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=un.apply(void 0,[e].concat(n)),i="sc-global-"+gn(JSON.stringify(o)),a=new kn(o,i);function s(e){var t=Jt(),n=Zt(),r=S(Sn),o=w(t.allocateGSInstance(i)).current;return t.server&&l(o,e,t,r,n),null}function l(e,t,n,r,o){if(a.isStatic)a.renderStyles(e,ht,n,o);else{var i=it({},t,{theme:dn(t,r,s.defaultProps)});a.renderStyles(e,i,n,o)}}return b.memo(s)}((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}));
7
+ import{useMemo as e,useTheme as t,onContextMenu as n,useElement as r,useStaleLayout as o,useOptions as i,useApp as a,useModel as s,useConstraints as l,useTranslator as c,useSelections as u,useKeyboard as d,useRect as p,useState as f,usePromise as m,useEffect as g}from"@nebula.js/stardust";import*as h from"react";import b,{useState as v,useMemo as y,useEffect as x,useContext as S,useRef as w,createElement as C,Children as E,isValidElement as k,cloneElement as T,createContext as R,useCallback as A,useReducer as P,memo as O}from"react";import*as D from"react-dom";import I,{flushSync as M}from"react-dom";const N={version:JSON.stringify("1.19.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],columnWidths:[]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},components:[]};function F(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function L(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var j,q={};j=q,(()=>{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)},s=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},l=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,c,u,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(m&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(m,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{default:()=>Pe});var e=n(229),t=n.n(e);const o=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var s=a[i];return a[i]=n,{updated:n,previous:s}}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};var a="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function l(e){return a+e+s}function c(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}function u(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],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=c(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=u(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function p(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function m(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 g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return"[$(=Replace(GetObjectField(".concat(e,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function b(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function y(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function x(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,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=y(d(r[0],o),g(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var u=d(r[0],o),p=d(r[1],o),f=g(0),m=g(1),h=y(u,f),b=y(p,m);return"".concat(a,"({1<").concat(h,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function S(e){return"".concat(e,"(")}function w(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const C={isFullRange:p,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=l(m(t));if(!n.showExcludedValues)return a;var s=x({modifier:n,dimensions:r,dimensionAndFieldList:o}),c=i?"":", 0";if(r&&1===r.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(c,")")}if(r&&2===r.length){var d=g(0),p=g(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(c,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!p(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:b,getAboveComp:function(e,t,n,r){return h(e,t)+n+b(r)},getFunctionPrefix:S,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return S(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:x,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===w({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=g(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:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(a);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+a.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:d,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 s=w({properties:t,layout:n});return s>=o&&s<=a},getExpressionWithMarkers:l,canExtract:function(e){var t=e.indexOf(a),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")}};function E(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 k(e){return k="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},k(e)}var T=t().bind(null,!0),R={},A=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===k(e)}function O(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function I(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]=O(e[n||t])?i:e[t],e=e[n||t]}})),e}function M(e,t){var n=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){M(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(!M(e[r],t[r]))return!1;return!0}return e===t}R.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?T({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);M(i,a)||D(t,o)||(O(a)?r.push({op:"add",path:s,value:i}):P(i)&&P(a)?r=r.concat(R.generate(a,i,s)):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]&&O(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(M(t,o))return r;if(!O(t[0])&&O(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),o.splice(s,1)):r=r.concat(R.generate(o[s],t[i],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){O(t[o])&&!D(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},R.apply=function(e,t){t.forEach((function(t){var n,r,o=I(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return E(e)}(r=c)||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 E(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)?E(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(P(a)&&P(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!D(n,e)&&delete n[e]})),T(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 u=I(e,t.from);A(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},R.clone=function(e){return T({},e)},R.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},R.updateObject=function(e,t){Object.keys(e).length?R.apply(e,R.generate(e,t)):T(e,t)};const N=R,F=function(e,n,r){if(!e)return Promise.resolve();var o=N.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 L="accumulation";function j(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===L)return n[r]}function q(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===L)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const $={translationKey:"properties.modifier.accumulation",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return C.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,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=C.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=C.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=C.getNumStepComp(n,l),p=C.getAboveComp(n,l,u,d),f=C.getRangeComp("RangeSum",p);if(C.needDimension({modifier:n,properties:r,layout:o})){var m=C.getDimComp(c,1),g=C.getDimComp(c,0),h=C.getAggrComp(f,m,g);f=n.showExcludedValues?C.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:h}):h}return f},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,z)},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!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(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(q(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(q(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(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=j(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=j(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(L))return!1;var i=j(t,e);return i&&!i.disabled}};return n}};var _="movingAverage";function B(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===_)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===_)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return C.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,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=C.getNumDimensions({properties:o,layout:a}));var u=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=C.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),f=C.getNumStepComp(r,c),m=C.getAboveComp(r,c,p,f);if(r.nullSuppression)t=C.getRangeComp("RangeAvg",m);else{var g=C.getRangeComp("RangeSum",m),h=function(e,t){var n=C.getRowNoComp(e,t);if(!C.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,c);t="".concat(g," / ").concat(h)}var b=t;if(C.needDimension({modifier:r,properties:o,layout:a})){var v=C.getDimComp(u,1),y=C.getDimComp(u,0),x=C.getAggrComp(b,v,y);b=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=B(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=B(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=B(t,e);return i&&!i.disabled}};return n}};var U="difference";function K(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===U)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===U)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var X={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const Y={translationKey:"properties.modifier.difference",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return C.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:C.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=C.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=C.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=C.getAboveComp(n,l,u),p="".concat(u," - ").concat(d);if(C.needDimension({modifier:n,properties:r,layout:o})){var f=C.getDimComp(c,1),m=C.getDimComp(c,0),g=C.getAggrComp(p,f,m);p=n.showExcludedValues?C.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:g}):g}return p},initModifier:function(e){Object.keys(X).forEach((function(t){void 0===e[t]&&(e[t]=X[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!C.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.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(G(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(G(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=K(t,e);return i&&!i.disabled}};return n}};var J="normalization";function Z(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 Q(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}function ee(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}function te(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=ee(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=ee(t,1);t.splice(r,1)}return t}(Z(e,r).selectionScope,i),i}function ne(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=ee(t,0);t.splice(r,1)}return t}(Z(e,n).dimensionalScope,r),r}var re={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function oe(e){return 2===e?"{1}":""}function ie(e,t,n){return 1===e?"{$<".concat(C.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function ae(e,t){return 0===e&&t>1||2===e?"Total":""}function se(e,t,n){return 0===e&&t>1?"<".concat(C.getDimDefWithWrapper(n),">"):""}const le={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return C.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:C.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=C.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=C.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var s=oe(t),l=ie(t,n,r),c=""===s&&""===l?"":s||l,u=ae(o,i),d=se(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=C.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(p,"))")}(u,d,n.field,n.value,p,l,n.primaryDimension)},initModifier:function(e){Object.keys(re).forEach((function(t){void 0===e[t]&&(e[t]=re[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!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(Q(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 ne(n,t,e)}},field:{refFn:function(t){return"".concat(Q(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===Z(t,e).selectionScope}},value:{refFn:function(t){return"".concat(Q(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===Z(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(Q(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 te(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(Q(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===(Z(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return C.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=Z(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:oe,getFieldSelectionComp:ie,getTotalComp:ae,getSelectedDimComp:se};var ce="qDef.base",ue="qDef.qDef",de="qDef.base.qDef",pe="qLibraryId",fe="qDef.base.qLibraryId";const me={getExpression:function(e){var t=i(e,de);return void 0!==t?t:i(e,ue)},getExpressionRef:function(e){return void 0!==i(e,de)?de:ue},getLibraryIdRef:function(e){return i(e,fe)?fe:pe},getLibraryId:function(e){return i(e,fe)||i(e,pe)},getLabelRef:function(e){return i(e,ce)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,ce)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ge="qDef.qDef",he="qDef.base.qDef",be="qLibraryId",ve="qDef.base.qLibraryId",ye="qDef.qLabel",xe="qDef.qLabelExpression",Se="qDef.base.qLabel",we="qDef.base.qLabelExpression",Ce="qDef.qAggrFunc",Ee="qDef.base.qAggrFunc",ke={initBase:function(e,t){(t||ke.isValid(e))&&(o(e,he,i(e,ge)),o(e,ve,i(e,be)),o(e,Se,i(e,ye)),o(e,we,i(e,xe)))},restoreBase:function(e){ke.isValid(e)&&(o(e,ge,i(e,he)),o(e,be,i(e,ve)),o(e,ye,i(e,Se)),o(e,xe,i(e,we)),i(e,Ce)&&i(e,Ee)&&o(e,Ce,i(e,Ee)),delete e.qDef.base)},isValid:function(e){var t=i(e,he),n=i(e,ve);return void 0!==t||void 0!==n}};const Te=ke;function Re(e){return Re="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},Re(e)}var Ae={accumulation:$,movingAverage:V,difference:Y,normalization:le};const Pe={modifiers:Ae,apply:De,applyModifiers:Ie,cleanUpMeasure:Me,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:Ne,getActiveModifier:Fe,initBase:Te.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:n,layout:r})}))},measureBase:me,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=qe(e);Ke({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||et({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Le};var Oe={};function De(){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,s=e.masterItem,l=!1;Oe[n.id]=Oe[n.id]||{isFirstTime:!0};var c=Oe[n.id].isFirstTime;if(Oe[n.id].isFirstTime=!1,r&&"object"===Re(r))return Ie({model:n,properties:r});var u=n?n.layout:void 0,d=i(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(u,"qHyperCube.qMeasureInfo"),f=Oe[n.id].lastReloadTime;if(Oe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:u})){var m=Ve({measures:p,layout:u,model:n,lastReloadTime:f});return m||Xe({measures:p,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);$e(r);var o=tt(r);return Ye({model:n}).then((function(t){return Je({libraryIds:o,model:n}).then((function(o){return m&&Ue({properties:r}),Ie({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return Ge(p)?n.getEffectiveProperties().then((function(e){return rt({model:n,properties:e})})):Promise.resolve(l)}function Ie(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},o):o),$e(o);var p=tt(o);return nt({model:n,libraryIds:p,masterItem:c}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=je(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Me(e)})),Promise.resolve();var l=a?void 0:tt(r);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Je({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ke({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Te.isValid(n)||Te.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===Re(e)&&!e.disabled){if(s++,"object"!==Re(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ae[e.type].initModifier(e);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ae[r.type].generateExpression({expression:s,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,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:l,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ae[r.type].updateModifier&&Ae[r.type].updateModifier(r,o.qHyperCubeDef);var a=me.getExpression(n),s=""===a?a:Ae[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,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||Le(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Le(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}),_e(n)):Me(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Qe({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Me(e){!function(e){var t=qe(e);return Array.isArray(t)&&t.some((function(e){return"object"===Re(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Te.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,_e(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ke({modifiers:qe(e),properties:n,layout:r})}))}function Fe(e){var t=qe(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ae[r.type]&&!r.disabled)return r}}function Le(e){var t=Fe(e);return!t||Ae[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function qe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function ze(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){je(e).forEach((function(e){return function(e){var n=Fe(e);n&&(void 0!==n.outputExpression&&ze(n)!==e.qDef.qDef?delete e.qDef.base:!Te.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function _e(e){var t=qe(e);Array.isArray(t)&&t.forEach((function(t){"object"===Re(t)&&(t.disabled||!Ae[t.type]&&ze(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=Be(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,n=e.properties,r=e.layout;return!He(t)&&Ke({modifiers:qe(t),properties:n,layout:r})}function Ve(e){var t=e.measures,n=e.layout,r=e.model,o=e.lastReloadTime;return i(r,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}function Ue(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(We({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Re(e)&&!e.disabled){if(n++,"object"!==Re(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Be(t)&&C.simplifyExpression(t.qDef.base.qDef)!==C.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}function Ke(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Re(e)||e.disabled||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ge(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Re(e.base)}))}function Xe(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 Ke({modifiers:qe(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Je(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={},s=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Ze(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Qe(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Ze)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Ze)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ze)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ze);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):F(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function et(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Re(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function tt(e){var t=je(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=qe(t);if(Ke({modifiers:r,properties:e})){var i=He(t);i&&n.push(i),o=o||et({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function nt(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=i(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var o=l(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds: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]&&s.push(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return De({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}function rt(e){var n=e.model,r=e.properties,o=tt(r);return nt({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return je(r).forEach((function(e){return Me(e)})),Qe({oldProperties:e,newProperties:r,model:n})}))}})(),j.default=r.default,Object.defineProperty(j,"__esModule",{value:!0})})();var z=F(q);const $={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},_={visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellColoring:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"}]}},B={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},H=e=>{var t,n,r,o,i,a;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!z.hasActiveModifiers({measures:[e],properties:t.properties})||z.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(n=t.sense)&&void 0!==n&&null!==(r=n.isUnsupportedFeature)&&void 0!==r&&r.call(n,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(o=e.anything)&&void 0!==o&&null!==(i=o.sense)&&void 0!==i&&null!==(a=i.isUnsupportedFeature)&&void 0!==a&&a.call(i,"totals"))}},W=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")?{type:"items",translation:"Common.Data",items:{dataAssets:{type:"items",component:"data-assets-panel"}}}:{type:"items",component:"columns",translation:"Common.Data",sortIndexRef:"qHyperCubeDef.qColumnOrder",allowMove:!0,allowAdd:!0,addTranslation:"Common.Columns",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",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},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},...$,..._,...B}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",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},...$,..._,...B,totalsAggr:H(e)}}}},V={type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,key:"theme",defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"general",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",width:9,min:5,max:300,placeholder:"",change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"general",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",width:9,min:5,max:300,placeholder:"",change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",dualOutput:!0}}}}}}},hoverEffectSection:{translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"general",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]},U=e=>{var t,n,r;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(n=t.sense)&&void 0!==n&&null!==(r=n.isUnsupportedFeature)&&void 0!==r&&r.call(n,"totals"))}},K=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")&&{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"}}}},G=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[V,U(e)]},...K(e)}}),X={uses:"sorting"},Y={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},J=e=>({type:"items",component:"accordion",items:{data:W(e),sorting:X,addOns:Y,settings:G(e)}});function Z(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Q(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}function ee(e){return e>0?0:1}function te(e){return e.translator.get("Visualizations.Descriptions.Column")}function ne(e){return{measures:{min:ee,max:1e3,description:()=>te(e),add(e,t,n){const{qColumnOrder:r,columnWidths:o}=n.hcProperties,i=n.getDimensions().length+n.getMeasures().length-1;Z(r,i),o.splice(r[i],0,-1)},remove(e,t,n,r){const{qColumnOrder:o,columnWidths:i}=n.hcProperties,a=(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r;Q(o,a),i.splice(a,1)}},dimensions:{min:ee,max:1e3,description:()=>te(e),add(e,t,n){const{qColumnOrder:r,columnWidths:o}=n.hcProperties,i=n.getDimensions().length-1;return Z(r,i),o.splice(i,0,-1),e},remove(e,t,n,r){const{qColumnOrder:o,columnWidths:i}=n.hcProperties;Q(o,r),i.splice(o[r],1)}}}}const re=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")&&{exploration:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!0}},classification:{tags:["exploration"],exclusive:!0}}};function oe(e){return{definition:J(e),...re(e),data:ne(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0}}}var ie;!function(e){e.A="asc",e.D="desc",e.N="asc"}(ie||(ie={}));function ae(e,t){return[...t].reverse().find((t=>t*e<=1e4))||Math.floor(1e4/e)}function se(e,t,n,r,o){var i;return e?0===n&&0===o[0]?t.totals.label:"":null===(i=t.qHyperCube.qGrandTotalRow[n-r])||void 0===i?void 0:i.qText}async function le(e,t,n,r){const{page:o,rowsPerPage:i,rowsPerPageOptions:a}=n,{qHyperCube:s}=t,l=s.qSize.qcx,c=s.qSize.qcy,u=Math.ceil(c/i),d=c>10,p=o*i,f=Math.min(i,c-p);if(o>0&&p>=c&&n)return r({...n,page:0}),null;if(f*l>1e4&&n)return r({...n,rowsPerPage:ae(l,a),page:0}),null;const m=function({qColumnOrder:e,qDimensionInfo:t,qMeasureInfo:n}){const r=t.length+n.length;return(null==e?void 0:e.length)===r?e:Array.from(Array(r).keys())}(s),g=m.map((e=>function(e,t,n){var r;const{qDimensionInfo:o,qMeasureInfo:i}=e.qHyperCube,a=o.length,s=t<a,l=s?o[t]:i[t-a],c=7005===(null===(r=l.qError)||void 0===r?void 0:r.qErrorCode),u=s&&l.qLocked,d=s?"left":"right";return!c&&{isDim:s,isLocked:u,width:200,label:l.qFallbackTitle,id:`col-${t}`,align:!l.textAlign||l.textAlign.auto?d:l.textAlign.align,stylingIDs:l.qAttrExprInfo.map((e=>e.id)),sortDirection:l.qSortIndicator?ie[l.qSortIndicator]:ie.A,dataColIdx:t,totalInfo:se(s,e,t,a,n)}}(t,e,m))).filter(Boolean),h=(await e.getHyperCubeData("/qHyperCubeDef",[{qTop:p,qLeft:0,qHeight:f,qWidth:l}]))[0].qMatrix.map(((e,t)=>{const n={key:`row-${t}`};return g.forEach(((r,o)=>{n[r.id]={...e[o],rowIdx:t+p,colIdx:m[o],pageRowIdx:t,pageColIdx:o,isSelectable:r.isDim&&!r.isLocked,isLastRow:t===f-1}})),n})),b=function(e){var t;const[n,r,o,i,a]=[0===e.qHyperCube.qDimensionInfo.length,e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.qHyperCube.qMeasureInfo.length>0,null===(t=e.totals)||void 0===t?void 0:t.show];if(o&&(r&&i||!a&&n)){if(a||!a&&"top"===e.totals.position)return"top";if(!a&&"bottom"===e.totals.position)return"bottom"}return"noTotals"}(t);return{totalColumnCount:l,totalRowCount:c,totalPages:u,paginationNeeded:d,rows:h,columns:g,totalsPosition:b}}var ce,ue={exports:{}},de={},pe=Symbol.for("react.element"),fe=Symbol.for("react.portal"),me=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),be=Symbol.for("react.provider"),ve=Symbol.for("react.context"),ye=Symbol.for("react.server_context"),xe=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),we=Symbol.for("react.suspense_list"),Ce=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),ke=Symbol.for("react.offscreen");function Te(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case pe:switch(e=e.type){case me:case he:case ge:case Se:case we:return e;default:switch(e=e&&e.$$typeof){case ye:case ve:case xe:case Ee:case Ce:case be:return e;default:return t}}case fe:return t}}}ce=Symbol.for("react.module.reference"),de.ContextConsumer=ve,de.ContextProvider=be,de.Element=pe,de.ForwardRef=xe,de.Fragment=me,de.Lazy=Ee,de.Memo=Ce,de.Portal=fe,de.Profiler=he,de.StrictMode=ge,de.Suspense=Se,de.SuspenseList=we,de.isAsyncMode=function(){return!1},de.isConcurrentMode=function(){return!1},de.isContextConsumer=function(e){return Te(e)===ve},de.isContextProvider=function(e){return Te(e)===be},de.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===pe},de.isForwardRef=function(e){return Te(e)===xe},de.isFragment=function(e){return Te(e)===me},de.isLazy=function(e){return Te(e)===Ee},de.isMemo=function(e){return Te(e)===Ce},de.isPortal=function(e){return Te(e)===fe},de.isProfiler=function(e){return Te(e)===he},de.isStrictMode=function(e){return Te(e)===ge},de.isSuspense=function(e){return Te(e)===Se},de.isSuspenseList=function(e){return Te(e)===we},de.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===me||e===he||e===ge||e===Se||e===we||e===ke||"object"==typeof e&&null!==e&&(e.$$typeof===Ee||e.$$typeof===Ce||e.$$typeof===be||e.$$typeof===ve||e.$$typeof===xe||e.$$typeof===ce||void 0!==e.getModuleId)},de.typeOf=Te,ue.exports=de;function Re(e){function t(e,r,l,c,p){for(var f,m,g,h,x,w=0,C=0,E=0,k=0,T=0,I=0,N=g=f=0,L=0,j=0,q=0,z=0,$=l.length,_=$-1,B="",H="",W="",V="";L<$;){if(m=l.charCodeAt(L),L===_&&0!==C+k+E+w&&(0!==C&&(m=47===C?10:47),k=E=w=0,$++,_++),0===C+k+E+w){if(L===_&&(0<j&&(B=B.replace(d,"")),0<B.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:B+=l.charAt(L)}m=59}switch(m){case 123:for(f=(B=B.trim()).charCodeAt(0),g=1,z=++L;L<$;){switch(m=l.charCodeAt(L)){case 123:g++;break;case 125:g--;break;case 47:switch(m=l.charCodeAt(L+1)){case 42:case 47:e:{for(N=L+1;N<_;++N)switch(l.charCodeAt(N)){case 47:if(42===m&&42===l.charCodeAt(N-1)&&L+2!==N){L=N+1;break e}break;case 10:if(47===m){L=N+1;break e}}L=N}}break;case 91:m++;case 40:m++;case 34:case 39:for(;L++<_&&l.charCodeAt(L)!==m;);}if(0===g)break;L++}if(g=l.substring(z,L),0===f&&(f=(B=B.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<j&&(B=B.replace(d,"")),m=B.charCodeAt(1)){case 100:case 109:case 115:case 45:j=r;break;default:j=D}if(z=(g=t(r,j,g,m,p+1)).length,0<M&&(x=s(3,g,j=n(D,B,q),r,A,R,z,m,p,c),B=j.join(""),void 0!==x&&0===(z=(g=x.trim()).length)&&(m=0,g="")),0<z)switch(m){case 115:B=B.replace(S,a);case 100:case 109:case 45:g=B+"{"+g+"}";break;case 107:g=(B=B.replace(b,"$1 $2"))+"{"+g+"}",g=1===O||2===O&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=B+g,112===c&&(H+=g,g="")}else g=""}else g=t(r,n(r,B,q),g,c,p+1);W+=g,g=q=j=N=f=0,B="",m=l.charCodeAt(++L);break;case 125:case 59:if(1<(z=(B=(0<j?B.replace(d,""):B).trim()).length))switch(0===N&&(f=B.charCodeAt(0),45===f||96<f&&123>f)&&(z=(B=B.replace(" ",":")).length),0<M&&void 0!==(x=s(1,B,r,e,A,R,H.length,c,p,c))&&0===(z=(B=x.trim()).length)&&(B="\0\0"),f=B.charCodeAt(0),m=B.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){V+=B+l.charAt(L);break}default:58!==B.charCodeAt(z-1)&&(H+=o(B,f,m,B.charCodeAt(2)))}q=j=N=f=0,B="",m=l.charCodeAt(++L)}}switch(m){case 13:case 10:47===C?C=0:0===1+f&&107!==c&&0<B.length&&(j=1,B+="\0"),0<M*F&&s(0,B,r,e,A,R,H.length,c,p,c),R=1,A++;break;case 59:case 125:if(0===C+k+E+w){R++;break}default:switch(R++,h=l.charAt(L),m){case 9:case 32:if(0===k+w+C)switch(T){case 44:case 58:case 9:case 32:h="";break;default:32!==m&&(h=" ")}break;case 0:h="\\0";break;case 12:h="\\f";break;case 11:h="\\v";break;case 38:0===k+C+w&&(j=q=1,h="\f"+h);break;case 108:if(0===k+C+w+P&&0<N)switch(L-N){case 2:112===T&&58===l.charCodeAt(L-3)&&(P=T);case 8:111===I&&(P=I)}break;case 58:0===k+C+w&&(N=L);break;case 44:0===C+E+k+w&&(j=1,h+="\r");break;case 34:case 39:0===C&&(k=k===m?0:0===k?m:k);break;case 91:0===k+C+E&&w++;break;case 93:0===k+C+E&&w--;break;case 41:0===k+C+w&&E--;break;case 40:if(0===k+C+w){if(0===f)if(2*T+3*I==533);else f=1;E++}break;case 64:0===C+E+k+w+N+g&&(g=1);break;case 42:case 47:if(!(0<k+w+E))switch(C){case 0:switch(2*m+3*l.charCodeAt(L+1)){case 235:C=47;break;case 220:z=L,C=42}break;case 42:47===m&&42===T&&z+2!==L&&(33===l.charCodeAt(z+2)&&(H+=l.substring(z,L+1)),h="",C=0)}}0===C&&(B+=h)}I=T,T=m,L++}if(0<(z=H.length)){if(j=r,0<M&&(void 0!==(x=s(2,H,j,e,A,R,z,c,p,c))&&0===(H=x).length))return V+H+W;if(H=j.join(",")+"{"+H+"}",0!=O*P){switch(2!==O||i(H,2)||(P=0),P){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(v,"::-webkit-input-$1")+H.replace(v,"::-moz-$1")+H.replace(v,":-ms-input-$1")+H}P=0}}return V+H+W}function n(e,t,n){var o=t.trim().split(g);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===O||2===O&&i(l,1)?"-webkit-"+l+l:l}if(0===O||2===O&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(T,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(x,"tb");break;case 232:l=a.replace(x,"tb-rl");break;case 220:l=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),N(2!==t?r:r.replace(E,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,l,u){for(var d,p=0,f=t;p<M;++p)switch(d=I[p].call(c,e,f,n,r,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?O=1:(O=2,N=e):O=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<M){var o=s(-1,n,r,r,A,R,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(D,r,n,0,0);return 0<M&&(void 0!==(o=s(-2,i,r,r,A,R,i.length,0,0,0))&&(i=o)),"",P=0,R=A=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,g=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,C=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,R=1,A=1,P=0,O=1,D=[],I=[],M=0,N=null,F=0;return c.use=function e(t){switch(t){case void 0:case null:M=I.length=0;break;default:if("function"==typeof t)I[M++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else F=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}var Ae={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Pe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Oe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,De=Pe((function(e){return Oe.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ie={exports:{}},Me={},Ne="function"==typeof Symbol&&Symbol.for,Fe=Ne?Symbol.for("react.element"):60103,Le=Ne?Symbol.for("react.portal"):60106,je=Ne?Symbol.for("react.fragment"):60107,qe=Ne?Symbol.for("react.strict_mode"):60108,ze=Ne?Symbol.for("react.profiler"):60114,$e=Ne?Symbol.for("react.provider"):60109,_e=Ne?Symbol.for("react.context"):60110,Be=Ne?Symbol.for("react.async_mode"):60111,He=Ne?Symbol.for("react.concurrent_mode"):60111,We=Ne?Symbol.for("react.forward_ref"):60112,Ve=Ne?Symbol.for("react.suspense"):60113,Ue=Ne?Symbol.for("react.suspense_list"):60120,Ke=Ne?Symbol.for("react.memo"):60115,Ge=Ne?Symbol.for("react.lazy"):60116,Xe=Ne?Symbol.for("react.block"):60121,Ye=Ne?Symbol.for("react.fundamental"):60117,Je=Ne?Symbol.for("react.responder"):60118,Ze=Ne?Symbol.for("react.scope"):60119;function Qe(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Fe:switch(e=e.type){case Be:case He:case je:case ze:case qe:case Ve:return e;default:switch(e=e&&e.$$typeof){case _e:case We:case Ge:case Ke:case $e:return e;default:return t}}case Le:return t}}}function et(e){return Qe(e)===He}Me.AsyncMode=Be,Me.ConcurrentMode=He,Me.ContextConsumer=_e,Me.ContextProvider=$e,Me.Element=Fe,Me.ForwardRef=We,Me.Fragment=je,Me.Lazy=Ge,Me.Memo=Ke,Me.Portal=Le,Me.Profiler=ze,Me.StrictMode=qe,Me.Suspense=Ve,Me.isAsyncMode=function(e){return et(e)||Qe(e)===Be},Me.isConcurrentMode=et,Me.isContextConsumer=function(e){return Qe(e)===_e},Me.isContextProvider=function(e){return Qe(e)===$e},Me.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Fe},Me.isForwardRef=function(e){return Qe(e)===We},Me.isFragment=function(e){return Qe(e)===je},Me.isLazy=function(e){return Qe(e)===Ge},Me.isMemo=function(e){return Qe(e)===Ke},Me.isPortal=function(e){return Qe(e)===Le},Me.isProfiler=function(e){return Qe(e)===ze},Me.isStrictMode=function(e){return Qe(e)===qe},Me.isSuspense=function(e){return Qe(e)===Ve},Me.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===je||e===He||e===ze||e===qe||e===Ve||e===Ue||"object"==typeof e&&null!==e&&(e.$$typeof===Ge||e.$$typeof===Ke||e.$$typeof===$e||e.$$typeof===_e||e.$$typeof===We||e.$$typeof===Ye||e.$$typeof===Je||e.$$typeof===Ze||e.$$typeof===Xe)},Me.typeOf=Qe;var tt=Ie.exports=Me,nt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},rt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ot={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},it={};function at(e){return tt.isMemo(e)?ot:it[e.$$typeof]||nt}it[tt.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},it[tt.Memo]=ot;var st=Object.defineProperty,lt=Object.getOwnPropertyNames,ct=Object.getOwnPropertySymbols,ut=Object.getOwnPropertyDescriptor,dt=Object.getPrototypeOf,pt=Object.prototype;var ft=function e(t,n,r){if("string"!=typeof n){if(pt){var o=dt(n);o&&o!==pt&&e(t,o,r)}var i=lt(n);ct&&(i=i.concat(ct(n)));for(var a=at(t),s=at(n),l=0;l<i.length;++l){var c=i[l];if(!(rt[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=ut(n,c);try{st(t,c,u)}catch(e){}}}}return t};function mt(){return(mt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var gt=function(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},ht=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!ue.exports.typeOf(e)},bt=Object.freeze([]),vt=Object.freeze({});function yt(e){return"function"==typeof e}function xt(e){return e.displayName||e.name||"Component"}function St(e){return e&&"string"==typeof e.styledComponentId}var wt="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ct="undefined"!=typeof window&&"HTMLElement"in window,Et=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&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.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),kt={};function Tt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var Rt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&Tt(16,""+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),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.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)}},t.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+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),At=new Map,Pt=new Map,Ot=1,Dt=function(e){if(At.has(e))return At.get(e);for(;Pt.has(Ot);)Ot++;var t=Ot++;return At.set(e,t),Pt.set(t,e),t},It=function(e){return Pt.get(e)},Mt=function(e,t){t>=Ot&&(Ot=t+1),At.set(e,t),Pt.set(t,e)},Nt="style["+wt+'][data-styled-version="5.3.6"]',Ft=new RegExp("^"+wt+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Lt=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)},jt=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(Ft);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(Mt(c,l),Lt(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},qt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(wt))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(wt,"active"),r.setAttribute("data-styled-version","5.3.6");var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},zt=function(){function e(e){var t=this.element=qt(e);t.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}Tt(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$t=function(){function e(e){var t=this.element=qt(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),_t=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Bt=Ct,Ht={isServer:!Ct,useCSSOMInjection:!Et},Wt=function(){function e(e,t,n){void 0===e&&(e=vt),void 0===t&&(t={}),this.options=mt({},Ht,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Ct&&Bt&&(Bt=!1,function(e){for(var t=document.querySelectorAll(Nt),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(wt)&&(jt(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return Dt(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(mt({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new _t(o):r?new zt(o):new $t(o),new Rt(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Dt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Dt(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Dt(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=It(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var l=wt+".g"+o+'[id="'+i+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),Vt=/(a)(d)/gi,Ut=function(e){return String.fromCharCode(e+(e>25?39:97))};function Kt(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ut(t%52)+n;return(Ut(t%52)+n).replace(Vt,"$1-$2")}var Gt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Xt=function(e){return Gt(5381,e)};function Yt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(yt(n)&&!St(n))return!1}return!0}var Jt=Xt("5.3.6"),Zt=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Yt(e),this.componentId=t,this.baseHash=Gt(Jt,t),this.baseStyle=n,Wt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=bn(this.rules,e,t,n).join(""),a=Kt(Gt(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=Gt(this.baseHash,n.hash),u="",d=0;d<l;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var f=bn(p,e,t,n),m=Array.isArray(f)?f.join(""):f;c=Gt(c,m+d),u+=m}}if(u){var g=Kt(c>>>0);if(!t.hasNameForId(r,g)){var h=n(u,"."+g,void 0,r);t.insertRules(r,g,h)}o.push(g)}}return o.join(" ")},e}(),Qt=/^\s*\/\/.*$/gm,en=[":","[",".","#"];function tn(e){var t,n,r,o,i=void 0===e?vt:e,a=i.options,s=void 0===a?vt:a,l=i.plugins,c=void 0===l?bt:l,u=new Re(s),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,l,c,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),f=function(e,r,i){return 0===r&&-1!==en.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var l=e.replace(Qt,""),c=i&&a?a+" "+i+" { "+l+" }":l;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),u(a||!i?"":i,c)}return u.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||Tt(15),Gt(e,t.name)}),5381).toString():"",m}var nn=b.createContext();nn.Consumer;var rn=b.createContext(),on=(rn.Consumer,new Wt),an=tn();function sn(){return S(nn)||on}function ln(){return S(rn)||an}function cn(e){var t=v(e.stylisPlugins),n=t[0],r=t[1],o=sn(),i=y((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=y((function(){return tn({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return x((function(){(function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0})(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),b.createElement(nn.Provider,{value:i},b.createElement(rn.Provider,{value:a},e.children))}var un=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=an);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return Tt(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=an),this.name+e.hash},e}(),dn=/([A-Z])/,pn=/([A-Z])/g,fn=/^ms-/,mn=function(e){return"-"+e.toLowerCase()};function gn(e){return dn.test(e)?e.replace(pn,mn).replace(fn,"-ms-"):e}var hn=function(e){return null==e||!1===e||""===e};function bn(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=bn(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return hn(e)?"":St(e)?"."+e.styledComponentId:yt(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:bn(e(t),t,n,r):e instanceof un?n?(e.inject(n,r),e.getName(r)):e:ht(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!hn(t[a])&&(Array.isArray(t[a])&&t[a].isCss||yt(t[a])?i.push(gn(a)+":",t[a],";"):ht(t[a])?i.push.apply(i,e(t[a],a)):i.push(gn(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in Ae?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var vn=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function yn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return yt(e)||ht(e)?vn(bn(gt(bt,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:vn(bn(gt(e,n)))}var xn=function(e,t,n){return void 0===n&&(n=vt),e.theme!==n.theme&&e.theme||t||n.theme},Sn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,wn=/(^-|-$)/g;function Cn(e){return e.replace(Sn,"-").replace(wn,"")}var En=function(e){return Kt(Xt(e)>>>0)};function kn(e){return"string"==typeof e&&!0}var Tn=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Rn=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function An(e,t,n){var r=e[n];Tn(t)&&Tn(r)?Pn(r,t):e[n]=t}function Pn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Tn(a))for(var s in a)Rn(s)&&An(e,a[s],s)}return e}var On=b.createContext();On.Consumer;var Dn={};function In(e,t,n){var r=St(e),o=!kn(e),i=t.attrs,a=void 0===i?bt:i,s=t.componentId,l=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Cn(e);Dn[n]=(Dn[n]||0)+1;var r=n+"-"+En("5.3.6"+n+Dn[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):s,c=t.displayName,u=void 0===c?function(e){return kn(e)?"styled."+e:"Styled("+xt(e)+")"}(e):c,d=t.displayName&&t.componentId?Cn(t.displayName)+"-"+t.componentId:t.componentId||l,p=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,f=t.shouldForwardProp;r&&e.shouldForwardProp&&(f=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var m,g=new Zt(n,d,r?e.componentStyle:void 0),h=g.isStatic&&0===a.length,v=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,l=e.shouldForwardProp,c=e.styledComponentId,u=e.target,d=function(e,t,n){void 0===e&&(e=vt);var r=mt({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in yt(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(xn(t,S(On),a)||vt,t,o),p=d[0],f=d[1],m=function(e,t,n,r){var o=sn(),i=ln();return t?e.generateAndInjectStyles(vt,o,i):e.generateAndInjectStyles(n,o,i)}(i,r,p),g=n,h=f.$as||t.$as||f.as||t.as||u,b=kn(h),v=f!==t?mt({},t,{},f):t,y={};for(var x in v)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?y.as=v[x]:(l?l(x,De,h):!b||De(x))&&(y[x]=v[x]));return t.style&&f.style!==t.style&&(y.style=mt({},t.style,{},f.style)),y.className=Array.prototype.concat(s,c,m!==c?m:null,t.className,f.className).filter(Boolean).join(" "),y.ref=g,C(h,y)}(m,e,t,h)};return v.displayName=u,(m=b.forwardRef(v)).attrs=p,m.componentStyle=g,m.displayName=u,m.shouldForwardProp=f,m.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):bt,m.styledComponentId=d,m.target=r?e.target:e,m.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(kn(e)?e:Cn(xt(e)));return In(e,mt({},o,{attrs:p,componentId:i}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Pn({},e.defaultProps,t):t}}),m.toString=function(){return"."+m.styledComponentId},o&&ft(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var Mn=function(e){return function e(t,n,r){if(void 0===r&&(r=vt),!ue.exports.isValidElementType(n))return Tt(1,String(n));var o=function(){return t(n,r,yn.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,mt({},r,{},o))},o.attrs=function(o){return e(t,n,mt({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(In,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Mn[e]=Mn(e)}));var Nn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Yt(e),Wt.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(bn(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Wt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Fn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=yn.apply(void 0,[e].concat(n)).join(""),i=En(o);return new un(i,o)}function Ln(){return Ln=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},Ln.apply(this,arguments)}function jn(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 qn={exports:{}};function zn(){}function $n(){}$n.resetWarningCache=zn;function _n(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}qn.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:$n,resetWarningCache:zn};return n.PropTypes=n,n}(),_n.propTypes={children:qn.exports.node,injectFirst:qn.exports.bool};const Bn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=yn.apply(void 0,[e].concat(n)),i="sc-global-"+En(JSON.stringify(o)),a=new Nn(o,i);function s(e){var t=sn(),n=ln(),r=S(On),o=w(t.allocateGSInstance(i)).current;return t.server&&l(o,e,t,r,n),null}function l(e,t,n,r,o){if(a.isStatic)a.renderStyles(e,kt,n,o);else{var i=mt({},t,{theme:xn(t,r,s.defaultProps)});a.renderStyles(e,i,n,o)}}return b.memo(s)}((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}));
8
8
  /** @license MUI v5.10.0
9
9
  *
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
- function Nn(e,t){let n;return n=t?En(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):En(e),n}Mn.propTypes={defaultTheme:Pn.exports.object,styles:Pn.exports.oneOfType([Pn.exports.string,Pn.exports.object,Pn.exports.func])};const Fn=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var Ln=Object.freeze({__proto__:null,default:Nn,internal_processStyles:Fn,ThemeContext:Sn,keyframes:Tn,css:un,StyledEngineProvider:In,GlobalStyles:Mn});function qn(e,t){return()=>null}function jn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function zn(e,t,n={clone:!0}){const r=n.clone?Rn({},e):e;return jn(e)&&jn(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(jn(t[o])&&o in e&&jn(e[o])?r[o]=zn(e[o],t[o],n):r[o]=t[o])})),r}const $n=(Pn.exports.element,()=>null);$n.isRequired=(Pn.exports.element.isRequired,()=>null);var _n=(Pn.exports.elementType,()=>null);function Bn(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."}const Hn=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Wn(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(Hn);return t&&t[1]||""}(e)||t}function Vn(e,t,n){const r=Wn(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Un="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();const Kn=Pn.exports.oneOfType([Pn.exports.func,Pn.exports.object]);function Gn(e){if("string"!=typeof e)throw new Error(Bn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Xn(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Yn(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Jn(e,t){return()=>null}function Zn(e,t){return h.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function Qn(e){return e&&e.ownerDocument||document}function er(e){return Qn(e).defaultView||window}function tr(e,t){return()=>null}function nr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const rr="undefined"!=typeof window?h.useLayoutEffect:h.useEffect;let or=0;const ir=h.useId;function ar(e){if(void 0!==ir){const t=ir();return null!=e?e:t}return function(e){const[t,n]=h.useState(e),r=e||t;return h.useEffect((()=>{null==t&&(or+=1,n(`mui-${or}`))}),[t]),r}(e)}function sr(e,t,n,r,o){return null}function lr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(void 0!==e),[i,a]=h.useState(t);return[o?e:i,h.useCallback((e=>{o||a(e)}),[])]}function cr(e){const t=h.useRef(e);return rr((()=>{t.current=e})),h.useCallback(((...e)=>(0,t.current)(...e)),[])}function ur(e,t){return h.useMemo((()=>null==e&&null==t?null:n=>{nr(e,n),nr(t,n)}),[e,t])}let dr,pr=!0,fr=!1;const mr={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 gr(e){e.metaKey||e.altKey||e.ctrlKey||(pr=!0)}function hr(){pr=!1}function br(){"hidden"===this.visibilityState&&fr&&(pr=!0)}function vr(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return pr||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!mr[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function yr(){const e=h.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",gr,!0),t.addEventListener("mousedown",hr,!0),t.addEventListener("pointerdown",hr,!0),t.addEventListener("touchstart",hr,!0),t.addEventListener("visibilitychange",br,!0))}),[]),t=h.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!vr(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(fr=!0,window.clearTimeout(dr),dr=window.setTimeout((()=>{fr=!1}),100),t.current=!1,!0)},ref:e}}function xr(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Sr;function wr(){if(Sr)return Sr;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Sr="reverse",e.scrollLeft>0?Sr="default":(e.scrollLeft=1,0===e.scrollLeft&&(Sr="negative")),document.body.removeChild(e),Sr}function Cr(){return null}Cr.isRequired=Cr;var Er=Cr;function kr(e,t){const n=Rn({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}function Tr(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e)),[]).join(" ")})),r}const Rr=e=>e,Ar=(()=>{let e=Rr;return{configure(t){e=t},generate:t=>e(t),reset(){e=Rr}}})(),Pr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Dr(e,t,n="Mui"){const r=Pr[t];return r?`${n}-${r}`:`${Ar.generate(e)}-${t}`}function Or(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Dr(e,t,n)})),r}var Ir=Object.freeze({__proto__:null,chainPropTypes:qn,deepmerge:zn,isPlainObject:jn,elementAcceptingRef:$n,elementTypeAcceptingRef:_n,exactProp:function(e){return e},formatMuiErrorMessage:Bn,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Wn(e,"Component");if("object"==typeof e)switch(e.$$typeof){case te.exports.ForwardRef:return Vn(e,e.render,"ForwardRef");case te.exports.Memo:return Vn(e,e.type,"memo");default:return}}},HTMLElementType:function(e,t,n,r,o){return null},ponyfillGlobal:Un,refType:Kn,unstable_capitalize:Gn,unstable_createChainedFunction:Xn,unstable_debounce:Yn,unstable_deprecatedPropType:Jn,unstable_isMuiElement:Zn,unstable_ownerDocument:Qn,unstable_ownerWindow:er,unstable_requirePropFactory:tr,unstable_setRef:nr,unstable_useEnhancedEffect:rr,unstable_useId:ar,unstable_unsupportedProp:sr,unstable_useControlled:lr,unstable_useEventCallback:cr,unstable_useForkRef:ur,unstable_useIsFocusVisible:yr,unstable_getScrollbarSize:xr,unstable_detectScrollType:wr,unstable_getNormalizedScrollLeft:function(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(wr()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}},usePreviousProps:e=>{const t=h.useRef({});return h.useEffect((()=>{t.current=e})),t.current},visuallyHidden:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},integerPropType:Er,internal_resolveProps:kr,unstable_composeClasses:Tr,unstable_generateUtilityClass:Dr,unstable_generateUtilityClasses:Or,unstable_ClassNameGenerator:Ar});function Mr(e,t){return t?zn(e,t,{clone:!1}):e}const Nr={xs:0,sm:600,md:900,lg:1200,xl:1536},Fr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Nr[e]}px)`};function Lr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Fr;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Fr;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Nr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function qr(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function jr(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function zr({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function $r(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 _r(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:$r(e,n)||r,t&&(o=t(o)),o}function Br(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=$r(e.theme,r)||{};return Lr(e,i,(e=>{let r=_r(a,o,e);return e===r&&"string"==typeof e&&(r=_r(a,o,`${t}${"default"===e?"":Gn(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}function Hr(...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]?Mr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}const Wr={m:"margin",p:"padding"},Vr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ur={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Ur[e])return[e];e=Ur[e]}const[t,n]=e.split(""),r=Wr[t],o=Vr[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Gr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Xr(e,t,n,r){var o;const i=null!=(o=$r(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 Yr(e){return Xr(e,"spacing",8)}function Jr(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 Zr(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Jr(t,n),e)),{})}(Kr(n),r);return Lr(e,e[n],o)}function Qr(e){return function(e,t){const n=Yr(e.theme);return Object.keys(e).map((r=>Zr(e,t,r,n))).reduce(Mr,{})}(e,Gr)}function eo(e){return"number"!=typeof e?e:`${e}px solid`}Qr.propTypes={},Qr.filterProps=Gr;const to=Br({prop:"border",themeKey:"borders",transform:eo}),no=Br({prop:"borderTop",themeKey:"borders",transform:eo}),ro=Br({prop:"borderRight",themeKey:"borders",transform:eo}),oo=Br({prop:"borderBottom",themeKey:"borders",transform:eo}),io=Br({prop:"borderLeft",themeKey:"borders",transform:eo}),ao=Br({prop:"borderColor",themeKey:"palette"}),so=Br({prop:"borderTopColor",themeKey:"palette"}),lo=Br({prop:"borderRightColor",themeKey:"palette"}),co=Br({prop:"borderBottomColor",themeKey:"palette"}),uo=Br({prop:"borderLeftColor",themeKey:"palette"}),po=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Xr(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Jr(t,e)});return Lr(e,e.borderRadius,n)}return null};po.propTypes={},po.filterProps=["borderRadius"];const fo=Hr(to,no,ro,oo,io,ao,so,lo,co,uo,po);var mo=Hr(Br({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),Br({prop:"display"}),Br({prop:"overflow"}),Br({prop:"textOverflow"}),Br({prop:"visibility"}),Br({prop:"whiteSpace"}));const go=Hr(Br({prop:"flexBasis"}),Br({prop:"flexDirection"}),Br({prop:"flexWrap"}),Br({prop:"justifyContent"}),Br({prop:"alignItems"}),Br({prop:"alignContent"}),Br({prop:"order"}),Br({prop:"flex"}),Br({prop:"flexGrow"}),Br({prop:"flexShrink"}),Br({prop:"alignSelf"}),Br({prop:"justifyItems"}),Br({prop:"justifySelf"})),ho=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Xr(e.theme,"spacing",8),n=e=>({gap:Jr(t,e)});return Lr(e,e.gap,n)}return null};ho.propTypes={},ho.filterProps=["gap"];const bo=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Xr(e.theme,"spacing",8),n=e=>({columnGap:Jr(t,e)});return Lr(e,e.columnGap,n)}return null};bo.propTypes={},bo.filterProps=["columnGap"];const vo=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Xr(e.theme,"spacing",8),n=e=>({rowGap:Jr(t,e)});return Lr(e,e.rowGap,n)}return null};vo.propTypes={},vo.filterProps=["rowGap"];const yo=Hr(ho,bo,vo,Br({prop:"gridColumn"}),Br({prop:"gridRow"}),Br({prop:"gridAutoFlow"}),Br({prop:"gridAutoColumns"}),Br({prop:"gridAutoRows"}),Br({prop:"gridTemplateColumns"}),Br({prop:"gridTemplateRows"}),Br({prop:"gridTemplateAreas"}),Br({prop:"gridArea"})),xo=Hr(Br({prop:"color",themeKey:"palette"}),Br({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Br({prop:"backgroundColor",themeKey:"palette"}));var So=Hr(Br({prop:"position"}),Br({prop:"zIndex",themeKey:"zIndex"}),Br({prop:"top"}),Br({prop:"right"}),Br({prop:"bottom"}),Br({prop:"left"}));const wo=Br({prop:"boxShadow",themeKey:"shadows"});function Co(e){return e<=1&&0!==e?100*e+"%":e}const Eo=Br({prop:"width",transform:Co}),ko=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||Nr[t]||Co(t)}};return Lr(e,e.maxWidth,t)}return null};ko.filterProps=["maxWidth"];const To=Br({prop:"minWidth",transform:Co}),Ro=Br({prop:"height",transform:Co}),Ao=Br({prop:"maxHeight",transform:Co}),Po=Br({prop:"minHeight",transform:Co});Br({prop:"size",cssProperty:"width",transform:Co}),Br({prop:"size",cssProperty:"height",transform:Co});const Do=Hr(Eo,ko,To,Ro,Ao,Po,Br({prop:"boxSizing"})),Oo=Br({prop:"fontFamily",themeKey:"typography"}),Io=Br({prop:"fontSize",themeKey:"typography"}),Mo=Br({prop:"fontStyle",themeKey:"typography"}),No=Br({prop:"fontWeight",themeKey:"typography"}),Fo=Br({prop:"letterSpacing"}),Lo=Br({prop:"textTransform"}),qo=Br({prop:"lineHeight"}),jo=Br({prop:"textAlign"}),zo=Hr(Br({prop:"typography",cssProperty:!1,themeKey:"typography"}),Oo,Io,Mo,No,Fo,qo,jo,Lo),$o={borders:fo.filterProps,display:mo.filterProps,flexbox:go.filterProps,grid:yo.filterProps,positions:So.filterProps,palette:xo.filterProps,shadows:wo.filterProps,sizing:Do.filterProps,spacing:Qr.filterProps,typography:zo.filterProps},_o={borders:fo,display:mo,flexbox:go,grid:yo,positions:So,palette:xo,shadows:wo,sizing:Do,spacing:Qr,typography:zo},Bo=Object.keys($o).reduce(((e,t)=>($o[t].forEach((n=>{e[n]=_o[t]})),e)),{});function Ho(e=_o){const t=Object.keys(e).reduce(((t,n)=>(e[n].filterProps.forEach((r=>{t[r]=e[n]})),t)),{});function n(e,n,r){const o={[e]:n,theme:r},i=t[e];return i?i(o):{[e]:n}}return function e(r){const{sx:o,theme:i={}}=r||{};if(!o)return null;function a(r){let o=r;if("function"==typeof r)o=r(i);else if("object"!=typeof r)return r;if(!o)return null;const a=qr(i.breakpoints),s=Object.keys(a);let l=a;return Object.keys(o).forEach((r=>{const a=(s=o[r],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=a)if("object"==typeof a)if(t[r])l=Mr(l,n(r,a,i));else{const t=Lr({theme:i},a,(e=>({[r]: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))}(t,a)?l=Mr(l,t):l[r]=e({sx:a,theme:i})}else l=Mr(l,n(r,a,i))})),jr(s,l)}return Array.isArray(o)?o.map(a):a(o)}}const Wo=Ho();Wo.filterProps=["sx"];const Vo=["sx"];function Uo(e){const{sx:t}=e,n=An(e,Vo),{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((n=>{Bo[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]})),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return jn(n)?Rn({},r,n):r}:Rn({},r,t),Rn({},o,{sx:i})}var Ko=Object.freeze({__proto__:null,default:Wo,unstable_createStyleFunctionSx:Ho,extendSxProp:Uo});function Go(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Go(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Xo(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Go(e))&&(r&&(r+=" "),r+=t);return r}const Yo=["values","unit","step"];function Jo(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=An(e,Yo),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Rn({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(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 Rn({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Zo={borderRadius:4};const Qo=["breakpoints","palette","spacing","shape"];function ei(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=An(e,Qo),s=Jo(n),l=function(e=8){if(e.mui)return e;const t=Yr({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 c=zn({breakpoints:s,direction:"ltr",components:{},palette:Rn({mode:"light"},r),spacing:l,shape:Rn({},Zo,i)},a);return c=t.reduce(((e,t)=>zn(e,t)),c),c}var ti=Object.freeze({__proto__:null,default:ei});const ni=h.createContext(null);function ri(){return h.useContext(ni)}var oi,ii,ai="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",si={exports:{}},li={};function ci(){return ii?si.exports:(ii=1,si.exports=function(){if(oi)return li;oi=1;var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return li.Fragment=n,li.jsx=a,li.jsxs=a,li}())}var ui=ci();function di(e){const{children:t,theme:n}=e,r=ri(),o=h.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Rn({},e,t)}(r,n);return null!=e&&(e[ai]=null!==r),e}),[n,r]);return ui.jsx(ni.Provider,{value:o,children:t})}function pi(e=null){const t=ri();return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const fi=ei();function mi(e=fi){return pi(e)}const gi=["className","component"];function hi(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r,styleFunctionSx:o=Wo}=e,i=Nn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(o);return h.forwardRef((function(e,o){const a=mi(t),s=Uo(e),{className:l,component:c="div"}=s,u=An(s,gi);return ui.jsx(i,Rn({as:c,ref:o,className:Xo(l,r?r(n):n),theme:a},u))}))}hi();const bi=["variant"];function vi(e){return 0===e.length}function yi(e){const{variant:t}=e,n=An(e,bi);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?vi(r)?e[t]:Gn(e[t]):`${vi(r)?t:Gn(t)}${Gn(e[t].toString())}`})),r}const xi=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],Si=["theme"],wi=["theme"];function Ci(e){return 0===Object.keys(e).length}function Ei(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ki=ei();function Ti(e={}){const{defaultTheme:t=ki,rootShouldForwardProp:n=Ei,slotShouldForwardProp:r=Ei,styleFunctionSx:o=Wo}=e,i=e=>{const n=Ci(e.theme)?t:e.theme;return o(Rn({},e,{theme:n}))};return i.__mui_systemSx=!0,(e,o={})=>{Fn(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:s,skipVariantsResolver:l,skipSx:c,overridesResolver:u}=o,d=An(o,xi),p=void 0!==l?l:s&&"Root"!==s||!1,f=c||!1;let m=Ei;"Root"===s?m=n:s?m=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=Nn(e,Rn({shouldForwardProp:m,label:undefined},d)),h=(e,...n)=>{const r=n?n.map((e=>"function"==typeof e&&e.__emotion_real!==e?n=>{let{theme:r}=n,o=An(n,Si);return e(Rn({theme:Ci(r)?t:r},o))}:e)):[];let o=e;a&&u&&r.push((e=>{const n=Ci(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(a,n);if(r){const t={};return Object.entries(r).forEach((([r,o])=>{t[r]="function"==typeof o?o(Rn({},e,{theme:n})):o})),u(e,t)}return null})),a&&!p&&r.push((e=>{const n=Ci(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],l=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return l&&l.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[yi(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=yi(e.props);r[t]=e.style})),r})(a,n),n,a)})),f||r.push(i);const s=r.length-n.length;if(Array.isArray(e)&&s>0){const t=new Array(s).fill("");o=[...e,...t],o.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(o=n=>{let{theme:r}=n,o=An(n,wi);return e(Rn({theme:Ci(r)?t:r},o))});return g(o,...r)};return g.withConfig&&(h.withConfig=g.withConfig),h}}const Ri=Ti();function Ai({props:e,name:t,defaultTheme:n}){const r=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?kr(t.components[n].defaultProps,r):r}({theme:mi(n),name:t,props:e});return r}function Pi(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Di(e){if(e.type)return e;if("#"===e.charAt(0))return Di(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(Bn(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(Bn(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Oi=e=>{const t=Di(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function Ii(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 Mi(e){let t="hsl"===(e=Di(e)).type?Di(function(e){e=Di(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 s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Ii({type:s,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ni(e,t){return e=Di(e),t=Pi(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ii(e)}function Fi(e,t){if(e=Di(e),t=Pi(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 Ii(e)}function Li(e,t){if(e=Di(e),t=Pi(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 Ii(e)}function qi(e,t=.15){return Mi(e)>.5?Fi(e,t):Li(e,t)}function ji(e){const t=mi();return ui.jsx(Sn.Provider,{value:"object"==typeof t?t:{},children:e.children})}function zi(e){const{children:t,theme:n}=e;return ui.jsx(di,{theme:n,children:ui.jsx(ji,{children:t})})}const $i="mode",_i="color-scheme",Bi="data-color-scheme";function Hi(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Wi=["className","component","disableGutters","fixed","maxWidth","classes"],Vi=ei(),Ui=Ri("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Gn(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Ki=e=>Ai({props:e,name:"MuiContainer",defaultTheme:Vi});!function(e={}){const{createStyledComponent:t=Ui,useThemeProps:n=Ki,componentName:r="MuiContainer"}=e,o=t((({theme:e,ownerState:t})=>Rn({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),(({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce(((t,n)=>{const r=n,o=e.breakpoints.values[r];return 0!==o&&(t[e.breakpoints.up(r)]={maxWidth:`${o}${e.breakpoints.unit}`}),t}),{})),(({theme:e,ownerState:t})=>Rn({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}))),i=h.forwardRef((function(e,t){const i=n(e),{className:a,component:s="div",disableGutters:l=!1,fixed:c=!1,maxWidth:u="lg"}=i,d=An(i,Wi),p=Rn({},i,{component:s,disableGutters:l,fixed:c,maxWidth:u}),f=((e,t)=>{const{classes:n,fixed:r,disableGutters:o,maxWidth:i}=e;return Tr({root:["root",i&&`maxWidth${Gn(String(i))}`,r&&"fixed",o&&"disableGutters"]},(e=>Dr(t,e)),n)})(p,r);return ui.jsx(o,Rn({as:s,ownerState:p,className:Xo(f.root,a),ref:t},d))}))}(),Or("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]);const Gi=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach(((t,r)=>{n(((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)}),t)}));else if(t&&"object"==typeof t){(Object.keys(t).length>e.keys.length?e.keys:Object.keys(t)).forEach((o=>{if(-1!==e.keys.indexOf(o)){const i=t[o];void 0!==i&&n(((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n}),i)}}))}else"number"!=typeof t&&"string"!=typeof t||n(((e,t)=>{Object.assign(e,t)}),t)},Xi=({theme:e,ownerState:t})=>{const n={};return Gi(e.breakpoints,t.gridSize,((e,r)=>{let o={};!0===r&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===r&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof r&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / var(--Grid-columns)${t.nested&&t.container?" + var(--Grid-columnSpacing)":""})`}),e(n,o)})),n},Yi=({theme:e,ownerState:t})=>{const n={};return Gi(e.breakpoints,t.gridOffset,((e,t)=>{let r={};"auto"===t&&(r={marginLeft:"auto"}),"number"==typeof t&&(r={marginLeft:0===t?"0px":`calc(100% * ${t} / var(--Grid-columns))`}),e(n,r)})),n},Ji=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={"--Grid-columns":12};return Gi(e.breakpoints,t.columns,((e,t)=>{e(n,{"--Grid-columns":t})})),n},Zi=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gi(e.breakpoints,t.rowSpacing,((t,r)=>{var o;t(n,{"--Grid-rowSpacing":"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})})),n},Qi=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gi(e.breakpoints,t.columnSpacing,((t,r)=>{var o;t(n,{"--Grid-columnSpacing":"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})})),n},ea=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gi(e.breakpoints,t.direction,((e,t)=>{e(n,{flexDirection:t})})),n},ta=({ownerState:e})=>Rn({minWidth:0,boxSizing:"border-box"},e.container?Rn({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:"calc(var(--Grid-rowSpacing) / -2) calc(var(--Grid-columnSpacing) / -2)"},e.disableEqualOverflow&&{margin:"calc(var(--Grid-rowSpacing) * -1) 0px 0px calc(var(--Grid-columnSpacing) * -1)"},e.nested?Rn({padding:"calc(var(--Grid-nested-rowSpacing) / 2) calc(var(--Grid-nested-columnSpacing) / 2)"},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:"calc(var(--Grid-nested-rowSpacing)) 0px 0px calc(var(--Grid-nested-columnSpacing))"}):{"--Grid-nested-rowSpacing":"var(--Grid-rowSpacing)","--Grid-nested-columnSpacing":"var(--Grid-columnSpacing)"}):Rn({padding:"calc(var(--Grid-rowSpacing) / 2) calc(var(--Grid-columnSpacing) / 2)"},e.disableEqualOverflow&&{padding:"calc(var(--Grid-rowSpacing)) 0px 0px calc(var(--Grid-columnSpacing))"})),na=e=>{const t=[];return Object.entries(e).forEach((([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)})),t},ra=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)})),t}return[]},oa=["className","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow"],ia=ei(),aa=Ri("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function sa(e){return Ai({props:e,name:"MuiGrid",defaultTheme:ia})}!function(e={}){const{createStyledComponent:t=aa,useThemeProps:n=sa,componentName:r="MuiGrid"}=e,o=h.createContext(!1),i=h.createContext(void 0),a=t(Ji,Qi,Zi,Xi,ea,ta,Yi),s=h.forwardRef((function(e,t){var s,l,c,u,d,p,f,m;const g=mi(),b=Uo(n(e)),v=h.useContext(o),y=h.useContext(i),{className:x,columns:S=12,container:w=!1,component:C="div",direction:E="row",wrap:k="wrap",spacing:T=0,rowSpacing:R=T,columnSpacing:A=T,disableEqualOverflow:P}=b,D=An(b,oa);let O=P;v&&void 0!==P&&(O=e.disableEqualOverflow);const I={},M={},N={};Object.entries(D).forEach((([e,t])=>{void 0!==g.breakpoints.values[e]?I[e]=t:void 0!==g.breakpoints.values[e.replace("Offset","")]?M[e.replace("Offset","")]=t:N[e]=t}));const F=Rn({},b,{nested:v,columns:null!=(s=e.columns)?s:v?void 0:S,container:w,direction:E,wrap:k,spacing:null!=(l=e.spacing)?l:v?void 0:T,rowSpacing:null!=(c=null!=(u=e.rowSpacing)?u:e.spacing)?c:v?void 0:R,columnSpacing:null!=(d=null!=(p=e.columnSpacing)?p:e.spacing)?d:v?void 0:A,gridSize:I,gridOffset:M,disableEqualOverflow:null!=(f=null!=(m=O)?m:y)&&f,parentDisableEqualOverflow:y}),L=((e,t)=>{const{container:n,direction:o,spacing:i,wrap:a,gridSize:s}=e;return Tr({root:["root",n&&"container","row"!==o&&`direction-xs-${String(o)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...na(s),...n?ra(i,t.breakpoints.keys[0]):[]]},(e=>Dr(r,e)),{})})(F,g);let q=ui.jsx(a,Rn({ref:t,as:C,ownerState:F,className:Xo(L.root,x)},N));return v||(q=ui.jsx(o.Provider,{value:!0,children:q})),void 0!==O&&O!==(null!=y&&y)&&(q=ui.jsx(i.Provider,{value:O,children:q})),q}))}();const la=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];Or("MuiGrid",["root","container","item",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...la.map((e=>`grid-xs-${e}`)),...la.map((e=>`grid-sm-${e}`)),...la.map((e=>`grid-md-${e}`)),...la.map((e=>`grid-lg-${e}`)),...la.map((e=>`grid-xl-${e}`))]);const ca=["component","direction","spacing","divider","children","className"],ua=ei(),da=Ri("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function pa(e){return Ai({props:e,name:"MuiStack",defaultTheme:ua})}function fa(e,t){const n=h.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(h.cloneElement(t,{key:`separator-${o}`})),e)),[])}const ma=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[e]),ga=({ownerState:e,theme:t})=>{let n=Rn({display:"flex",flexDirection:"column"},Lr({theme:t},zr({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=Yr(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),i=zr({values:e.direction,base:o}),a=zr({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));n=zn(n,Lr({theme:t},a,((t,n)=>({"& > :not(style) + :not(style)":{margin:0,[`margin${ma(n?i[n]:e.direction)}`]:Jr(r,t)}}))))}return n=function(e,...t){const n=qr(e),r=[n,...t].reduce(((e,t)=>zn(e,t)),{});return jr(Object.keys(n),r)}(t.breakpoints,n),n};function ha(e){return"string"==typeof e}function ba(e,t){return"function"==typeof e?e(t):e}function va(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}function ya(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Xo(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),t=Rn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Rn({},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=function(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}(Rn({},o,r)),s=va(r),l=va(o),c=t(a),u=Xo(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Rn({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Rn({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}!function(e={}){const{createStyledComponent:t=da,useThemeProps:n=pa,componentName:r="MuiStack"}=e,o=t(ga),i=h.forwardRef((function(e,t){const i=Uo(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:c,children:u,className:d}=i,p=An(i,ca),f={direction:s,spacing:l},m=Tr({root:["root"]},(e=>Dr(r,e)),{});return ui.jsx(o,Rn({as:a,ownerState:f,ref:t,className:Xo(m.root,d)},p,{children:c?fa(u,c):u}))}))}(),Or("MuiStack",["root"]);const xa=["elementType","externalSlotProps","ownerState"];function Sa(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=An(e,xa),a=ba(r,o),{props:s,internalRef:l}=ya(Rn({},i,{externalSlotProps:a})),c=function(e,t={},n){return ha(e)?t:Rn({},t,{ownerState:Rn({},t.ownerState,n)})}(n,Rn({},s,{ref:ur(l,ur(null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref))}),o);return c}var wa;Or("BaseBadge",["root","badge","invisible"]),Or("ButtonUnstyled",["root","active","disabled","focusVisible"]),Or("BaseFormControl",["root","disabled","error","filled","focused","required"]),Or("MuiInput",["root","formControl","focused","disabled","error","multiline","input","inputMultiline","inputTypeSearch","adornedStart","adornedEnd"]),function(e){e.blur="blur",e.focus="focus",e.keyDown="keyDown",e.optionClick="optionClick",e.optionHover="optionHover",e.optionsChange="optionsChange",e.setValue="setValue",e.setHighlight="setHighlight",e.textNavigation="textNagivation"}(wa||(wa={}));h.createContext(null).displayName="MenuUnstyledContext",Or("MuiMenuUnstyled",["root","listbox","expanded"]);const Ca=h.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=h.useState(null),s=ur(h.isValidElement(n)?n.ref:null,t);return rr((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),rr((()=>{if(i&&!o)return nr(t,i),()=>{nr(t,null)}}),[t,i,o]),o?h.isValidElement(n)?h.cloneElement(n,{ref:s}):n:ui.jsx(h.Fragment,{children:i?O.createPortal(n,i):i})}));function Ea(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ka(e){return parseInt(er(e).getComputedStyle(e).paddingRight,10)||0}function Ta(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&&Ea(e,o)}))}function Ra(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Aa(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Qn(e);return t.body===e?er(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=xr(Qn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ka(r)+e}px`;const t=Qn(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ka(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Qn(r).body;else{const t=r.parentElement,n=er(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)}))}}Or("MuiPopperUnstyled",["root"]),Or("MuiMenuItemUnstyled",["root","disabled","focusVisible"]);const Pa=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Da(e){const t=[],n=[];return Array.from(e.querySelectorAll(Pa)).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 Oa(){return!0}function Ia(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Da,isEnabled:a=Oa,open:s}=e,l=h.useRef(),c=h.useRef(null),u=h.useRef(null),d=h.useRef(null),p=h.useRef(null),f=h.useRef(!1),m=h.useRef(null),g=ur(t.ref,m),b=h.useRef(null);h.useEffect((()=>{s&&m.current&&(f.current=!n)}),[n,s]),h.useEffect((()=>{if(!s||!m.current)return;const e=Qn(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),h.useEffect((()=>{if(!s||!m.current)return;const e=Qn(m.current),t=t=>{const{current:n}=m;if(null!==n)if(e.hasFocus()&&!r&&a()&&!l.current){if(!n.contains(e.activeElement)){if(t&&p.current!==t.target||e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=i(m.current)),r.length>0){var o,s;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=b.current)?void 0:s.key)),t=r[0],n=r[r.length-1];e?n.focus():t.focus()}else n.focus()}}else l.current=!1},n=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,u.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{"BODY"===e.activeElement.tagName&&t()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,r,o,a,s,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ui.jsxs(h.Fragment,{children:[ui.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),h.cloneElement(t,{ref:g,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),ui.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}function Ma(e){return Dr("MuiModal",e)}Or("MuiModal",["root","hidden"]);const Na=["children","classes","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"];const Fa=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&&Ea(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);Ta(t,e.mount,e.modalRef,r,!0);const o=Ra(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=Ra(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Aa(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Ra(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&&Ea(e.modalRef,t),Ta(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&&Ea(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},La=h.forwardRef((function(e,t){var n;const{children:r,classes:o,closeAfterTransition:i=!1,component:a="div",components:s={},componentsProps:l={},container:c,disableAutoFocus:u=!1,disableEnforceFocus:d=!1,disableEscapeKeyDown:p=!1,disablePortal:f=!1,disableRestoreFocus:m=!1,disableScrollLock:g=!1,hideBackdrop:b=!1,keepMounted:v=!1,manager:y=Fa,onBackdropClick:x,onClose:S,onKeyDown:w,open:C,onTransitionEnter:E,onTransitionExited:k}=e,T=An(e,Na),[R,A]=h.useState(!0),P=h.useRef({}),D=h.useRef(null),O=h.useRef(null),I=ur(O,t),M=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),N=null==(n=e["aria-hidden"])||n,F=()=>(P.current.modalRef=O.current,P.current.mountNode=D.current,P.current),L=()=>{y.mount(F(),{disableScrollLock:g}),O.current.scrollTop=0},q=cr((()=>{const e=function(e){return"function"==typeof e?e():e}(c)||Qn(D.current).body;y.add(F(),e),O.current&&L()})),j=h.useCallback((()=>y.isTopModal(F())),[y]),z=cr((e=>{D.current=e,e&&(C&&j()?L():Ea(O.current,N))})),$=h.useCallback((()=>{y.remove(F(),N)}),[y,N]);h.useEffect((()=>()=>{$()}),[$]),h.useEffect((()=>{C?q():M&&i||$()}),[C,$,M,i,q]);const _=Rn({},e,{classes:o,closeAfterTransition:i,disableAutoFocus:u,disableEnforceFocus:d,disableEscapeKeyDown:p,disablePortal:f,disableRestoreFocus:m,disableScrollLock:g,exited:R,hideBackdrop:b,keepMounted:v}),B=(e=>{const{open:t,exited:n,classes:r}=e;return Tr({root:["root",!t&&n&&"hidden"]},Ma,r)})(_),H=()=>{A(!1),E&&E()},W=()=>{A(!0),k&&k(),i&&$()},V={};void 0===r.props.tabIndex&&(V.tabIndex="-1"),M&&(V.onEnter=Xn(H,r.props.onEnter),V.onExited=Xn(W,r.props.onExited));const U=s.Root||a,K=Sa({elementType:U,externalSlotProps:l.root,externalForwardedProps:T,additionalProps:{ref:I,role:"presentation",onKeyDown:e=>{w&&w(e),"Escape"===e.key&&j()&&(p||(e.stopPropagation(),S&&S(e,"escapeKeyDown")))}},className:B.root,ownerState:_}),G=s.Backdrop,X=Sa({elementType:G,externalSlotProps:l.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(x&&x(e),S&&S(e,"backdropClick"))},open:C},ownerState:_});return v||C||M&&!R?ui.jsx(Ca,{ref:z,container:c,disablePortal:f,children:ui.jsxs(U,Rn({},K,{children:[!b&&G?ui.jsx(G,Rn({},X)):null,ui.jsx(Ia,{disableEnforceFocus:d,disableAutoFocus:u,disableRestoreFocus:m,isEnabled:j,open:C,children:h.cloneElement(r,V)})]}))}):null}));Or("MuiSelectUnstyled",["root","button","listbox","popper","active","expanded","disabled","focusVisible"]),Or("MuiOptionGroupUnstyled",["root","label","list"]),Or("MuiOptionUnstyled",["root","disabled","selected","highlighted"]),Or("MuiSlider",["root","active","focusVisible","disabled","dragging","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","markLabelActive","thumb","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel"]),Or("MuiSwitch",["root","input","track","thumb","checked","disabled","focusVisible","readOnly"]),Or("MuiTablePaginationUnstyled",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Or("TabPanelUnstyled",["root","hidden"]),Or("TabsUnstyled",["root","horizontal","vertical"]),Or("TabsListUnstyled",["root","horizontal","vertical"]),Or("TabUnstyled",["root","selected","disabled"]);const qa=["onChange","maxRows","minRows","style","value"];function ja(e,t){return parseInt(e[t],10)||0}const za={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function $a(e){return null==e||0===Object.keys(e).length}const _a=h.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=An(e,qa),{current:l}=h.useRef(null!=a),c=h.useRef(null),u=ur(t,c),d=h.useRef(null),p=h.useRef(0),[f,m]=h.useState({}),g=h.useCallback((()=>{const t=c.current,n=er(t).getComputedStyle(t);if("0px"===n.width)return{};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["box-sizing"],s=ja(n,"padding-bottom")+ja(n,"padding-top"),l=ja(n,"border-bottom-width")+ja(n,"border-top-width"),u=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=u;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?s+l:0),overflow:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),b=(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},v=h.useCallback((()=>{const e=g();$a(e)||m((t=>b(t,e)))}),[g]);h.useEffect((()=>{const e=Yn((()=>{p.current=0,c.current&&(()=>{const e=g();$a(e)||M((()=>{m((t=>b(t,e)))}))})()})),t=er(c.current);let n;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(c.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}})),rr((()=>{v()})),h.useEffect((()=>{p.current=0}),[a]);return ui.jsxs(h.Fragment,{children:[ui.jsx("textarea",Rn({value:a,onChange:e=>{p.current=0,l||v(),n&&n(e)},ref:u,rows:o,style:Rn({height:f.outerHeightStyle,overflow:f.overflow?"hidden":null},i)},s)),ui.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Rn({},za,i,{padding:0})})]})}));function Ba(e,t){return Rn({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Ha={black:"#000",white:"#fff"},Wa={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"},Va="#f3e5f5",Ua="#ce93d8",Ka="#ba68c8",Ga="#ab47bc",Xa="#9c27b0",Ya="#7b1fa2",Ja="#e57373",Za="#ef5350",Qa="#f44336",es="#d32f2f",ts="#c62828",ns="#ffb74d",rs="#ffa726",os="#ff9800",is="#f57c00",as="#e65100",ss="#e3f2fd",ls="#90caf9",cs="#42a5f5",us="#1976d2",ds="#1565c0",ps="#4fc3f7",fs="#29b6f6",ms="#03a9f4",gs="#0288d1",hs="#01579b",bs="#81c784",vs="#66bb6a",ys="#4caf50",xs="#388e3c",Ss="#2e7d32",ws="#1b5e20",Cs=["mode","contrastThreshold","tonalOffset"],Es={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:Ha.white,default:Ha.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}},ks={text:{primary:Ha.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:Ha.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 Ts(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=Li(e.main,o):"dark"===t&&(e.dark=Fi(e.main,i)))}function Rs(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=An(e,Cs),i=e.primary||function(e="light"){return"dark"===e?{main:ls,light:ss,dark:cs}:{main:us,light:cs,dark:ds}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ua,light:Va,dark:Ga}:{main:Xa,light:Ka,dark:Ya}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Qa,light:Ja,dark:es}:{main:es,light:Za,dark:ts}}(t),l=e.info||function(e="light"){return"dark"===e?{main:fs,light:ps,dark:gs}:{main:gs,light:ms,dark:hs}}(t),c=e.success||function(e="light"){return"dark"===e?{main:vs,light:bs,dark:xs}:{main:Ss,light:ys,dark:ws}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:rs,light:ns,dark:is}:{main:"#ed6c02",light:os,dark:as}}(t);function d(e){const t=function(e,t){const n=Mi(e),r=Mi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ks.text.primary)>=n?ks.text.primary:Es.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Rn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Bn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Bn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ts(e,"light",o,r),Ts(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:ks,light:Es};return zn(Rn({common:Rn({},Ha),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Wa,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const As=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ps={textTransform:"uppercase"},Ds='"Roboto", "Helvetica", "Arial", sans-serif';function Os(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ds,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=An(n,As),f=o/14,m=d||(e=>e/c*f+"rem"),g=(e,t,n,o,i)=>{return Rn({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Ds?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},h={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(s,14,1.75,.4,Ps),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,Ps)};return zn(Rn({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},h),p,{clone:!1})}function Is(...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(",")}const Ms=["none",Is(0,2,1,-1,0,1,1,0,0,1,3,0),Is(0,3,1,-2,0,2,2,0,0,1,5,0),Is(0,3,3,-2,0,3,4,0,0,1,8,0),Is(0,2,4,-1,0,4,5,0,0,1,10,0),Is(0,3,5,-1,0,5,8,0,0,1,14,0),Is(0,3,5,-1,0,6,10,0,0,1,18,0),Is(0,4,5,-2,0,7,10,1,0,2,16,1),Is(0,5,5,-3,0,8,10,1,0,3,14,2),Is(0,5,6,-3,0,9,12,1,0,3,16,2),Is(0,6,6,-3,0,10,14,1,0,4,18,3),Is(0,6,7,-4,0,11,15,1,0,4,20,3),Is(0,7,8,-4,0,12,17,2,0,5,22,4),Is(0,7,8,-4,0,13,19,2,0,5,24,4),Is(0,7,9,-4,0,14,21,2,0,5,26,4),Is(0,8,9,-5,0,15,22,2,0,6,28,5),Is(0,8,10,-5,0,16,24,2,0,6,30,5),Is(0,8,11,-5,0,17,26,2,0,6,32,5),Is(0,9,11,-5,0,18,28,2,0,7,34,6),Is(0,9,12,-6,0,19,29,2,0,7,36,6),Is(0,10,13,-6,0,20,31,3,0,8,38,7),Is(0,10,13,-6,0,21,33,3,0,8,40,7),Is(0,10,14,-6,0,22,35,3,0,8,42,7),Is(0,11,14,-7,0,23,36,3,0,9,44,8),Is(0,11,15,-7,0,24,38,3,0,9,46,8)],Ns=["duration","easing","delay"],Fs={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)"},Ls={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qs(e){return`${Math.round(e)}ms`}function js(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function zs(e){const t=Rn({},Fs,e.easing),n=Rn({},Ls,e.duration);return Rn({getAutoHeightDuration:js,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return An(r,Ns),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:qs(o)} ${i} ${"string"==typeof a?a:qs(a)}`)).join(",")}},e,{easing:t,duration:n})}const $s={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},_s=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Bs(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=An(e,_s);if(e.vars)throw new Error(Bn(18));const s=Rs(r),l=ei(e);let c=zn(l,{mixins:Ba(l.breakpoints,n),palette:s,shadows:Ms.slice(),typography:Os(s,i),transitions:zs(o),zIndex:Rn({},$s)});return c=zn(c,a),c=t.reduce(((e,t)=>zn(e,t)),c),c}const Hs=Bs();function Ws(){return mi(Hs)}function Vs({props:e,name:t}){return Ai({props:e,name:t,defaultTheme:Hs})}const Us=e=>Ei(e)&&"classes"!==e,Ks=Ei,Gs=Ti({defaultTheme:Hs,rootShouldForwardProp:Us});function Xs(e){return Dr("MuiPaper",e)}Or("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 Ys=["className","component","elevation","square","variant"],Js=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Zs=Gs("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 Rn({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Rn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ni("#fff",Js(t.elevation))}, ${Ni("#fff",Js(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),Qs=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=An(n,Ys),c=Rn({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Tr({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Xs,o)})(c);return ui.jsx(Zs,Rn({as:o,ownerState:c,className:Xo(u.root,r),ref:t},l))})),el=["colorSchemes","cssVarPrefix"],tl=["palette"],nl=[...Array(25)].map(((e,t)=>{if(0===t)return;const n=Js(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function rl(e,t,n){e[t]=e[t]||n}const ol=function(e={},...t){var n,r,o,i,a,s;const{colorSchemes:l={},cssVarPrefix:c="mui"}=e,u=An(e,el),d=((e="mui")=>Hi(e))(c),p=Bs(Rn({},u,l.light&&{palette:null==(n=l.light)?void 0:n.palette})),{palette:f}=p,m=An(p,tl),{palette:g}=Bs({palette:Rn({mode:"dark"},null==(r=l.dark)?void 0:r.palette)});let h=Rn({},m,{cssVarPrefix:c,getCssVar:d,colorSchemes:Rn({},l,{light:Rn({},l.light,{palette:f,opacity:Rn({inputPlaceholder:.42,inputUnderline:.42,switchTrackDisabled:.12,switchTrack:.38},null==(o=l.light)?void 0:o.opacity),overlays:(null==(i=l.light)?void 0:i.overlays)||[]}),dark:Rn({},l.dark,{palette:g,opacity:Rn({inputPlaceholder:.5,inputUnderline:.7,switchTrackDisabled:.2,switchTrack:.3},null==(a=l.dark)?void 0:a.opacity),overlays:(null==(s=l.dark)?void 0:s.overlays)||nl})})});return Object.keys(h.colorSchemes).forEach((e=>{const t=h.colorSchemes[e].palette;var n;if("light"===e?(rl(t.common,"background","#fff"),rl(t.common,"onBackground","#000")):(rl(t.common,"background","#000"),rl(t.common,"onBackground","#fff")),n=t,["Alert","AppBar","Avatar","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach((e=>{n[e]||(n[e]={})})),"light"===e){rl(t.Alert,"errorColor",Fi(t.error.light,.6)),rl(t.Alert,"infoColor",Fi(t.info.light,.6)),rl(t.Alert,"successColor",Fi(t.success.light,.6)),rl(t.Alert,"warningColor",Fi(t.warning.light,.6)),rl(t.Alert,"errorFilledBg",d("palette-error-main")),rl(t.Alert,"infoFilledBg",d("palette-info-main")),rl(t.Alert,"successFilledBg",d("palette-success-main")),rl(t.Alert,"warningFilledBg",d("palette-warning-main")),rl(t.Alert,"errorFilledColor",f.getContrastText(t.error.main)),rl(t.Alert,"infoFilledColor",f.getContrastText(t.info.main)),rl(t.Alert,"successFilledColor",f.getContrastText(t.success.main)),rl(t.Alert,"warningFilledColor",f.getContrastText(t.warning.main)),rl(t.Alert,"errorStandardBg",Li(t.error.light,.9)),rl(t.Alert,"infoStandardBg",Li(t.info.light,.9)),rl(t.Alert,"successStandardBg",Li(t.success.light,.9)),rl(t.Alert,"warningStandardBg",Li(t.warning.light,.9)),rl(t.Alert,"errorIconColor",d("palette-error-light")),rl(t.Alert,"infoIconColor",d("palette-info-light")),rl(t.Alert,"successIconColor",d("palette-success-light")),rl(t.Alert,"warningIconColor",d("palette-warning-light")),rl(t.AppBar,"defaultBg",d("palette-grey-100")),rl(t.Avatar,"defaultBg",d("palette-grey-400")),rl(t.Chip,"defaultBorder",d("palette-grey-400")),rl(t.Chip,"defaultAvatarColor",d("palette-grey-700")),rl(t.Chip,"defaultIconColor",d("palette-grey-700")),rl(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),rl(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),rl(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),rl(t.LinearProgress,"primaryBg",Li(t.primary.main,.62)),rl(t.LinearProgress,"secondaryBg",Li(t.secondary.main,.62)),rl(t.LinearProgress,"errorBg",Li(t.error.main,.62)),rl(t.LinearProgress,"infoBg",Li(t.info.main,.62)),rl(t.LinearProgress,"successBg",Li(t.success.main,.62)),rl(t.LinearProgress,"warningBg",Li(t.warning.main,.62)),rl(t.Skeleton,"bg",`rgba(${d("palette-text-primaryChannel")} / 0.11)`),rl(t.Slider,"primaryTrack",Li(t.primary.main,.62)),rl(t.Slider,"secondaryTrack",Li(t.secondary.main,.62)),rl(t.Slider,"errorTrack",Li(t.error.main,.62)),rl(t.Slider,"infoTrack",Li(t.info.main,.62)),rl(t.Slider,"successTrack",Li(t.success.main,.62)),rl(t.Slider,"warningTrack",Li(t.warning.main,.62));const e=qi(t.background.default,.8);rl(t.SnackbarContent,"bg",e),rl(t.SnackbarContent,"color",f.getContrastText(e)),rl(t.SpeedDialAction,"fabHoverBg",qi(t.background.paper,.15)),rl(t.StepConnector,"border",d("palette-grey-400")),rl(t.StepContent,"border",d("palette-grey-400")),rl(t.Switch,"defaultColor",d("palette-common-white")),rl(t.Switch,"defaultDisabledColor",d("palette-grey-100")),rl(t.Switch,"primaryDisabledColor",Li(t.primary.main,.62)),rl(t.Switch,"secondaryDisabledColor",Li(t.secondary.main,.62)),rl(t.Switch,"errorDisabledColor",Li(t.error.main,.62)),rl(t.Switch,"infoDisabledColor",Li(t.info.main,.62)),rl(t.Switch,"successDisabledColor",Li(t.success.main,.62)),rl(t.Switch,"warningDisabledColor",Li(t.warning.main,.62)),rl(t.TableCell,"border",Li(Ni(t.divider,1),.88)),rl(t.Tooltip,"bg",Ni(t.grey[700],.92))}else{rl(t.Alert,"errorColor",Li(t.error.light,.6)),rl(t.Alert,"infoColor",Li(t.info.light,.6)),rl(t.Alert,"successColor",Li(t.success.light,.6)),rl(t.Alert,"warningColor",Li(t.warning.light,.6)),rl(t.Alert,"errorFilledBg",d("palette-error-dark")),rl(t.Alert,"infoFilledBg",d("palette-info-dark")),rl(t.Alert,"successFilledBg",d("palette-success-dark")),rl(t.Alert,"warningFilledBg",d("palette-warning-dark")),rl(t.Alert,"errorFilledColor",g.getContrastText(t.error.dark)),rl(t.Alert,"infoFilledColor",g.getContrastText(t.info.dark)),rl(t.Alert,"successFilledColor",g.getContrastText(t.success.dark)),rl(t.Alert,"warningFilledColor",g.getContrastText(t.warning.dark)),rl(t.Alert,"errorStandardBg",Fi(t.error.light,.9)),rl(t.Alert,"infoStandardBg",Fi(t.info.light,.9)),rl(t.Alert,"successStandardBg",Fi(t.success.light,.9)),rl(t.Alert,"warningStandardBg",Fi(t.warning.light,.9)),rl(t.Alert,"errorIconColor",d("palette-error-main")),rl(t.Alert,"infoIconColor",d("palette-info-main")),rl(t.Alert,"successIconColor",d("palette-success-main")),rl(t.Alert,"warningIconColor",d("palette-warning-main")),rl(t.AppBar,"defaultBg",d("palette-grey-900")),rl(t.AppBar,"darkBg",d("palette-background-paper")),rl(t.AppBar,"darkColor",d("palette-text-primary")),rl(t.Avatar,"defaultBg",d("palette-grey-600")),rl(t.Chip,"defaultBorder",d("palette-grey-700")),rl(t.Chip,"defaultAvatarColor",d("palette-grey-300")),rl(t.Chip,"defaultIconColor",d("palette-grey-300")),rl(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),rl(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),rl(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),rl(t.LinearProgress,"primaryBg",Fi(t.primary.main,.5)),rl(t.LinearProgress,"secondaryBg",Fi(t.secondary.main,.5)),rl(t.LinearProgress,"errorBg",Fi(t.error.main,.5)),rl(t.LinearProgress,"infoBg",Fi(t.info.main,.5)),rl(t.LinearProgress,"successBg",Fi(t.success.main,.5)),rl(t.LinearProgress,"warningBg",Fi(t.warning.main,.5)),rl(t.Skeleton,"bg",`rgba(${d("palette-text-primaryChannel")} / 0.13)`),rl(t.Slider,"primaryTrack",Fi(t.primary.main,.5)),rl(t.Slider,"secondaryTrack",Fi(t.secondary.main,.5)),rl(t.Slider,"errorTrack",Fi(t.error.main,.5)),rl(t.Slider,"infoTrack",Fi(t.info.main,.5)),rl(t.Slider,"successTrack",Fi(t.success.main,.5)),rl(t.Slider,"warningTrack",Fi(t.warning.main,.5));const e=qi(t.background.default,.98);rl(t.SnackbarContent,"bg",e),rl(t.SnackbarContent,"color",g.getContrastText(e)),rl(t.SpeedDialAction,"fabHoverBg",qi(t.background.paper,.15)),rl(t.StepConnector,"border",d("palette-grey-600")),rl(t.StepContent,"border",d("palette-grey-600")),rl(t.Switch,"defaultColor",d("palette-grey-300")),rl(t.Switch,"defaultDisabledColor",d("palette-grey-600")),rl(t.Switch,"primaryDisabledColor",Fi(t.primary.main,.55)),rl(t.Switch,"secondaryDisabledColor",Fi(t.secondary.main,.55)),rl(t.Switch,"errorDisabledColor",Fi(t.error.main,.55)),rl(t.Switch,"infoDisabledColor",Fi(t.info.main,.55)),rl(t.Switch,"successDisabledColor",Fi(t.success.main,.55)),rl(t.Switch,"warningDisabledColor",Fi(t.warning.main,.55)),rl(t.TableCell,"border",Fi(Ni(t.divider,1),.68)),rl(t.Tooltip,"bg",Ni(t.grey[700],.92))}t.common.backgroundChannel=Oi(t.common.background),t.common.onBackgroundChannel=Oi(t.common.onBackground),t.dividerChannel=Oi(t.divider),Object.keys(t).forEach((e=>{const n=t[e];n.main&&(t[e].mainChannel=Oi(n.main)),n.light&&(t[e].lightChannel=Oi(n.light)),n.dark&&(t[e].darkChannel=Oi(n.dark)),n.contrastText&&(t[e].contrastTextChannel=Oi(n.contrastText)),n.primary&&(t[e].primaryChannel=Oi(n.primary)),n.secondary&&(t[e].secondaryChannel=Oi(n.secondary)),n.active&&(t[e].activeChannel=Oi(n.active)),n.selected&&(t[e].selectedChannel=Oi(n.selected))}))})),h=t.reduce(((e,t)=>zn(e,t)),h),h}();!function(e){const{theme:t={},attribute:n=Bi,modeStorageKey:r=$i,colorSchemeStorageKey:o=_i,defaultMode:i="light",defaultColorScheme:a,disableTransitionOnChange:s=!1,enableColorScheme:l=!0,shouldSkipGeneratingVar:c,resolveTheme:u}=e;(!t.colorSchemes||"string"==typeof a&&!t.colorSchemes[a]||"object"==typeof a&&!t.colorSchemes[null==a?void 0:a.light]||"object"==typeof a&&!t.colorSchemes[null==a?void 0:a.dark])&&console.error(`MUI: \`${a}\` does not exist in \`theme.colorSchemes\`.`);const d=h.createContext(void 0)}({theme:ol,attribute:"data-mui-color-scheme",modeStorageKey:"mui-mode",colorSchemeStorageKey:"mui-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>Rn({},e,{typography:Os(e.palette,e.typography)}),shouldSkipGeneratingVar:e=>{var t;return!!e[0].match(/(typography|mixins|breakpoints|direction|transitions)/)||"palette"===e[0]&&!(null==(t=e[1])||!t.match(/(mode|contrastThreshold|tonalOffset)/))}});var il={},al={exports:{}};
13
+ function Hn(e,t){let n;return n=t?Mn(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Mn(e),n}Bn.propTypes={defaultTheme:qn.exports.object,styles:qn.exports.oneOfType([qn.exports.string,qn.exports.object,qn.exports.func])};const Wn=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var Vn=Object.freeze({__proto__:null,default:Hn,internal_processStyles:Wn,ThemeContext:On,keyframes:Fn,css:yn,StyledEngineProvider:_n,GlobalStyles:Bn});function Un(e,t){return()=>null}function Kn(){return Kn=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},Kn.apply(this,arguments)}function Gn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Xn(e,t,n={clone:!0}){const r=n.clone?Kn({},e):e;return Gn(e)&&Gn(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Gn(t[o])&&o in e&&Gn(e[o])?r[o]=Xn(e[o],t[o],n):r[o]=t[o])})),r}const Yn=(qn.exports.element,()=>null);Yn.isRequired=(qn.exports.element.isRequired,()=>null);var Jn=(qn.exports.elementType,()=>null);function Zn(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."}const Qn=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function er(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(Qn);return t&&t[1]||""}(e)||t}function tr(e,t,n){const r=er(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var nr="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();const rr=qn.exports.oneOfType([qn.exports.func,qn.exports.object]);function or(e){if("string"!=typeof e)throw new Error(Zn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ir(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function ar(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function sr(e,t){return()=>null}function lr(e,t){return h.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function cr(e){return e&&e.ownerDocument||document}function ur(e){return cr(e).defaultView||window}function dr(e,t){return()=>null}function pr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const fr="undefined"!=typeof window?h.useLayoutEffect:h.useEffect;let mr=0;const gr=h.useId;function hr(e){if(void 0!==gr){const t=gr();return null!=e?e:t}return function(e){const[t,n]=h.useState(e),r=e||t;return h.useEffect((()=>{null==t&&(mr+=1,n(`mui-${mr}`))}),[t]),r}(e)}function br(e,t,n,r,o){return null}function vr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(void 0!==e),[i,a]=h.useState(t);return[o?e:i,h.useCallback((e=>{o||a(e)}),[])]}function yr(e){const t=h.useRef(e);return fr((()=>{t.current=e})),h.useCallback(((...e)=>(0,t.current)(...e)),[])}function xr(...e){return h.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{pr(e,t)}))}),e)}let Sr,wr=!0,Cr=!1;const Er={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 kr(e){e.metaKey||e.altKey||e.ctrlKey||(wr=!0)}function Tr(){wr=!1}function Rr(){"hidden"===this.visibilityState&&Cr&&(wr=!0)}function Ar(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return wr||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Er[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Pr(){const e=h.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",kr,!0),t.addEventListener("mousedown",Tr,!0),t.addEventListener("pointerdown",Tr,!0),t.addEventListener("touchstart",Tr,!0),t.addEventListener("visibilitychange",Rr,!0))}),[]),t=h.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ar(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Cr=!0,window.clearTimeout(Sr),Sr=window.setTimeout((()=>{Cr=!1}),100),t.current=!1,!0)},ref:e}}function Or(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Dr;function Ir(){if(Dr)return Dr;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Dr="reverse",e.scrollLeft>0?Dr="default":(e.scrollLeft=1,0===e.scrollLeft&&(Dr="negative")),document.body.removeChild(e),Dr}function Mr(){return null}Mr.isRequired=Mr;var Nr=Mr;function Fr(e,t){const n=Kn({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}function Lr(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e)),[]).join(" ")})),r}const jr=e=>e,qr=(()=>{let e=jr;return{configure(t){e=t},generate:t=>e(t),reset(){e=jr}}})(),zr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function $r(e,t,n="Mui"){const r=zr[t];return r?`${n}-${r}`:`${qr.generate(e)}-${t}`}function _r(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=$r(e,t,n)})),r}var Br=Object.freeze({__proto__:null,chainPropTypes:Un,deepmerge:Xn,isPlainObject:Gn,elementAcceptingRef:Yn,elementTypeAcceptingRef:Jn,exactProp:function(e){return e},formatMuiErrorMessage:Zn,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return er(e,"Component");if("object"==typeof e)switch(e.$$typeof){case ue.exports.ForwardRef:return tr(e,e.render,"ForwardRef");case ue.exports.Memo:return tr(e,e.type,"memo");default:return}}},HTMLElementType:function(e,t,n,r,o){return null},ponyfillGlobal:nr,refType:rr,unstable_capitalize:or,unstable_createChainedFunction:ir,unstable_debounce:ar,unstable_deprecatedPropType:sr,unstable_isMuiElement:lr,unstable_ownerDocument:cr,unstable_ownerWindow:ur,unstable_requirePropFactory:dr,unstable_setRef:pr,unstable_useEnhancedEffect:fr,unstable_useId:hr,unstable_unsupportedProp:br,unstable_useControlled:vr,unstable_useEventCallback:yr,unstable_useForkRef:xr,unstable_useIsFocusVisible:Pr,unstable_getScrollbarSize:Or,unstable_detectScrollType:Ir,unstable_getNormalizedScrollLeft:function(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(Ir()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}},usePreviousProps:e=>{const t=h.useRef({});return h.useEffect((()=>{t.current=e})),t.current},visuallyHidden:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},integerPropType:Nr,internal_resolveProps:Fr,unstable_composeClasses:Lr,unstable_generateUtilityClass:$r,unstable_generateUtilityClasses:_r,unstable_ClassNameGenerator:qr});function Hr(){return Hr=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},Hr.apply(this,arguments)}function Wr(e,t){return t?Xn(e,t,{clone:!1}):e}const Vr={xs:0,sm:600,md:900,lg:1200,xl:1536},Ur={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vr[e]}px)`};function Kr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Ur;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Ur;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Vr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Gr(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Xr(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Yr({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function Jr(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 Zr(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Jr(e,n)||r,t&&(o=t(o)),o}function Qr(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=Jr(e.theme,r)||{};return Kr(e,i,(e=>{let r=Zr(a,o,e);return e===r&&"string"==typeof e&&(r=Zr(a,o,`${t}${"default"===e?"":or(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}function eo(...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]?Wr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}const to={m:"margin",p:"padding"},no={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ro={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oo=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!ro[e])return[e];e=ro[e]}const[t,n]=e.split(""),r=to[t],o=no[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),io=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ao(e,t,n,r){var o;const i=null!=(o=Jr(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 so(e){return ao(e,"spacing",8)}function lo(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 co(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=lo(t,n),e)),{})}(oo(n),r);return Kr(e,e[n],o)}function uo(e){return function(e,t){const n=so(e.theme);return Object.keys(e).map((r=>co(e,t,r,n))).reduce(Wr,{})}(e,io)}function po(e){return"number"!=typeof e?e:`${e}px solid`}uo.propTypes={},uo.filterProps=io;const fo=Qr({prop:"border",themeKey:"borders",transform:po}),mo=Qr({prop:"borderTop",themeKey:"borders",transform:po}),go=Qr({prop:"borderRight",themeKey:"borders",transform:po}),ho=Qr({prop:"borderBottom",themeKey:"borders",transform:po}),bo=Qr({prop:"borderLeft",themeKey:"borders",transform:po}),vo=Qr({prop:"borderColor",themeKey:"palette"}),yo=Qr({prop:"borderTopColor",themeKey:"palette"}),xo=Qr({prop:"borderRightColor",themeKey:"palette"}),So=Qr({prop:"borderBottomColor",themeKey:"palette"}),wo=Qr({prop:"borderLeftColor",themeKey:"palette"}),Co=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ao(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:lo(t,e)});return Kr(e,e.borderRadius,n)}return null};Co.propTypes={},Co.filterProps=["borderRadius"];const Eo=eo(fo,mo,go,ho,bo,vo,yo,xo,So,wo,Co);var ko=eo(Qr({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),Qr({prop:"display"}),Qr({prop:"overflow"}),Qr({prop:"textOverflow"}),Qr({prop:"visibility"}),Qr({prop:"whiteSpace"}));const To=eo(Qr({prop:"flexBasis"}),Qr({prop:"flexDirection"}),Qr({prop:"flexWrap"}),Qr({prop:"justifyContent"}),Qr({prop:"alignItems"}),Qr({prop:"alignContent"}),Qr({prop:"order"}),Qr({prop:"flex"}),Qr({prop:"flexGrow"}),Qr({prop:"flexShrink"}),Qr({prop:"alignSelf"}),Qr({prop:"justifyItems"}),Qr({prop:"justifySelf"})),Ro=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ao(e.theme,"spacing",8),n=e=>({gap:lo(t,e)});return Kr(e,e.gap,n)}return null};Ro.propTypes={},Ro.filterProps=["gap"];const Ao=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ao(e.theme,"spacing",8),n=e=>({columnGap:lo(t,e)});return Kr(e,e.columnGap,n)}return null};Ao.propTypes={},Ao.filterProps=["columnGap"];const Po=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ao(e.theme,"spacing",8),n=e=>({rowGap:lo(t,e)});return Kr(e,e.rowGap,n)}return null};Po.propTypes={},Po.filterProps=["rowGap"];const Oo=eo(Ro,Ao,Po,Qr({prop:"gridColumn"}),Qr({prop:"gridRow"}),Qr({prop:"gridAutoFlow"}),Qr({prop:"gridAutoColumns"}),Qr({prop:"gridAutoRows"}),Qr({prop:"gridTemplateColumns"}),Qr({prop:"gridTemplateRows"}),Qr({prop:"gridTemplateAreas"}),Qr({prop:"gridArea"})),Do=eo(Qr({prop:"color",themeKey:"palette"}),Qr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Qr({prop:"backgroundColor",themeKey:"palette"}));var Io=eo(Qr({prop:"position"}),Qr({prop:"zIndex",themeKey:"zIndex"}),Qr({prop:"top"}),Qr({prop:"right"}),Qr({prop:"bottom"}),Qr({prop:"left"}));const Mo=Qr({prop:"boxShadow",themeKey:"shadows"});function No(e){return e<=1&&0!==e?100*e+"%":e}const Fo=Qr({prop:"width",transform:No}),Lo=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||Vr[t]||No(t)}};return Kr(e,e.maxWidth,t)}return null};Lo.filterProps=["maxWidth"];const jo=Qr({prop:"minWidth",transform:No}),qo=Qr({prop:"height",transform:No}),zo=Qr({prop:"maxHeight",transform:No}),$o=Qr({prop:"minHeight",transform:No});Qr({prop:"size",cssProperty:"width",transform:No}),Qr({prop:"size",cssProperty:"height",transform:No});const _o=eo(Fo,Lo,jo,qo,zo,$o,Qr({prop:"boxSizing"})),Bo=Qr({prop:"fontFamily",themeKey:"typography"}),Ho=Qr({prop:"fontSize",themeKey:"typography"}),Wo=Qr({prop:"fontStyle",themeKey:"typography"}),Vo=Qr({prop:"fontWeight",themeKey:"typography"}),Uo=Qr({prop:"letterSpacing"}),Ko=Qr({prop:"textTransform"}),Go=Qr({prop:"lineHeight"}),Xo=Qr({prop:"textAlign"}),Yo=eo(Qr({prop:"typography",cssProperty:!1,themeKey:"typography"}),Bo,Ho,Wo,Vo,Uo,Go,Xo,Ko),Jo={borders:Eo.filterProps,display:ko.filterProps,flexbox:To.filterProps,grid:Oo.filterProps,positions:Io.filterProps,palette:Do.filterProps,shadows:Mo.filterProps,sizing:_o.filterProps,spacing:uo.filterProps,typography:Yo.filterProps},Zo={borders:Eo,display:ko,flexbox:To,grid:Oo,positions:Io,palette:Do,shadows:Mo,sizing:_o,spacing:uo,typography:Yo},Qo=Object.keys(Jo).reduce(((e,t)=>(Jo[t].forEach((n=>{e[n]=Zo[t]})),e)),{});function ei(e=Zo){const t=Object.keys(e).reduce(((t,n)=>(e[n].filterProps.forEach((r=>{t[r]=e[n]})),t)),{});function n(e,n,r){const o={[e]:n,theme:r},i=t[e];return i?i(o):{[e]:n}}return function e(r){const{sx:o,theme:i={}}=r||{};if(!o)return null;function a(r){let o=r;if("function"==typeof r)o=r(i);else if("object"!=typeof r)return r;if(!o)return null;const a=Gr(i.breakpoints),s=Object.keys(a);let l=a;return Object.keys(o).forEach((r=>{const a=(s=o[r],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=a)if("object"==typeof a)if(t[r])l=Wr(l,n(r,a,i));else{const t=Kr({theme:i},a,(e=>({[r]: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))}(t,a)?l=Wr(l,t):l[r]=e({sx:a,theme:i})}else l=Wr(l,n(r,a,i))})),Xr(s,l)}return Array.isArray(o)?o.map(a):a(o)}}const ti=ei();function ni(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}ti.filterProps=["sx"];const ri=["sx"];function oi(e){const{sx:t}=e,n=ni(e,ri),{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((n=>{Qo[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]})),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Gn(n)?Hr({},r,n):r}:Hr({},r,t),Hr({},o,{sx:i})}var ii=Object.freeze({__proto__:null,default:ti,unstable_createStyleFunctionSx:ei,extendSxProp:oi});function ai(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ai(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function si(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ai(e))&&(r&&(r+=" "),r+=t);return r}const li=["values","unit","step"];function ci(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ni(e,li),i=(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)=>Hr({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(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 Hr({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const ui={borderRadius:4};const di=["breakpoints","palette","spacing","shape"];function pi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ni(e,di),s=ci(n),l=function(e=8){if(e.mui)return e;const t=so({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 c=Xn({breakpoints:s,direction:"ltr",components:{},palette:Hr({mode:"light"},r),spacing:l,shape:Hr({},ui,i)},a);return c=t.reduce(((e,t)=>Xn(e,t)),c),c}var fi=Object.freeze({__proto__:null,default:pi});function mi(){return mi=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},mi.apply(this,arguments)}const gi=h.createContext(null);function hi(){return h.useContext(gi)}var bi,vi,yi="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",xi={exports:{}},Si={};function wi(){return vi?xi.exports:(vi=1,xi.exports=function(){if(bi)return Si;bi=1;var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return Si.Fragment=n,Si.jsx=a,Si.jsxs=a,Si}())}var Ci=wi();function Ei(e){const{children:t,theme:n}=e,r=hi(),o=h.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return mi({},e,t)}(r,n);return null!=e&&(e[yi]=null!==r),e}),[n,r]);return Ci.jsx(gi.Provider,{value:o,children:t})}function ki(e=null){const t=hi();return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Ti=pi();function Ri(e=Ti){return ki(e)}const Ai=["className","component"];function Pi(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r,styleFunctionSx:o=ti}=e,i=Hn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(o);return h.forwardRef((function(e,o){const a=Ri(t),s=oi(e),{className:l,component:c="div"}=s,u=ni(s,Ai);return Ci.jsx(i,Hr({as:c,ref:o,className:si(l,r?r(n):n),theme:a},u))}))}Pi();const Oi=["variant"];function Di(e){return 0===e.length}function Ii(e){const{variant:t}=e,n=ni(e,Oi);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Di(r)?e[t]:or(e[t]):`${Di(r)?t:or(t)}${or(e[t].toString())}`})),r}const Mi=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],Ni=["theme"],Fi=["theme"];function Li(e){return 0===Object.keys(e).length}function ji(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const qi=pi();function zi(e={}){const{defaultTheme:t=qi,rootShouldForwardProp:n=ji,slotShouldForwardProp:r=ji,styleFunctionSx:o=ti}=e,i=e=>{const n=Li(e.theme)?t:e.theme;return o(Hr({},e,{theme:n}))};return i.__mui_systemSx=!0,(e,o={})=>{Wn(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:s,skipVariantsResolver:l,skipSx:c,overridesResolver:u}=o,d=ni(o,Mi),p=void 0!==l?l:s&&"Root"!==s||!1,f=c||!1;let m=ji;"Root"===s?m=n:s?m=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=Hn(e,Hr({shouldForwardProp:m,label:undefined},d)),h=(e,...n)=>{const r=n?n.map((e=>"function"==typeof e&&e.__emotion_real!==e?n=>{let{theme:r}=n,o=ni(n,Ni);return e(Hr({theme:Li(r)?t:r},o))}:e)):[];let o=e;a&&u&&r.push((e=>{const n=Li(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(a,n);if(r){const t={};return Object.entries(r).forEach((([r,o])=>{t[r]="function"==typeof o?o(Hr({},e,{theme:n})):o})),u(e,t)}return null})),a&&!p&&r.push((e=>{const n=Li(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],l=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return l&&l.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[Ii(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=Ii(e.props);r[t]=e.style})),r})(a,n),n,a)})),f||r.push(i);const s=r.length-n.length;if(Array.isArray(e)&&s>0){const t=new Array(s).fill("");o=[...e,...t],o.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(o=n=>{let{theme:r}=n,o=ni(n,Fi);return e(Hr({theme:Li(r)?t:r},o))});return g(o,...r)};return g.withConfig&&(h.withConfig=g.withConfig),h}}const $i=zi();function _i({props:e,name:t,defaultTheme:n}){const r=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Fr(t.components[n].defaultProps,r):r}({theme:Ri(n),name:t,props:e});return r}function Bi(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Hi(e){if(e.type)return e;if("#"===e.charAt(0))return Hi(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(Zn(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(Zn(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Wi=e=>{const t=Hi(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function Vi(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 Ui(e){let t="hsl"===(e=Hi(e)).type||"hsla"===e.type?Hi(function(e){e=Hi(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 s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Vi({type:s,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ki(e,t){return e=Hi(e),t=Bi(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Vi(e)}function Gi(e,t){if(e=Hi(e),t=Bi(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 Vi(e)}function Xi(e,t){if(e=Hi(e),t=Bi(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 Vi(e)}function Yi(e,t=.15){return Ui(e)>.5?Gi(e,t):Xi(e,t)}function Ji(e){const t=Ri();return Ci.jsx(On.Provider,{value:"object"==typeof t?t:{},children:e.children})}function Zi(e){const{children:t,theme:n}=e;return Ci.jsx(Ei,{theme:n,children:Ci.jsx(Ji,{children:t})})}const Qi="mode",ea="color-scheme",ta="data-color-scheme";function na(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const ra=["className","component","disableGutters","fixed","maxWidth","classes"],oa=pi(),ia=$i("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${or(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),aa=e=>_i({props:e,name:"MuiContainer",defaultTheme:oa});!function(e={}){const{createStyledComponent:t=ia,useThemeProps:n=aa,componentName:r="MuiContainer"}=e,o=t((({theme:e,ownerState:t})=>Hr({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),(({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce(((t,n)=>{const r=n,o=e.breakpoints.values[r];return 0!==o&&(t[e.breakpoints.up(r)]={maxWidth:`${o}${e.breakpoints.unit}`}),t}),{})),(({theme:e,ownerState:t})=>Hr({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}))),i=h.forwardRef((function(e,t){const i=n(e),{className:a,component:s="div",disableGutters:l=!1,fixed:c=!1,maxWidth:u="lg"}=i,d=ni(i,ra),p=Hr({},i,{component:s,disableGutters:l,fixed:c,maxWidth:u}),f=((e,t)=>{const{classes:n,fixed:r,disableGutters:o,maxWidth:i}=e;return Lr({root:["root",i&&`maxWidth${or(String(i))}`,r&&"fixed",o&&"disableGutters"]},(e=>$r(t,e)),n)})(p,r);return Ci.jsx(o,Hr({as:s,ownerState:p,className:si(f.root,a),ref:t},d))}))}(),_r("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]);const sa=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach(((t,r)=>{n(((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)}),t)}));else if(t&&"object"==typeof t){(Object.keys(t).length>e.keys.length?e.keys:Object.keys(t)).forEach((o=>{if(-1!==e.keys.indexOf(o)){const i=t[o];void 0!==i&&n(((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n}),i)}}))}else"number"!=typeof t&&"string"!=typeof t||n(((e,t)=>{Object.assign(e,t)}),t)},la=({theme:e,ownerState:t})=>{const n={};return sa(e.breakpoints,t.gridSize,((e,r)=>{let o={};!0===r&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===r&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof r&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / var(--Grid-columns)${t.nested&&t.container?" + var(--Grid-columnSpacing)":""})`}),e(n,o)})),n},ca=({theme:e,ownerState:t})=>{const n={};return sa(e.breakpoints,t.gridOffset,((e,t)=>{let r={};"auto"===t&&(r={marginLeft:"auto"}),"number"==typeof t&&(r={marginLeft:0===t?"0px":`calc(100% * ${t} / var(--Grid-columns))`}),e(n,r)})),n},ua=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={"--Grid-columns":12};return sa(e.breakpoints,t.columns,((e,t)=>{e(n,{"--Grid-columns":t})})),n},da=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return sa(e.breakpoints,t.rowSpacing,((t,r)=>{var o;t(n,{"--Grid-rowSpacing":"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})})),n},pa=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return sa(e.breakpoints,t.columnSpacing,((t,r)=>{var o;t(n,{"--Grid-columnSpacing":"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})})),n},fa=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return sa(e.breakpoints,t.direction,((e,t)=>{e(n,{flexDirection:t})})),n},ma=({ownerState:e})=>Hr({minWidth:0,boxSizing:"border-box"},e.container?Hr({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:"calc(var(--Grid-rowSpacing) / -2) calc(var(--Grid-columnSpacing) / -2)"},e.disableEqualOverflow&&{margin:"calc(var(--Grid-rowSpacing) * -1) 0px 0px calc(var(--Grid-columnSpacing) * -1)"},e.nested?Hr({padding:"calc(var(--Grid-nested-rowSpacing) / 2) calc(var(--Grid-nested-columnSpacing) / 2)"},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:"calc(var(--Grid-nested-rowSpacing)) 0px 0px calc(var(--Grid-nested-columnSpacing))"}):{"--Grid-nested-rowSpacing":"var(--Grid-rowSpacing)","--Grid-nested-columnSpacing":"var(--Grid-columnSpacing)"}):Hr({padding:"calc(var(--Grid-rowSpacing) / 2) calc(var(--Grid-columnSpacing) / 2)"},e.disableEqualOverflow&&{padding:"calc(var(--Grid-rowSpacing)) 0px 0px calc(var(--Grid-columnSpacing))"})),ga=e=>{const t=[];return Object.entries(e).forEach((([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)})),t},ha=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)})),t}return[]},ba=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map((([e,t])=>`direction-${e}-${t}`)):[`direction-xs-${String(e)}`],va=["className","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow"],ya=pi(),xa=$i("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Sa(e){return _i({props:e,name:"MuiGrid",defaultTheme:ya})}!function(e={}){const{createStyledComponent:t=xa,useThemeProps:n=Sa,componentName:r="MuiGrid"}=e,o=h.createContext(!1),i=h.createContext(void 0),a=t(ua,pa,da,la,fa,ma,ca),s=h.forwardRef((function(e,t){var s,l,c,u,d,p,f,m;const g=Ri(),b=oi(n(e)),v=h.useContext(o),y=h.useContext(i),{className:x,columns:S=12,container:w=!1,component:C="div",direction:E="row",wrap:k="wrap",spacing:T=0,rowSpacing:R=T,columnSpacing:A=T,disableEqualOverflow:P}=b,O=ni(b,va);let D=P;v&&void 0!==P&&(D=e.disableEqualOverflow);const I={},M={},N={};Object.entries(O).forEach((([e,t])=>{void 0!==g.breakpoints.values[e]?I[e]=t:void 0!==g.breakpoints.values[e.replace("Offset","")]?M[e.replace("Offset","")]=t:N[e]=t}));const F=Hr({},b,{nested:v,columns:null!=(s=e.columns)?s:v?void 0:S,container:w,direction:E,wrap:k,spacing:null!=(l=e.spacing)?l:v?void 0:T,rowSpacing:null!=(c=null!=(u=e.rowSpacing)?u:e.spacing)?c:v?void 0:R,columnSpacing:null!=(d=null!=(p=e.columnSpacing)?p:e.spacing)?d:v?void 0:A,gridSize:I,gridOffset:M,disableEqualOverflow:null!=(f=null!=(m=D)?m:y)&&f,parentDisableEqualOverflow:y}),L=((e,t)=>{const{container:n,direction:o,spacing:i,wrap:a,gridSize:s}=e;return Lr({root:["root",n&&"container","wrap"!==a&&`wrap-xs-${String(a)}`,...ba(o),...ga(s),...n?ha(i,t.breakpoints.keys[0]):[]]},(e=>$r(r,e)),{})})(F,g);let j=Ci.jsx(a,Hr({ref:t,as:C,ownerState:F,className:si(L.root,x)},N));return v||(j=Ci.jsx(o.Provider,{value:!0,children:j})),void 0!==D&&D!==(null!=y&&y)&&(j=Ci.jsx(i.Provider,{value:D,children:j})),j}))}();const wa=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];_r("MuiGrid",["root","container","item",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...wa.map((e=>`grid-xs-${e}`)),...wa.map((e=>`grid-sm-${e}`)),...wa.map((e=>`grid-md-${e}`)),...wa.map((e=>`grid-lg-${e}`)),...wa.map((e=>`grid-xl-${e}`))]);const Ca=["component","direction","spacing","divider","children","className"],Ea=pi(),ka=$i("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ta(e){return _i({props:e,name:"MuiStack",defaultTheme:Ea})}function Ra(e,t){const n=h.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(h.cloneElement(t,{key:`separator-${o}`})),e)),[])}const Aa=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[e]),Pa=({ownerState:e,theme:t})=>{let n=Hr({display:"flex",flexDirection:"column"},Kr({theme:t},Yr({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=so(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),i=Yr({values:e.direction,base:o}),a=Yr({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));n=Xn(n,Kr({theme:t},a,((t,n)=>({"& > :not(style) + :not(style)":{margin:0,[`margin${Aa(n?i[n]:e.direction)}`]:lo(r,t)}}))))}return n=function(e,...t){const n=Gr(e),r=[n,...t].reduce(((e,t)=>Xn(e,t)),{});return Xr(Object.keys(n),r)}(t.breakpoints,n),n};function Oa(){return Oa=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},Oa.apply(this,arguments)}function Da(e){return"string"==typeof e}function Ia(e,t){return"function"==typeof e?e(t):e}function Ma(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 Na(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}function Fa(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=si(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),t=Oa({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Oa({},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=function(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}(Oa({},o,r)),s=Na(r),l=Na(o),c=t(a),u=si(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Oa({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Oa({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}!function(e={}){const{createStyledComponent:t=ka,useThemeProps:n=Ta,componentName:r="MuiStack"}=e,o=t(Pa),i=h.forwardRef((function(e,t){const i=oi(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:c,children:u,className:d}=i,p=ni(i,Ca),f={direction:s,spacing:l},m=Lr({root:["root"]},(e=>$r(r,e)),{});return Ci.jsx(o,Hr({as:a,ownerState:f,ref:t,className:si(m.root,d)},p,{children:c?Ra(u,c):u}))}))}(),_r("MuiStack",["root"]);const La=["elementType","externalSlotProps","ownerState"];function ja(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=Ma(e,La),a=Ia(r,o),{props:s,internalRef:l}=Fa(Oa({},i,{externalSlotProps:a})),c=function(e,t={},n){return Da(e)?t:Oa({},t,{ownerState:Oa({},t.ownerState,n)})}(n,Oa({},s,{ref:xr(l,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}_r("BaseBadge",["root","badge","invisible"]),_r("ButtonUnstyled",["root","active","disabled","focusVisible"]);const qa=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function za(e){const t=[],n=[];return Array.from(e.querySelectorAll(qa)).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 _a(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=za,isEnabled:a=$a,open:s}=e,l=h.useRef(),c=h.useRef(null),u=h.useRef(null),d=h.useRef(null),p=h.useRef(null),f=h.useRef(!1),m=h.useRef(null),g=xr(t.ref,m),b=h.useRef(null);h.useEffect((()=>{s&&m.current&&(f.current=!n)}),[n,s]),h.useEffect((()=>{if(!s||!m.current)return;const e=cr(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),h.useEffect((()=>{if(!s||!m.current)return;const e=cr(m.current),t=t=>{const{current:n}=m;if(null!==n)if(e.hasFocus()&&!r&&a()&&!l.current){if(!n.contains(e.activeElement)){if(t&&p.current!==t.target||e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=i(m.current)),r.length>0){var o,s;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=b.current)?void 0:s.key)),t=r[0],n=r[r.length-1];e?n.focus():t.focus()}else n.focus()}}else l.current=!1},n=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,u.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{"BODY"===e.activeElement.tagName&&t()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,r,o,a,s,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Ci.jsxs(h.Fragment,{children:[Ci.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),h.cloneElement(t,{ref:g,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Ci.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}var Ba;_r("BaseFormControl",["root","disabled","error","filled","focused","required"]),_r("MuiInput",["root","formControl","focused","disabled","error","multiline","input","inputMultiline","inputTypeSearch","adornedStart","adornedEnd"]),function(e){e.blur="blur",e.focus="focus",e.keyDown="keyDown",e.optionClick="optionClick",e.optionHover="optionHover",e.optionsChange="optionsChange",e.setValue="setValue",e.setHighlight="setHighlight",e.textNavigation="textNagivation"}(Ba||(Ba={}));h.createContext(null).displayName="MenuUnstyledContext",_r("MuiMenuUnstyled",["root","listbox","expanded"]);const Ha=h.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=h.useState(null),s=xr(h.isValidElement(n)?n.ref:null,t);return fr((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),fr((()=>{if(i&&!o)return pr(t,i),()=>{pr(t,null)}}),[t,i,o]),o?h.isValidElement(n)?h.cloneElement(n,{ref:s}):n:Ci.jsx(h.Fragment,{children:i?D.createPortal(n,i):i})}));function Wa(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Va(e){return parseInt(ur(e).getComputedStyle(e).paddingRight,10)||0}function Ua(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&&Wa(e,o)}))}function Ka(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=cr(e);return t.body===e?ur(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Or(cr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Va(r)+e}px`;const t=cr(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Va(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=cr(r).body;else{const t=r.parentElement,n=ur(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)}))}}_r("MuiPopperUnstyled",["root"]),_r("MuiMenuItemUnstyled",["root","disabled","focusVisible"]);function Xa(e){return $r("MuiModal",e)}_r("MuiModal",["root","hidden"]);const Ya=["children","classes","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"];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&&Wa(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);Ua(t,e.mount,e.modalRef,r,!0);const o=Ka(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=Ka(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=Ka(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&&Wa(e.modalRef,t),Ua(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&&Wa(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},Za=h.forwardRef((function(e,t){var n;const{children:r,classes:o,closeAfterTransition:i=!1,component:a="div",components:s={},componentsProps:l={},container:c,disableAutoFocus:u=!1,disableEnforceFocus:d=!1,disableEscapeKeyDown:p=!1,disablePortal:f=!1,disableRestoreFocus:m=!1,disableScrollLock:g=!1,hideBackdrop:b=!1,keepMounted:v=!1,manager:y=Ja,onBackdropClick:x,onClose:S,onKeyDown:w,open:C,onTransitionEnter:E,onTransitionExited:k}=e,T=Ma(e,Ya),[R,A]=h.useState(!0),P=h.useRef({}),O=h.useRef(null),D=h.useRef(null),I=xr(D,t),M=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),N=null==(n=e["aria-hidden"])||n,F=()=>(P.current.modalRef=D.current,P.current.mountNode=O.current,P.current),L=()=>{y.mount(F(),{disableScrollLock:g}),D.current.scrollTop=0},j=yr((()=>{const e=function(e){return"function"==typeof e?e():e}(c)||cr(O.current).body;y.add(F(),e),D.current&&L()})),q=h.useCallback((()=>y.isTopModal(F())),[y]),z=yr((e=>{O.current=e,e&&(C&&q()?L():Wa(D.current,N))})),$=h.useCallback((()=>{y.remove(F(),N)}),[y,N]);h.useEffect((()=>()=>{$()}),[$]),h.useEffect((()=>{C?j():M&&i||$()}),[C,$,M,i,j]);const _=Oa({},e,{classes:o,closeAfterTransition:i,disableAutoFocus:u,disableEnforceFocus:d,disableEscapeKeyDown:p,disablePortal:f,disableRestoreFocus:m,disableScrollLock:g,exited:R,hideBackdrop:b,keepMounted:v}),B=(e=>{const{open:t,exited:n,classes:r}=e;return Lr({root:["root",!t&&n&&"hidden"]},Xa,r)})(_),H=()=>{A(!1),E&&E()},W=()=>{A(!0),k&&k(),i&&$()},V={};void 0===r.props.tabIndex&&(V.tabIndex="-1"),M&&(V.onEnter=ir(H,r.props.onEnter),V.onExited=ir(W,r.props.onExited));const U=s.Root||a,K=ja({elementType:U,externalSlotProps:l.root,externalForwardedProps:T,additionalProps:{ref:I,role:"presentation",onKeyDown:e=>{w&&w(e),"Escape"===e.key&&q()&&(p||(e.stopPropagation(),S&&S(e,"escapeKeyDown")))}},className:B.root,ownerState:_}),G=s.Backdrop,X=ja({elementType:G,externalSlotProps:l.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(x&&x(e),S&&S(e,"backdropClick"))},open:C},ownerState:_});return v||C||M&&!R?Ci.jsx(Ha,{ref:z,container:c,disablePortal:f,children:Ci.jsxs(U,Oa({},K,{children:[!b&&G?Ci.jsx(G,Oa({},X)):null,Ci.jsx(_a,{disableEnforceFocus:d,disableAutoFocus:u,disableRestoreFocus:m,isEnabled:q,open:C,children:h.cloneElement(r,V)})]}))}):null}));_r("MuiSelectUnstyled",["root","button","listbox","popper","active","expanded","disabled","focusVisible"]),_r("MuiOptionGroupUnstyled",["root","label","list"]),_r("MuiOptionUnstyled",["root","disabled","selected","highlighted"]),_r("MuiSlider",["root","active","focusVisible","disabled","dragging","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","markLabelActive","thumb","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel"]),_r("MuiSnackbar",["root"]),_r("MuiSwitch",["root","input","track","thumb","checked","disabled","focusVisible","readOnly"]),_r("MuiTablePaginationUnstyled",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),_r("TabPanelUnstyled",["root","hidden"]),_r("TabsUnstyled",["root","horizontal","vertical"]),_r("TabsListUnstyled",["root","horizontal","vertical"]),_r("TabUnstyled",["root","selected","disabled"]);const Qa=["onChange","maxRows","minRows","style","value"];function es(e,t){return parseInt(e[t],10)||0}const ts={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function ns(e){return null==e||0===Object.keys(e).length}const rs=h.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=Ma(e,Qa),{current:l}=h.useRef(null!=a),c=h.useRef(null),u=xr(t,c),d=h.useRef(null),p=h.useRef(0),[f,m]=h.useState({}),g=h.useCallback((()=>{const t=c.current,n=ur(t).getComputedStyle(t);if("0px"===n.width)return{};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["box-sizing"],s=es(n,"padding-bottom")+es(n,"padding-top"),l=es(n,"border-bottom-width")+es(n,"border-top-width"),u=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=u;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?s+l:0),overflow:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),b=(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},v=h.useCallback((()=>{const e=g();ns(e)||m((t=>b(t,e)))}),[g]);h.useEffect((()=>{const e=ar((()=>{p.current=0,c.current&&(()=>{const e=g();ns(e)||M((()=>{m((t=>b(t,e)))}))})()})),t=ur(c.current);let n;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(c.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}})),fr((()=>{v()})),h.useEffect((()=>{p.current=0}),[a]);return Ci.jsxs(h.Fragment,{children:[Ci.jsx("textarea",Oa({value:a,onChange:e=>{p.current=0,l||v(),n&&n(e)},ref:u,rows:o,style:Oa({height:f.outerHeightStyle,overflow:f.overflow?"hidden":null},i)},s)),Ci.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Oa({},ts,i,{padding:0})})]})}));function os(e,t){return Ln({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const is={black:"#000",white:"#fff"},as={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"},ss="#f3e5f5",ls="#ce93d8",cs="#ba68c8",us="#ab47bc",ds="#9c27b0",ps="#7b1fa2",fs="#e57373",ms="#ef5350",gs="#f44336",hs="#d32f2f",bs="#c62828",vs="#ffb74d",ys="#ffa726",xs="#ff9800",Ss="#f57c00",ws="#e65100",Cs="#e3f2fd",Es="#90caf9",ks="#42a5f5",Ts="#1976d2",Rs="#1565c0",As="#4fc3f7",Ps="#29b6f6",Os="#03a9f4",Ds="#0288d1",Is="#01579b",Ms="#81c784",Ns="#66bb6a",Fs="#4caf50",Ls="#388e3c",js="#2e7d32",qs="#1b5e20",zs=["mode","contrastThreshold","tonalOffset"],$s={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:is.white,default:is.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}},_s={text:{primary:is.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:is.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Bs(e,t,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=Xi(e.main,o):"dark"===t&&(e.dark=Gi(e.main,i)))}function Hs(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=jn(e,zs),i=e.primary||function(e="light"){return"dark"===e?{main:Es,light:Cs,dark:ks}:{main:Ts,light:ks,dark:Rs}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ls,light:ss,dark:us}:{main:ds,light:cs,dark:ps}}(t),s=e.error||function(e="light"){return"dark"===e?{main:gs,light:fs,dark:hs}:{main:hs,light:ms,dark:bs}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Ps,light:As,dark:Ds}:{main:Ds,light:Os,dark:Is}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Ns,light:Ms,dark:Ls}:{main:js,light:Fs,dark:qs}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:ys,light:vs,dark:Ss}:{main:"#ed6c02",light:xs,dark:ws}}(t);function d(e){const t=function(e,t){const n=Ui(e),r=Ui(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,_s.text.primary)>=n?_s.text.primary:$s.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ln({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Zn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Zn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Bs(e,"light",o,r),Bs(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:_s,light:$s};return Xn(Ln({common:Ln({},is),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:as,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Ws=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Vs={textTransform:"uppercase"},Us='"Roboto", "Helvetica", "Arial", sans-serif';function Ks(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Us,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=jn(n,Ws),f=o/14,m=d||(e=>e/c*f+"rem"),g=(e,t,n,o,i)=>{return Ln({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Us?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},h={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(s,14,1.75,.4,Vs),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,Vs)};return Xn(Ln({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},h),p,{clone:!1})}function Gs(...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(",")}const Xs=["none",Gs(0,2,1,-1,0,1,1,0,0,1,3,0),Gs(0,3,1,-2,0,2,2,0,0,1,5,0),Gs(0,3,3,-2,0,3,4,0,0,1,8,0),Gs(0,2,4,-1,0,4,5,0,0,1,10,0),Gs(0,3,5,-1,0,5,8,0,0,1,14,0),Gs(0,3,5,-1,0,6,10,0,0,1,18,0),Gs(0,4,5,-2,0,7,10,1,0,2,16,1),Gs(0,5,5,-3,0,8,10,1,0,3,14,2),Gs(0,5,6,-3,0,9,12,1,0,3,16,2),Gs(0,6,6,-3,0,10,14,1,0,4,18,3),Gs(0,6,7,-4,0,11,15,1,0,4,20,3),Gs(0,7,8,-4,0,12,17,2,0,5,22,4),Gs(0,7,8,-4,0,13,19,2,0,5,24,4),Gs(0,7,9,-4,0,14,21,2,0,5,26,4),Gs(0,8,9,-5,0,15,22,2,0,6,28,5),Gs(0,8,10,-5,0,16,24,2,0,6,30,5),Gs(0,8,11,-5,0,17,26,2,0,6,32,5),Gs(0,9,11,-5,0,18,28,2,0,7,34,6),Gs(0,9,12,-6,0,19,29,2,0,7,36,6),Gs(0,10,13,-6,0,20,31,3,0,8,38,7),Gs(0,10,13,-6,0,21,33,3,0,8,40,7),Gs(0,10,14,-6,0,22,35,3,0,8,42,7),Gs(0,11,14,-7,0,23,36,3,0,9,44,8),Gs(0,11,15,-7,0,24,38,3,0,9,46,8)],Ys=["duration","easing","delay"],Js={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Zs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Qs(e){return`${Math.round(e)}ms`}function el(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function tl(e){const t=Ln({},Js,e.easing),n=Ln({},Zs,e.duration);return Ln({getAutoHeightDuration:el,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return jn(r,Ys),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Qs(o)} ${i} ${"string"==typeof a?a:Qs(a)}`)).join(",")}},e,{easing:t,duration:n})}const nl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},rl=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ol(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=jn(e,rl);if(e.vars)throw new Error(Zn(18));const s=Hs(r),l=pi(e);let c=Xn(l,{mixins:os(l.breakpoints,n),palette:s,shadows:Xs.slice(),typography:Ks(s,i),transitions:tl(o),zIndex:Ln({},nl)});return c=Xn(c,a),c=t.reduce(((e,t)=>Xn(e,t)),c),c}const il=ol();function al(){return Ri(il)}function sl({props:e,name:t}){return _i({props:e,name:t,defaultTheme:il})}const ll=e=>ji(e)&&"classes"!==e,cl=ji,ul=zi({defaultTheme:il,rootShouldForwardProp:ll});function dl(e){return $r("MuiPaper",e)}_r("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 pl=["className","component","elevation","square","variant"],fl=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ml=ul("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 Ln({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&&Ln({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ki("#fff",fl(t.elevation))}, ${Ki("#fff",fl(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),gl=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=jn(n,pl),c=Ln({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Lr({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},dl,o)})(c);return Ci.jsx(ml,Ln({as:o,ownerState:c,className:si(u.root,r),ref:t},l))})),hl=["colorSchemes","cssVarPrefix"],bl=["palette"],vl=[...Array(25)].map(((e,t)=>{if(0===t)return;const n=fl(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function yl(e,t,n){e[t]=e[t]||n}const xl=function(e={},...t){var n,r,o,i,a,s;const{colorSchemes:l={},cssVarPrefix:c="mui"}=e,u=jn(e,hl),d=((e="mui")=>na(e))(c),p=ol(Ln({},u,l.light&&{palette:null==(n=l.light)?void 0:n.palette})),{palette:f}=p,m=jn(p,bl),{palette:g}=ol({palette:Ln({mode:"dark"},null==(r=l.dark)?void 0:r.palette)});let h=Ln({},m,{cssVarPrefix:c,getCssVar:d,colorSchemes:Ln({},l,{light:Ln({},l.light,{palette:f,opacity:Ln({inputPlaceholder:.42,inputUnderline:.42,switchTrackDisabled:.12,switchTrack:.38},null==(o=l.light)?void 0:o.opacity),overlays:(null==(i=l.light)?void 0:i.overlays)||[]}),dark:Ln({},l.dark,{palette:g,opacity:Ln({inputPlaceholder:.5,inputUnderline:.7,switchTrackDisabled:.2,switchTrack:.3},null==(a=l.dark)?void 0:a.opacity),overlays:(null==(s=l.dark)?void 0:s.overlays)||vl})})});return Object.keys(h.colorSchemes).forEach((e=>{const t=h.colorSchemes[e].palette;var n;if("light"===e?(yl(t.common,"background","#fff"),yl(t.common,"onBackground","#000")):(yl(t.common,"background","#000"),yl(t.common,"onBackground","#fff")),n=t,["Alert","AppBar","Avatar","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach((e=>{n[e]||(n[e]={})})),"light"===e){yl(t.Alert,"errorColor",Gi(t.error.light,.6)),yl(t.Alert,"infoColor",Gi(t.info.light,.6)),yl(t.Alert,"successColor",Gi(t.success.light,.6)),yl(t.Alert,"warningColor",Gi(t.warning.light,.6)),yl(t.Alert,"errorFilledBg",d("palette-error-main")),yl(t.Alert,"infoFilledBg",d("palette-info-main")),yl(t.Alert,"successFilledBg",d("palette-success-main")),yl(t.Alert,"warningFilledBg",d("palette-warning-main")),yl(t.Alert,"errorFilledColor",f.getContrastText(t.error.main)),yl(t.Alert,"infoFilledColor",f.getContrastText(t.info.main)),yl(t.Alert,"successFilledColor",f.getContrastText(t.success.main)),yl(t.Alert,"warningFilledColor",f.getContrastText(t.warning.main)),yl(t.Alert,"errorStandardBg",Xi(t.error.light,.9)),yl(t.Alert,"infoStandardBg",Xi(t.info.light,.9)),yl(t.Alert,"successStandardBg",Xi(t.success.light,.9)),yl(t.Alert,"warningStandardBg",Xi(t.warning.light,.9)),yl(t.Alert,"errorIconColor",d("palette-error-light")),yl(t.Alert,"infoIconColor",d("palette-info-light")),yl(t.Alert,"successIconColor",d("palette-success-light")),yl(t.Alert,"warningIconColor",d("palette-warning-light")),yl(t.AppBar,"defaultBg",d("palette-grey-100")),yl(t.Avatar,"defaultBg",d("palette-grey-400")),yl(t.Chip,"defaultBorder",d("palette-grey-400")),yl(t.Chip,"defaultAvatarColor",d("palette-grey-700")),yl(t.Chip,"defaultIconColor",d("palette-grey-700")),yl(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),yl(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),yl(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),yl(t.LinearProgress,"primaryBg",Xi(t.primary.main,.62)),yl(t.LinearProgress,"secondaryBg",Xi(t.secondary.main,.62)),yl(t.LinearProgress,"errorBg",Xi(t.error.main,.62)),yl(t.LinearProgress,"infoBg",Xi(t.info.main,.62)),yl(t.LinearProgress,"successBg",Xi(t.success.main,.62)),yl(t.LinearProgress,"warningBg",Xi(t.warning.main,.62)),yl(t.Skeleton,"bg",`rgba(${d("palette-text-primaryChannel")} / 0.11)`),yl(t.Slider,"primaryTrack",Xi(t.primary.main,.62)),yl(t.Slider,"secondaryTrack",Xi(t.secondary.main,.62)),yl(t.Slider,"errorTrack",Xi(t.error.main,.62)),yl(t.Slider,"infoTrack",Xi(t.info.main,.62)),yl(t.Slider,"successTrack",Xi(t.success.main,.62)),yl(t.Slider,"warningTrack",Xi(t.warning.main,.62));const e=Yi(t.background.default,.8);yl(t.SnackbarContent,"bg",e),yl(t.SnackbarContent,"color",f.getContrastText(e)),yl(t.SpeedDialAction,"fabHoverBg",Yi(t.background.paper,.15)),yl(t.StepConnector,"border",d("palette-grey-400")),yl(t.StepContent,"border",d("palette-grey-400")),yl(t.Switch,"defaultColor",d("palette-common-white")),yl(t.Switch,"defaultDisabledColor",d("palette-grey-100")),yl(t.Switch,"primaryDisabledColor",Xi(t.primary.main,.62)),yl(t.Switch,"secondaryDisabledColor",Xi(t.secondary.main,.62)),yl(t.Switch,"errorDisabledColor",Xi(t.error.main,.62)),yl(t.Switch,"infoDisabledColor",Xi(t.info.main,.62)),yl(t.Switch,"successDisabledColor",Xi(t.success.main,.62)),yl(t.Switch,"warningDisabledColor",Xi(t.warning.main,.62)),yl(t.TableCell,"border",Xi(Ki(t.divider,1),.88)),yl(t.Tooltip,"bg",Ki(t.grey[700],.92))}else{yl(t.Alert,"errorColor",Xi(t.error.light,.6)),yl(t.Alert,"infoColor",Xi(t.info.light,.6)),yl(t.Alert,"successColor",Xi(t.success.light,.6)),yl(t.Alert,"warningColor",Xi(t.warning.light,.6)),yl(t.Alert,"errorFilledBg",d("palette-error-dark")),yl(t.Alert,"infoFilledBg",d("palette-info-dark")),yl(t.Alert,"successFilledBg",d("palette-success-dark")),yl(t.Alert,"warningFilledBg",d("palette-warning-dark")),yl(t.Alert,"errorFilledColor",g.getContrastText(t.error.dark)),yl(t.Alert,"infoFilledColor",g.getContrastText(t.info.dark)),yl(t.Alert,"successFilledColor",g.getContrastText(t.success.dark)),yl(t.Alert,"warningFilledColor",g.getContrastText(t.warning.dark)),yl(t.Alert,"errorStandardBg",Gi(t.error.light,.9)),yl(t.Alert,"infoStandardBg",Gi(t.info.light,.9)),yl(t.Alert,"successStandardBg",Gi(t.success.light,.9)),yl(t.Alert,"warningStandardBg",Gi(t.warning.light,.9)),yl(t.Alert,"errorIconColor",d("palette-error-main")),yl(t.Alert,"infoIconColor",d("palette-info-main")),yl(t.Alert,"successIconColor",d("palette-success-main")),yl(t.Alert,"warningIconColor",d("palette-warning-main")),yl(t.AppBar,"defaultBg",d("palette-grey-900")),yl(t.AppBar,"darkBg",d("palette-background-paper")),yl(t.AppBar,"darkColor",d("palette-text-primary")),yl(t.Avatar,"defaultBg",d("palette-grey-600")),yl(t.Chip,"defaultBorder",d("palette-grey-700")),yl(t.Chip,"defaultAvatarColor",d("palette-grey-300")),yl(t.Chip,"defaultIconColor",d("palette-grey-300")),yl(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),yl(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),yl(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),yl(t.LinearProgress,"primaryBg",Gi(t.primary.main,.5)),yl(t.LinearProgress,"secondaryBg",Gi(t.secondary.main,.5)),yl(t.LinearProgress,"errorBg",Gi(t.error.main,.5)),yl(t.LinearProgress,"infoBg",Gi(t.info.main,.5)),yl(t.LinearProgress,"successBg",Gi(t.success.main,.5)),yl(t.LinearProgress,"warningBg",Gi(t.warning.main,.5)),yl(t.Skeleton,"bg",`rgba(${d("palette-text-primaryChannel")} / 0.13)`),yl(t.Slider,"primaryTrack",Gi(t.primary.main,.5)),yl(t.Slider,"secondaryTrack",Gi(t.secondary.main,.5)),yl(t.Slider,"errorTrack",Gi(t.error.main,.5)),yl(t.Slider,"infoTrack",Gi(t.info.main,.5)),yl(t.Slider,"successTrack",Gi(t.success.main,.5)),yl(t.Slider,"warningTrack",Gi(t.warning.main,.5));const e=Yi(t.background.default,.98);yl(t.SnackbarContent,"bg",e),yl(t.SnackbarContent,"color",g.getContrastText(e)),yl(t.SpeedDialAction,"fabHoverBg",Yi(t.background.paper,.15)),yl(t.StepConnector,"border",d("palette-grey-600")),yl(t.StepContent,"border",d("palette-grey-600")),yl(t.Switch,"defaultColor",d("palette-grey-300")),yl(t.Switch,"defaultDisabledColor",d("palette-grey-600")),yl(t.Switch,"primaryDisabledColor",Gi(t.primary.main,.55)),yl(t.Switch,"secondaryDisabledColor",Gi(t.secondary.main,.55)),yl(t.Switch,"errorDisabledColor",Gi(t.error.main,.55)),yl(t.Switch,"infoDisabledColor",Gi(t.info.main,.55)),yl(t.Switch,"successDisabledColor",Gi(t.success.main,.55)),yl(t.Switch,"warningDisabledColor",Gi(t.warning.main,.55)),yl(t.TableCell,"border",Gi(Ki(t.divider,1),.68)),yl(t.Tooltip,"bg",Ki(t.grey[700],.92))}t.common.backgroundChannel=Wi(t.common.background),t.common.onBackgroundChannel=Wi(t.common.onBackground),t.dividerChannel=Wi(t.divider),Object.keys(t).forEach((e=>{const n=t[e];n.main&&(t[e].mainChannel=Wi(n.main)),n.light&&(t[e].lightChannel=Wi(n.light)),n.dark&&(t[e].darkChannel=Wi(n.dark)),n.contrastText&&(t[e].contrastTextChannel=Wi(n.contrastText)),n.primary&&(t[e].primaryChannel=Wi(n.primary)),n.secondary&&(t[e].secondaryChannel=Wi(n.secondary)),n.active&&(t[e].activeChannel=Wi(n.active)),n.selected&&(t[e].selectedChannel=Wi(n.selected))}))})),h=t.reduce(((e,t)=>Xn(e,t)),h),h}();!function(e){const{theme:t={},attribute:n=ta,modeStorageKey:r=Qi,colorSchemeStorageKey:o=ea,defaultMode:i="light",defaultColorScheme:a,disableTransitionOnChange:s=!1,shouldSkipGeneratingVar:l,resolveTheme:c,excludeVariablesFromRoot:u}=e;(!t.colorSchemes||"string"==typeof a&&!t.colorSchemes[a]||"object"==typeof a&&!t.colorSchemes[null==a?void 0:a.light]||"object"==typeof a&&!t.colorSchemes[null==a?void 0:a.dark])&&console.error(`MUI: \`${a}\` does not exist in \`theme.colorSchemes\`.`);const d=h.createContext(void 0),p="string"==typeof a?a:a.light,f="string"==typeof a?a:a.dark}({theme:xl,attribute:"data-mui-color-scheme",modeStorageKey:"mui-mode",colorSchemeStorageKey:"mui-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>Ln({},e,{typography:Ks(e.palette,e.typography)}),shouldSkipGeneratingVar:e=>{var t;return!!e[0].match(/(typography|mixins|breakpoints|direction|transitions)/)||"palette"===e[0]&&!(null==(t=e[1])||!t.match(/(mode|contrastThreshold|tonalOffset)/))},excludeVariablesFromRoot:e=>[...[...Array(24)].map(((t,n)=>`--${e?`${e}-`:""}overlays-${n+1}`)),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`]});var Sl={},wl={exports:{}};
14
14
  /*!
15
15
  * Converts CSS stylesheets between left-to-right and right-to-left.
16
16
  * https://github.com/cssjanus/cssjanus
@@ -18,7 +18,7 @@ function Nn(e,t){let n;return n=t?En(e).withConfig({displayName:t.label,shouldFo
18
18
  * Copyright 2008 Google Inc.
19
19
  * Copyright 2010 Trevor Parscal
20
20
  */
21
- !function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="(?:[0-9]*\\.[0-9]+|[0-9]+)",t="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",n="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",o="(?:[_a-z0-9-]|[^\\u0020-\\u007e]|"+n+")",i=e+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|[^\\u0020-\\u007e]|(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f]))(?:[_a-z0-9-]|[^\\u0020-\\u007e]|(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f]))*)?",a="((?:-?"+i+")|(?:inherit|auto))",s="(#?"+o+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",l="(?:[!#$%&*-~]|[^\\u0020-\\u007e]|"+n+")*?",c="(?!("+o+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'])*?{)",u="(?!"+l+"['\"]?\\s*\\))",d="(?="+l+"['\"]?\\s*\\))",p="(\\s*(?:!important\\s*)?[;}])",f=new RegExp("`TMP`","g"),m=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),g=new RegExp("("+t+c+"[^;}]+;?)","gi"),h=new RegExp("("+t+"[^\\}]*?})","gi"),b=new RegExp("(direction\\s*:\\s*)ltr","gi"),v=new RegExp("(direction\\s*:\\s*)rtl","gi"),y=new RegExp("(^|[^a-zA-Z])(left)(?![a-zA-Z])"+u+c,"gi"),x=new RegExp("(^|[^a-zA-Z])(right)(?![a-zA-Z])"+u+c,"gi"),S=new RegExp("(^|[^a-zA-Z])(left)"+d,"gi"),w=new RegExp("(^|[^a-zA-Z])(right)"+d,"gi"),C=new RegExp("(^|[^a-zA-Z])(ltr)"+d,"gi"),E=new RegExp("(^|[^a-zA-Z])(rtl)"+d,"gi"),k=new RegExp("(^|[^a-zA-Z])([ns]?)e-resize","gi"),T=new RegExp("(^|[^a-zA-Z])([ns]?)w-resize","gi"),R=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+a+"(\\s+)"+a+"(\\s+)"+a+"(\\s+)"+a+p,"gi"),A=new RegExp("((?:-color|border-style)\\s*:\\s*)"+s+"(\\s+)"+s+"(\\s+)"+s+"(\\s+)"+s+p,"gi"),P=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+i+")","gi"),D=new RegExp("(background-position-x\\s*:\\s*)(-?"+e+"%)","gi"),O=new RegExp("(border-radius\\s*:\\s*)"+a+"(?:(?:\\s+"+a+")(?:\\s+"+a+")?(?:\\s+"+a+")?)?(?:(?:(?:\\s*\\/\\s*)"+a+")(?:\\s+"+a+")?(?:\\s+"+a+")?(?:\\s+"+a+")?)?"+p,"gi"),I=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+a,"gi"),M=new RegExp("(text-shadow\\s*:\\s*)"+a+"(\\s*)"+s,"gi"),N=new RegExp("(text-shadow\\s*:\\s*)"+s+"(\\s*)"+a,"gi"),F=new RegExp("(text-shadow\\s*:\\s*)"+a,"gi"),L=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+a+"(\\s*\\))","gi"),q=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+a+"((?:\\s*,\\s*"+a+"){0,2}\\s*\\))","gi");function j(e,t,n){var r,o;return"%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n}function z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function $(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter((function(e){return e})),o=n.slice(6,10).filter((function(e){return e})),i=n[10]||"";return t+(o.length?z(r)+" / "+z(o):z(r))+i}function _(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function B(e,t,n){return t+_(n)}function H(e,t,n,r,o){return t+n+_(r)+o}function W(e,t,n,r,o){return t+n+r+_(o)}return{transform:function(e,t){var n=new r(g,"`NOFLIP_SINGLE`"),o=new r(h,"`NOFLIP_CLASS`"),i=new r(m,"`COMMENT`");return e=i.tokenize(o.tokenize(n.tokenize(e.replace("`","%60")))),t.transformDirInUrl&&(e=e.replace(C,"$1`TMP`").replace(E,"$1ltr").replace(f,"rtl")),t.transformEdgeInUrl&&(e=e.replace(S,"$1`TMP`").replace(w,"$1left").replace(f,"right")),e=e.replace(b,"$1`TMP`").replace(v,"$1ltr").replace(f,"rtl").replace(y,"$1`TMP`").replace(x,"$1left").replace(f,"right").replace(k,"$1$2`TMP`").replace(T,"$1$2e-resize").replace(f,"w-resize").replace(O,$).replace(I,B).replace(M,W).replace(N,W).replace(F,B).replace(L,H).replace(q,H).replace(R,"$1$2$3$8$5$6$7$4$9").replace(A,"$1$2$3$8$5$6$7$4$9").replace(P,j).replace(D,j),e=n.detokenize(o.detokenize(i.detokenize(e)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(al,al.exports),Object.defineProperty(il,"__esModule",{value:!0}),il.STYLIS_PROPERTY_CONTEXT=void 0;var sl,ll=(sl=al.exports)&&sl.__esModule?sl:{default:sl};var cl=il.STYLIS_PROPERTY_CONTEXT=-1;function ul(e,t){if(e===cl)return ll.default.transform(t)}Object.defineProperty(ul,"name",{value:"stylisRTLPlugin"});var dl=il.default=ul;function pl(){return pl=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},pl.apply(this,arguments)}const fl=h.createContext();function ml(e){return Dr("MuiTable",e)}Or("MuiTable",["root","stickyHeader"]);const gl=["className","component","padding","size","stickyHeader"],hl=Gs("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Rn({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Rn({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),bl="table",vl=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiTable"}),{className:r,component:o=bl,padding:i="normal",size:a="medium",stickyHeader:s=!1}=n,l=An(n,gl),c=Rn({},n,{component:o,padding:i,size:a,stickyHeader:s}),u=(e=>{const{classes:t,stickyHeader:n}=e;return Tr({root:["root",n&&"stickyHeader"]},ml,t)})(c),d=h.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return ui.jsx(fl.Provider,{value:d,children:ui.jsx(hl,Rn({as:o,role:o===bl?null:"table",ref:t,className:Xo(u.root,r),ownerState:c},l))})}));var yl,xl={},Sl={exports:{}};(yl=Sl).exports=function(e){return e&&e.__esModule?e:{default:e}},yl.exports.__esModule=!0,yl.exports.default=yl.exports;var wl,Cl={},El={exports:{}};function kl(){return wl||(wl=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(El)),El.exports}var Tl,Rl={exports:{}};var Al,Pl=L(Ln),Dl=L(Ir),Ol=L(ti),Il={};var Ml,Nl=L(Ko);var Fl=Sl.exports;Object.defineProperty(xl,"__esModule",{value:!0});var Ll=xl.default=void 0,ql=Fl(function(){if(Ml)return Cl;Ml=1;var e=Sl.exports;Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.default=function(e={}){const{defaultTheme:o=f,rootShouldForwardProp:u=p,slotShouldForwardProp:m=p,styleFunctionSx:g=a.default}=e,h=e=>{const t=d(e.theme)?o:e.theme;return g((0,n.default)({},e,{theme:t}))};return h.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:f,slot:g,skipVariantsResolver:b,skipSx:v,overridesResolver:y}=a,x=(0,t.default)(a,s),S=void 0!==b?b:g&&"Root"!==g||!1,w=v||!1;let C=p;"Root"===g?C=u:g?C=m:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const E=(0,r.default)(e,(0,n.default)({shouldForwardProp:C,label:undefined},x)),k=(e,...r)=>{const a=r?r.map((e=>"function"==typeof e&&e.__emotion_real!==e?r=>{let{theme:i}=r,a=(0,t.default)(r,l);return e((0,n.default)({theme:d(i)?o:i},a))}:e)):[];let s=e;f&&y&&a.push((e=>{const t=d(e.theme)?o:e.theme,r=((e,t)=>{if(t.components&&t.components[e]&&t.components[e].styleOverrides)return t.components[e].styleOverrides;return null})(f,t);if(r){const o={};return Object.entries(r).forEach((([r,i])=>{o[r]="function"==typeof i?i((0,n.default)({},e,{theme:t})):i})),y(e,o)}return null})),f&&!S&&a.push((e=>{const t=d(e.theme)?o:e.theme;return((e,t,n,r)=>{var o,a;const{ownerState:s={}}=e,l=[],c=null==n||null==(o=n.components)||null==(a=o[r])?void 0:a.variants;c&&c.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{s[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&l.push(t[(0,i.default)(n.props)])}));return l})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=(0,i.default)(e.props);r[t]=e.style})),r})(f,t),t,f)})),w||a.push(h);const u=a.length-r.length;if(Array.isArray(e)&&u>0){const t=new Array(u).fill("");s=[...e,...t],s.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(s=r=>{let{theme:i}=r,a=(0,t.default)(r,c);return e((0,n.default)({theme:d(i)?o:i},a))});return E(s,...a)};return E.withConfig&&(k.withConfig=E.withConfig),k}},Cl.shouldForwardProp=p,Cl.systemDefaultTheme=void 0;var t=e(kl()),n=e((Tl||(Tl=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}(Rl)),Rl.exports)),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},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]}r.default=e,n&&n.set(e,r);return r}(Pl),o=e(Ol),i=e(function(){if(Al)return Il;Al=1;var e=Sl.exports;Object.defineProperty(Il,"__esModule",{value:!0}),Il.default=function(e){const{variant:i}=e,a=(0,t.default)(e,r);let s=i||"";return Object.keys(a).sort().forEach((t=>{s+="color"===t?o(s)?e[t]:(0,n.unstable_capitalize)(e[t]):`${o(s)?t:(0,n.unstable_capitalize)(t)}${(0,n.unstable_capitalize)(e[t].toString())}`})),s};var t=e(kl()),n=Dl;const r=["variant"];function o(e){return 0===e.length}return Il}()),a=e(Nl);const s=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],l=["theme"],c=["theme"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e){return 0===Object.keys(e).length}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const f=(0,o.default)();return Cl.systemDefaultTheme=f,Cl}());var jl=(0,ql.default)();function zl(e){return Dr("MuiTableContainer",e)}Ll=xl.default=jl,Or("MuiTableContainer",["root"]);const $l=["className","component"],_l=Gs("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Bl=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=An(n,$l),a=Rn({},n,{component:o}),s=(e=>{const{classes:t}=e;return Tr({root:["root"]},zl,t)})(a);return ui.jsx(_l,Rn({ref:t,as:o,className:Xo(s.root,r),ownerState:a},i))})),Hl=h.createContext();function Wl(e){return Dr("MuiTableRow",e)}const Vl=Or("MuiTableRow",["root","selected","hover","head","footer"]),Ul=["className","component","hover","selected"],Kl=Gs("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Vl.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Vl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ni(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ni(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Gl="tr",Xl=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiTableRow"}),{className:r,component:o=Gl,hover:i=!1,selected:a=!1}=n,s=An(n,Ul),l=h.useContext(Hl),c=Rn({},n,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),u=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Tr({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},Wl,t)})(c);return ui.jsx(Kl,Rn({as:o,ref:t,className:Xo(u.root,r),role:o===Gl?null:"row",ownerState:c},s))}));function Yl(e,t){return Yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yl(e,t)}function Jl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yl(e,t)}function Zl(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Ql=!1,ec=b.createContext(null),tc=function(e){return e.scrollTop},nc="entering",rc="entered",oc=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="exited",r.appearStatus=nc):o=rc:o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Jl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}: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!==nc&&n!==rc&&(t=nc):n!==nc&&n!==rc||(t="exiting")}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===nc){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:I.findDOMNode(this);n&&tc(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[I.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Ql?this.safeSetState({status:rc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:nc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:rc},(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:I.findDOMNode(this);t&&!Ql?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(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:I.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("unmounted"===e)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=An(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(ec.Provider,{value:null},"function"==typeof n?n(e,r):b.cloneElement(b.Children.only(n),r))},t}(b.Component);function ic(){}oc.contextType=ec,oc.propTypes={},oc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ic,onEntering:ic,onEntered:ic,onExit:ic,onExiting:ic,onExited:ic},oc.UNMOUNTED="unmounted",oc.EXITED="exited",oc.ENTERING=nc,oc.ENTERED=rc,oc.EXITING="exiting";var ac=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},sc=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Zl(n.className,r):n.setAttribute("class",Zl(n.className&&n.className.baseVal||"",r)));var n,r}))},lc=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Jl(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&tc(e),r&&(this.appliedClasses[t][n]=r,ac(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&sc(e,r),o&&sc(e,o),i&&sc(e,i)},n.render=function(){var e=this.props;e.classNames;var t=An(e,["classNames"]);return b.createElement(oc,Rn({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(b.Component);function cc(e,t){var n=Object.create(null);return e&&E.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&k(e)?t(e):e}(e)})),n}function uc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function dc(e,t,n){var r=cc(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 s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(k(a)){var s=i in t,l=i in r,c=t[i],u=k(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&k(c)&&(o[i]=T(a,{onExited:n.bind(null,a),in:c.props.in,exit:uc(a,"exit",e),enter:uc(a,"enter",e)})):o[i]=T(a,{in:!1}):o[i]=T(a,{onExited:n.bind(null,a),in:!0,exit:uc(a,"exit",e),enter:uc(a,"enter",e)})}})),o}lc.defaultProps={classNames:""},lc.propTypes={};var pc,fc,mc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},gc=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}Jl(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,cc(n.children,(function(e){return T(e,{onExited:r.bind(null,e),in:!0,appear:uc(e,"appear",n),enter:uc(e,"enter",n),exit:uc(e,"exit",n)})}))):dc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=cc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Rn({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=An(e,["component","childFactory"]),o=this.state.contextValue,i=mc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?b.createElement(ec.Provider,{value:o},i):b.createElement(ec.Provider,{value:o},b.createElement(t,r,i))},t}(b.Component);gc.propTypes={},gc.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}Jl(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=b.Children.toArray(o)[t];if(i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]){var a=i.props.nodeRef?void 0:I.findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=An(e,["children","in"]),o=b.Children.toArray(t),i=o[0],a=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,b.createElement(gc,r,n?b.cloneElement(i,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):b.cloneElement(a,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(b.Component)).propTypes={};var hc="out-in",bc="in-out",vc=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},yc=((pc={})[hc]=function(e){var t=e.current,n=e.changeState;return b.cloneElement(t,{in:!1,onExited:vc(t,"onExited",(function(){n(nc,null)}))})},pc[bc]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,b.cloneElement(r,{in:!0,onEntered:vc(r,"onEntered",(function(){n(nc)}))})]},pc),xc=((fc={})[hc]=function(e){var t=e.children,n=e.changeState;return b.cloneElement(t,{in:!0,onEntered:vc(t,"onEntered",(function(){n(rc,b.cloneElement(t,{in:!0}))}))})},fc[bc]=function(e){var t=e.current,n=e.children,r=e.changeState;return[b.cloneElement(t,{in:!1,onExited:vc(t,"onExited",(function(){r(rc,b.cloneElement(n,{in:!0}))}))}),b.cloneElement(n,{in:!0})]},fc),Sc=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:rc,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Jl(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===nc&&e.mode===bc?{status:nc}:!t.current||(n=t.current,r=e.children,n===r||b.isValidElement(n)&&b.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:b.cloneElement(e.children,{in:!0})}:{status:"exiting"};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,i=o.status,a=o.current,s={children:n,current:a,changeState:this.changeState,status:i};switch(i){case nc:e=xc[r](s);break;case"exiting":e=yc[r](s);break;case rc:e=a}return b.createElement(ec.Provider,{value:{isMounting:!this.appeared}},e)},t}(b.Component);Sc.propTypes={},Sc.defaultProps={mode:hc};const wc=Or("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Cc=["center","classes","className"];let Ec,kc,Tc,Rc,Ac=e=>e;const Pc=Tn(Ec||(Ec=Ac`
21
+ !function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="(?:[0-9]*\\.[0-9]+|[0-9]+)",t="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",n="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",o="(?:[_a-z0-9-]|[^\\u0020-\\u007e]|"+n+")",i=e+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|[^\\u0020-\\u007e]|(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f]))(?:[_a-z0-9-]|[^\\u0020-\\u007e]|(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f]))*)?",a="((?:-?"+i+")|(?:inherit|auto))",s="(#?"+o+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",l="(?:[!#$%&*-~]|[^\\u0020-\\u007e]|"+n+")*?",c="(?!("+o+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'])*?{)",u="(?!"+l+"['\"]?\\s*\\))",d="(?="+l+"['\"]?\\s*\\))",p="(\\s*(?:!important\\s*)?[;}])",f=new RegExp("`TMP`","g"),m=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),g=new RegExp("("+t+c+"[^;}]+;?)","gi"),h=new RegExp("("+t+"[^\\}]*?})","gi"),b=new RegExp("(direction\\s*:\\s*)ltr","gi"),v=new RegExp("(direction\\s*:\\s*)rtl","gi"),y=new RegExp("(^|[^a-zA-Z])(left)(?![a-zA-Z])"+u+c,"gi"),x=new RegExp("(^|[^a-zA-Z])(right)(?![a-zA-Z])"+u+c,"gi"),S=new RegExp("(^|[^a-zA-Z])(left)"+d,"gi"),w=new RegExp("(^|[^a-zA-Z])(right)"+d,"gi"),C=new RegExp("(^|[^a-zA-Z])(ltr)"+d,"gi"),E=new RegExp("(^|[^a-zA-Z])(rtl)"+d,"gi"),k=new RegExp("(^|[^a-zA-Z])([ns]?)e-resize","gi"),T=new RegExp("(^|[^a-zA-Z])([ns]?)w-resize","gi"),R=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+a+"(\\s+)"+a+"(\\s+)"+a+"(\\s+)"+a+p,"gi"),A=new RegExp("((?:-color|border-style)\\s*:\\s*)"+s+"(\\s+)"+s+"(\\s+)"+s+"(\\s+)"+s+p,"gi"),P=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+i+")","gi"),O=new RegExp("(background-position-x\\s*:\\s*)(-?"+e+"%)","gi"),D=new RegExp("(border-radius\\s*:\\s*)"+a+"(?:(?:\\s+"+a+")(?:\\s+"+a+")?(?:\\s+"+a+")?)?(?:(?:(?:\\s*\\/\\s*)"+a+")(?:\\s+"+a+")?(?:\\s+"+a+")?(?:\\s+"+a+")?)?"+p,"gi"),I=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+a,"gi"),M=new RegExp("(text-shadow\\s*:\\s*)"+a+"(\\s*)"+s,"gi"),N=new RegExp("(text-shadow\\s*:\\s*)"+s+"(\\s*)"+a,"gi"),F=new RegExp("(text-shadow\\s*:\\s*)"+a,"gi"),L=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+a+"(\\s*\\))","gi"),j=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+a+"((?:\\s*,\\s*"+a+"){0,2}\\s*\\))","gi");function q(e,t,n){var r,o;return"%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n}function z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function $(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter((function(e){return e})),o=n.slice(6,10).filter((function(e){return e})),i=n[10]||"";return t+(o.length?z(r)+" / "+z(o):z(r))+i}function _(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function B(e,t,n){return t+_(n)}function H(e,t,n,r,o){return t+n+_(r)+o}function W(e,t,n,r,o){return t+n+r+_(o)}return{transform:function(e,t){var n=new r(g,"`NOFLIP_SINGLE`"),o=new r(h,"`NOFLIP_CLASS`"),i=new r(m,"`COMMENT`");return e=i.tokenize(o.tokenize(n.tokenize(e.replace("`","%60")))),t.transformDirInUrl&&(e=e.replace(C,"$1`TMP`").replace(E,"$1ltr").replace(f,"rtl")),t.transformEdgeInUrl&&(e=e.replace(S,"$1`TMP`").replace(w,"$1left").replace(f,"right")),e=e.replace(b,"$1`TMP`").replace(v,"$1ltr").replace(f,"rtl").replace(y,"$1`TMP`").replace(x,"$1left").replace(f,"right").replace(k,"$1$2`TMP`").replace(T,"$1$2e-resize").replace(f,"w-resize").replace(D,$).replace(I,B).replace(M,W).replace(N,W).replace(F,B).replace(L,H).replace(j,H).replace(R,"$1$2$3$8$5$6$7$4$9").replace(A,"$1$2$3$8$5$6$7$4$9").replace(P,q).replace(O,q),e=n.detokenize(o.detokenize(i.detokenize(e)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(wl,wl.exports),Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.STYLIS_PROPERTY_CONTEXT=void 0;var Cl,El=(Cl=wl.exports)&&Cl.__esModule?Cl:{default:Cl};var kl=Sl.STYLIS_PROPERTY_CONTEXT=-1;function Tl(e,t){if(e===kl)return El.default.transform(t)}Object.defineProperty(Tl,"name",{value:"stylisRTLPlugin"});var Rl=Sl.default=Tl;function Al(){return Al=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},Al.apply(this,arguments)}const Pl=h.createContext();function Ol(e){return $r("MuiTable",e)}_r("MuiTable",["root","stickyHeader"]);const Dl=["className","component","padding","size","stickyHeader"],Il=ul("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Ln({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ln({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Ml="table",Nl=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiTable"}),{className:r,component:o=Ml,padding:i="normal",size:a="medium",stickyHeader:s=!1}=n,l=jn(n,Dl),c=Ln({},n,{component:o,padding:i,size:a,stickyHeader:s}),u=(e=>{const{classes:t,stickyHeader:n}=e;return Lr({root:["root",n&&"stickyHeader"]},Ol,t)})(c),d=h.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return Ci.jsx(Pl.Provider,{value:d,children:Ci.jsx(Il,Ln({as:o,role:o===Ml?null:"table",ref:t,className:si(u.root,r),ownerState:c},l))})}));var Fl,Ll={},jl={exports:{}};(Fl=jl).exports=function(e){return e&&e.__esModule?e:{default:e}},Fl.exports.__esModule=!0,Fl.exports.default=Fl.exports;var ql,zl={},$l={exports:{}};function _l(){return ql||(ql=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}($l)),$l.exports}var Bl,Hl={exports:{}};var Wl,Vl=L(Vn),Ul=L(Br),Kl=L(fi),Gl={};var Xl,Yl=L(ii);var Jl=jl.exports;Object.defineProperty(Ll,"__esModule",{value:!0});var Zl=Ll.default=void 0,Ql=Jl(function(){if(Xl)return zl;Xl=1;var e=jl.exports;Object.defineProperty(zl,"__esModule",{value:!0}),zl.default=function(e={}){const{defaultTheme:o=f,rootShouldForwardProp:u=p,slotShouldForwardProp:m=p,styleFunctionSx:g=a.default}=e,h=e=>{const t=d(e.theme)?o:e.theme;return g((0,n.default)({},e,{theme:t}))};return h.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:f,slot:g,skipVariantsResolver:b,skipSx:v,overridesResolver:y}=a,x=(0,t.default)(a,s),S=void 0!==b?b:g&&"Root"!==g||!1,w=v||!1;let C=p;"Root"===g?C=u:g?C=m:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const E=(0,r.default)(e,(0,n.default)({shouldForwardProp:C,label:undefined},x)),k=(e,...r)=>{const a=r?r.map((e=>"function"==typeof e&&e.__emotion_real!==e?r=>{let{theme:i}=r,a=(0,t.default)(r,l);return e((0,n.default)({theme:d(i)?o:i},a))}:e)):[];let s=e;f&&y&&a.push((e=>{const t=d(e.theme)?o:e.theme,r=((e,t)=>{if(t.components&&t.components[e]&&t.components[e].styleOverrides)return t.components[e].styleOverrides;return null})(f,t);if(r){const o={};return Object.entries(r).forEach((([r,i])=>{o[r]="function"==typeof i?i((0,n.default)({},e,{theme:t})):i})),y(e,o)}return null})),f&&!S&&a.push((e=>{const t=d(e.theme)?o:e.theme;return((e,t,n,r)=>{var o,a;const{ownerState:s={}}=e,l=[],c=null==n||null==(o=n.components)||null==(a=o[r])?void 0:a.variants;c&&c.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{s[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&l.push(t[(0,i.default)(n.props)])}));return l})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=(0,i.default)(e.props);r[t]=e.style})),r})(f,t),t,f)})),w||a.push(h);const u=a.length-r.length;if(Array.isArray(e)&&u>0){const t=new Array(u).fill("");s=[...e,...t],s.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(s=r=>{let{theme:i}=r,a=(0,t.default)(r,c);return e((0,n.default)({theme:d(i)?o:i},a))});return E(s,...a)};return E.withConfig&&(k.withConfig=E.withConfig),k}},zl.shouldForwardProp=p,zl.systemDefaultTheme=void 0;var t=e(_l()),n=e((Bl||(Bl=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}(Hl)),Hl.exports)),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},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]}r.default=e,n&&n.set(e,r);return r}(Vl),o=e(Kl),i=e(function(){if(Wl)return Gl;Wl=1;var e=jl.exports;Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.default=function(e){const{variant:i}=e,a=(0,t.default)(e,r);let s=i||"";return Object.keys(a).sort().forEach((t=>{s+="color"===t?o(s)?e[t]:(0,n.unstable_capitalize)(e[t]):`${o(s)?t:(0,n.unstable_capitalize)(t)}${(0,n.unstable_capitalize)(e[t].toString())}`})),s};var t=e(_l()),n=Ul;const r=["variant"];function o(e){return 0===e.length}return Gl}()),a=e(Yl);const s=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],l=["theme"],c=["theme"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e){return 0===Object.keys(e).length}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const f=(0,o.default)();return zl.systemDefaultTheme=f,zl}());var ec=(0,Ql.default)();function tc(e){return $r("MuiTableContainer",e)}Zl=Ll.default=ec,_r("MuiTableContainer",["root"]);const nc=["className","component"],rc=ul("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),oc=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=jn(n,nc),a=Ln({},n,{component:o}),s=(e=>{const{classes:t}=e;return Lr({root:["root"]},tc,t)})(a);return Ci.jsx(rc,Ln({ref:t,as:o,className:si(s.root,r),ownerState:a},i))})),ic=h.createContext();function ac(e){return $r("MuiTableRow",e)}const sc=_r("MuiTableRow",["root","selected","hover","head","footer"]),lc=["className","component","hover","selected"],cc=ul("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${sc.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${sc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ki(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ki(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),uc="tr",dc=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiTableRow"}),{className:r,component:o=uc,hover:i=!1,selected:a=!1}=n,s=jn(n,lc),l=h.useContext(ic),c=Ln({},n,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),u=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Lr({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},ac,t)})(c);return Ci.jsx(cc,Ln({as:o,ref:t,className:si(u.root,r),role:o===uc?null:"row",ownerState:c},s))}));function pc(){return pc=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},pc.apply(this,arguments)}function fc(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 mc(e,t){return mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mc(e,t)}function gc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mc(e,t)}function hc(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var bc=!1,vc=b.createContext(null),yc=function(e){return e.scrollTop},xc="entering",Sc="entered",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="exited",r.appearStatus=xc):o=Sc:o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}gc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}: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!==xc&&n!==Sc&&(t=xc):n!==xc&&n!==Sc||(t="exiting")}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===xc){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:I.findDOMNode(this);n&&yc(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[I.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||bc?this.safeSetState({status:Sc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:xc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Sc},(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:I.findDOMNode(this);t&&!bc?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(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:I.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("unmounted"===e)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=fc(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(vc.Provider,{value:null},"function"==typeof n?n(e,r):b.cloneElement(b.Children.only(n),r))},t}(b.Component);function Cc(){}wc.contextType=vc,wc.propTypes={},wc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cc,onEntering:Cc,onEntered:Cc,onExit:Cc,onExiting:Cc,onExited:Cc},wc.UNMOUNTED="unmounted",wc.EXITED="exited",wc.ENTERING=xc,wc.ENTERED=Sc,wc.EXITING="exiting";var Ec=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},kc=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=hc(n.className,r):n.setAttribute("class",hc(n.className&&n.className.baseVal||"",r)));var n,r}))},Tc=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}gc(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&yc(e),r&&(this.appliedClasses[t][n]=r,Ec(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&kc(e,r),o&&kc(e,o),i&&kc(e,i)},n.render=function(){var e=this.props;e.classNames;var t=fc(e,["classNames"]);return b.createElement(wc,pc({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(b.Component);function Rc(e,t){var n=Object.create(null);return e&&E.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&k(e)?t(e):e}(e)})),n}function Ac(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Pc(e,t,n){var r=Rc(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 s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(k(a)){var s=i in t,l=i in r,c=t[i],u=k(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&k(c)&&(o[i]=T(a,{onExited:n.bind(null,a),in:c.props.in,exit:Ac(a,"exit",e),enter:Ac(a,"enter",e)})):o[i]=T(a,{in:!1}):o[i]=T(a,{onExited:n.bind(null,a),in:!0,exit:Ac(a,"exit",e),enter:Ac(a,"enter",e)})}})),o}Tc.defaultProps={classNames:""},Tc.propTypes={};var Oc,Dc,Ic=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Mc=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}gc(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,Rc(n.children,(function(e){return T(e,{onExited:r.bind(null,e),in:!0,appear:Ac(e,"appear",n),enter:Ac(e,"enter",n),exit:Ac(e,"exit",n)})}))):Pc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Rc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=pc({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=fc(e,["component","childFactory"]),o=this.state.contextValue,i=Ic(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?b.createElement(vc.Provider,{value:o},i):b.createElement(vc.Provider,{value:o},b.createElement(t,r,i))},t}(b.Component);Mc.propTypes={},Mc.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}gc(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=b.Children.toArray(o)[t];if(i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]){var a=i.props.nodeRef?void 0:I.findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=fc(e,["children","in"]),o=b.Children.toArray(t),i=o[0],a=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,b.createElement(Mc,r,n?b.cloneElement(i,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):b.cloneElement(a,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(b.Component)).propTypes={};var Nc="out-in",Fc="in-out",Lc=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},jc=((Oc={})[Nc]=function(e){var t=e.current,n=e.changeState;return b.cloneElement(t,{in:!1,onExited:Lc(t,"onExited",(function(){n(xc,null)}))})},Oc[Fc]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,b.cloneElement(r,{in:!0,onEntered:Lc(r,"onEntered",(function(){n(xc)}))})]},Oc),qc=((Dc={})[Nc]=function(e){var t=e.children,n=e.changeState;return b.cloneElement(t,{in:!0,onEntered:Lc(t,"onEntered",(function(){n(Sc,b.cloneElement(t,{in:!0}))}))})},Dc[Fc]=function(e){var t=e.current,n=e.children,r=e.changeState;return[b.cloneElement(t,{in:!1,onExited:Lc(t,"onExited",(function(){r(Sc,b.cloneElement(n,{in:!0}))}))}),b.cloneElement(n,{in:!0})]},Dc),zc=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:Sc,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}gc(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===xc&&e.mode===Fc?{status:xc}:!t.current||(n=t.current,r=e.children,n===r||b.isValidElement(n)&&b.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:b.cloneElement(e.children,{in:!0})}:{status:"exiting"};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,i=o.status,a=o.current,s={children:n,current:a,changeState:this.changeState,status:i};switch(i){case xc:e=qc[r](s);break;case"exiting":e=jc[r](s);break;case Sc:e=a}return b.createElement(vc.Provider,{value:{isMounting:!this.appeared}},e)},t}(b.Component);zc.propTypes={},zc.defaultProps={mode:Nc};const $c=_r("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_c=["center","classes","className"];let Bc,Hc,Wc,Vc,Uc=e=>e;const Kc=Fn(Bc||(Bc=Uc`
22
22
  0% {
23
23
  transform: scale(0);
24
24
  opacity: 0.1;
@@ -28,7 +28,7 @@ function Nn(e,t){let n;return n=t?En(e).withConfig({displayName:t.label,shouldFo
28
28
  transform: scale(1);
29
29
  opacity: 0.3;
30
30
  }
31
- `)),Dc=Tn(kc||(kc=Ac`
31
+ `)),Gc=Fn(Hc||(Hc=Uc`
32
32
  0% {
33
33
  opacity: 1;
34
34
  }
@@ -36,7 +36,7 @@ function Nn(e,t){let n;return n=t?En(e).withConfig({displayName:t.label,shouldFo
36
36
  100% {
37
37
  opacity: 0;
38
38
  }
39
- `)),Oc=Tn(Tc||(Tc=Ac`
39
+ `)),Xc=Fn(Wc||(Wc=Uc`
40
40
  0% {
41
41
  transform: scale(1);
42
42
  }
@@ -48,7 +48,7 @@ function Nn(e,t){let n;return n=t?En(e).withConfig({displayName:t.label,shouldFo
48
48
  100% {
49
49
  transform: scale(1);
50
50
  }
51
- `)),Ic=Gs("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Mc=Gs((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=h.useState(!1),p=Xo(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Xo(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),h.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),ui.jsx("span",{className:p,style:f,children:ui.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Rc||(Rc=Ac`
51
+ `)),Yc=ul("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Jc=ul((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=h.useState(!1),p=si(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=si(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),h.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),Ci.jsx("span",{className:p,style:f,children:Ci.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Vc||(Vc=Uc`
52
52
  opacity: 0;
53
53
  position: absolute;
54
54
 
@@ -91,4 +91,4 @@ function Nn(e,t){let n;return n=t?En(e).withConfig({displayName:t.label,shouldFo
91
91
  animation-iteration-count: infinite;
92
92
  animation-delay: 200ms;
93
93
  }
94
- `),wc.rippleVisible,Pc,550,(({theme:e})=>e.transitions.easing.easeInOut),wc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),wc.child,wc.childLeaving,Dc,550,(({theme:e})=>e.transitions.easing.easeInOut),wc.childPulsate,Oc,(({theme:e})=>e.transitions.easing.easeInOut)),Nc=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=An(n,Cc),[s,l]=h.useState([]),c=h.useRef(0),u=h.useRef(null);h.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=h.useRef(!1),p=h.useRef(null),f=h.useRef(null),m=h.useRef(null);h.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const g=h.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,ui.jsx(Mc,{classes:{ripple:Xo(o.ripple,wc.ripple),rippleVisible:Xo(o.rippleVisible,wc.rippleVisible),ripplePulsate:Xo(o.ripplePulsate,wc.ripplePulsate),child:Xo(o.child,wc.child),childLeaving:Xo(o.childLeaving,wc.childLeaving),childPulsate:Xo(o.childPulsate,wc.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),b=h.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 s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,h;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)h=Math.sqrt((2*l.width**2+l.height**2)/3),h%2==0&&(h+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;h=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:h,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:h,cb:n})}),[r,g]),v=h.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=h.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{y(e,t)})));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return h.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),ui.jsx(Ic,Rn({className:Xo(wc.root,o.root,i),ref:m},a,{children:ui.jsx(gc,{component:null,exit:!0,children:s})}))}));function Fc(e){return Dr("MuiButtonBase",e)}const Lc=Or("MuiButtonBase",["root","disabled","focusVisible"]),qc=["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"],jc=Gs("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"},[`&.${Lc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),zc=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:k,onTouchMove:T,onTouchStart:R,tabIndex:A=0,TouchRippleProps:P,touchRippleRef:D,type:O}=n,I=An(n,qc),M=h.useRef(null),N=h.useRef(null),F=ur(N,D),{isFocusVisibleRef:L,onFocus:q,onBlur:j,ref:z}=yr(),[$,_]=h.useState(!1);l&&$&&_(!1),h.useImperativeHandle(r,(()=>({focusVisible:()=>{_(!0),M.current.focus()}})),[]);const[B,H]=h.useState(!1);h.useEffect((()=>{H(!0)}),[]);const W=B&&!c&&!l;function V(e,t,n=u){return cr((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}h.useEffect((()=>{$&&d&&!c&&B&&N.current.pulsate()}),[c,d,$,B]);const U=V("start",w),K=V("stop",g),G=V("stop",b),X=V("stop",E),Y=V("stop",(e=>{$&&e.preventDefault(),C&&C(e)})),J=V("start",R),Z=V("stop",k),Q=V("stop",T),ee=V("stop",(e=>{j(e),!1===L.current&&_(!1),f&&f(e)}),!1),te=cr((e=>{M.current||(M.current=e.currentTarget),q(e),!0===L.current&&(_(!0),y&&y(e)),v&&v(e)})),ne=()=>{const e=M.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=h.useRef(!1),oe=cr((e=>{d&&!re.current&&$&&N.current&&" "===e.key&&(re.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=cr((e=>{d&&" "===e.key&&N.current&&$&&!e.defaultPrevented&&(re.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(I.href||I.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===O?"button":O,se.disabled=l):(I.href||I.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=ur(z,M),ce=ur(t,le),ue=Rn({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:A,focusVisible:$}),de=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Tr({root:["root",t&&"disabled",n&&"focusVisible"]},Fc,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return ui.jsxs(jc,Rn({as:ae,className:Xo(de.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:K,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:Y,onMouseUp:X,onDragLeave:G,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:ce,tabIndex:l?-1:A,type:O},se,I,{children:[i,W?ui.jsx(Nc,Rn({ref:F,center:o},P)):null]}))}));function $c(e){return Dr("MuiSvgIcon",e)}Or("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _c=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Bc=Gs("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Gn(n.color)}`],t[`fontSize${Gn(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(m=f[t.color])?void 0:m.main)?p:{action:null==(g=(e.vars||e).palette)||null==(h=g.action)?void 0:h.active,disabled:null==(b=(e.vars||e).palette)||null==(v=b.action)?void 0:v.disabled,inherit:void 0}[t.color]}})),Hc=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=An(n,_c),f=Rn({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Tr({root:["root","inherit"!==t&&`color${Gn(t)}`,`fontSize${Gn(n)}`]},$c,r)})(f);return ui.jsxs(Bc,Rn({as:a,className:Xo(g.root,o),ownerState:f,focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,{children:[r,u?ui.jsx("title",{children:u}):null]}))}));function Wc(e,t){const n=(n,r)=>ui.jsx(Hc,Rn({"data-testid":`${t}Icon`,ref:r},n,{children:e}));return n.muiName=Hc.muiName,h.memo(h.forwardRef(n))}Hc.muiName="SvgIcon";var Vc=Wc(ui.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function Uc(e){return Dr("MuiTableSortLabel",e)}const Kc=Or("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),Gc=["active","children","className","direction","hideSortIcon","IconComponent"],Xc=Gs(zc,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})((({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Kc.icon}`]:{opacity:.5}},[`&.${Kc.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Kc.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),Yc=Gs("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${Gn(n.direction)}`]]}})((({theme:e,ownerState:t})=>Rn({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},"desc"===t.direction&&{transform:"rotate(0deg)"},"asc"===t.direction&&{transform:"rotate(180deg)"}))),Jc=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiTableSortLabel"}),{active:r=!1,children:o,className:i,direction:a="asc",hideSortIcon:s=!1,IconComponent:l=Vc}=n,c=An(n,Gc),u=Rn({},n,{active:r,direction:a,hideSortIcon:s,IconComponent:l}),d=(e=>{const{classes:t,direction:n,active:r}=e;return Tr({root:["root",r&&"active"],icon:["icon",`iconDirection${Gn(n)}`]},Uc,t)})(u);return ui.jsxs(Xc,Rn({className:Xo(d.root,i),component:"span",disableRipple:!0,ownerState:u,ref:t},c,{children:[o,s&&!r?null:ui.jsx(Yc,{as:l,className:Xo(d.icon),ownerState:u})]}))}));function Zc(e){return Dr("MuiTableBody",e)}Or("MuiTableBody",["root"]);const Qc=["className","component"],eu=Gs("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),tu={variant:"body"},nu="tbody",ru=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiTableBody"}),{className:r,component:o=nu}=n,i=An(n,Qc),a=Rn({},n,{component:o}),s=(e=>{const{classes:t}=e;return Tr({root:["root"]},Zc,t)})(a);return ui.jsx(Hl.Provider,{value:tu,children:ui.jsx(eu,Rn({className:Xo(s.root,r),as:o,ref:t,role:o===nu?null:"rowgroup",ownerState:a},i))})})),ou=h.createContext({});function iu(e){return Dr("MuiList",e)}Or("MuiList",["root","padding","dense","subheader"]);const au=["children","className","component","dense","disablePadding","subheader"],su=Gs("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})=>Rn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),lu=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=An(n,au),u=h.useMemo((()=>({dense:a})),[a]),d=Rn({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Tr({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},iu,t)})(d);return ui.jsx(ou.Provider,{value:u,children:ui.jsxs(su,Rn({as:i,className:Xo(p.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})})),cu=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function uu(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function du(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function pu(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 fu(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&pu(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const mu=h.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=An(e,cu),p=h.useRef(null),f=h.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});rr((()=>{r&&p.current.focus()}),[r]),h.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${xr(Qn(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=ur(p,t);let g=-1;h.Children.forEach(i,((e,t)=>{h.isValidElement(e)&&(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===g)&&(g=t))}));const b=h.Children.map(i,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),h.cloneElement(e,t)}return e}));return ui.jsx(lu,Rn({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Qn(t).activeElement;if("ArrowDown"===n)e.preventDefault(),fu(t,r,l,s,uu);else if("ArrowUp"===n)e.preventDefault(),fu(t,r,l,s,du);else if("Home"===n)e.preventDefault(),fu(t,null,l,s,uu);else if("End"===n)e.preventDefault(),fu(t,null,l,s,du);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 l=r&&!o.repeating&&pu(r,o);o.previousKeyMatched&&(l||fu(t,r,!1,s,uu,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:b}))})),gu=e=>e.scrollTop;function hu(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}}const bu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function vu(e){return`scale(${e}, ${e**2})`}const yu={entering:{opacity:1,transform:vu(1)},entered:{opacity:1,transform:"none"}},xu="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Su=h.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:g=oc}=e,b=An(e,bu),v=h.useRef(),y=h.useRef(),x=Ws(),S=h.useRef(null),w=ur(o.ref,t),C=ur(S,w),E=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},k=E(c),T=E(((e,t)=>{gu(e);const{duration:n,delay:r,easing:o}=hu({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:xu?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),R=E(l),A=E(p),P=E((e=>{const{duration:t,delay:n,easing:r}=hu({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:xu?o:.666*o,delay:xu?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=vu(.75),u&&u(e)})),D=E(d);return h.useEffect((()=>()=>{clearTimeout(v.current)}),[]),ui.jsx(g,Rn({appear:r,in:a,nodeRef:S,onEnter:T,onEntered:R,onEntering:k,onExit:P,onExited:D,onExiting:A,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,y.current||0)),n&&n(S.current,e)},timeout:"auto"===m?null:m},b,{children:(e,t)=>h.cloneElement(o,Rn({style:Rn({opacity:0,transform:vu(.75),visibility:"exited"!==e||a?void 0:"hidden"},yu[e],f,o.props.style),ref:C},t))}))}));Su.muiSupportAuto=!0;const wu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Cu={entering:{opacity:1},entered:{opacity:1}},Eu=h.forwardRef((function(e,t){const n=Ws(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:m,style:g,timeout:b=r,TransitionComponent:v=oc}=e,y=An(e,wu),x=h.useRef(null),S=ur(a.ref,t),w=ur(x,S),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=C(d),k=C(((e,t)=>{gu(e);const r=hu({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),T=C(u),R=C(m),A=C((e=>{const t=hu({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),P=C(f);return ui.jsx(v,Rn({appear:i,in:l,nodeRef:x,onEnter:k,onEntered:T,onEntering:E,onExit:A,onExited:P,onExiting:R,addEndListener:e=>{o&&o(x.current,e)},timeout:b},y,{children:(e,t)=>h.cloneElement(a,Rn({style:Rn({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Cu[e],g,a.props.style),ref:w},t))}))}));function ku(e){return Dr("MuiBackdrop",e)}Or("MuiBackdrop",["root","invisible"]);const Tu=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],Ru=Gs("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Rn({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Au=h.forwardRef((function(e,t){var n,r;const o=Vs({props:e,name:"MuiBackdrop"}),{children:i,component:a="div",components:s={},componentsProps:l={},className:c,invisible:u=!1,open:d,transitionDuration:p,TransitionComponent:f=Eu}=o,m=An(o,Tu),g=Rn({},o,{component:a,invisible:u}),h=(e=>{const{classes:t,invisible:n}=e;return Tr({root:["root",n&&"invisible"]},ku,t)})(g);return ui.jsx(f,Rn({in:d,timeout:p},m,{children:ui.jsx(Ru,{"aria-hidden":!0,as:null!=(n=s.Root)?n:a,className:Xo(h.root,c),ownerState:Rn({},g,null==(r=l.root)?void 0:r.ownerState),classes:h,ref:t,children:i})}))})),Pu=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","theme"],Du=Gs("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})=>Rn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ou=Gs(Au,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Iu=h.forwardRef((function(e,t){var n,r;const o=Vs({name:"MuiModal",props:e}),{BackdropComponent:i=Ou,BackdropProps:a,closeAfterTransition:s=!1,children:l,component:c,components:u={},componentsProps:d={},disableAutoFocus:p=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:g=!1,disableRestoreFocus:b=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:x=!1,theme:S}=o,w=An(o,Pu),[C,E]=h.useState(!0),k={closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:g,disableRestoreFocus:b,disableScrollLock:v,hideBackdrop:y,keepMounted:x},T=Rn({},o,k,{exited:C}),R=(e=>e.classes)(T),A=null!=(n=null!=(r=u.Root)?r:c)?n:Du;return ui.jsx(La,Rn({components:Rn({Root:A,Backdrop:i},u),componentsProps:{root:()=>Rn({},ba(d.root,T),!ha(A)&&{as:c,theme:S}),backdrop:()=>Rn({},a,ba(d.backdrop,T))},onTransitionEnter:()=>E(!1),onTransitionExited:()=>E(!0),ref:t},w,{classes:R},k,{children:l}))}));function Mu(e){return Dr("MuiPopover",e)}Or("MuiPopover",["root","paper"]);const Nu=["onEntering"],Fu=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function Lu(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function qu(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ju(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function zu(e){return"function"==typeof e?e():e}const $u=Gs(Iu,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_u=Gs(Qs,{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}),Bu=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:l,className:c,container:u,elevation:d=8,marginThreshold:p=16,open:f,PaperProps:m={},transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:b=Su,transitionDuration:v="auto",TransitionProps:{onEntering:y}={}}=n,x=An(n.TransitionProps,Nu),S=An(n,Fu),w=h.useRef(),C=ur(w,m.ref),E=Rn({},n,{anchorOrigin:i,anchorReference:s,elevation:d,marginThreshold:p,PaperProps:m,transformOrigin:g,TransitionComponent:b,transitionDuration:v,TransitionProps:x}),k=(e=>{const{classes:t}=e;return Tr({root:["root"],paper:["paper"]},Mu,t)})(E),T=h.useCallback((()=>{if("anchorPosition"===s)return a;const e=zu(o),t=(e&&1===e.nodeType?e:Qn(w.current).body).getBoundingClientRect();return{top:t.top+Lu(t,i.vertical),left:t.left+qu(t,i.horizontal)}}),[o,i.horizontal,i.vertical,a,s]),R=h.useCallback((e=>({vertical:Lu(e,g.vertical),horizontal:qu(e,g.horizontal)})),[g.horizontal,g.vertical]),A=h.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=R(t);if("none"===s)return{top:null,left:null,transformOrigin:ju(n)};const r=T();let i=r.top-n.vertical,a=r.left-n.horizontal;const l=i+t.height,c=a+t.width,u=er(zu(o)),d=u.innerHeight-p,f=u.innerWidth-p;if(i<p){const e=i-p;i-=e,n.vertical+=e}else if(l>d){const e=l-d;i-=e,n.vertical+=e}if(a<p){const e=a-p;a-=e,n.horizontal+=e}else if(c>f){const e=c-f;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:ju(n)}}),[o,s,T,R,p]),P=h.useCallback((()=>{const e=w.current;if(!e)return;const t=A(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[A]);h.useEffect((()=>{f&&P()})),h.useImperativeHandle(r,(()=>f?{updatePosition:()=>{P()}}:null),[f,P]),h.useEffect((()=>{if(!f)return;const e=Yn((()=>{P()})),t=er(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,f,P]);let D=v;"auto"!==v||b.muiSupportAuto||(D=void 0);const O=u||(o?Qn(zu(o)).body:void 0);return ui.jsx($u,Rn({BackdropProps:{invisible:!0},className:Xo(k.root,c),container:O,open:f,ref:t,ownerState:E},S,{children:ui.jsx(b,Rn({appear:!0,in:f,onEntering:(e,t)=>{y&&y(e,t),P()},timeout:D},x,{children:ui.jsx(_u,Rn({elevation:d},m,{ref:C,className:Xo(k.paper,m.className),children:l}))}))}))}));function Hu(e){return Dr("MuiMenu",e)}Or("MuiMenu",["root","paper","list"]);const Wu=["onEntering"],Vu=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Uu={vertical:"top",horizontal:"right"},Ku={vertical:"top",horizontal:"left"},Gu=Gs(Bu,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xu=Gs(Qs,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Yu=Gs(mu,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ju=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,disableAutoFocusItem:i=!1,MenuListProps:a={},onClose:s,open:l,PaperProps:c={},PopoverClasses:u,transitionDuration:d="auto",TransitionProps:{onEntering:p}={},variant:f="selectedMenu"}=n,m=An(n.TransitionProps,Wu),g=An(n,Vu),b=Ws(),v="rtl"===b.direction,y=Rn({},n,{autoFocus:r,disableAutoFocusItem:i,MenuListProps:a,onEntering:p,PaperProps:c,transitionDuration:d,TransitionProps:m,variant:f}),x=(e=>{const{classes:t}=e;return Tr({root:["root"],paper:["paper"],list:["list"]},Hu,t)})(y),S=r&&!i&&l,w=h.useRef(null);let C=-1;return h.Children.map(o,((e,t)=>{h.isValidElement(e)&&(e.props.disabled||("selectedMenu"===f&&e.props.selected||-1===C)&&(C=t))})),ui.jsx(Gu,Rn({classes:u,onClose:s,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?Uu:Ku,PaperProps:Rn({component:Xu},c,{classes:Rn({},c.classes,{root:x.paper})}),className:x.root,open:l,ref:t,transitionDuration:d,TransitionProps:Rn({onEntering:(e,t)=>{w.current&&w.current.adjustStyleForScrollbar(e,b),p&&p(e,t)}},m),ownerState:y},g,{children:ui.jsx(Yu,Rn({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),s&&s(e,"tabKeyDown"))},actions:w,autoFocus:r&&(-1===C||i),autoFocusItem:S,variant:f},a,{className:Xo(x.list,a.className),children:o}))}))}));function Zu(e){return Dr("MuiNativeSelect",e)}const Qu=Or("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),ed=["className","disabled","IconComponent","inputRef","variant"],td=({ownerState:e,theme:t})=>Rn({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${Qu.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:t.shape.borderRadius,"&:focus":{borderRadius:t.shape.borderRadius},"&&&":{paddingRight:32}}),nd=Gs("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Us,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${Qu.multiple}`]:t.multiple}]}})(td),rd=({ownerState:e,theme:t})=>Rn({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:t.palette.action.active,[`&.${Qu.disabled}`]:{color:t.palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),od=Gs("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Gn(n.variant)}`],n.open&&t.iconOpen]}})(rd),id=h.forwardRef((function(e,t){const{className:n,disabled:r,IconComponent:o,inputRef:i,variant:a="standard"}=e,s=An(e,ed),l=Rn({},e,{disabled:r,variant:a}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e;return Tr({select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${Gn(n)}`,i&&"iconOpen",r&&"disabled"]},Zu,t)})(l);return ui.jsxs(h.Fragment,{children:[ui.jsx(nd,Rn({ownerState:l,className:Xo(c.select,n),disabled:r,ref:i||t},s)),e.multiple?null:ui.jsx(od,{as:o,ownerState:l,className:c.icon})]})}));function ad(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function sd(e,t=!1){return e&&(ad(e.value)&&""!==e.value||t&&ad(e.defaultValue)&&""!==e.defaultValue)}function ld(e){return Dr("MuiSelect",e)}const cd=Or("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var ud;const dd=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],pd=Gs("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${cd.select}`]:t.select},{[`&.${cd.select}`]:t[n.variant]},{[`&.${cd.multiple}`]:t.multiple}]}})(td,{[`&.${cd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),fd=Gs("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Gn(n.variant)}`],n.open&&t.iconOpen]}})(rd),md=Gs("input",{shouldForwardProp:e=>Ks(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 gd(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function hd(e){return null==e||"string"==typeof e&&!e.trim()}const bd=h.forwardRef((function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:i,children:a,className:s,defaultOpen:l,defaultValue:c,disabled:u,displayEmpty:d,IconComponent:p,inputRef:f,labelId:m,MenuProps:g={},multiple:b,name:v,onBlur:y,onChange:x,onClose:S,onFocus:w,onOpen:C,open:E,readOnly:k,renderValue:T,SelectDisplayProps:R={},tabIndex:A,value:P,variant:D="standard"}=e,O=An(e,dd),[I,M]=lr({controlled:P,default:c,name:"Select"}),[N,F]=lr({controlled:E,default:l,name:"Select"}),L=h.useRef(null),q=h.useRef(null),[j,z]=h.useState(null),{current:$}=h.useRef(null!=E),[_,B]=h.useState(),H=ur(t,f),W=h.useCallback((e=>{q.current=e,e&&z(e)}),[]);h.useImperativeHandle(H,(()=>({focus:()=>{q.current.focus()},node:L.current,value:I})),[I]),h.useEffect((()=>{l&&N&&j&&!$&&(B(i?null:j.clientWidth),q.current.focus())}),[j,i]),h.useEffect((()=>{o&&q.current.focus()}),[o]),h.useEffect((()=>{if(!m)return;const e=Qn(q.current).getElementById(m);if(e){const t=()=>{getSelection().isCollapsed&&q.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[m]);const V=(e,t)=>{e?C&&C(t):S&&S(t),$||(B(i?null:j.clientWidth),F(e))},U=h.Children.toArray(a),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(I)?I.slice():[];const t=I.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),I!==n&&(M(n),x)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:v}}),x(o,e)}b||V(!1,t)}},G=null!==j&&N;let X,Y;delete O["aria-invalid"];const J=[];let Z=!1;(sd({value:I})||d)&&(T?X=T(I):Z=!0);const Q=U.map(((e,t,n)=>{if(!h.isValidElement(e))return null;let r;if(b){if(!Array.isArray(I))throw new Error(Bn(2));r=I.some((t=>gd(t,e.props.value))),r&&Z&&J.push(e.props.children)}else r=gd(I,e.props.value),r&&Z&&(Y=e.props.children);if(void 0===e.props.value)return h.cloneElement(e,{"aria-readonly":!0,role:"option"});return h.cloneElement(e,{"aria-selected":r?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===n[0].props.value||!0===n[0].props.disabled?(()=>{if(I)return r;const t=n.find((e=>void 0!==e.props.value&&!0!==e.props.disabled));return e===t||r})():r,value:void 0,"data-value":e.props.value})}));Z&&(X=b?0===J.length?null:J.reduce(((e,t,n)=>(e.push(t),n<J.length-1&&e.push(", "),e)),[]):Y);let ee,te=_;!i&&$&&j&&(te=j.clientWidth),ee=void 0!==A?A:u?null:0;const ne=R.id||(v?`mui-component-select-${v}`:void 0),re=Rn({},e,{variant:D,value:I,open:G}),oe=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e;return Tr({select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${Gn(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},ld,t)})(re);return ui.jsxs(h.Fragment,{children:[ui.jsx(pd,Rn({ref:W,tabIndex:ee,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":G?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[m,ne].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),V(!0,e))}},onMouseDown:u||k?null:e=>{0===e.button&&(e.preventDefault(),q.current.focus(),V(!0,e))},onBlur:e=>{!G&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:I,name:v}}),y(e))},onFocus:w},R,{ownerState:re,className:Xo(R.className,oe.select,s),id:ne,children:hd(X)?ud||(ud=ui.jsx("span",{className:"notranslate",children:"​"})):X})),ui.jsx(md,Rn({value:Array.isArray(I)?I.join(","):I,name:v,ref:L,"aria-hidden":!0,onChange:e=>{const t=U.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=U[t];M(n.props.value),x&&x(e,n)},tabIndex:-1,disabled:u,className:oe.nativeInput,autoFocus:o,ownerState:re},O)),ui.jsx(fd,{as:p,className:oe.icon,ownerState:re}),ui.jsx(Ju,Rn({id:`menu-${v||""}`,anchorEl:j,open:G,onClose:e=>{V(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:Rn({"aria-labelledby":m,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:Rn({},g.PaperProps,{style:Rn({minWidth:te},null!=g.PaperProps?g.PaperProps.style:null)}),children:Q}))]})}));function vd({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)),{})}const yd=h.createContext();function xd(){return h.useContext(yd)}var Sd=Wc(ui.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function wd(e){return ui.jsx(Mn,Rn({},e,{defaultTheme:Hs}))}function Cd(e){return Dr("MuiInputBase",e)}const Ed=Or("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),kd=["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","startAdornment","type","value"],Td=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Gn(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Rd=(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]},Ad=Gs("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Td})((({theme:e,ownerState:t})=>Rn({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ed.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Rn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Pd=Gs("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Rd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Rn({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 Rn({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":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] + .${Ed.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},[`&.${Ed.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"})})),Dd=ui.jsx(wd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Od=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:i,className:a,components:s={},componentsProps:l={},defaultValue:c,disabled:u,disableInjectingGlobalStyles:d,endAdornment:p,fullWidth:f=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:C,onChange:E,onClick:k,onFocus:T,onKeyDown:R,onKeyUp:A,placeholder:P,readOnly:D,renderSuffix:O,rows:I,startAdornment:M,type:N="text",value:F}=n,L=An(n,kd),q=null!=b.value?b.value:F,{current:j}=h.useRef(null!=q),z=h.useRef(),$=h.useCallback((e=>{}),[]),_=ur(b.ref,$),B=ur(v,_),H=ur(z,B),[W,V]=h.useState(!1),U=xd(),K=vd({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=U?U.focused:W,h.useEffect((()=>{!U&&u&&W&&(V(!1),C&&C())}),[U,u,W,C]);const G=U&&U.onFilled,X=U&&U.onEmpty,Y=h.useCallback((e=>{sd(e)?G&&G():X&&X()}),[G,X]);rr((()=>{j&&Y({value:q})}),[q,Y,j]);h.useEffect((()=>{Y(z.current)}),[]);let J=g,Z=b;S&&"input"===J&&(Z=Rn(I?{type:void 0,minRows:I,maxRows:I}:{type:void 0,maxRows:y,minRows:x},Z),J=_a);h.useEffect((()=>{U&&U.setAdornedStart(Boolean(M))}),[U,M]);const Q=Rn({},n,{color:K.color||"primary",disabled:K.disabled,endAdornment:p,error:K.error,focused:K.focused,formControl:U,fullWidth:f,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:M,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:m}=e;return Tr({root:["root",`color${Gn(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl","small"===p&&"sizeSmall",u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Cd,t)})(Q),te=s.Root||Ad,ne=l.root||{},re=s.Input||Pd;return Z=Rn({},Z,l.input),ui.jsxs(h.Fragment,{children:[!d&&Dd,ui.jsxs(te,Rn({},ne,!ha(te)&&{ownerState:Rn({},Q,ne.ownerState)},{ref:t,onClick:e=>{z.current&&e.currentTarget===e.target&&z.current.focus(),k&&k(e)}},L,{className:Xo(ee.root,ne.className,a),children:[M,ui.jsx(yd.Provider,{value:null,children:ui.jsx(re,Rn({ownerState:Q,"aria-invalid":K.error,"aria-describedby":r,autoComplete:o,autoFocus:i,defaultValue:c,disabled:K.disabled,id:m,onAnimationStart:e=>{Y("mui-auto-fill-cancel"===e.animationName?z.current:{value:"x"})},name:w,placeholder:P,readOnly:D,required:K.required,rows:I,value:q,onKeyDown:R,onKeyUp:A,type:N},Z,!ha(re)&&{as:J,ownerState:Rn({},Q,Z.ownerState)},{ref:H,className:Xo(ee.input,Z.className),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||z.current;if(null==t)throw new Error(Bn(1));Y({value:t.value})}b.onChange&&b.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(T&&T(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):V(!0))}}))}),p,O?O(Rn({},K,{startAdornment:M})):null]}))]})}));function Id(e){return Dr("MuiInput",e)}const Md=Rn({},Ed,Or("MuiInput",["root","underline","input"])),Nd=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],Fd=Gs(Ad,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Td(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Rn({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Md.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Md.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&: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(.${Md.disabled}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Md.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Ld=Gs(Pd,{name:"MuiInput",slot:"Input",overridesResolver:Rd})({}),qd=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiInput"}),{disableUnderline:r,components:o={},componentsProps:i,fullWidth:a=!1,inputComponent:s="input",multiline:l=!1,type:c="text"}=n,u=An(n,Nd),d=(e=>{const{classes:t,disableUnderline:n}=e;return Rn({},t,Tr({root:["root",!n&&"underline"],input:["input"]},Id,t))})(n),p={root:{ownerState:{disableUnderline:r}}},f=i?zn(i,p):p;return ui.jsx(Od,Rn({components:Rn({Root:Fd,Input:Ld},o),componentsProps:f,fullWidth:a,inputComponent:s,multiline:l,ref:t,type:c},u,{classes:d}))}));function jd(e){return Dr("MuiFilledInput",e)}qd.muiName="Input";const zd=Rn({},Ed,Or("MuiFilledInput",["root","underline","input"])),$d=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],_d=Gs(Ad,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Td(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Rn({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${zd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${zd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!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"},[`&.${zd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zd.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&: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(.${zd.disabled}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Rn({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),Bd=Gs(Pd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Rd})((({theme:e,ownerState:t})=>Rn({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),Hd=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiFilledInput"}),{components:r={},componentsProps:o,fullWidth:i=!1,inputComponent:a="input",multiline:s=!1,type:l="text"}=n,c=An(n,$d),u=Rn({},n,{fullWidth:i,inputComponent:a,multiline:s,type:l}),d=(e=>{const{classes:t,disableUnderline:n}=e;return Rn({},t,Tr({root:["root",!n&&"underline"],input:["input"]},jd,t))})(n),p={root:{ownerState:u},input:{ownerState:u}},f=o?zn(o,p):p;return ui.jsx(Od,Rn({components:Rn({Root:_d,Input:Bd},r),componentsProps:f,fullWidth:i,inputComponent:a,multiline:s,ref:t,type:l},c,{classes:d}))}));var Wd;Hd.muiName="Input";const Vd=["children","classes","className","label","notched"],Ud=Gs("fieldset")({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%"}),Kd=Gs("legend")((({ownerState:e,theme:t})=>Rn({float:"unset",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Rn({display:"block",width:"auto",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})}))));function Gd(e){return Dr("MuiOutlinedInput",e)}const Xd=Rn({},Ed,Or("MuiOutlinedInput",["root","notchedOutline","input"])),Yd=["components","fullWidth","inputComponent","label","multiline","notched","type"],Jd=Gs(Ad,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Td})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Rn({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Xd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Xd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Xd.focused} .${Xd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Xd.error} .${Xd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Xd.disabled} .${Xd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Rn({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Zd=Gs((function(e){const{className:t,label:n,notched:r}=e,o=An(e,Vd),i=null!=n&&""!==n,a=Rn({},e,{notched:r,withLabel:i});return ui.jsx(Ud,Rn({"aria-hidden":!0,className:t,ownerState:a},o,{children:ui.jsx(Kd,{ownerState:a,children:i?ui.jsx("span",{children:n}):Wd||(Wd=ui.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}})),Qd=Gs(Pd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Rd})((({theme:e,ownerState:t})=>Rn({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),ep=h.forwardRef((function(e,t){var n;const r=Vs({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:c,type:u="text"}=r,d=An(r,Yd),p=(e=>{const{classes:t}=e;return Rn({},t,Tr({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Gd,t))})(r),f=xd(),m=vd({props:r,muiFormControl:f,states:["required"]}),g=Rn({},r,{color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:f,fullWidth:i,hiddenLabel:m.hiddenLabel,multiline:l,size:m.size,type:u});return ui.jsx(Od,Rn({components:Rn({Root:Jd,Input:Qd},o),renderSuffix:e=>ui.jsx(Zd,{ownerState:g,className:p.notchedOutline,label:null!=s&&""!==s&&m.required?n||(n=ui.jsxs(h.Fragment,{children:[s," ","*"]})):s,notched:void 0!==c?c:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:i,inputComponent:a,multiline:l,ref:t,type:u},d,{classes:Rn({},p,{notchedOutline:null})}))}));var tp,np;ep.muiName="Input";const rp=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],op={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Us(e)&&"variant"!==e,slot:"Root"},ip=Gs(qd,op)(""),ap=Gs(ep,op)(""),sp=Gs(Hd,op)(""),lp=h.forwardRef((function(e,t){const n=Vs({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:c=Sd,id:u,input:d,inputProps:p,label:f,labelId:m,MenuProps:g,multiple:b=!1,native:v=!1,onClose:y,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=n,k=An(n,rp),T=v?id:bd,R=vd({props:n,muiFormControl:xd(),states:["variant"]}).variant||E,A=d||{standard:tp||(tp=ui.jsx(ip,{})),outlined:ui.jsx(ap,{label:f}),filled:np||(np=ui.jsx(sp,{}))}[R],P=(e=>{const{classes:t}=e;return t})(Rn({},n,{variant:R,classes:i})),D=ur(t,A.ref);return ui.jsx(h.Fragment,{children:h.cloneElement(A,Rn({inputComponent:T,inputProps:Rn({children:o,IconComponent:c,variant:R,type:void 0,multiple:b},v?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:g,onClose:y,onOpen:x,open:S,renderValue:w,SelectDisplayProps:Rn({id:u},C)},p,{classes:p?zn(P,p.classes):P},d?d.props.inputProps:{})},b&&v&&"outlined"===R?{notched:!0}:{},{ref:D,className:Xo(A.props.className,a)},!d&&{variant:R},k))})}));function cp(e){return Dr("MuiIconButton",e)}lp.muiName="Select";const up=Or("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),dp=["edge","children","className","color","disabled","disableFocusRipple","size"],pp=Gs(zc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Gn(n.color)}`],n.edge&&t[`edge${Gn(n.edge)}`],t[`size${Gn(n.size)}`]]}})((({theme:e,ownerState:t})=>Rn({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ni(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>Rn({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Rn({color:(e.vars||e).palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ni(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${up.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),fp=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=An(n,dp),d=Rn({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return Tr({root:["root",n&&"disabled","default"!==r&&`color${Gn(r)}`,o&&`edge${Gn(o)}`,`size${Gn(i)}`]},cp,t)})(d);return ui.jsx(pp,Rn({className:Xo(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t,ownerState:d},u,{children:o}))}));function mp(e){return Dr("MuiTableCell",e)}const gp=Or("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),hp=["align","className","component","padding","scope","size","sortDirection","variant"],bp=Gs("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Gn(n.size)}`],"normal"!==n.padding&&t[`padding${Gn(n.padding)}`],"inherit"!==n.align&&t[`align${Gn(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Rn({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Li(Ni(e.palette.divider,1),.88):Fi(Ni(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${gp.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),vp=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:c,variant:u}=n,d=An(n,hp),p=h.useContext(fl),f=h.useContext(Hl),m=f&&"head"===f.variant;let g;g=i||(m?"th":"td");let b=s;!b&&m&&(b="col");const v=u||f&&f.variant,y=Rn({},n,{align:r,component:g,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:"head"===v&&p&&p.stickyHeader,variant:v}),x=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return Tr({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${Gn(r)}`,"normal"!==o&&`padding${Gn(o)}`,`size${Gn(i)}`]},mp,t)})(y);let S=null;return c&&(S="asc"===c?"ascending":"descending"),ui.jsx(bp,Rn({as:g,ref:t,className:Xo(x.root,o),"aria-sort":S,scope:b,ownerState:y},d))})),yp=Ll("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),xp=Ll(Qs,{shouldForwardProp:e=>"tableTheme"!==e})((({tableTheme:e,theme:t})=>({height:48,display:"flex",justifyContent:"flex-end",alignItems:"center",paddingRight:t.spacing(1),boxShadow:"none",borderStyle:"solid",borderWidth:"0px 0px 1px 0px",borderRadius:0,borderColor:e.pagination.borderColor,color:e.pagination.color,backgroundColor:e.backgroundColor}))),Sp=Ll(lp,{shouldForwardProp:e=>"paginationTheme"!==e})((({paginationTheme:e})=>({backgroundColor:"inherit","& .MuiNativeSelect-icon":{color:e.iconColor}}))),wp=Ll(fp,{shouldForwardProp:e=>"disabledCondition"!==e&&"paginationTheme"!==e})((({disabledCondition:e,paginationTheme:t})=>({color:e?t.disabledIconColor:t.iconColor,cursor:e?"default":"pointer",height:"32px"}))),Cp=Ll(ru,{shouldForwardProp:e=>"paginationNeeded"!==e&&"bodyCellStyle"!==e})((({paginationNeeded:e,bodyCellStyle:t})=>({"tr :last-child":{borderRight:e&&0},"tr :first-child":{borderLeft:!e&&"1px solid rgb(217, 217, 217)"},"& td, th":{fontSize:t.fontSize,padding:t.padding,userSelect:"none"}}))),Ep=Ll(Xl,{shouldForwardProp:e=>"bodyCellStyle"!==e})((({hover:e,bodyCellStyle:t})=>e?{"&&:hover":{"& td:not(.selected), th:not(.selected)":{backgroundColor:t.hoverBackgroundColor,color:t.hoverFontColor}}}:{})),kp=Ll(Xl,{shouldForwardProp:e=>"paginationNeeded"!==e})((({paginationNeeded:e})=>({"& :last-child":{borderRight:e&&0},"th:first-of-type":{borderLeft:!e&&"1px solid rgb(217, 217, 217)"}}))),Tp=Ll(Jc,{shouldForwardProp:e=>"headerStyle"!==e})((({headerStyle:e})=>({"&.Mui-active .MuiTableSortLabel-icon":{color:e.sortLabelColor}}))),Rp=Ll("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),Ap=Ll(vp,{shouldForwardProp:e=>"isTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,isTop:t,headRowHeight:n})=>({...e,fontWeight:"bold",position:"sticky",borderWidth:t?"0px 1px 2px 0px":"2px 1px 1px 0px",top:t&&n,bottom:!t&&0,marginTop:0}))),Pp=Ll(Qs,{shouldForwardProp:e=>"tableTheme"!==e&&"paginationNeeded"!==e})((({tableTheme:e,paginationNeeded:t})=>({borderWidth:t?"0px 1px 0px":"0px",borderStyle:"solid",borderColor:e.borderColor,height:"100%",backgroundColor:e.tableBackgroundColorFromTheme,boxShadow:"none",borderRadius:"unset"}))),Dp=Ll(Bl,{shouldForwardProp:e=>"fullHeight"!==e&&"constraints"!==e})((({fullHeight:e,constraints:t})=>({height:e?"100%":"calc(100% - 49px)",overflow:t.active?"hidden":"auto"}))),Op=()=>b.createElement(b.Fragment,null,b.createElement(yp,{id:"sn-table-announcer--01","aria-live":"polite","aria-atomic":"true"}),b.createElement(yp,{id:"sn-table-announcer--02","aria-live":"polite","aria-atomic":"true"})),Ip={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Mp=e=>parseInt(e.repeat(2/e.length),16),Np=e=>{const t=Math.floor((e.length-1)/3),n=((e,t)=>e.match(new RegExp(`.{${t}}`,"g")))(e.slice(1),t),[r,o,i,a]=n.map(Mp);return void 0!==a?`rgba(${r},${o},${i},${a/255})`:`rgb(${r},${o},${i})`};function Fp(e){let t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return`rgb(${t[1]},${t[2]},${t[3]})`;if(t=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return`rgba(${t[1]},${t[2]},${t[3]},${t[4]})`;if(t=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e),t){const e=Math.round(+t[1]/2.55)/100;return`rgba(${t[2]},${t[3]},${t[4]},${e})`}if(t=/^#(?:(?:[\da-f]{3}){1,2}|(?:[\da-f]{4}){1,2})$/i.exec(e),t)return Np(e);const n=e&&Ip[e.toLowerCase()];return n?void 0!==n.a?`rgba(${n.r},${n.g},${n.b},${n.a})`:`rgb(${n.r},${n.g},${n.b})`:"none"}function Lp(e){if(null==e)return!1;const t=Fp(e),n=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t)||/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),r=null==n?void 0:n[1],o=null==n?void 0:n[2],i=null==n?void 0:n[3];return!!(void 0!==r&&void 0!==o&&void 0!==i)&&.299*+r+.587*+o+.114*+i<125}let qp,jp,zp,$p;!function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(qp||(qp={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_ALL_ROWS="updateAllRows"}(jp||(jp={})),function(e){e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c"}(zp||(zp={})),function(e){e.BORDER_STYLE="solid",e.BODY_BORDER="0px 1px 1px 0px",e.HEAD_BORDER="1px 1px 1px 0px",e.HEAD_CURSOR="pointer",e.HEAD_BACKGROUND_LIGHT="#FAFAFA",e.HEAD_BACKGROUND_DARK="#323232",e.SORT_LABEL_LIGHT="rgba(255,255,255,0.9)",e.SORT_LABEL_DARK="rgba(0, 0, 0, 0.54)",e.FONT_COLOR="#404040",e.WHITE="#fff",e.HOVER_BACKGROUND="#f4f4f4",e.SELECTED_BACKGROUND="#009845",e.EXCLUDED_BACKGROUND="repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"}($p||($p={}));const _p={SELECTED:{color:$p.WHITE,background:$p.SELECTED_BACKGROUND,selectedCellClass:qp.SELECTED},POSSIBLE:{color:$p.FONT_COLOR,background:$p.WHITE}},Bp=e=>!!e&&JSON.stringify(e)!==JSON.stringify({index:-1,color:null});function Hp(e){if(e&&(null!=e&&e.fontSize||"padding"in e)){let t;return null!=e&&e.padding?({padding:t}=e):null!=e&&e.fontSize&&(t=`${e.fontSize/2}px ${e.fontSize}px`),t}}function Wp(e,t,n={}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const Vp=e=>Lp(e)?$p.WHITE:$p.FONT_COLOR,Up=(e,t,n)=>{const r=t.getStyle("object",`straightTable.${e}`,"fontFamily"),o=t.getStyle("object",`straightTable.${e}`,"color"),i=t.getStyle("object",`straightTable.${e}`,"fontSize"),a={fontFamily:r,color:Bp(null==n?void 0:n.fontColor)?Wp($p.FONT_COLOR,t,null==n?void 0:n.fontColor):o,fontSize:(null==n?void 0:n.fontSize)&&`${n.fontSize}px`||i,padding:Hp(n),borderStyle:$p.BORDER_STYLE,borderColor:t.table.body.borderColor};return Object.keys(a).forEach((e=>{const t=e;null==a[t]&&delete a[t]})),a};function Kp(e,t){var n,r,o;const i=null===(n=e.components)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.header,a=Up("header",t,i);a.cursor=$p.HEAD_CURSOR,a.borderWidth=$p.HEAD_BORDER;const s=Lp(a.color)?$p.HEAD_BACKGROUND_LIGHT:$p.HEAD_BACKGROUND_DARK;return a.backgroundColor=t.table.isBackgroundTransparentColor?s:function(e){if(void 0!==e){const t=Fp(e),n=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t);if(n)return`rgb(${n[1]},${n[2]},${n[3]})`}return e}(t.table.backgroundColor),a.sortLabelColor=null!==(o=a.color)&&void 0!==o?o:Lp(a.backgroundColor)?$p.SORT_LABEL_LIGHT:$p.SORT_LABEL_DARK,a}function Gp(e,t){var n,r;const o=null===(n=e.components)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.content,i=Up("content",t,o);i.borderWidth=$p.BODY_BORDER;const a=null==o?void 0:o.hoverColor,s=null==o?void 0:o.hoverFontColor,l=t.getStyle("object","","straightTable.content.hover.backgroundColor"),c=t.getStyle("object","","straightTable.content.hover.color"),u=Bp(s)||!!c,d=Bp(a)||!!l,p=u||d;let f;f=Bp(a)?Wp($p.HOVER_BACKGROUND,t,a):l||(u?"":$p.HOVER_BACKGROUND);const m=p?Wp(Vp(f),t,Bp(s)?s:c):"";return{...i,hoverBackgroundColor:f,hoverFontColor:m}}function Xp(e){return t=>{const{cell:n,column:r,styling:o}=t,i=y((()=>function(e,t,n){const r={};return t.qValues.forEach(((e,t)=>{const o=e.qText&&Fp(e.qText);o&&"none"!==o&&(r[n[t]]=o)})),r.cellBackgroundColor&&!r.cellForegroundColor&&(r.cellForegroundColor=Vp(r.cellBackgroundColor)),{...e,color:r.cellForegroundColor||e.color,backgroundColor:r.cellBackgroundColor||e.backgroundColor}}(o,n.qAttrExps,r.stylingIDs)),[o,n.qAttrExps,r.stylingIDs]);return b.createElement(e,pl({},t,{styling:i}))}}const Yp=new Map;function Jp(e,t){const n=function(e){return Yp.get(e)}(e),[r,o]=S(n),[,i]=P((e=>e+1),0),a=w(t),s=w(),l=r();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const c=y((()=>t(l)),[l,t]);return x((()=>{a.current=t,s.current=c}),[l,c,t]),x((()=>{const e=e=>{(a.current&&a.current(e))!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),c}const Zp=(e,t,n)=>{const r=Object.keys(n).length,o=r>=Object.keys(t).length;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},Qp=e=>e.shiftKey&&e.key.includes("Arrow"),ef=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l={};if(-1===o)n.begin(["/qHyperCubeDef"]);else{if(o!==i.colIdx)return e;l={...r}}return l=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?{[r]:o}:(void 0!==e[r]?delete e[r]:e[r]=o,{...e})})(l,i,s),Zp(a,r,l),Object.keys(l).length?(n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(l),[i.colIdx]]}),{...e,rows:l,colIdx:i.colIdx}):(n.cancel(),{...e,rows:l,colIdx:-1})},tf=(e,t)=>{var n;const{api:r,rows:o,colIdx:i,allRows:a,firstCell:s}=e,{cell:l,announce:c,evt:u}=t;let d={};return s||"key"in u&&Qp(u)?(-1===i?r.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,n,r,o)=>{const i={...t};if("key"in r&&Qp(r)){i[n.qElemNumber]=n.rowIdx;const t=r.key===zp.DOWN?1:-1;return i[e[n.rawRowIdx+t][`col-${n.rawColIdx}`].qElemNumber]=n.rowIdx+t,i}if(!o)return t;const a=Math.min(o.rawRowIdx,n.rawRowIdx),s=Math.max(o.rawRowIdx,n.rawRowIdx);for(let t=a;t<=s;t++){const n=e[t][`col-${o.rawColIdx}`];i[n.qElemNumber]=n.rowIdx}return i})(a,d,l,u,s),Zp(c,o,d),{...e,rows:d,colIdx:null!==(n=null==s?void 0:s.colIdx)&&void 0!==n?n:l.colIdx,isSelectMultiValues:!0}):e},nf=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(n),[r]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},rf=(e,t)=>{switch(t.type){case jp.SELECT:return ef(e,t.payload);case jp.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.colIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case jp.SELECT_MOUSE_UP:return((e,t)=>nf(e.isSelectMultiValues||e.firstCell!==t.cell?e:ef(e,t)))(e,t.payload);case jp.SELECT_MULTI_ADD:return tf(e,t.payload);case jp.SELECT_MULTI_END:return nf(e);case jp.RESET:return e.api.isModal()?e:{...e,rows:{},colIdx:-1};case jp.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case jp.UPDATE_ALL_ROWS:return{...e,allRows:t.payload.allRows};default:throw new Error("reducer called with invalid action type")}};function of(e,t){const n=w(!1);x((()=>{n.current?e():n.current=!0}),t)}const af=R({}),sf=function(e){const t=R([()=>{},new Set]);return Yp.set(e,t),({children:n,value:r})=>{const o=w(r),i=w(new Set);x((()=>{o.current=r,i.current.forEach((e=>{e(r)}))}),[r]);const a=A((()=>o.current),[o]),s=y((()=>[a,i.current]),[o]);return b.createElement(e.Provider,{value:r},b.createElement(t.Provider,{value:s},n))}}(af),lf=({children:e,selectionsAPI:t,tableRows:n=[],cellCoordMock:r,selectionDispatchMock:o})=>{const[i,a]=v(0),[s,l]=v(r||[0,0]),[c,u]=P(rf,{allRows:n,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return of((()=>{u({type:jp.UPDATE_ALL_ROWS,payload:{allRows:n}})}),[n]),b.createElement(sf,{value:{headRowHeight:i,setHeadRowHeight:a,focusedCellCoord:s,setFocusedCellCoord:l,selectionState:c,selectionDispatch:o||u}},e)},cf=(e,t)=>{var n;return null===(n=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[t[1]]},uf=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),df=({focusType:e,cell:t})=>{if(t)switch(e){case"focus":t.focus(),t.setAttribute("tabIndex","0");break;case"blur":t.blur(),t.setAttribute("tabIndex","-1");break;case"addTab":t.setAttribute("tabIndex","0");break;case"removeTab":t.setAttribute("tabIndex","-1")}},pf=(e,t,n,r,o)=>{df({focusType:"removeTab",cell:e.target});const i=((e,t,n,r={top:0,bottom:0})=>{const o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length;let[a,s]=n;switch(e.key){case"ArrowDown":a<o-1-r.bottom&&a++;break;case"ArrowUp":a>r.top&&a--;break;case"ArrowRight":if(r.top>0)break;s<i-1?s++:a<o-1&&(a++,s=0);break;case"ArrowLeft":if(r.top>0)break;s>0?s--:a>0&&(a--,s=i-1)}return[a,s]})(e,t,n,o),a=cf(t,i);return df({focusType:"focus",cell:a}),r(i),a},ff=(e,t,n,r)=>{var o;(df({focusType:"removeTab",cell:uf(t)}),n(e),r.enabled&&!r.active)?null===(o=r.focus)||void 0===o||o.call(r):df({focusType:"addTab",cell:cf(t,e)})},mf=(e,t,n)=>{var r,o,i;const a=null===(r=e.closest(".qv-object-wrapper"))||void 0===r||null===(o=r.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement;a?a.focus():null===(i=t.focusSelection)||void 0===i||i.call(t,n)};function gf(e){return t=>{const{cell:n,styling:r,announce:o,onMouseDown:i,areBasicFeaturesEnabled:a}=t,s=Jp(af,(e=>((e,t)=>{const{colIdx:n,rows:r,api:o}=t;let i=qp.INACTIVE;return o.isModal()&&(i=n!==e.colIdx?qp.EXCLUDED:void 0!==r[e.qElemNumber]?qp.SELECTED:qp.POSSIBLE),i})(n,e.selectionState))),l=Jp(af,(e=>e.selectionDispatch)),{handleMouseDown:c,handleMouseOver:u,handleMouseUp:d}=((e,t,n,r,o)=>({handleMouseDown:t=>{if(null==n||n(t),o&&e.isSelectable){const t=()=>r({type:jp.SELECT_MULTI_END});r({type:jp.SELECT_MOUSE_DOWN,payload:{cell:e,mouseupOutsideCallback:t}})}},handleMouseOver:n=>{o&&1===n.buttons&&r({type:jp.SELECT_MULTI_ADD,payload:{cell:e,evt:n,announce:t}})},handleMouseUp:n=>{o&&0===n.button?r({type:jp.SELECT_MOUSE_UP,payload:{cell:e,evt:n,announce:t}}):!o&&e.isSelectable&&r({type:jp.SELECT,payload:{cell:e,evt:n,announce:t}})}}))(n,o,i,l,a),p=function(e,t){let n={};switch(t){case qp.SELECTED:n=_p.SELECTED;break;case qp.POSSIBLE:n=_p.POSSIBLE;break;case qp.EXCLUDED:n={background:`${$p.EXCLUDED_BACKGROUND}, ${e.backgroundColor}`,selectedCellClass:qp.EXCLUDED}}return{...e,...n}}(r,s);return b.createElement(e,pl({},t,{styling:p,onMouseUp:d,onMouseDown:c,onMouseOver:u}))}}function hf(e,t){let n=(r=vp,e=>{const{styling:{selectedCellClass:t,...n},component:o,align:i,children:a,scope:s,tabIndex:l,onKeyDown:c,onMouseDown:u,onKeyUp:d,onMouseUp:p,onMouseOver:f}=e;return b.createElement(r,{component:o,scope:s,align:i,tabIndex:l,className:`sn-table-cell ${t||""}`,sx:n,onKeyDown:c,onMouseDown:u,onKeyUp:d,onMouseUp:p,onMouseOver:f},a)});var r;return t&&(n=gf(n)),e&&(n=Xp(n)),n}const bf=async e=>{var t,n;const r=e.target,o=null!==(t=r.children[0])&&void 0!==t&&t.firstChild?r.children[0].firstChild.textContent:null===(n=r.firstChild)||void 0===n?void 0:n.textContent;try{o&&await navigator.clipboard.writeText(String(o))}catch(e){console.log(e)}},vf=e=>e.shiftKey&&(e.ctrlKey||e.metaKey),yf=e=>{e.stopPropagation(),e.preventDefault()},xf=(e,t=!1,n=!1,r=!0)=>{const o=n&&t,i=!e.shiftKey&&(r||!o),a=e.shiftKey&&!o;return e.key===zp.ESC&&!t||e.key===zp.TAB&&(i||a)||(e.key===zp.LEFT||e.key===zp.RIGHT)&&vf(e)},Sf=({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:s,paginationNeeded:l,totalsPosition:c,selectionsAPI:u,areBasicFeaturesEnabled:d})=>{if(e.target.classList.contains("excluded"))return void yf(e);const p=u.isModal();if(xf(e,p,s.enabled,l))return;yf(e);const f="top"===c?2:1,m=[n.rawRowIdx+f,n.rawColIdx],g={top:p?f:0,bottom:p&&"bottom"===c?1:0};switch(e.key){case zp.UP:case zp.DOWN:{e.key===zp.UP&&((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(null==n||!n.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[r])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a)return;if(a.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-a.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})([n.rawRowIdx,n.rawColIdx],t);const s=pf(e,t,m,i,g);((e,t,n,r)=>n.shiftKey&&(n.key===zp.UP&&0!==r.rawRowIdx||n.key===zp.DOWN&&!r.isLastRow)&&e&&t&&r.isSelectable)(d,o,e,n)?r({type:jp.SELECT_MULTI_ADD,payload:{cell:n,evt:e,announce:a}}):((e,t,n)=>{n&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,s,p);break}case zp.LEFT:case zp.RIGHT:pf(e,t,m,i,g);break;case zp.SPACE:n.isSelectable&&o&&r({type:jp.SELECT,payload:{cell:n,evt:e,announce:a}});break;case zp.ENTER:p&&(u.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case zp.ESC:u.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case zp.TAB:mf(e.target,s,e.shiftKey);break;case zp.C:d&&(e.ctrlKey||e.metaKey)&&bf(e)}};function wf({rootElement:e,tableData:t,theme:n,layout:r,keyboard:o,selectionsAPI:i,areBasicFeaturesEnabled:a}){const{columns:s,paginationNeeded:l,totalsPosition:c,rows:u}=t,d=Jp(af,(e=>e.headRowHeight)),p=Jp(af,(e=>e.setFocusedCellCoord)),f=y((()=>function(e,t){const n=Kp(e,t);return{...Gp(e,t),backgroundColor:n.backgroundColor}}(r,n)),[r,n.name()]),m="top"===c;return b.createElement(kp,{paginationNeeded:l,className:"sn-table-row"},s.map(((t,n)=>{const r=[m?1:u.length+1,n];return b.createElement(Ap,{totalsStyle:f,headRowHeight:d,isTop:m,key:t.id,align:t.align,className:"sn-table-cell",tabIndex:-1,onKeyDown:t=>{((e,t,n,r,o,i)=>{if(o)yf(e);else if(!xf(e))switch(yf(e),e.key){case zp.LEFT:case zp.RIGHT:case zp.UP:case zp.DOWN:pf(e,t,n,r);break;case zp.C:i&&(e.ctrlKey||e.metaKey)&&bf(e)}})(t,e,r,p,i.isModal(),a)},onMouseDown:()=>{ff(r,e,p,o)}},t.totalInfo)})))}var Cf=D(wf);function Ef({rootElement:e,tableData:t,constraints:n,selectionsAPI:r,layout:o,theme:i,setShouldRefocus:a,keyboard:s,tableWrapperRef:l,announce:c,areBasicFeaturesEnabled:u}){var d,p,f;const{rows:m,columns:g,paginationNeeded:h,totalsPosition:v}=t,S=JSON.stringify(g.map((e=>e.stylingIDs))),w=Jp(af,(e=>e.setFocusedCellCoord)),C=Jp(af,(e=>e.selectionDispatch)),E=!n.active&&!n.select,k=y((()=>JSON.parse(S).map((e=>hf(!!e.length,E)))),[S,E]),T=y((()=>Gp(o,i)),[o,i]),R=null===(d=o.components)||void 0===d||null===(p=d[0])||void 0===p||null===(f=p.content)||void 0===f?void 0:f.hoverEffect,A={color:T.color,backgroundColor:i.table.backgroundColor};x((()=>{!function({api:e,selectionDispatch:t,setShouldRefocus:n,keyboard:r,tableWrapperRef:o}){const i=()=>{t({type:jp.RESET})},a=()=>{t({type:jp.CLEAR})},s=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))n();else if(r.enabled){var t;null===(t=r.blur)||void 0===t||t.call(r,!0)}i()};e.on("deactivated",i),e.on("canceled",i),e.on("confirmed",s),e.on("cleared",a)}({api:r,selectionDispatch:C,setShouldRefocus:a,keyboard:s,tableWrapperRef:l})}),[]);const P=b.createElement(Cf,{rootElement:e,tableData:t,theme:i,layout:o,keyboard:s,selectionsAPI:r,areBasicFeaturesEnabled:u});return b.createElement(Cp,{paginationNeeded:h,bodyCellStyle:T},"top"===v?P:void 0,m.map((t=>b.createElement(Ep,{bodyCellStyle:T,hover:R,tabIndex:-1,key:t.key,className:"sn-table-row"},g.map(((n,o)=>{const{id:i,align:a}=n,l=t[i],d=k[o];return d&&b.createElement(d,{scope:0===o?"row":null,component:0===o?"th":null,cell:l,column:n,key:i,align:a,styling:A,tabIndex:-1,announce:c,areBasicFeaturesEnabled:u,onKeyDown:t=>{Sf({evt:t,rootElement:e,selectionsAPI:r,cell:l,selectionDispatch:C,isSelectionsEnabled:E,setFocusedCellCoord:w,announce:c,keyboard:s,paginationNeeded:h,totalsPosition:v,areBasicFeaturesEnabled:u})},onKeyUp:e=>((e,t,n)=>{n&&e.key===zp.SHIFT&&t({type:jp.SELECT_MULTI_END})})(e,C,u),onMouseDown:()=>((e,t,n,r,o)=>{const{rawRowIdx:i,rawColIdx:a}=e;ff(["top"===o?i+2:i+1,a],t,n,r)})(l,e,w,s,v)},l.qText)}))))),"bottom"===v?P:void 0)}var kf=D(Ef);function Tf(e){return Dr("MuiTableHead",e)}Or("MuiTableHead",["root"]);const Rf=["className","component"],Af=Gs("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Pf={variant:"head"},Df="thead",Of=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiTableHead"}),{className:r,component:o=Df}=n,i=An(n,Rf),a=Rn({},n,{component:o}),s=(e=>{const{classes:t}=e;return Tr({root:["root"]},Tf,t)})(a);return ui.jsx(Hl.Provider,{value:Pf,children:ui.jsx(Af,Rn({as:o,className:Xo(s.root,r),ref:t,role:o===Df?null:"rowgroup",ownerState:a},i))})}));function If({rootElement:e,tableData:t,theme:n,layout:r,changeSortOrder:o,constraints:i,translator:a,selectionsAPI:s,keyboard:l,areBasicFeaturesEnabled:c}){var u;const{columns:d,paginationNeeded:p}=t,f=Jp(af,(e=>e.setHeadRowHeight)),m=Jp(af,(e=>0===e.focusedCellCoord[0])),g=Jp(af,(e=>e.setFocusedCellCoord)),h=y((()=>Kp(r,n)),[r,n]),v=w(),S=!i.active&&!s.isModal();return x((()=>{v.current&&f(v.current.getBoundingClientRect().height)}),[v.current,h.fontSize,null===(u=v.current)||void 0===u?void 0:u.getBoundingClientRect().height]),b.createElement(Of,null,b.createElement(kp,{ref:v,paginationNeeded:p,className:"sn-table-row"},d.map(((t,n)=>{const s=0!==n||l.enabled?-1:0,u=r.qHyperCube.qEffectiveInterColumnSortOrder[0]===t.dataColIdx,d=u?`${t.sortDirection}ending`:void 0;return b.createElement(vp,{sx:h,key:t.id,align:t.align,className:"sn-table-head-cell sn-table-cell",tabIndex:s,"aria-sort":d,"aria-pressed":u,onKeyDown:i=>{(({evt:e,rootElement:t,cellCoord:n,column:r,changeSortOrder:o,layout:i,isInteractionEnabled:a,setFocusedCellCoord:s,areBasicFeaturesEnabled:l})=>{if(a){if(!xf(e))switch(yf(e),e.key){case zp.LEFT:case zp.RIGHT:case zp.DOWN:pf(e,t,n,s);break;case zp.SPACE:case zp.ENTER:o(i,r);break;case zp.C:l&&(e.ctrlKey||e.metaKey)&&bf(e)}}else yf(e)})({evt:i,rootElement:e,cellCoord:[0,n],column:t,changeSortOrder:o,layout:r,isInteractionEnabled:S,setFocusedCellCoord:g,areBasicFeaturesEnabled:c})},onMouseDown:()=>((e,t,n,r)=>{ff([0,e],t,n,r)})(n,e,g,l),onClick:()=>S&&o(r,t)},b.createElement(Tp,{headerStyle:h,active:u,title:i.passive?void 0:t.sortDirection,direction:t.sortDirection,tabIndex:-1,onMouseDown:t=>((e,t,n)=>{e.preventDefault(),df({focusType:"focus",cell:cf(t,[0,n])})})(t,e,n)},t.label,m&&b.createElement(Rp,{"data-testid":`VHL-for-col-${n}`},a.get("SNTable.SortLabel.PressSpaceToSort"))))}))))}var Mf=D(If);function Nf({children:e,theme:t,footerContainer:n}){return n?I.createPortal(e,n):b.createElement(xp,{tableTheme:t.table},e)}function Ff(e){return Dr("MuiFormLabel",e)}const Lf=Or("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),qf=["children","className","color","component","disabled","error","filled","focused","required"],jf=Gs("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>Rn({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>Rn({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Lf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Lf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Lf.error}`]:{color:(e.vars||e).palette.error.main}}))),zf=Gs("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Lf.error}`]:{color:(e.vars||e).palette.error.main}}))),$f=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiFormLabel"}),{children:r,className:o,component:i="label"}=n,a=An(n,qf),s=vd({props:n,muiFormControl:xd(),states:["color","required","focused","disabled","error","filled"]}),l=Rn({},n,{color:s.color||"primary",component:i,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e;return Tr({root:["root",`color${Gn(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]},Ff,t)})(l);return ui.jsxs(jf,Rn({as:i,ownerState:l,className:Xo(c.root,o),ref:t},a,{children:[r,s.required&&ui.jsxs(zf,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}));function _f(e){return Dr("MuiInputLabel",e)}Or("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Bf=["disableAnimation","margin","shrink","variant"],Hf=Gs($f,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Lf.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>Rn({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&Rn({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&Rn({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&Rn({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"})))),Wf=h.forwardRef((function(e,t){const n=Vs({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:o}=n,i=An(n,Bf),a=xd();let s=o;void 0===s&&a&&(s=a.filled||a.focused||a.adornedStart);const l=vd({props:n,muiFormControl:a,states:["size","variant","required"]}),c=Rn({},n,{disableAnimation:r,formControl:a,shrink:s,size:l.size,variant:l.variant,required:l.required}),u=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e;return Rn({},t,Tr({root:["root",n&&"formControl",!i&&"animated",o&&"shrink","small"===r&&"sizeSmall",a],asterisk:[s&&"asterisk"]},_f,t))})(c);return ui.jsx(Hf,Rn({"data-shrink":s,ownerState:c,ref:t},i,{classes:u}))}));function Vf(e){return Dr("MuiFormControl",e)}Or("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Uf=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Kf=Gs("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>Rn({},t.root,t[`margin${Gn(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>Rn({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),Gf=h.forwardRef((function(e,t){const n=Vs({props:e,name:"MuiFormControl"}),{children:r,className:o,color:i="primary",component:a="div",disabled:s=!1,error:l=!1,focused:c,fullWidth:u=!1,hiddenLabel:d=!1,margin:p="none",required:f=!1,size:m="medium",variant:g="outlined"}=n,b=An(n,Uf),v=Rn({},n,{color:i,component:a,disabled:s,error:l,fullWidth:u,hiddenLabel:d,margin:p,required:f,size:m,variant:g}),y=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return Tr({root:["root","none"!==n&&`margin${Gn(n)}`,r&&"fullWidth"]},Vf,t)})(v),[x,S]=h.useState((()=>{let e=!1;return r&&h.Children.forEach(r,(t=>{if(!Zn(t,["Input","Select"]))return;const n=Zn(t,["Select"])?t.props.input:t;n&&function(e){return e.startAdornment}(n.props)&&(e=!0)})),e})),[w,C]=h.useState((()=>{let e=!1;return r&&h.Children.forEach(r,(t=>{Zn(t,["Input","Select"])&&sd(t.props,!0)&&(e=!0)})),e})),[E,k]=h.useState(!1);s&&E&&k(!1);const T=void 0===c||s?E:c;const R=h.useCallback((()=>{C(!0)}),[]),A={adornedStart:x,setAdornedStart:S,color:i,disabled:s,error:l,filled:w,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{k(!1)},onEmpty:h.useCallback((()=>{C(!1)}),[]),onFilled:R,onFocus:()=>{k(!0)},registerEffect:undefined,required:f,variant:g};return ui.jsx(yd.Provider,{value:A,children:ui.jsx(Kf,Rn({as:a,ownerState:v,className:Xo(y.root,o),ref:t},b,{children:r}))})})),Xf=hi({defaultTheme:Bs(),defaultClassName:"MuiBox-root",generateClassName:Ar.generate});var Yf={},Jf={};const Zf={configure:e=>{console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),Ar.configure(e)}};var Qf,em=L(Object.freeze({__proto__:null,unstable_ClassNameGenerator:Zf,capitalize:Gn,createChainedFunction:Xn,createSvgIcon:Wc,debounce:Yn,deprecatedPropType:Jn,isMuiElement:Zn,ownerDocument:Qn,ownerWindow:er,requirePropFactory:tr,setRef:nr,unstable_useEnhancedEffect:rr,unstable_useId:ar,unsupportedProp:sr,useControlled:lr,useEventCallback:cr,useForkRef:ur,useIsFocusVisible:yr}));function tm(){return Qf||(Qf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=em}(Jf)),Jf}var nm=Sl.exports;Object.defineProperty(Yf,"__esModule",{value:!0});var rm=Yf.default=void 0,om=nm(tm()),im=ci(),am=(0,om.default)((0,im.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");rm=Yf.default=am;var sm={},lm=Sl.exports;Object.defineProperty(sm,"__esModule",{value:!0});var cm=sm.default=void 0,um=lm(tm()),dm=ci(),pm=(0,um.default)((0,dm.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft");cm=sm.default=pm;var fm={},mm=Sl.exports;Object.defineProperty(fm,"__esModule",{value:!0});var gm=fm.default=void 0,hm=mm(tm()),bm=ci(),vm=(0,hm.default)((0,bm.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");gm=fm.default=vm;var ym={},xm=Sl.exports;Object.defineProperty(ym,"__esModule",{value:!0});var Sm=ym.default=void 0,wm=xm(tm()),Cm=ci(),Em=(0,wm.default)((0,Cm.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");const km={FirstPage:rm,PreviousPage:cm,NextPage:gm,LastPage:Sm=ym.default=Em,FirstPageRTL:Sm,PreviousPageRTL:gm,NextPageRTL:cm,LastPageRTL:rm},Tm=(e,t)=>{switch(e){case"selectPage":return t>700;case"rppOptions":return t>550;case"firstLast":return t>350;case"displayedRows":return t>250;default:return!1}};function Rm({theme:e,direction:t,tableData:n,pageInfo:r,setPageInfo:o,keyboard:i,translator:a,constraints:s,footerContainer:l,isSelectionMode:c,rect:u,handleChangePage:d,announce:p}){const{totalRowCount:f,totalColumnCount:m,totalPages:g,paginationNeeded:h}=n,{page:v,rowsPerPage:y,rowsPerPageOptions:x}=r;if(!h)return null;const S=e.table.pagination,w=0===v,C=v>=g-1,E=!i.enabled||i.active?0:-1,k=l?l.getBoundingClientRect().width:u.width,T=Tm("firstLast",k),R=!c&&Tm("rppOptions",k)&&m<=100,A=a.get("SNTable.Pagination.DisplayedRowsLabel",[`${v*y+1} - ${Math.min((v+1)*y,f)}`,f.toString()]),P=i.enabled?e=>((e,t,n)=>{t&&e.key===zp.TAB&&!e.shiftKey&&(yf(e),mf(e.target,n,!1))})(e,c,i):null,D=(e,n,r,o)=>{const i=km[`${r}${"rtl"===t?"RTL":""}`];return b.createElement(wp,{disabledCondition:e,paginationTheme:S,"data-testid":"pagination-action-icon-button",onClick:e?null:()=>d(n),"aria-disabled":e,"aria-label":a.get(`SNTable.Pagination.${r}`),title:s.passive?void 0:a.get(`SNTable.Pagination.${r}`),tabIndex:E,onKeyDown:o},b.createElement(i,null))},O=(e,t,n,r)=>{const o=`SNTable.Pagination.${e}`,i=`${e}-dropdown`,s={tabIndex:E,id:i,"data-testid":i,style:{color:S.color,height:30}};return b.createElement(Gf,{sx:{px:2.5}},b.createElement(Wf,{sx:{color:S.color},htmlFor:i,shrink:!1},`${a.get(o)}:`),b.createElement(Sp,{paginationTheme:S,native:!0,value:t,onChange:r,inputProps:s},n))},I=b.createElement(b.Fragment,null,x.map((e=>b.createElement("option",{key:e,value:e},e)))),M=b.createElement(b.Fragment,null,Array.from(Array(g).keys()).map(((e,t)=>b.createElement("option",{key:e,value:t},e+1))));return b.createElement(b.Fragment,null,R&&O("RowsPerPage",y,I,(e=>{o({...r,page:0,rowsPerPage:+e.target.value}),p({keys:[["SNTable.Pagination.RowsPerPageChange",e.target.value]],politeness:"assertive"})})),Tm("displayedRows",k)&&b.createElement(Xf,null,A),Tm("selectPage",k)&&O("SelectPage",v,M,(e=>d(+e.target.value))),T&&D(w,0,"FirstPage",null),D(w,v-1,"PreviousPage",null),D(C,v+1,"NextPage",T?null:P),T&&D(C,g-1,"LastPage",P))}var Am=D(Rm);const Pm=(e,t)=>{x((()=>{const n=e.current;if(!n)return;const r=e=>((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth;let{scrollLeft:o}=n,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))})(e,"rtl"===t,n);return n.addEventListener("wheel",r),()=>{n.removeEventListener("wheel",r)}}),[e,t])};function Dm(e){const{rootElement:t,tableData:n,pageInfo:r,setPageInfo:o,constraints:i,translator:a,selectionsAPI:s,theme:l,keyboard:c,direction:u,footerContainer:d,announce:p}=e,{totalColumnCount:f,totalRowCount:m,totalPages:g,paginationNeeded:h,rows:v,columns:y,totalsPosition:S}=n,{page:C,rowsPerPage:E}=r,k=s.isModal(),T=Jp(af,(e=>e.focusedCellCoord)),R=Jp(af,(e=>e.setFocusedCellCoord)),P=w(!1),D=w(),O=w(),I=A((()=>{P.current=t.getElementsByTagName("table")[0].contains(document.activeElement)}),[t]),M=A((e=>{o({...r,page:e}),p({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),g.toString()]],politeness:"assertive"})}),[r,o,g,p]);((e,t,n)=>{x((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{const r=e.currentTarget;var o;!n.enabled||r.contains(e.relatedTarget)||t.current||(r.querySelector("#sn-table-announcer--01").innerHTML="",r.querySelector("#sn-table-announcer--02").innerHTML="",null===(o=n.blur)||void 0===o||o.call(n,!1))})(e,t,n);return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}}),[e,t,n])})(O,P,c),Pm(D,u),of((()=>{df({focusType:c.active?"focus":"blur",cell:cf(t,T)})}),[c.active]),of((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:s})=>{df({focusType:"removeTab",cell:uf(t)});const l=["top"===s?2:1,e[1]],c=r?l:[0,0];if(!i.enabled||i.active){const e=n.current?"focus":"addTab";n.current=!1;const o=cf(t,c);if(df({focusType:e,cell:o}),r){var u;const e=null==o||null===(u=o.classList)||void 0===u?void 0:u.contains("selected");a({keys:[`${o.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}}o(c)})({focusedCellCoord:T,rootElement:t,shouldRefocus:P,setFocusedCellCoord:R,isSelectionMode:k,keyboard:c,announce:p,totalsPosition:S})}),[v.length,m,f,C]);const N=`${a.get("SNTable.Accessibility.RowsAndColumns",[String(v.length+1),String(y.length)])} ${a.get("SNTable.Accessibility.NavigationInstructions")}`;return b.createElement(Pp,{ref:O,tableTheme:l.table,paginationNeeded:h,dir:u,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:n,rowsPerPage:r,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:s})=>{if(vf(e)){yf(e);const a=Math.ceil(t/r)-1;e.key===zp.RIGHT&&n<a?(i(),o(n+1)):e.key===zp.LEFT&&n>0&&(i(),o(n-1))}else if(e.key===zp.ESC&&a.enabled&&!s){var l;yf(e),null===(l=a.blur)||void 0===l||l.call(a,!0)}})({evt:e,totalRowCount:m,page:C,rowsPerPage:E,handleChangePage:M,setShouldRefocus:I,keyboard:c,isSelectionMode:k})}},b.createElement(Op,null),b.createElement(Dp,{ref:D,className:"sn-table-container",fullHeight:d||i.active||!h,constraints:i,tabIndex:-1,role:"application","data-testid":"table-container"},b.createElement(vl,{stickyHeader:!0,"aria-label":N},b.createElement(Mf,e),b.createElement(kf,pl({},e,{setShouldRefocus:I,tableWrapperRef:O})))),!i.active&&b.createElement(Nf,{theme:l,footerContainer:d},b.createElement(Am,pl({},e,{handleChangePage:M,isSelectionMode:k}))))}var Om,Im={keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920},unit:"px"},Mm={MuiIconButton:{styleOverrides:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&.sprout-focus-visible":{borderColor:"#177FE6",boxShadow:"0 0 0 1px #177FE6"},"&&&:hover":{backgroundColor:"transparent"}}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiFormLabel:{styleOverrides:{root:{color:"#404040",fontSize:12,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:600,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:"#404040"},"&.Mui-error":{color:"rgba(0, 0, 0, 0.55)"},"&[optional=true]":{"&:after":{color:"rgba(0, 0, 0, 0.55)",content:"'(optional)'",fontWeight:400,marginLeft:4}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:"rgba(0, 0, 0, 0.55)",content:"'(required)'",fontWeight:400,marginLeft:4}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:14,lineHeight:16,backgroundColor:"#FFFFFF",borderRadius:3,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:"solid 1px rgba(0, 0, 0, 0.05)",borderColor:"rgba(0, 0, 0, 0.3)"},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:"solid 1px #177FE6",boxShadow:"0px 0px 0px 1px #177FE6, inset 0 2px 0 0 rgba(0, 0, 0, 0.05)"},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:"solid 1px #DC423F",boxShadow:"0px 0px 0px 1px #DC423F, inset 0 2px 0 0 rgba(0, 0, 0, 0.05)"},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:"solid 1px rgba(0, 0, 0, 0.1)",borderColor:"rgba(0, 0, 0, 0.1)",backgroundColor:"rgba(0, 0, 0, 0.05)"}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:"#404040",padding:"8px 12px","&.Mui-disabled":{opacity:.45}},notchedOutline:{borderColor:"rgba(0, 0, 0, 0.15)",borderRadius:3,boxShadow:"inset 0 2px 0 0 rgba(0, 0, 0, 0.05)"},multiline:{padding:"0"}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:"#177FE6",boxShadow:"0 0 0 2px #177FE6"}}}},MuiInputBase:{styleOverrides:{input:{fontSize:14,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:12,fontWeight:600,color:"#404040","&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:600}}}},MuiTab:{styleOverrides:{root:{fontSize:14,fontWeight:600,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:12,"&:hover":{borderBottom:"2px solid #CCCCCC",paddingBottom:10},"&.sprout-focus-visible":{boxShadow:"inset 0 0 0 2px #177FE6",backgroundColor:"rgba(0, 0, 0, 0.03)",borderRadius:3},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:"#404040","&.Mui-selected":{color:"#404040"}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:40,minHeight:48}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:"1px solid #D9D9D9",borderRight:"1px solid #D9D9D9",height:39},head:{height:41,fontWeight:600,backgroundColor:"#FAFAFA"},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:0},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:40,padding:0}},stickyHeader:{backgroundColor:"#FAFAFA",borderBottom:"1px solid #D9D9D9"}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:"1px solid #D9D9D9",borderTop:"1px solid #D9D9D9"}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:"#FAFAFA"}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:"rgba(0, 0, 0, 0.05)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},"&&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"}}}},MuiTableSortLabel:{defaultProps:{},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:"1px solid #D9D9D9"}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiNativeSelect:{styleOverrides:{select:{height:32,zIndex:1,borderRadius:3,"& em":{color:"rgba(0, 0, 0, 0.55)",WebkitFontSmoothing:"antialiased","&::after":{content:"''"}},"& ~i":{position:"absolute",right:"12px",padding:"6px"},"&[aria-expanded=true]":{backgroundColor:"rgba(0, 0, 0, 0.05)"},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&:focus":{backgroundColor:"rgba(0, 0, 0, 0.03)",borderRadius:"3px !important",border:"solid 1px #177FE6",boxShadow:"inset 0px 0px 0px 1px #177FE6"},"&$disabled":{opacity:"unset",color:"rgba(0, 0, 0, 0.3)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0)",borderColor:"rgba(0, 0, 0, 0.15)"},"& ~i":{color:"rgba(0, 0, 0, 0.3)"}}},selectMenu:{height:14},outlined:{border:"solid 1px rgba(0, 0, 0, 0.15)"}}},MuiFormControl:{styleOverrides:{root:{flexDirection:"row",alignItems:"center",paddingLeft:8,paddingRight:18}}}},Nm={mode:"light",primary:{light:"#0AAF54",main:"#009845",dark:"#0D6932",contrastText:"#FFFFFF"},secondary:{light:"#469DCD",main:"#3F8AB3",dark:"#2F607B",contrastText:"#FFFFFF"},error:{light:"#F05551",main:"#DC423F",dark:"#97322F",contrastText:"#FFFFFF"},warning:{light:"#FFC629",main:"#EF960F",dark:"#A4681C",contrastText:"#FFFFFF"},success:{light:"#0AAF54",main:"#009845",dark:"#0D6932",contrastText:"#FFFFFF"},info:{light:"#469DCD",main:"#3F8AB3",dark:"#2F607B",contrastText:"#FFFFFF"},text:{primary:"#404040",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.05,active:"rgba(0, 0, 0, 0.54)",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},amethyst:{main:"#655dc6",light:"#8D8BCE",dark:"#413885",contrastText:"#FFFFFF"},background:{paper:"#FFFFFF",default:"#F2F2F2"},divider:"rgba(0, 0, 0, 0.15)",common:{black:"#000",white:"#fff"},grey:{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"},contrastThreshold:3,tonalOffset:.2},Fm={borderRadius:3},Lm=["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)"],qm={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}},jm={fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",lineHeight:1.75},body1:{fontSize:16,lineHeight:"24px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:400},body2:{fontSize:14,lineHeight:"20px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:400},h1:{fontSize:32,lineHeight:"32px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:300},h2:{fontSize:28,lineHeight:"32px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:300},h3:{fontSize:24,lineHeight:"24px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:400},h4:{fontSize:20,lineHeight:"24px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:400},h5:{fontSize:16,fontWeight:600,lineHeight:"16px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"},h6:{fontSize:14,fontWeight:600,lineHeight:"16px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"},caption:{color:"rgba(0, 0, 0, 0.55)",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:400,fontSize:"0.8571428571428571rem",lineHeight:1.66},subtitle1:{fontSize:14,color:"rgba(0, 0, 0, 0.55)",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:400,lineHeight:1.75},subtitle2:{fontSize:12,color:"rgba(0, 0, 0, 0.55)",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:600,lineHeight:1.57},overline:{fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:400,fontSize:"0.8571428571428571rem",lineHeight:2.66,textTransform:"uppercase"}},zm={modal:1200,snackbar:1200,drawer:1200,appBar:1200,mobileStepper:1200,tooltip:1200,speedDial:1050},$m={toolbar:{minHeight:56,"@media (min-width:0px) and (orientation: landscape)":{minHeight:48},"@media (min-width:600px)":{minHeight:64}}},_m={breakpoints:Im,direction:"ltr",components:Mm,palette:Nm,shape:Fm,shadows:Lm,transitions:qm,typography:jm,zIndex:zm,mixins:$m},Bm=Object.freeze({__proto__:null,breakpoints:Im,direction:"ltr",components:Mm,palette:Nm,shape:Fm,shadows:Lm,transitions:qm,typography:jm,zIndex:zm,mixins:$m,default:_m});function Hm(e,t){const{direction:n,selectionsAPI:r,tableData:o}=e,i=function(e){return Mm&&(Mm.MuiIconButton.styleOverrides.root.padding="0px 7px",Mm.MuiTable.styleOverrides.root={},Mm.MuiTableSortLabel.styleOverrides.root.color="inherit",Mm.MuiTableSortLabel.styleOverrides.root["&.Mui-active"].color="inherit",Mm.MuiTableSortLabel.styleOverrides.root["&:hover"].color="inherit",Mm.MuiTableRow.styleOverrides.root["&&:hover"].backgroundColor="rgba(0, 0, 0, 0)",Mm.MuiTableCell.styleOverrides.root.padding="7px 14px",Mm.MuiTableCell.styleOverrides.root.height="auto",Mm.MuiTableCell.styleOverrides.root.lineHeight="130%",Mm.MuiTableCell.styleOverrides.head.height="auto",Mm.MuiTableCell.styleOverrides.head.lineHeight="150%",Mm.MuiTableCell.styleOverrides.root["&:focus"]={boxShadow:"0 0 0 2px #3f8ab3 inset",outline:"none"},Mm.MuiTableContainer.styleOverrides.root={},Mm.MuiFormLabel.styleOverrides.root["&.Mui-focused"]={color:"inherit"},Mm.MuiInputBase.styleOverrides.root={backgroundColor:"inherit"},Mm.MuiInputBase.styleOverrides.input.padding="0px 12px",Mm.MuiInputBase.styleOverrides.input.border="1px solid transparent",Mm.MuiOutlinedInput.styleOverrides.input.padding="0px 12px",Mm.MuiNativeSelect.styleOverrides.outlined.border="1px solid transparent",Mm.MuiInputLabel.styleOverrides.outlined={fontSize:14,width:"fit-content",position:"relative",padding:8,transform:"none",fontWeight:400},Mm.MuiFormControl.styleOverrides.root.paddingLeft=28,Mm.MuiFormControl.styleOverrides.root.paddingRight=14),Bs({...Bm,direction:e})}(n);null==t||t.render(b.createElement(Qt,{stylisPlugins:"rtl"===n?[dl]:void 0},b.createElement(zi,{theme:i},b.createElement(lf,{selectionsAPI:r,tableRows:null==o?void 0:o.rows},b.createElement(Dm,e)))))}var Wm=I;Om=Wm.createRoot,Wm.hydrateRoot;var Vm,Um={SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。有关键盘导航的完整范围,请参阅文档。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。如需完整的鍵盤導覽,請參閱文件。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(Vm||(Vm={}));const Km=(t,n)=>e((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(Um).forEach((t=>{e.add(Um[t])}))}}(n),()=>((e,t,n)=>{let r=n||null;return({keys:n,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=n.map((e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)})).join(" "),s=e.querySelector("#sn-table-announcer--01"),l=e.querySelector("#sn-table-announcer--02");let c;r===Vm.FIRST?(c=l,r=Vm.SECOND):(c=s,r=Vm.FIRST),c.innerHTML=c.innerHTML.endsWith(" ­")?a:`${a} ­`,c.setAttribute("aria-atomic",o.toString()),c.setAttribute("aria-live",i)}})(t,n))),[t,n.language()]),Gm=(e,t)=>{const n=null==t?void 0:t.closest(".qv-object .qv-inner-object"),r=n&&window.getComputedStyle(n).backgroundColor,o=null==t?void 0:t.closest(".qv-panel-sheet"),i=o&&window.getComputedStyle(o).backgroundColor,a=e.getStyle("","","object.straightTable.backgroundColor"),s=e.getStyle("object","straightTable","backgroundColor"),l=a||r||s,c=function(e){if(void 0===e)return!1;const t=Fp(e),n=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),r=null==n?void 0:n[4];return void 0!==r&&0==+r}(l),u=Lp(c?i:l),d=u?" #F2F2F2":"#D9D9D9";return{tableBackgroundColorFromTheme:a||"inherit",backgroundColor:l,isBackgroundTransparentColor:c,isBackgroundDarkColor:u,borderColor:d,body:{borderColor:d},pagination:{borderColor:d,color:u?"rgba(255, 255, 255, 0.9)":"#404040",iconColor:u?"rgba(255, 255, 255, 0.9)":"rgba(0, 0, 0, 0.54)",disabledIconColor:u?"rgba(255, 255, 255, 0.3)":"rgba(0, 0, 0, 0.3)"}}};const Xm={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]};function Ym(h){const b=h.flags.isEnabled("PS_15585_SN_TABLE_BASIC_FEATURES");return{qae:{properties:{initial:N},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]}},ext:X(h),component(){const v=r(),y=(t=>e((()=>Om(t)),[t]))(v),x=o(),{direction:S,footerContainer:w}=i(),C=a(),E=s(),k=l(),T=c(),R=u(),A=d(),P=p(),D=(n=>{const r=t();return e((()=>({...r,table:Gm(r,n)})),[r.name(),n])})(v),O=Km(v,T),I=(t=>e((()=>(e=>{if(e)return async(t,n)=>{const{isDim:r,dataColIdx:o}=n,i=(await e.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,a=i[0];o!==a&&(i.splice(i.indexOf(o),1),i.unshift(o));const s=[{qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${i.join(",")}]`}];if(o===a){const{qDimensionInfo:e,qMeasureInfo:n}=t.qHyperCube,i=r?o:o-e.length,{qReverseSort:a}=r?e[i]:n[i],l=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/qReverseSort`;s.push({qPath:l,qOp:"Replace",qValue:(!a).toString()})}e.applyPatches(s,!0)}})(t)),[t]))(E),[M,N]=f(Xm),[F]=m((async()=>!h.carbon||null!=E&&E.getHyperCubeData?Q(E,x,M,N):(async()=>{})()),[x,M,E]);!function(e){null==n||n(((t,n)=>{e&&n.target&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{bf(n)}})}))}(b),g((()=>{!h.carbon&&y&&x&&F&&I&&D&&Hm({rootElement:v,layout:x,tableData:F,direction:S,pageInfo:M,setPageInfo:N,constraints:k,translator:T,selectionsAPI:R,theme:D,changeSortOrder:I,keyboard:A,rect:P,footerContainer:w,announce:O,areBasicFeaturesEnabled:b},y)}),[y,F,k,S,R.isModal(),D,A.active,P.width,O,I]),g((()=>{(({env:e,rootElement:t,model:n,theme:r,selectionsAPI:o,app:i,rect:a,layout:s,changeSortOrder:l})=>{e.carbon&&l&&r&&Hm({rootElement:t,layout:s,model:n,manageData:Q,theme:r,selectionsAPI:o,changeSortOrder:l,app:i,rect:a})})({env:h,rootElement:v,model:E,theme:D,selectionsAPI:R,app:C,rect:P,layout:x,changeSortOrder:I})}),[x,E,R.isModal(),D,T.language(),C,I]),g((()=>()=>{y&&function(e){e.unmount()}(y)}),[y])}}}export{Ym as default};
94
+ `),$c.rippleVisible,Kc,550,(({theme:e})=>e.transitions.easing.easeInOut),$c.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),$c.child,$c.childLeaving,Gc,550,(({theme:e})=>e.transitions.easing.easeInOut),$c.childPulsate,Xc,(({theme:e})=>e.transitions.easing.easeInOut)),Zc=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=jn(n,_c),[s,l]=h.useState([]),c=h.useRef(0),u=h.useRef(null);h.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=h.useRef(!1),p=h.useRef(null),f=h.useRef(null),m=h.useRef(null);h.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const g=h.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,Ci.jsx(Jc,{classes:{ripple:si(o.ripple,$c.ripple),rippleVisible:si(o.rippleVisible,$c.rippleVisible),ripplePulsate:si(o.ripplePulsate,$c.ripplePulsate),child:si(o.child,$c.child),childLeaving:si(o.childLeaving,$c.childLeaving),childPulsate:si(o.childPulsate,$c.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),b=h.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 s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,h;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)h=Math.sqrt((2*l.width**2+l.height**2)/3),h%2==0&&(h+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;h=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:h,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:h,cb:n})}),[r,g]),v=h.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=h.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{y(e,t)})));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return h.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Ci.jsx(Yc,Ln({className:si($c.root,o.root,i),ref:m},a,{children:Ci.jsx(Mc,{component:null,exit:!0,children:s})}))}));function Qc(e){return $r("MuiButtonBase",e)}const eu=_r("MuiButtonBase",["root","disabled","focusVisible"]),tu=["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"],nu=ul("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"},[`&.${eu.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ru=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:k,onTouchMove:T,onTouchStart:R,tabIndex:A=0,TouchRippleProps:P,touchRippleRef:O,type:D}=n,I=jn(n,tu),M=h.useRef(null),N=h.useRef(null),F=xr(N,O),{isFocusVisibleRef:L,onFocus:j,onBlur:q,ref:z}=Pr(),[$,_]=h.useState(!1);l&&$&&_(!1),h.useImperativeHandle(r,(()=>({focusVisible:()=>{_(!0),M.current.focus()}})),[]);const[B,H]=h.useState(!1);h.useEffect((()=>{H(!0)}),[]);const W=B&&!c&&!l;function V(e,t,n=u){return yr((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}h.useEffect((()=>{$&&d&&!c&&B&&N.current.pulsate()}),[c,d,$,B]);const U=V("start",w),K=V("stop",g),G=V("stop",b),X=V("stop",E),Y=V("stop",(e=>{$&&e.preventDefault(),C&&C(e)})),J=V("start",R),Z=V("stop",k),Q=V("stop",T),ee=V("stop",(e=>{q(e),!1===L.current&&_(!1),f&&f(e)}),!1),te=yr((e=>{M.current||(M.current=e.currentTarget),j(e),!0===L.current&&(_(!0),y&&y(e)),v&&v(e)})),ne=()=>{const e=M.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=h.useRef(!1),oe=yr((e=>{d&&!re.current&&$&&N.current&&" "===e.key&&(re.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=yr((e=>{d&&" "===e.key&&N.current&&$&&!e.defaultPrevented&&(re.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(I.href||I.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(I.href||I.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=xr(t,z,M),ce=Ln({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:A,focusVisible:$}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Lr({root:["root",t&&"disabled",n&&"focusVisible"]},Qc,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Ci.jsxs(nu,Ln({as:ae,className:si(ue.root,a),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:K,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:Y,onMouseUp:X,onDragLeave:G,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:A,type:D},se,I,{children:[i,W?Ci.jsx(Zc,Ln({ref:F,center:o},P)):null]}))}));function ou(e){return $r("MuiSvgIcon",e)}_r("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const iu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],au=ul("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${or(n.color)}`],t[`fontSize${or(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(m=f[t.color])?void 0:m.main)?p:{action:null==(g=(e.vars||e).palette)||null==(h=g.action)?void 0:h.active,disabled:null==(b=(e.vars||e).palette)||null==(v=b.action)?void 0:v.disabled,inherit:void 0}[t.color]}})),su=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=jn(n,iu),f=Ln({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Lr({root:["root","inherit"!==t&&`color${or(t)}`,`fontSize${or(n)}`]},ou,r)})(f);return Ci.jsxs(au,Ln({as:a,className:si(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,{ownerState:f,children:[r,u?Ci.jsx("title",{children:u}):null]}))}));function lu(e,t){const n=(n,r)=>Ci.jsx(su,Ln({"data-testid":`${t}Icon`,ref:r},n,{children:e}));return n.muiName=su.muiName,h.memo(h.forwardRef(n))}su.muiName="SvgIcon";var cu=lu(Ci.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function uu(e){return $r("MuiTableSortLabel",e)}const du=_r("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),pu=["active","children","className","direction","hideSortIcon","IconComponent"],fu=ul(ru,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})((({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${du.icon}`]:{opacity:.5}},[`&.${du.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${du.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),mu=ul("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${or(n.direction)}`]]}})((({theme:e,ownerState:t})=>Ln({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},"desc"===t.direction&&{transform:"rotate(0deg)"},"asc"===t.direction&&{transform:"rotate(180deg)"}))),gu=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiTableSortLabel"}),{active:r=!1,children:o,className:i,direction:a="asc",hideSortIcon:s=!1,IconComponent:l=cu}=n,c=jn(n,pu),u=Ln({},n,{active:r,direction:a,hideSortIcon:s,IconComponent:l}),d=(e=>{const{classes:t,direction:n,active:r}=e;return Lr({root:["root",r&&"active"],icon:["icon",`iconDirection${or(n)}`]},uu,t)})(u);return Ci.jsxs(fu,Ln({className:si(d.root,i),component:"span",disableRipple:!0,ownerState:u,ref:t},c,{children:[o,s&&!r?null:Ci.jsx(mu,{as:l,className:si(d.icon),ownerState:u})]}))}));function hu(e){return $r("MuiTableBody",e)}_r("MuiTableBody",["root"]);const bu=["className","component"],vu=ul("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),yu={variant:"body"},xu="tbody",Su=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiTableBody"}),{className:r,component:o=xu}=n,i=jn(n,bu),a=Ln({},n,{component:o}),s=(e=>{const{classes:t}=e;return Lr({root:["root"]},hu,t)})(a);return Ci.jsx(ic.Provider,{value:yu,children:Ci.jsx(vu,Ln({className:si(s.root,r),as:o,ref:t,role:o===xu?null:"rowgroup",ownerState:a},i))})})),wu=h.createContext({});function Cu(e){return $r("MuiList",e)}_r("MuiList",["root","padding","dense","subheader"]);const Eu=["children","className","component","dense","disablePadding","subheader"],ku=ul("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})=>Ln({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Tu=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=jn(n,Eu),u=h.useMemo((()=>({dense:a})),[a]),d=Ln({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Lr({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Cu,t)})(d);return Ci.jsx(wu.Provider,{value:u,children:Ci.jsxs(ku,Ln({as:i,className:si(p.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})})),Ru=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Au(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Pu(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ou(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 Du(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Ou(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const Iu=h.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=jn(e,Ru),p=h.useRef(null),f=h.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});fr((()=>{r&&p.current.focus()}),[r]),h.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Or(cr(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=xr(p,t);let g=-1;h.Children.forEach(i,((e,t)=>{h.isValidElement(e)&&(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===g)&&(g=t))}));const b=h.Children.map(i,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),h.cloneElement(e,t)}return e}));return Ci.jsx(Tu,Ln({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=cr(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Du(t,r,l,s,Au);else if("ArrowUp"===n)e.preventDefault(),Du(t,r,l,s,Pu);else if("Home"===n)e.preventDefault(),Du(t,null,l,s,Au);else if("End"===n)e.preventDefault(),Du(t,null,l,s,Pu);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 l=r&&!o.repeating&&Ou(r,o);o.previousKeyMatched&&(l||Du(t,r,!1,s,Au,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:b}))})),Mu=e=>e.scrollTop;function Nu(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}}const Fu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Lu(e){return`scale(${e}, ${e**2})`}const ju={entering:{opacity:1,transform:Lu(1)},entered:{opacity:1,transform:"none"}},qu="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),zu=h.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:g=wc}=e,b=jn(e,Fu),v=h.useRef(),y=h.useRef(),x=al(),S=h.useRef(null),w=xr(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},E=C(c),k=C(((e,t)=>{Mu(e);const{duration:n,delay:r,easing:o}=Nu({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:qu?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),T=C(l),R=C(p),A=C((e=>{const{duration:t,delay:n,easing:r}=Nu({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:qu?o:.666*o,delay:qu?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Lu(.75),u&&u(e)})),P=C(d);return h.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Ci.jsx(g,Ln({appear:r,in:a,nodeRef:S,onEnter:k,onEntered:T,onEntering:E,onExit:A,onExited:P,onExiting:R,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,y.current||0)),n&&n(S.current,e)},timeout:"auto"===m?null:m},b,{children:(e,t)=>h.cloneElement(o,Ln({style:Ln({opacity:0,transform:Lu(.75),visibility:"exited"!==e||a?void 0:"hidden"},ju[e],f,o.props.style),ref:w},t))}))}));zu.muiSupportAuto=!0;const $u=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],_u={entering:{opacity:1},entered:{opacity:1}},Bu=h.forwardRef((function(e,t){const n=al(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:m,style:g,timeout:b=r,TransitionComponent:v=wc}=e,y=jn(e,$u),x=h.useRef(null),S=xr(x,a.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=w(d),E=w(((e,t)=>{Mu(e);const r=Nu({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),k=w(u),T=w(m),R=w((e=>{const t=Nu({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),A=w(f);return Ci.jsx(v,Ln({appear:i,in:l,nodeRef:x,onEnter:E,onEntered:k,onEntering:C,onExit:R,onExited:A,onExiting:T,addEndListener:e=>{o&&o(x.current,e)},timeout:b},y,{children:(e,t)=>h.cloneElement(a,Ln({style:Ln({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},_u[e],g,a.props.style),ref:S},t))}))}));function Hu(e){return $r("MuiBackdrop",e)}_r("MuiBackdrop",["root","invisible"]);const Wu=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],Vu=ul("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Ln({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"}))),Uu=h.forwardRef((function(e,t){var n,r;const o=sl({props:e,name:"MuiBackdrop"}),{children:i,component:a="div",components:s={},componentsProps:l={},className:c,invisible:u=!1,open:d,transitionDuration:p,TransitionComponent:f=Bu}=o,m=jn(o,Wu),g=Ln({},o,{component:a,invisible:u}),h=(e=>{const{classes:t,invisible:n}=e;return Lr({root:["root",n&&"invisible"]},Hu,t)})(g);return Ci.jsx(f,Ln({in:d,timeout:p},m,{children:Ci.jsx(Vu,{"aria-hidden":!0,as:null!=(n=s.Root)?n:a,className:si(h.root,c),ownerState:Ln({},g,null==(r=l.root)?void 0:r.ownerState),classes:h,ref:t,children:i})}))})),Ku=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","theme"],Gu=ul("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})=>Ln({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Xu=ul(Uu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Yu=h.forwardRef((function(e,t){var n,r;const o=sl({name:"MuiModal",props:e}),{BackdropComponent:i=Xu,BackdropProps:a,closeAfterTransition:s=!1,children:l,component:c,components:u={},componentsProps:d={},disableAutoFocus:p=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:g=!1,disableRestoreFocus:b=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:x=!1,theme:S}=o,w=jn(o,Ku),[C,E]=h.useState(!0),k={closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:g,disableRestoreFocus:b,disableScrollLock:v,hideBackdrop:y,keepMounted:x},T=Ln({},o,k,{exited:C}),R=(e=>e.classes)(T),A=null!=(n=null!=(r=u.Root)?r:c)?n:Gu;return Ci.jsx(Za,Ln({components:Ln({Root:A,Backdrop:i},u),componentsProps:{root:()=>Ln({},Ia(d.root,T),!Da(A)&&{as:c,theme:S}),backdrop:()=>Ln({},a,Ia(d.backdrop,T))},onTransitionEnter:()=>E(!1),onTransitionExited:()=>E(!0),ref:t},w,{classes:R},k,{children:l}))}));function Ju(e){return $r("MuiPopover",e)}_r("MuiPopover",["root","paper"]);const Zu=["onEntering"],Qu=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function ed(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function td(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function nd(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function rd(e){return"function"==typeof e?e():e}const od=ul(Yu,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),id=ul(gl,{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}),ad=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:l,className:c,container:u,elevation:d=8,marginThreshold:p=16,open:f,PaperProps:m={},transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:b=zu,transitionDuration:v="auto",TransitionProps:{onEntering:y}={}}=n,x=jn(n.TransitionProps,Zu),S=jn(n,Qu),w=h.useRef(),C=xr(w,m.ref),E=Ln({},n,{anchorOrigin:i,anchorReference:s,elevation:d,marginThreshold:p,PaperProps:m,transformOrigin:g,TransitionComponent:b,transitionDuration:v,TransitionProps:x}),k=(e=>{const{classes:t}=e;return Lr({root:["root"],paper:["paper"]},Ju,t)})(E),T=h.useCallback((()=>{if("anchorPosition"===s)return a;const e=rd(o),t=(e&&1===e.nodeType?e:cr(w.current).body).getBoundingClientRect();return{top:t.top+ed(t,i.vertical),left:t.left+td(t,i.horizontal)}}),[o,i.horizontal,i.vertical,a,s]),R=h.useCallback((e=>({vertical:ed(e,g.vertical),horizontal:td(e,g.horizontal)})),[g.horizontal,g.vertical]),A=h.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=R(t);if("none"===s)return{top:null,left:null,transformOrigin:nd(n)};const r=T();let i=r.top-n.vertical,a=r.left-n.horizontal;const l=i+t.height,c=a+t.width,u=ur(rd(o)),d=u.innerHeight-p,f=u.innerWidth-p;if(i<p){const e=i-p;i-=e,n.vertical+=e}else if(l>d){const e=l-d;i-=e,n.vertical+=e}if(a<p){const e=a-p;a-=e,n.horizontal+=e}else if(c>f){const e=c-f;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:nd(n)}}),[o,s,T,R,p]),P=h.useCallback((()=>{const e=w.current;if(!e)return;const t=A(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[A]);h.useEffect((()=>{f&&P()})),h.useImperativeHandle(r,(()=>f?{updatePosition:()=>{P()}}:null),[f,P]),h.useEffect((()=>{if(!f)return;const e=ar((()=>{P()})),t=ur(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,f,P]);let O=v;"auto"!==v||b.muiSupportAuto||(O=void 0);const D=u||(o?cr(rd(o)).body:void 0);return Ci.jsx(od,Ln({BackdropProps:{invisible:!0},className:si(k.root,c),container:D,open:f,ref:t,ownerState:E},S,{children:Ci.jsx(b,Ln({appear:!0,in:f,onEntering:(e,t)=>{y&&y(e,t),P()},timeout:O},x,{children:Ci.jsx(id,Ln({elevation:d},m,{ref:C,className:si(k.paper,m.className),ownerState:E,children:l}))}))}))}));function sd(e){return $r("MuiMenu",e)}_r("MuiMenu",["root","paper","list"]);const ld=["onEntering"],cd=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],ud={vertical:"top",horizontal:"right"},dd={vertical:"top",horizontal:"left"},pd=ul(ad,{shouldForwardProp:e=>ll(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fd=ul(gl,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),md=ul(Iu,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),gd=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,disableAutoFocusItem:i=!1,MenuListProps:a={},onClose:s,open:l,PaperProps:c={},PopoverClasses:u,transitionDuration:d="auto",TransitionProps:{onEntering:p}={},variant:f="selectedMenu"}=n,m=jn(n.TransitionProps,ld),g=jn(n,cd),b=al(),v="rtl"===b.direction,y=Ln({},n,{autoFocus:r,disableAutoFocusItem:i,MenuListProps:a,onEntering:p,PaperProps:c,transitionDuration:d,TransitionProps:m,variant:f}),x=(e=>{const{classes:t}=e;return Lr({root:["root"],paper:["paper"],list:["list"]},sd,t)})(y),S=r&&!i&&l,w=h.useRef(null);let C=-1;return h.Children.map(o,((e,t)=>{h.isValidElement(e)&&(e.props.disabled||("selectedMenu"===f&&e.props.selected||-1===C)&&(C=t))})),Ci.jsx(pd,Ln({classes:u,onClose:s,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?ud:dd,PaperProps:Ln({component:fd},c,{classes:Ln({},c.classes,{root:x.paper})}),className:x.root,open:l,ref:t,transitionDuration:d,TransitionProps:Ln({onEntering:(e,t)=>{w.current&&w.current.adjustStyleForScrollbar(e,b),p&&p(e,t)}},m),ownerState:y},g,{children:Ci.jsx(md,Ln({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),s&&s(e,"tabKeyDown"))},actions:w,autoFocus:r&&(-1===C||i),autoFocusItem:S,variant:f},a,{className:si(x.list,a.className),children:o}))}))}));function hd(e){return $r("MuiNativeSelect",e)}const bd=_r("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),vd=["className","disabled","IconComponent","inputRef","variant"],yd=({ownerState:e,theme:t})=>Ln({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${bd.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:t.shape.borderRadius,"&:focus":{borderRadius:t.shape.borderRadius},"&&&":{paddingRight:32}}),xd=ul("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ll,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${bd.multiple}`]:t.multiple}]}})(yd),Sd=({ownerState:e,theme:t})=>Ln({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:t.palette.action.active,[`&.${bd.disabled}`]:{color:t.palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),wd=ul("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${or(n.variant)}`],n.open&&t.iconOpen]}})(Sd),Cd=h.forwardRef((function(e,t){const{className:n,disabled:r,IconComponent:o,inputRef:i,variant:a="standard"}=e,s=jn(e,vd),l=Ln({},e,{disabled:r,variant:a}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e;return Lr({select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${or(n)}`,i&&"iconOpen",r&&"disabled"]},hd,t)})(l);return Ci.jsxs(h.Fragment,{children:[Ci.jsx(xd,Ln({ownerState:l,className:si(c.select,n),disabled:r,ref:i||t},s)),e.multiple?null:Ci.jsx(wd,{as:o,ownerState:l,className:c.icon})]})}));function Ed(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function kd(e,t=!1){return e&&(Ed(e.value)&&""!==e.value||t&&Ed(e.defaultValue)&&""!==e.defaultValue)}function Td(e){return $r("MuiSelect",e)}const Rd=_r("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var Ad;const Pd=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Od=ul("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Rd.select}`]:t.select},{[`&.${Rd.select}`]:t[n.variant]},{[`&.${Rd.multiple}`]:t.multiple}]}})(yd,{[`&.${Rd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Dd=ul("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${or(n.variant)}`],n.open&&t.iconOpen]}})(Sd),Id=ul("input",{shouldForwardProp:e=>cl(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 Md(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Nd(e){return null==e||"string"==typeof e&&!e.trim()}const Fd=h.forwardRef((function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:i,children:a,className:s,defaultOpen:l,defaultValue:c,disabled:u,displayEmpty:d,IconComponent:p,inputRef:f,labelId:m,MenuProps:g={},multiple:b,name:v,onBlur:y,onChange:x,onClose:S,onFocus:w,onOpen:C,open:E,readOnly:k,renderValue:T,SelectDisplayProps:R={},tabIndex:A,value:P,variant:O="standard"}=e,D=jn(e,Pd),[I,M]=vr({controlled:P,default:c,name:"Select"}),[N,F]=vr({controlled:E,default:l,name:"Select"}),L=h.useRef(null),j=h.useRef(null),[q,z]=h.useState(null),{current:$}=h.useRef(null!=E),[_,B]=h.useState(),H=xr(t,f),W=h.useCallback((e=>{j.current=e,e&&z(e)}),[]);h.useImperativeHandle(H,(()=>({focus:()=>{j.current.focus()},node:L.current,value:I})),[I]),h.useEffect((()=>{l&&N&&q&&!$&&(B(i?null:q.clientWidth),j.current.focus())}),[q,i]),h.useEffect((()=>{o&&j.current.focus()}),[o]),h.useEffect((()=>{if(!m)return;const e=cr(j.current).getElementById(m);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[m]);const V=(e,t)=>{e?C&&C(t):S&&S(t),$||(B(i?null:q.clientWidth),F(e))},U=h.Children.toArray(a),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(I)?I.slice():[];const t=I.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),I!==n&&(M(n),x)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:v}}),x(o,e)}b||V(!1,t)}},G=null!==q&&N;let X,Y;delete D["aria-invalid"];const J=[];let Z=!1;(kd({value:I})||d)&&(T?X=T(I):Z=!0);const Q=U.map(((e,t,n)=>{if(!h.isValidElement(e))return null;let r;if(b){if(!Array.isArray(I))throw new Error(Zn(2));r=I.some((t=>Md(t,e.props.value))),r&&Z&&J.push(e.props.children)}else r=Md(I,e.props.value),r&&Z&&(Y=e.props.children);if(void 0===e.props.value)return h.cloneElement(e,{"aria-readonly":!0,role:"option"});return h.cloneElement(e,{"aria-selected":r?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===n[0].props.value||!0===n[0].props.disabled?(()=>{if(I)return r;const t=n.find((e=>void 0!==e.props.value&&!0!==e.props.disabled));return e===t||r})():r,value:void 0,"data-value":e.props.value})}));Z&&(X=b?0===J.length?null:J.reduce(((e,t,n)=>(e.push(t),n<J.length-1&&e.push(", "),e)),[]):Y);let ee,te=_;!i&&$&&q&&(te=q.clientWidth),ee=void 0!==A?A:u?null:0;const ne=R.id||(v?`mui-component-select-${v}`:void 0),re=Ln({},e,{variant:O,value:I,open:G}),oe=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e;return Lr({select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${or(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Td,t)})(re);return Ci.jsxs(h.Fragment,{children:[Ci.jsx(Od,Ln({ref:W,tabIndex:ee,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":G?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[m,ne].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),V(!0,e))}},onMouseDown:u||k?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),V(!0,e))},onBlur:e=>{!G&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:I,name:v}}),y(e))},onFocus:w},R,{ownerState:re,className:si(R.className,oe.select,s),id:ne,children:Nd(X)?Ad||(Ad=Ci.jsx("span",{className:"notranslate",children:"​"})):X})),Ci.jsx(Id,Ln({value:Array.isArray(I)?I.join(","):I,name:v,ref:L,"aria-hidden":!0,onChange:e=>{const t=U.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=U[t];M(n.props.value),x&&x(e,n)},tabIndex:-1,disabled:u,className:oe.nativeInput,autoFocus:o,ownerState:re},D)),Ci.jsx(Dd,{as:p,className:oe.icon,ownerState:re}),Ci.jsx(gd,Ln({id:`menu-${v||""}`,anchorEl:q,open:G,onClose:e=>{V(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:Ln({"aria-labelledby":m,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:Ln({},g.PaperProps,{style:Ln({minWidth:te},null!=g.PaperProps?g.PaperProps.style:null)}),children:Q}))]})}));function Ld({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)),{})}const jd=h.createContext();function qd(){return h.useContext(jd)}var zd=lu(Ci.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function $d(e){return Ci.jsx(Bn,Ln({},e,{defaultTheme:il}))}function _d(e){return $r("MuiInputBase",e)}const Bd=_r("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Hd=["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","startAdornment","type","value"],Wd=(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${or(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Vd=(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]},Ud=ul("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Wd})((({theme:e,ownerState:t})=>Ln({},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",[`&.${Bd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ln({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Kd=ul("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Vd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Ln({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 Ln({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] + .${Bd.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},[`&.${Bd.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"})})),Gd=Ci.jsx($d,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Xd=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:i,className:a,components:s={},componentsProps:l={},defaultValue:c,disabled:u,disableInjectingGlobalStyles:d,endAdornment:p,fullWidth:f=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:C,onChange:E,onClick:k,onFocus:T,onKeyDown:R,onKeyUp:A,placeholder:P,readOnly:O,renderSuffix:D,rows:I,startAdornment:M,type:N="text",value:F}=n,L=jn(n,Hd),j=null!=b.value?b.value:F,{current:q}=h.useRef(null!=j),z=h.useRef(),$=h.useCallback((e=>{}),[]),_=xr(z,v,b.ref,$),[B,H]=h.useState(!1),W=qd(),V=Ld({props:n,muiFormControl:W,states:["color","disabled","error","hiddenLabel","size","required","filled"]});V.focused=W?W.focused:B,h.useEffect((()=>{!W&&u&&B&&(H(!1),C&&C())}),[W,u,B,C]);const U=W&&W.onFilled,K=W&&W.onEmpty,G=h.useCallback((e=>{kd(e)?U&&U():K&&K()}),[U,K]);fr((()=>{q&&G({value:j})}),[j,G,q]);h.useEffect((()=>{G(z.current)}),[]);let X=g,Y=b;S&&"input"===X&&(Y=Ln(I?{type:void 0,minRows:I,maxRows:I}:{type:void 0,maxRows:y,minRows:x},Y),X=rs);h.useEffect((()=>{W&&W.setAdornedStart(Boolean(M))}),[W,M]);const J=Ln({},n,{color:V.color||"primary",disabled:V.disabled,endAdornment:p,error:V.error,focused:V.focused,formControl:W,fullWidth:f,hiddenLabel:V.hiddenLabel,multiline:S,size:V.size,startAdornment:M,type:N}),Z=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:m}=e;return Lr({root:["root",`color${or(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl","small"===p&&"sizeSmall",u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},_d,t)})(J),Q=s.Root||Ud,ee=l.root||{},te=s.Input||Kd;return Y=Ln({},Y,l.input),Ci.jsxs(h.Fragment,{children:[!d&&Gd,Ci.jsxs(Q,Ln({},ee,!Da(Q)&&{ownerState:Ln({},J,ee.ownerState)},{ref:t,onClick:e=>{z.current&&e.currentTarget===e.target&&z.current.focus(),k&&k(e)}},L,{className:si(Z.root,ee.className,a),children:[M,Ci.jsx(jd.Provider,{value:null,children:Ci.jsx(te,Ln({ownerState:J,"aria-invalid":V.error,"aria-describedby":r,autoComplete:o,autoFocus:i,defaultValue:c,disabled:V.disabled,id:m,onAnimationStart:e=>{G("mui-auto-fill-cancel"===e.animationName?z.current:{value:"x"})},name:w,placeholder:P,readOnly:O,required:V.required,rows:I,value:j,onKeyDown:R,onKeyUp:A,type:N},Y,!Da(te)&&{as:X,ownerState:Ln({},J,Y.ownerState)},{ref:_,className:si(Z.input,Y.className),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),W&&W.onBlur?W.onBlur(e):H(!1)},onChange:(e,...t)=>{if(!q){const t=e.target||z.current;if(null==t)throw new Error(Zn(1));G({value:t.value})}b.onChange&&b.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{V.disabled?e.stopPropagation():(T&&T(e),b.onFocus&&b.onFocus(e),W&&W.onFocus?W.onFocus(e):H(!0))}}))}),p,D?D(Ln({},V,{startAdornment:M})):null]}))]})}));function Yd(e){return $r("MuiInput",e)}const Jd=Ln({},Bd,_r("MuiInput",["root","underline","input"])),Zd=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],Qd=ul(Ud,{shouldForwardProp:e=>ll(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wd(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})`),Ln({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"},[`&.${Jd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jd.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&: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(.${Jd.disabled}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Jd.disabled}:before`]:{borderBottomStyle:"dotted"}})})),ep=ul(Kd,{name:"MuiInput",slot:"Input",overridesResolver:Vd})({}),tp=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiInput"}),{disableUnderline:r,components:o={},componentsProps:i,fullWidth:a=!1,inputComponent:s="input",multiline:l=!1,type:c="text"}=n,u=jn(n,Zd),d=(e=>{const{classes:t,disableUnderline:n}=e;return Ln({},t,Lr({root:["root",!n&&"underline"],input:["input"]},Yd,t))})(n),p={root:{ownerState:{disableUnderline:r}}},f=i?Xn(i,p):p;return Ci.jsx(Xd,Ln({components:Ln({Root:Qd,Input:ep},o),componentsProps:f,fullWidth:a,inputComponent:s,multiline:l,ref:t,type:c},u,{classes:d}))}));function np(e){return $r("MuiFilledInput",e)}tp.muiName="Input";const rp=Ln({},Bd,_r("MuiFilledInput",["root","underline","input"])),op=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],ip=ul(Ud,{shouldForwardProp:e=>ll(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wd(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)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Ln({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}},[`&.${rp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${rp.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!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"},[`&.${rp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${rp.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&: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(.${rp.disabled}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${rp.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Ln({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),ap=ul(Kd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Vd})((({theme:e,ownerState:t})=>Ln({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.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),sp=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiFilledInput"}),{components:r={},componentsProps:o,fullWidth:i=!1,inputComponent:a="input",multiline:s=!1,type:l="text"}=n,c=jn(n,op),u=Ln({},n,{fullWidth:i,inputComponent:a,multiline:s,type:l}),d=(e=>{const{classes:t,disableUnderline:n}=e;return Ln({},t,Lr({root:["root",!n&&"underline"],input:["input"]},np,t))})(n),p={root:{ownerState:u},input:{ownerState:u}},f=o?Xn(o,p):p;return Ci.jsx(Xd,Ln({components:Ln({Root:ip,Input:ap},r),componentsProps:f,fullWidth:i,inputComponent:a,multiline:s,ref:t,type:l},c,{classes:d}))}));var lp;sp.muiName="Input";const cp=["children","classes","className","label","notched"],up=ul("fieldset")({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%"}),dp=ul("legend")((({ownerState:e,theme:t})=>Ln({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&&Ln({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})}))));function pp(e){return $r("MuiOutlinedInput",e)}const fp=Ln({},Bd,_r("MuiOutlinedInput",["root","notchedOutline","input"])),mp=["components","fullWidth","inputComponent","label","multiline","notched","type"],gp=ul(Ud,{shouldForwardProp:e=>ll(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Ln({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${fp.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${fp.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${fp.focused} .${fp.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${fp.error} .${fp.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${fp.disabled} .${fp.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Ln({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),hp=ul((function(e){const{className:t,label:n,notched:r}=e,o=jn(e,cp),i=null!=n&&""!==n,a=Ln({},e,{notched:r,withLabel:i});return Ci.jsx(up,Ln({"aria-hidden":!0,className:t,ownerState:a},o,{children:Ci.jsx(dp,{ownerState:a,children:i?Ci.jsx("span",{children:n}):lp||(lp=Ci.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}})),bp=ul(Kd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Vd})((({theme:e,ownerState:t})=>Ln({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}))),vp=h.forwardRef((function(e,t){var n;const r=sl({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:c,type:u="text"}=r,d=jn(r,mp),p=(e=>{const{classes:t}=e;return Ln({},t,Lr({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},pp,t))})(r),f=qd(),m=Ld({props:r,muiFormControl:f,states:["required"]}),g=Ln({},r,{color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:f,fullWidth:i,hiddenLabel:m.hiddenLabel,multiline:l,size:m.size,type:u});return Ci.jsx(Xd,Ln({components:Ln({Root:gp,Input:bp},o),renderSuffix:e=>Ci.jsx(hp,{ownerState:g,className:p.notchedOutline,label:null!=s&&""!==s&&m.required?n||(n=Ci.jsxs(h.Fragment,{children:[s," ","*"]})):s,notched:void 0!==c?c:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:i,inputComponent:a,multiline:l,ref:t,type:u},d,{classes:Ln({},p,{notchedOutline:null})}))}));var yp,xp;vp.muiName="Input";const Sp=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],wp={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ll(e)&&"variant"!==e,slot:"Root"},Cp=ul(tp,wp)(""),Ep=ul(vp,wp)(""),kp=ul(sp,wp)(""),Tp=h.forwardRef((function(e,t){const n=sl({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:c=zd,id:u,input:d,inputProps:p,label:f,labelId:m,MenuProps:g,multiple:b=!1,native:v=!1,onClose:y,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=n,k=jn(n,Sp),T=v?Cd:Fd,R=Ld({props:n,muiFormControl:qd(),states:["variant"]}).variant||E,A=d||{standard:yp||(yp=Ci.jsx(Cp,{})),outlined:Ci.jsx(Ep,{label:f}),filled:xp||(xp=Ci.jsx(kp,{}))}[R],P=(e=>{const{classes:t}=e;return t})(Ln({},n,{variant:R,classes:i})),O=xr(t,A.ref);return Ci.jsx(h.Fragment,{children:h.cloneElement(A,Ln({inputComponent:T,inputProps:Ln({children:o,IconComponent:c,variant:R,type:void 0,multiple:b},v?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:g,onClose:y,onOpen:x,open:S,renderValue:w,SelectDisplayProps:Ln({id:u},C)},p,{classes:p?Xn(P,p.classes):P},d?d.props.inputProps:{})},b&&v&&"outlined"===R?{notched:!0}:{},{ref:O,className:si(A.props.className,a)},!d&&{variant:R},k))})}));function Rp(e){return $r("MuiIconButton",e)}Tp.muiName="Select";const Ap=_r("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Pp=["edge","children","className","color","disabled","disableFocusRipple","size"],Op=ul(ru,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${or(n.color)}`],n.edge&&t[`edge${or(n.edge)}`],t[`size${or(n.size)}`]]}})((({theme:e,ownerState:t})=>Ln({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ki(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>Ln({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Ln({color:(e.vars||e).palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ki(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Ap.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Dp=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=jn(n,Pp),d=Ln({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return Lr({root:["root",n&&"disabled","default"!==r&&`color${or(r)}`,o&&`edge${or(o)}`,`size${or(i)}`]},Rp,t)})(d);return Ci.jsx(Op,Ln({className:si(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t,ownerState:d},u,{children:o}))}));function Ip(e){return $r("MuiTableCell",e)}const Mp=_r("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Np=["align","className","component","padding","scope","size","sortDirection","variant"],Fp=ul("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${or(n.size)}`],"normal"!==n.padding&&t[`padding${or(n.padding)}`],"inherit"!==n.align&&t[`align${or(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Ln({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Xi(Ki(e.palette.divider,1),.88):Gi(Ki(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Mp.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),Lp=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:c,variant:u}=n,d=jn(n,Np),p=h.useContext(Pl),f=h.useContext(ic),m=f&&"head"===f.variant;let g;g=i||(m?"th":"td");let b=s;!b&&m&&(b="col");const v=u||f&&f.variant,y=Ln({},n,{align:r,component:g,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:"head"===v&&p&&p.stickyHeader,variant:v}),x=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return Lr({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${or(r)}`,"normal"!==o&&`padding${or(o)}`,`size${or(i)}`]},Ip,t)})(y);let S=null;return c&&(S="asc"===c?"ascending":"descending"),Ci.jsx(Fp,Ln({as:g,ref:t,className:si(x.root,o),"aria-sort":S,scope:b,ownerState:y},d))})),jp=Zl("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),qp=Zl(gl,{shouldForwardProp:e=>"tableTheme"!==e})((({tableTheme:e,theme:t})=>({height:48,display:"flex",justifyContent:"flex-end",alignItems:"center",paddingRight:t.spacing(1),boxShadow:"none",borderStyle:"solid",borderWidth:"0px 0px 1px 0px",borderRadius:0,borderColor:e.pagination.borderColor,color:e.pagination.color,backgroundColor:e.backgroundColor}))),zp=Zl(Tp,{shouldForwardProp:e=>"paginationTheme"!==e})((({paginationTheme:e})=>({backgroundColor:"inherit","& .MuiNativeSelect-icon":{color:e.iconColor}}))),$p=Zl(Dp,{shouldForwardProp:e=>"disabledCondition"!==e&&"paginationTheme"!==e})((({disabledCondition:e,paginationTheme:t})=>({color:e?t.disabledIconColor:t.iconColor,cursor:e?"default":"pointer",height:"32px"}))),_p=Zl(Su,{shouldForwardProp:e=>"paginationNeeded"!==e&&"bodyCellStyle"!==e})((({paginationNeeded:e,bodyCellStyle:t})=>({"tr :last-child":{borderRight:e&&0},"tr :first-child":{borderLeft:!e&&"1px solid rgb(217, 217, 217)"},"& td, th":{fontSize:t.fontSize,padding:t.padding,userSelect:"none"}}))),Bp=Zl(dc,{shouldForwardProp:e=>"bodyCellStyle"!==e})((({hover:e,bodyCellStyle:t})=>e?{"&&:hover":{"& td:not(.selected), th:not(.selected)":{backgroundColor:t.hoverBackgroundColor,color:t.hoverFontColor}}}:{})),Hp=Zl(dc,{shouldForwardProp:e=>"paginationNeeded"!==e})((({paginationNeeded:e})=>({"& :last-child":{borderRight:e&&0},"th:first-of-type":{borderLeft:!e&&"1px solid rgb(217, 217, 217)"}}))),Wp=Zl(gu,{shouldForwardProp:e=>"headerStyle"!==e})((({headerStyle:e})=>({"&.Mui-active .MuiTableSortLabel-icon":{color:e.sortLabelColor}}))),Vp=Zl("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),Up=Zl(Lp,{shouldForwardProp:e=>"isTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,isTop:t,headRowHeight:n})=>({...e,fontWeight:"bold",position:"sticky",borderWidth:t?"0px 1px 2px 0px":"2px 1px 1px 0px",top:t&&n,bottom:!t&&0,marginTop:0}))),Kp=Zl(gl,{shouldForwardProp:e=>"tableTheme"!==e&&"paginationNeeded"!==e})((({tableTheme:e,paginationNeeded:t})=>({borderWidth:t?"0px 1px 0px":"0px",borderStyle:"solid",borderColor:e.borderColor,height:"100%",backgroundColor:e.tableBackgroundColorFromTheme,boxShadow:"none",borderRadius:"unset"}))),Gp=Zl(oc,{shouldForwardProp:e=>"fullHeight"!==e&&"constraints"!==e})((({fullHeight:e,constraints:t})=>({height:e?"100%":"calc(100% - 49px)",overflow:t.active?"hidden":"auto"}))),Xp=()=>b.createElement(b.Fragment,null,b.createElement(jp,{id:"sn-table-announcer--01","aria-live":"polite","aria-atomic":"true"}),b.createElement(jp,{id:"sn-table-announcer--02","aria-live":"polite","aria-atomic":"true"})),Yp={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Jp=e=>parseInt(e.repeat(2/e.length),16),Zp=e=>{const t=Math.floor((e.length-1)/3),n=((e,t)=>e.match(new RegExp(`.{${t}}`,"g")))(e.slice(1),t),[r,o,i,a]=n.map(Jp);return void 0!==a?`rgba(${r},${o},${i},${a/255})`:`rgb(${r},${o},${i})`};function Qp(e){let t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return`rgb(${t[1]},${t[2]},${t[3]})`;if(t=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return`rgba(${t[1]},${t[2]},${t[3]},${t[4]})`;if(t=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e),t){const e=Math.round(+t[1]/2.55)/100;return`rgba(${t[2]},${t[3]},${t[4]},${e})`}if(t=/^#(?:(?:[\da-f]{3}){1,2}|(?:[\da-f]{4}){1,2})$/i.exec(e),t)return Zp(e);const n=e&&Yp[e.toLowerCase()];return n?void 0!==n.a?`rgba(${n.r},${n.g},${n.b},${n.a})`:`rgb(${n.r},${n.g},${n.b})`:"none"}function ef(e){if(null==e)return!1;const t=Qp(e),n=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t)||/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),r=null==n?void 0:n[1],o=null==n?void 0:n[2],i=null==n?void 0:n[3];return!!(void 0!==r&&void 0!==o&&void 0!==i)&&.299*+r+.587*+o+.114*+i<125}let tf,nf,rf,of;!function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(tf||(tf={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_PAGE_ROWS="updatePageRows"}(nf||(nf={})),function(e){e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c"}(rf||(rf={})),function(e){e.BORDER_STYLE="solid",e.BODY_BORDER="0px 1px 1px 0px",e.HEAD_BORDER="1px 1px 1px 0px",e.HEAD_CURSOR="pointer",e.HEAD_BACKGROUND_LIGHT="#FAFAFA",e.HEAD_BACKGROUND_DARK="#323232",e.SORT_LABEL_LIGHT="rgba(255,255,255,0.9)",e.SORT_LABEL_DARK="rgba(0, 0, 0, 0.54)",e.FONT_COLOR="#404040",e.WHITE="#fff",e.HOVER_BACKGROUND="#f4f4f4",e.SELECTED_BACKGROUND="#009845",e.EXCLUDED_BACKGROUND="repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"}(of||(of={}));const af={SELECTED:{color:of.WHITE,background:of.SELECTED_BACKGROUND,selectedCellClass:tf.SELECTED},POSSIBLE:{color:of.FONT_COLOR,background:of.WHITE}},sf=e=>!!e&&JSON.stringify(e)!==JSON.stringify({index:-1,color:null});function lf(e){if(e&&(null!=e&&e.fontSize||"padding"in e)){let t;return null!=e&&e.padding?({padding:t}=e):null!=e&&e.fontSize&&(t=`${e.fontSize/2}px ${e.fontSize}px`),t}}function cf(e,t,n={}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const uf=e=>ef(e)?of.WHITE:of.FONT_COLOR,df=(e,t,n)=>{const r=t.getStyle("object",`straightTable.${e}`,"fontFamily"),o=t.getStyle("object",`straightTable.${e}`,"color"),i=t.getStyle("object",`straightTable.${e}`,"fontSize"),a={fontFamily:r,color:sf(null==n?void 0:n.fontColor)?cf(of.FONT_COLOR,t,null==n?void 0:n.fontColor):o,fontSize:(null==n?void 0:n.fontSize)&&`${n.fontSize}px`||i,padding:lf(n),borderStyle:of.BORDER_STYLE,borderColor:t.table.body.borderColor};return Object.keys(a).forEach((e=>{const t=e;null==a[t]&&delete a[t]})),a};function pf(e,t){var n,r,o;const i=null===(n=e.components)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.header,a=df("header",t,i);a.cursor=of.HEAD_CURSOR,a.borderWidth=of.HEAD_BORDER;const s=ef(a.color)?of.HEAD_BACKGROUND_LIGHT:of.HEAD_BACKGROUND_DARK;return a.backgroundColor=t.table.isBackgroundTransparentColor?s:function(e){if(void 0!==e){const t=Qp(e),n=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t);if(n)return`rgb(${n[1]},${n[2]},${n[3]})`}return e}(t.table.backgroundColor),a.sortLabelColor=null!==(o=a.color)&&void 0!==o?o:ef(a.backgroundColor)?of.SORT_LABEL_LIGHT:of.SORT_LABEL_DARK,a}function ff(e,t){var n,r;const o=null===(n=e.components)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.content,i=df("content",t,o);i.borderWidth=of.BODY_BORDER;const a=null==o?void 0:o.hoverColor,s=null==o?void 0:o.hoverFontColor,l=t.getStyle("object","","straightTable.content.hover.backgroundColor"),c=t.getStyle("object","","straightTable.content.hover.color"),u=sf(s)||!!c,d=sf(a)||!!l,p=u||d;let f;f=sf(a)?cf(of.HOVER_BACKGROUND,t,a):l||(u?"":of.HOVER_BACKGROUND);const m=p?cf(uf(f),t,sf(s)?s:c):"";return{...i,hoverBackgroundColor:f,hoverFontColor:m}}function mf(e){return t=>{const{cell:n,column:r,styling:o}=t,i=y((()=>function(e,t,n){const r={};return t.qValues.forEach(((e,t)=>{const o=e.qText&&Qp(e.qText);o&&"none"!==o&&(r[n[t]]=o)})),r.cellBackgroundColor&&!r.cellForegroundColor&&(r.cellForegroundColor=uf(r.cellBackgroundColor)),{...e,color:r.cellForegroundColor||e.color,backgroundColor:r.cellBackgroundColor||e.backgroundColor}}(o,n.qAttrExps,r.stylingIDs)),[o,n.qAttrExps,r.stylingIDs]);return b.createElement(e,Al({},t,{styling:i}))}}const gf=new Map;function hf(e,t){const n=function(e){return gf.get(e)}(e),[r,o]=S(n),[,i]=P((e=>e+1),0),a=w(t),s=w(),l=r();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const c=y((()=>t(l)),[l,t]);return x((()=>{a.current=t,s.current=c}),[l,c,t]),x((()=>{const e=e=>{(a.current&&a.current(e))!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),c}const bf=(e,t)=>{var n;return null===(n=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[t[1]]},vf=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),yf=({focusType:e,cell:t})=>{if(t)switch(e){case"focus":t.focus(),t.setAttribute("tabIndex","0");break;case"blur":t.blur(),t.setAttribute("tabIndex","-1");break;case"addTab":t.setAttribute("tabIndex","0");break;case"removeTab":t.setAttribute("tabIndex","-1")}},xf=(e,t,n,r,o)=>{yf({focusType:"removeTab",cell:e.target});const i=((e,t,n,r={top:0,bottom:0})=>{const o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length;let[a,s]=n;switch(e.key){case"ArrowDown":a<o-1-r.bottom&&a++;break;case"ArrowUp":a>r.top&&a--;break;case"ArrowRight":if(r.top>0)break;s<i-1?s++:a<o-1&&(a++,s=0);break;case"ArrowLeft":if(r.top>0)break;s>0?s--:a>0&&(a--,s=i-1)}return[a,s]})(e,t,n,o),a=bf(t,i);return yf({focusType:"focus",cell:a}),r(i),a},Sf=(e,t,n,r)=>{var o;(yf({focusType:"removeTab",cell:vf(t)}),n(e),r.enabled&&!r.active)?null===(o=r.focus)||void 0===o||o.call(r):yf({focusType:"addTab",cell:bf(t,e)})},wf=(e,t,n)=>{var r,o,i;const a=null===(r=e.closest(".qv-object-wrapper"))||void 0===r||null===(o=r.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement;a?a.focus():null===(i=t.focusSelection)||void 0===i||i.call(t,n)},Cf=async e=>{var t;let n=e.target;n.classList.contains("sn-table-cell")||(n=n.closest(".sn-table-cell"));const r=null===(t=n.querySelector(".sn-table-cell-text"))||void 0===t?void 0:t.textContent;try{r&&await navigator.clipboard.writeText(String(r))}catch(e){console.log(e)}},Ef=e=>{e.stopPropagation(),e.preventDefault()},kf=e=>e.shiftKey&&(e.ctrlKey||e.metaKey),Tf=e=>[rf.LEFT,rf.RIGHT,rf.UP,rf.DOWN].includes(e),Rf=e=>e.shiftKey&&Tf(e.key),Af=(e,t=!1,n=!1,r=!0)=>{const o=n&&t,i=!e.shiftKey&&(r||!o),a=e.shiftKey&&!o;return e.key===rf.ESC&&!t||e.key===rf.TAB&&(i||a)||(e.key===rf.LEFT||e.key===rf.RIGHT)&&kf(e)},Pf=({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:s,paginationNeeded:l,totalsPosition:c,selectionsAPI:u,areBasicFeaturesEnabled:d})=>{if(e.target.classList.contains("excluded"))return void Ef(e);const p=u.isModal();if(Af(e,p,s.enabled,l))return;Ef(e);const f="top"===c?2:1,m=[n.pageRowIdx+f,n.pageColIdx],g={top:p?f:0,bottom:p&&"bottom"===c?1:0};switch(e.key){case rf.UP:case rf.DOWN:{e.key===rf.UP&&((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(null==n||!n.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[r])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a)return;if(a.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-a.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})([n.pageRowIdx,n.pageColIdx],t);const s=xf(e,t,m,i,g);((e,t,n,r)=>n.shiftKey&&(n.key===rf.UP&&0!==r.pageRowIdx||n.key===rf.DOWN&&!r.isLastRow)&&e&&t&&r.isSelectable)(d,o,e,n)?r({type:nf.SELECT_MULTI_ADD,payload:{cell:n,evt:e,announce:a}}):((e,t,n)=>{n&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,s,p);break}case rf.LEFT:case rf.RIGHT:xf(e,t,m,i,g);break;case rf.SPACE:n.isSelectable&&o&&r({type:nf.SELECT,payload:{cell:n,evt:e,announce:a}});break;case rf.ENTER:p&&(u.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case rf.ESC:u.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case rf.TAB:wf(e.target,s,e.shiftKey);break;case rf.C:d&&(e.ctrlKey||e.metaKey)&&Cf(e)}};const Of=(e,t,n)=>{const r=Object.keys(n).length,o=r>=Object.keys(t).length;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},Df=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l={};if(-1===o)n.begin(["/qHyperCubeDef"]);else{if(o!==i.colIdx)return e;l={...r}}return l=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?{[r]:o}:(void 0!==e[r]?delete e[r]:e[r]=o,{...e})})(l,i,s),Of(a,r,l),Object.keys(l).length?(n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(l),[i.colIdx]]}),{...e,rows:l,colIdx:i.colIdx}):(n.cancel(),{...e,rows:l,colIdx:-1})},If=(e,t)=>{var n;const{api:r,rows:o,colIdx:i,pageRows:a,firstCell:s}=e,{cell:l,announce:c,evt:u}=t;let d={};return s||"key"in u&&Rf(u)?(-1===i?r.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,n,r,o)=>{const i={...t};if("key"in r&&Rf(r)){i[n.qElemNumber]=n.rowIdx;const t=r.key===rf.DOWN?1:-1;return i[e[n.pageRowIdx+t][`col-${n.colIdx}`].qElemNumber]=n.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),s=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=s;t++){const n=e[t][`col-${o.colIdx}`];i[n.qElemNumber]=n.rowIdx}return i})(a,d,l,u,s),Of(c,o,d),{...e,rows:d,colIdx:null!==(n=null==s?void 0:s.colIdx)&&void 0!==n?n:l.colIdx,isSelectMultiValues:!0}):e},Mf=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(n),[r]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},Nf=(e,t)=>{switch(t.type){case nf.SELECT:return Df(e,t.payload);case nf.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.colIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case nf.SELECT_MOUSE_UP:return((e,t)=>Mf(e.isSelectMultiValues||e.firstCell!==t.cell?e:Df(e,t)))(e,t.payload);case nf.SELECT_MULTI_ADD:return If(e,t.payload);case nf.SELECT_MULTI_END:return Mf(e);case nf.RESET:return e.api.isModal()?e:{...e,rows:{},colIdx:-1};case nf.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case nf.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}};function Ff(e,t){const n=w(!1);x((()=>{n.current?e():n.current=!0}),t)}const Lf=R({}),jf=function(e){const t=R([()=>{},new Set]);return gf.set(e,t),({children:n,value:r})=>{const o=w(r),i=w(new Set);x((()=>{o.current=r,i.current.forEach((e=>{e(r)}))}),[r]);const a=A((()=>o.current),[o]),s=y((()=>[a,i.current]),[o]);return b.createElement(e.Provider,{value:r},b.createElement(t.Provider,{value:s},n))}}(Lf),qf=({children:e,selectionsAPI:t,pageRows:n=[],cellCoordMock:r,selectionDispatchMock:o})=>{const[i,a]=v(0),[s,l]=v(r||[0,0]),[c,u]=P(Nf,{pageRows:n,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return Ff((()=>{u({type:nf.UPDATE_PAGE_ROWS,payload:{pageRows:n}})}),[n]),b.createElement(jf,{value:{headRowHeight:i,setHeadRowHeight:a,focusedCellCoord:s,setFocusedCellCoord:l,selectionState:c,selectionDispatch:o||u}},e)};function zf(e){return t=>{const{cell:n,styling:r,announce:o,onMouseDown:i,areBasicFeaturesEnabled:a}=t,s=hf(Lf,(e=>((e,t)=>{const{colIdx:n,rows:r,api:o}=t;let i=tf.INACTIVE;return o.isModal()&&(i=n!==e.colIdx?tf.EXCLUDED:void 0!==r[e.qElemNumber]?tf.SELECTED:tf.POSSIBLE),i})(n,e.selectionState))),l=hf(Lf,(e=>e.selectionDispatch)),{handleMouseDown:c,handleMouseOver:u,handleMouseUp:d}=((e,t,n,r,o)=>({handleMouseDown:t=>{if(null==n||n(t),o&&e.isSelectable){const t=()=>r({type:nf.SELECT_MULTI_END});r({type:nf.SELECT_MOUSE_DOWN,payload:{cell:e,mouseupOutsideCallback:t}})}},handleMouseOver:n=>{o&&1===n.buttons&&r({type:nf.SELECT_MULTI_ADD,payload:{cell:e,evt:n,announce:t}})},handleMouseUp:n=>{o&&0===n.button?r({type:nf.SELECT_MOUSE_UP,payload:{cell:e,evt:n,announce:t}}):!o&&e.isSelectable&&r({type:nf.SELECT,payload:{cell:e,evt:n,announce:t}})}}))(n,o,i,l,a),p=function(e,t){let n={};switch(t){case tf.SELECTED:n=af.SELECTED;break;case tf.POSSIBLE:n=af.POSSIBLE;break;case tf.EXCLUDED:n={background:`${of.EXCLUDED_BACKGROUND}, ${e.backgroundColor}`,selectedCellClass:tf.EXCLUDED}}return{...e,...n}}(r,s);return b.createElement(e,Al({},t,{styling:p,onMouseUp:d,onMouseDown:c,onMouseOver:u}))}}function $f(e,t){let n=(r=Lp,e=>{const{styling:{selectedCellClass:t,...n},component:o,align:i,children:a,scope:s,tabIndex:l,onKeyDown:c,onMouseDown:u,onKeyUp:d,onMouseUp:p,onMouseOver:f}=e;return b.createElement(r,{component:o,scope:s,align:i,tabIndex:l,className:`sn-table-cell ${t||""}`,sx:n,onKeyDown:c,onMouseDown:u,onKeyUp:d,onMouseUp:p,onMouseOver:f},a)});var r;return t&&(n=zf(n)),e&&(n=mf(n)),n}const _f=Pi({defaultTheme:ol(),defaultClassName:"MuiBox-root",generateClassName:qr.generate});function Bf({children:e}){return b.createElement(_f,{component:"span",className:"sn-table-cell-text",sx:{borderLeft:"0 !important"}},e)}function Hf({rootElement:e,tableData:t,theme:n,layout:r,keyboard:o,selectionsAPI:i,areBasicFeaturesEnabled:a}){const{columns:s,paginationNeeded:l,totalsPosition:c,rows:u}=t,d=hf(Lf,(e=>e.headRowHeight)),p=hf(Lf,(e=>e.setFocusedCellCoord)),f=y((()=>function(e,t){const n=pf(e,t);return{...ff(e,t),backgroundColor:n.backgroundColor}}(r,n)),[r,n.name()]),m="top"===c;return b.createElement(Hp,{paginationNeeded:l,className:"sn-table-row"},s.map(((t,n)=>{const r=[m?1:u.length+1,n];return b.createElement(Up,{totalsStyle:f,headRowHeight:d,isTop:m,key:t.id,align:t.align,className:"sn-table-cell",tabIndex:-1,onKeyDown:t=>{((e,t,n,r,o,i)=>{if(o)Ef(e);else if(!Af(e))switch(Ef(e),e.key){case rf.LEFT:case rf.RIGHT:case rf.UP:case rf.DOWN:xf(e,t,n,r);break;case rf.C:i&&(e.ctrlKey||e.metaKey)&&Cf(e)}})(t,e,r,p,i.isModal(),a)},onMouseDown:()=>{Sf(r,e,p,o)}},b.createElement(Bf,null,t.totalInfo))})))}var Wf=O(Hf);function Vf({rootElement:e,tableData:t,constraints:n,selectionsAPI:r,layout:o,theme:i,setShouldRefocus:a,keyboard:s,tableWrapperRef:l,announce:c,areBasicFeaturesEnabled:u}){var d,p,f;const{rows:m,columns:g,paginationNeeded:h,totalsPosition:v}=t,S=JSON.stringify(g.map((e=>e.stylingIDs))),w=hf(Lf,(e=>e.setFocusedCellCoord)),C=hf(Lf,(e=>e.selectionDispatch)),E=!n.active&&!n.select,k=y((()=>JSON.parse(S).map((e=>$f(!!e.length,E)))),[S,E]),T=y((()=>ff(o,i)),[o,i]),R=null===(d=o.components)||void 0===d||null===(p=d[0])||void 0===p||null===(f=p.content)||void 0===f?void 0:f.hoverEffect,A={color:T.color,backgroundColor:i.table.backgroundColor};x((()=>{!function({api:e,selectionDispatch:t,setShouldRefocus:n,keyboard:r,tableWrapperRef:o}){const i=()=>{t({type:nf.RESET})},a=()=>{t({type:nf.CLEAR})},s=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))n();else if(r.enabled){var t;null===(t=r.blur)||void 0===t||t.call(r,!0)}i()};e.on("deactivated",i),e.on("canceled",i),e.on("confirmed",s),e.on("cleared",a)}({api:r,selectionDispatch:C,setShouldRefocus:a,keyboard:s,tableWrapperRef:l})}),[]);const P=b.createElement(Wf,{rootElement:e,tableData:t,theme:i,layout:o,keyboard:s,selectionsAPI:r,areBasicFeaturesEnabled:u});return b.createElement(_p,{paginationNeeded:h,bodyCellStyle:T},"top"===v?P:void 0,m.map((t=>b.createElement(Bp,{bodyCellStyle:T,hover:R,tabIndex:-1,key:t.key,className:"sn-table-row"},g.map(((n,o)=>{const{id:i,align:a}=n,l=t[i],d=k[o];return d&&b.createElement(d,{scope:0===o?"row":null,component:0===o?"th":null,cell:l,column:n,key:i,align:a,styling:A,tabIndex:-1,announce:c,areBasicFeaturesEnabled:u,onKeyDown:t=>{Pf({evt:t,rootElement:e,selectionsAPI:r,cell:l,selectionDispatch:C,isSelectionsEnabled:E,setFocusedCellCoord:w,announce:c,keyboard:s,paginationNeeded:h,totalsPosition:v,areBasicFeaturesEnabled:u})},onKeyUp:e=>((e,t,n)=>{n&&e.key===rf.SHIFT&&t({type:nf.SELECT_MULTI_END})})(e,C,u),onMouseDown:()=>((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e;Sf(["top"===o?i+2:i+1,a],t,n,r)})(l,e,w,s,v)},b.createElement(Bf,null,l.qText))}))))),"bottom"===v?P:void 0)}var Uf=O(Vf);function Kf(e){return $r("MuiTableHead",e)}_r("MuiTableHead",["root"]);const Gf=["className","component"],Xf=ul("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Yf={variant:"head"},Jf="thead",Zf=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiTableHead"}),{className:r,component:o=Jf}=n,i=jn(n,Gf),a=Ln({},n,{component:o}),s=(e=>{const{classes:t}=e;return Lr({root:["root"]},Kf,t)})(a);return Ci.jsx(ic.Provider,{value:Yf,children:Ci.jsx(Xf,Ln({as:o,className:si(s.root,r),ref:t,role:o===Jf?null:"rowgroup",ownerState:a},i))})}));function Qf({rootElement:e,tableData:t,theme:n,layout:r,changeSortOrder:o,constraints:i,translator:a,selectionsAPI:s,keyboard:l,areBasicFeaturesEnabled:c}){var u;const{columns:d,paginationNeeded:p}=t,f=hf(Lf,(e=>e.setHeadRowHeight)),m=hf(Lf,(e=>0===e.focusedCellCoord[0])),g=hf(Lf,(e=>e.setFocusedCellCoord)),h=y((()=>pf(r,n)),[r,n]),v=w(),S=!i.active&&!s.isModal();return x((()=>{v.current&&f(v.current.getBoundingClientRect().height)}),[v.current,h.fontSize,null===(u=v.current)||void 0===u?void 0:u.getBoundingClientRect().height]),b.createElement(Zf,null,b.createElement(Hp,{ref:v,paginationNeeded:p,className:"sn-table-row"},d.map(((t,n)=>{const s=0!==n||l.enabled?-1:0,u=r.qHyperCube.qEffectiveInterColumnSortOrder[0]===t.dataColIdx,d=u?`${t.sortDirection}ending`:void 0;return b.createElement(Lp,{sx:h,key:t.id,align:t.align,className:"sn-table-head-cell sn-table-cell",tabIndex:s,"aria-sort":d,"aria-pressed":u,onKeyDown:i=>{(({evt:e,rootElement:t,cellCoord:n,column:r,changeSortOrder:o,layout:i,isInteractionEnabled:a,setFocusedCellCoord:s,areBasicFeaturesEnabled:l})=>{if(a){if(!Af(e))switch(Ef(e),e.key){case rf.LEFT:case rf.RIGHT:case rf.DOWN:xf(e,t,n,s);break;case rf.SPACE:case rf.ENTER:o(i,r);break;case rf.C:l&&(e.ctrlKey||e.metaKey)&&Cf(e)}}else Ef(e)})({evt:i,rootElement:e,cellCoord:[0,n],column:t,changeSortOrder:o,layout:r,isInteractionEnabled:S,setFocusedCellCoord:g,areBasicFeaturesEnabled:c})},onMouseDown:()=>((e,t,n,r)=>{Sf([0,e],t,n,r)})(n,e,g,l),onClick:()=>S&&o(r,t)},b.createElement(Wp,{headerStyle:h,active:u,title:i.passive?void 0:t.sortDirection,direction:t.sortDirection,tabIndex:-1,onMouseDown:t=>((e,t,n)=>{e.preventDefault(),yf({focusType:"focus",cell:bf(t,[0,n])})})(t,e,n)},b.createElement(Bf,null,t.label),m&&b.createElement(Vp,{"data-testid":`VHL-for-col-${n}`},a.get("SNTable.SortLabel.PressSpaceToSort"))))}))))}var em=O(Qf);function tm({children:e,theme:t,footerContainer:n}){return n?I.createPortal(e,n):b.createElement(qp,{tableTheme:t.table},e)}function nm(e){return $r("MuiFormLabel",e)}const rm=_r("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),om=["children","className","color","component","disabled","error","filled","focused","required"],im=ul("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>Ln({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>Ln({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${rm.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${rm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rm.error}`]:{color:(e.vars||e).palette.error.main}}))),am=ul("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${rm.error}`]:{color:(e.vars||e).palette.error.main}}))),sm=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiFormLabel"}),{children:r,className:o,component:i="label"}=n,a=jn(n,om),s=Ld({props:n,muiFormControl:qd(),states:["color","required","focused","disabled","error","filled"]}),l=Ln({},n,{color:s.color||"primary",component:i,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e;return Lr({root:["root",`color${or(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]},nm,t)})(l);return Ci.jsxs(im,Ln({as:i,ownerState:l,className:si(c.root,o),ref:t},a,{children:[r,s.required&&Ci.jsxs(am,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}));function lm(e){return $r("MuiInputLabel",e)}_r("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const cm=["disableAnimation","margin","shrink","variant","className"],um=ul(sm,{shouldForwardProp:e=>ll(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rm.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>Ln({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&Ln({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&Ln({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&Ln({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"})))),dm=h.forwardRef((function(e,t){const n=sl({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:o,className:i}=n,a=jn(n,cm),s=qd();let l=o;void 0===l&&s&&(l=s.filled||s.focused||s.adornedStart);const c=Ld({props:n,muiFormControl:s,states:["size","variant","required"]}),u=Ln({},n,{disableAnimation:r,formControl:s,shrink:l,size:c.size,variant:c.variant,required:c.required}),d=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e;return Ln({},t,Lr({root:["root",n&&"formControl",!i&&"animated",o&&"shrink","small"===r&&"sizeSmall",a],asterisk:[s&&"asterisk"]},lm,t))})(u);return Ci.jsx(um,Ln({"data-shrink":l,ownerState:u,ref:t,className:si(d.root,i)},a,{classes:d}))}));function pm(e){return $r("MuiFormControl",e)}_r("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const fm=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],mm=ul("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>Ln({},t.root,t[`margin${or(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>Ln({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),gm=h.forwardRef((function(e,t){const n=sl({props:e,name:"MuiFormControl"}),{children:r,className:o,color:i="primary",component:a="div",disabled:s=!1,error:l=!1,focused:c,fullWidth:u=!1,hiddenLabel:d=!1,margin:p="none",required:f=!1,size:m="medium",variant:g="outlined"}=n,b=jn(n,fm),v=Ln({},n,{color:i,component:a,disabled:s,error:l,fullWidth:u,hiddenLabel:d,margin:p,required:f,size:m,variant:g}),y=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return Lr({root:["root","none"!==n&&`margin${or(n)}`,r&&"fullWidth"]},pm,t)})(v),[x,S]=h.useState((()=>{let e=!1;return r&&h.Children.forEach(r,(t=>{if(!lr(t,["Input","Select"]))return;const n=lr(t,["Select"])?t.props.input:t;n&&function(e){return e.startAdornment}(n.props)&&(e=!0)})),e})),[w,C]=h.useState((()=>{let e=!1;return r&&h.Children.forEach(r,(t=>{lr(t,["Input","Select"])&&kd(t.props,!0)&&(e=!0)})),e})),[E,k]=h.useState(!1);s&&E&&k(!1);const T=void 0===c||s?E:c;const R=h.useCallback((()=>{C(!0)}),[]),A={adornedStart:x,setAdornedStart:S,color:i,disabled:s,error:l,filled:w,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{k(!1)},onEmpty:h.useCallback((()=>{C(!1)}),[]),onFilled:R,onFocus:()=>{k(!0)},registerEffect:undefined,required:f,variant:g};return Ci.jsx(jd.Provider,{value:A,children:Ci.jsx(mm,Ln({as:a,ownerState:v,className:si(y.root,o),ref:t},b,{children:r}))})}));var hm={},bm={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(bm);var vm={};const ym={configure:e=>{console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),qr.configure(e)}};var xm,Sm=L(Object.freeze({__proto__:null,unstable_ClassNameGenerator:ym,capitalize:or,createChainedFunction:ir,createSvgIcon:lu,debounce:ar,deprecatedPropType:sr,isMuiElement:lr,ownerDocument:cr,ownerWindow:ur,requirePropFactory:dr,setRef:pr,unstable_useEnhancedEffect:fr,unstable_useId:hr,unsupportedProp:br,useControlled:vr,useEventCallback:yr,useForkRef:xr,useIsFocusVisible:Pr}));function wm(){return xm||(xm=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Sm}(vm)),vm}var Cm=bm.exports;Object.defineProperty(hm,"__esModule",{value:!0});var Em=hm.default=void 0,km=Cm(wm()),Tm=wi(),Rm=(0,km.default)((0,Tm.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");Em=hm.default=Rm;var Am={},Pm=bm.exports;Object.defineProperty(Am,"__esModule",{value:!0});var Om=Am.default=void 0,Dm=Pm(wm()),Im=wi(),Mm=(0,Dm.default)((0,Im.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft");Om=Am.default=Mm;var Nm={},Fm=bm.exports;Object.defineProperty(Nm,"__esModule",{value:!0});var Lm=Nm.default=void 0,jm=Fm(wm()),qm=wi(),zm=(0,jm.default)((0,qm.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");Lm=Nm.default=zm;var $m={},_m=bm.exports;Object.defineProperty($m,"__esModule",{value:!0});var Bm=$m.default=void 0,Hm=_m(wm()),Wm=wi(),Vm=(0,Hm.default)((0,Wm.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");const Um={FirstPage:Em,PreviousPage:Om,NextPage:Lm,LastPage:Bm=$m.default=Vm,FirstPageRTL:Bm,PreviousPageRTL:Lm,NextPageRTL:Om,LastPageRTL:Em},Km=(e,t)=>{switch(e){case"selectPage":return t>700;case"rppOptions":return t>550;case"firstLast":return t>350;case"displayedRows":return t>250;default:return!1}};function Gm({theme:e,direction:t,tableData:n,pageInfo:r,setPageInfo:o,keyboard:i,translator:a,constraints:s,footerContainer:l,isSelectionMode:c,rect:u,handleChangePage:d,announce:p}){const{totalRowCount:f,totalColumnCount:m,totalPages:g,paginationNeeded:h}=n,{page:v,rowsPerPage:y,rowsPerPageOptions:x}=r;if(!h)return null;const S=e.table.pagination,w=0===v,C=v>=g-1,E=!i.enabled||i.active?0:-1,k=l?l.getBoundingClientRect().width:u.width,T=Km("firstLast",k),R=!c&&Km("rppOptions",k)&&m<=100,A=a.get("SNTable.Pagination.DisplayedRowsLabel",[`${v*y+1} - ${Math.min((v+1)*y,f)}`,f.toString()]),P=i.enabled?e=>((e,t,n)=>{t&&e.key===rf.TAB&&!e.shiftKey&&(Ef(e),wf(e.target,n,!1))})(e,c,i):null,O=(e,n,r,o)=>{const i=Um[`${r}${"rtl"===t?"RTL":""}`];return b.createElement($p,{disabledCondition:e,paginationTheme:S,"data-testid":"pagination-action-icon-button",onClick:e?null:()=>d(n),"aria-disabled":e,"aria-label":a.get(`SNTable.Pagination.${r}`),title:s.passive?void 0:a.get(`SNTable.Pagination.${r}`),tabIndex:E,onKeyDown:o},b.createElement(i,null))},D=(e,t,n,r)=>{const o=`SNTable.Pagination.${e}`,i=`${e}-dropdown`,s={tabIndex:E,id:i,"data-testid":i,style:{color:S.color,height:30}};return b.createElement(gm,{sx:{px:2.5}},b.createElement(dm,{sx:{color:S.color},htmlFor:i,shrink:!1},`${a.get(o)}:`),b.createElement(zp,{paginationTheme:S,native:!0,value:t,onChange:r,inputProps:s},n))},I=b.createElement(b.Fragment,null,x.map((e=>b.createElement("option",{key:e,value:e},e)))),M=b.createElement(b.Fragment,null,Array.from(Array(g).keys()).map(((e,t)=>b.createElement("option",{key:e,value:t},e+1))));return b.createElement(b.Fragment,null,R&&D("RowsPerPage",y,I,(e=>{o({...r,page:0,rowsPerPage:+e.target.value}),p({keys:[["SNTable.Pagination.RowsPerPageChange",e.target.value]],politeness:"assertive"})})),Km("displayedRows",k)&&b.createElement(_f,null,A),Km("selectPage",k)&&D("SelectPage",v,M,(e=>d(+e.target.value))),T&&O(w,0,"FirstPage",null),O(w,v-1,"PreviousPage",null),O(C,v+1,"NextPage",T?null:P),T&&O(C,g-1,"LastPage",P))}var Xm=O(Gm);const Ym=(e,t)=>{x((()=>{const n=e.current;if(!n)return;const r=e=>((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth;let{scrollLeft:o}=n,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))})(e,"rtl"===t,n);return n.addEventListener("wheel",r),()=>{n.removeEventListener("wheel",r)}}),[e,t])};function Jm(e){const{rootElement:t,tableData:n,pageInfo:r,setPageInfo:o,constraints:i,translator:a,selectionsAPI:s,theme:l,keyboard:c,direction:u,footerContainer:d,announce:p}=e,{totalColumnCount:f,totalRowCount:m,totalPages:g,paginationNeeded:h,rows:v,columns:y,totalsPosition:S}=n,{page:C,rowsPerPage:E}=r,k=s.isModal(),T=hf(Lf,(e=>e.focusedCellCoord)),R=hf(Lf,(e=>e.setFocusedCellCoord)),P=w(!1),O=w(),D=w(),I=A((()=>{P.current=t.getElementsByTagName("table")[0].contains(document.activeElement)}),[t]),M=A((e=>{o({...r,page:e}),p({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),g.toString()]],politeness:"assertive"})}),[r,o,g,p]);((e,t,n)=>{x((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{const r=e.currentTarget;var o;!n.enabled||r.contains(e.relatedTarget)||t.current||(r.querySelector("#sn-table-announcer--01").innerHTML="",r.querySelector("#sn-table-announcer--02").innerHTML="",null===(o=n.blur)||void 0===o||o.call(n,!1))})(e,t,n);return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}}),[e,t,n])})(D,P,c),Ym(O,u),Ff((()=>{yf({focusType:c.active?"focus":"blur",cell:bf(t,T)})}),[c.active]),Ff((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:s})=>{yf({focusType:"removeTab",cell:vf(t)});const l=["top"===s?2:1,e[1]],c=r?l:[0,0];if(!i.enabled||i.active){const e=n.current?"focus":"addTab";n.current=!1;const o=bf(t,c);if(yf({focusType:e,cell:o}),r){var u;const e=null==o||null===(u=o.classList)||void 0===u?void 0:u.contains("selected");a({keys:[`${o.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}}o(c)})({focusedCellCoord:T,rootElement:t,shouldRefocus:P,setFocusedCellCoord:R,isSelectionMode:k,keyboard:c,announce:p,totalsPosition:S})}),[v.length,m,f,C]);const N=`${a.get("SNTable.Accessibility.RowsAndColumns",[String(v.length+1),String(y.length)])} ${a.get("SNTable.Accessibility.NavigationInstructions")}`;return b.createElement(Kp,{ref:D,tableTheme:l.table,paginationNeeded:h,dir:u,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:n,rowsPerPage:r,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:s})=>{if(kf(e)){Ef(e);const a=Math.ceil(t/r)-1;e.key===rf.RIGHT&&n<a?(i(),o(n+1)):e.key===rf.LEFT&&n>0&&(i(),o(n-1))}else if(e.key===rf.ESC&&a.enabled&&!s){var l;Ef(e),null===(l=a.blur)||void 0===l||l.call(a,!0)}else Tf(e.key)&&Ef(e)})({evt:e,totalRowCount:m,page:C,rowsPerPage:E,handleChangePage:M,setShouldRefocus:I,keyboard:c,isSelectionMode:k})}},b.createElement(Xp,null),b.createElement(Gp,{ref:O,className:"sn-table-container",fullHeight:d||i.active||!h,constraints:i,tabIndex:-1,role:"application","data-testid":"table-container"},b.createElement(Nl,{stickyHeader:!0,"aria-label":N},b.createElement(em,e),b.createElement(Uf,Al({},e,{setShouldRefocus:I,tableWrapperRef:D})))),!i.active&&b.createElement(tm,{theme:l,footerContainer:d},b.createElement(Xm,Al({},e,{handleChangePage:M,isSelectionMode:k}))))}var Zm,Qm={keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920},unit:"px"},eg={MuiIconButton:{styleOverrides:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&.sprout-focus-visible":{borderColor:"#177FE6",boxShadow:"0 0 0 1px #177FE6"},"&&&:hover":{backgroundColor:"transparent"}}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiFormLabel:{styleOverrides:{root:{color:"#404040",fontSize:12,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:600,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:"#404040"},"&.Mui-error":{color:"rgba(0, 0, 0, 0.55)"},"&[optional=true]":{"&:after":{color:"rgba(0, 0, 0, 0.55)",content:"'(optional)'",fontWeight:400,marginLeft:4}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:"rgba(0, 0, 0, 0.55)",content:"'(required)'",fontWeight:400,marginLeft:4}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:14,lineHeight:16,backgroundColor:"#FFFFFF",borderRadius:3,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:"solid 1px rgba(0, 0, 0, 0.05)",borderColor:"rgba(0, 0, 0, 0.3)"},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:"solid 1px #177FE6",boxShadow:"0px 0px 0px 1px #177FE6, inset 0 2px 0 0 rgba(0, 0, 0, 0.05)"},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:"solid 1px #DC423F",boxShadow:"0px 0px 0px 1px #DC423F, inset 0 2px 0 0 rgba(0, 0, 0, 0.05)"},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:"solid 1px rgba(0, 0, 0, 0.1)",borderColor:"rgba(0, 0, 0, 0.1)",backgroundColor:"rgba(0, 0, 0, 0.05)"}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:"#404040",padding:"8px 12px","&.Mui-disabled":{opacity:.45}},notchedOutline:{borderColor:"rgba(0, 0, 0, 0.15)",borderRadius:3,boxShadow:"inset 0 2px 0 0 rgba(0, 0, 0, 0.05)"},multiline:{padding:"0"}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:"#177FE6",boxShadow:"0 0 0 2px #177FE6"}}}},MuiInputBase:{styleOverrides:{input:{fontSize:14,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:12,fontWeight:600,color:"#404040","&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:600}}}},MuiTab:{styleOverrides:{root:{fontSize:14,fontWeight:600,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:12,"&:hover":{borderBottom:"2px solid #CCCCCC",paddingBottom:10},"&.sprout-focus-visible":{boxShadow:"inset 0 0 0 2px #177FE6",backgroundColor:"rgba(0, 0, 0, 0.03)",borderRadius:3},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:"#404040","&.Mui-selected":{color:"#404040"}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:40,minHeight:48}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:"1px solid #D9D9D9",borderRight:"1px solid #D9D9D9",height:39},head:{height:41,fontWeight:600,backgroundColor:"#FAFAFA"},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:0},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:40,padding:0}},stickyHeader:{backgroundColor:"#FAFAFA",borderBottom:"1px solid #D9D9D9"}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:"1px solid #D9D9D9",borderTop:"1px solid #D9D9D9"}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:"#FAFAFA"}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:"rgba(0, 0, 0, 0.05)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},"&&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"}}}},MuiTableSortLabel:{defaultProps:{},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:"1px solid #D9D9D9"}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiNativeSelect:{styleOverrides:{select:{height:32,zIndex:1,borderRadius:3,"& em":{color:"rgba(0, 0, 0, 0.55)",WebkitFontSmoothing:"antialiased","&::after":{content:"''"}},"& ~i":{position:"absolute",right:"12px",padding:"6px"},"&[aria-expanded=true]":{backgroundColor:"rgba(0, 0, 0, 0.05)"},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&:focus":{backgroundColor:"rgba(0, 0, 0, 0.03)",borderRadius:"3px !important",border:"solid 1px #177FE6",boxShadow:"inset 0px 0px 0px 1px #177FE6"},"&$disabled":{opacity:"unset",color:"rgba(0, 0, 0, 0.3)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0)",borderColor:"rgba(0, 0, 0, 0.15)"},"& ~i":{color:"rgba(0, 0, 0, 0.3)"}}},selectMenu:{height:14},outlined:{border:"solid 1px rgba(0, 0, 0, 0.15)"}}},MuiFormControl:{styleOverrides:{root:{flexDirection:"row",alignItems:"center",paddingLeft:8,paddingRight:18}}}},tg={mode:"light",primary:{light:"#0AAF54",main:"#009845",dark:"#0D6932",contrastText:"#FFFFFF"},secondary:{light:"#469DCD",main:"#3F8AB3",dark:"#2F607B",contrastText:"#FFFFFF"},error:{light:"#F05551",main:"#DC423F",dark:"#97322F",contrastText:"#FFFFFF"},warning:{light:"#FFC629",main:"#EF960F",dark:"#A4681C",contrastText:"#FFFFFF"},success:{light:"#0AAF54",main:"#009845",dark:"#0D6932",contrastText:"#FFFFFF"},info:{light:"#469DCD",main:"#3F8AB3",dark:"#2F607B",contrastText:"#FFFFFF"},text:{primary:"#404040",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.05,active:"rgba(0, 0, 0, 0.54)",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},amethyst:{main:"#655dc6",light:"#8D8BCE",dark:"#413885",contrastText:"#FFFFFF"},background:{paper:"#FFFFFF",default:"#F2F2F2"},divider:"rgba(0, 0, 0, 0.15)",common:{black:"#000",white:"#fff"},grey:{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"},contrastThreshold:3,tonalOffset:.2},ng={borderRadius:3},rg=["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)"],og={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}},ig={fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",lineHeight:1.75},body1:{fontSize:16,lineHeight:"24px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:400},body2:{fontSize:14,lineHeight:"20px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:400},h1:{fontSize:32,lineHeight:"32px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:300},h2:{fontSize:28,lineHeight:"32px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:300},h3:{fontSize:24,lineHeight:"24px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:400},h4:{fontSize:20,lineHeight:"24px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:400},h5:{fontSize:16,fontWeight:600,lineHeight:"16px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"},h6:{fontSize:14,fontWeight:600,lineHeight:"16px",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"},caption:{color:"rgba(0, 0, 0, 0.55)",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:400,fontSize:"0.8571428571428571rem",lineHeight:1.66},subtitle1:{fontSize:14,color:"rgba(0, 0, 0, 0.55)",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:400,lineHeight:1.75},subtitle2:{fontSize:12,color:"rgba(0, 0, 0, 0.55)",fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:600,lineHeight:1.57},overline:{fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:400,fontSize:"0.8571428571428571rem",lineHeight:2.66,textTransform:"uppercase"}},ag={modal:1200,snackbar:1200,drawer:1200,appBar:1200,mobileStepper:1200,tooltip:1200,speedDial:1050},sg={toolbar:{minHeight:56,"@media (min-width:0px) and (orientation: landscape)":{minHeight:48},"@media (min-width:600px)":{minHeight:64}}},lg={breakpoints:Qm,direction:"ltr",components:eg,palette:tg,shape:ng,shadows:rg,transitions:og,typography:ig,zIndex:ag,mixins:sg},cg=Object.freeze({__proto__:null,breakpoints:Qm,direction:"ltr",components:eg,palette:tg,shape:ng,shadows:rg,transitions:og,typography:ig,zIndex:ag,mixins:sg,default:lg});function ug(e,t){const{direction:n,selectionsAPI:r,tableData:o}=e,i=function(e){return eg&&(eg.MuiIconButton.styleOverrides.root.padding="0px 7px",eg.MuiTable.styleOverrides.root={},eg.MuiTableSortLabel.styleOverrides.root.color="inherit",eg.MuiTableSortLabel.styleOverrides.root["&.Mui-active"].color="inherit",eg.MuiTableSortLabel.styleOverrides.root["&:hover"].color="inherit",eg.MuiTableRow.styleOverrides.root["&&:hover"].backgroundColor="rgba(0, 0, 0, 0)",eg.MuiTableCell.styleOverrides.root.padding="7px 14px",eg.MuiTableCell.styleOverrides.root.height="auto",eg.MuiTableCell.styleOverrides.root.lineHeight="130%",eg.MuiTableCell.styleOverrides.head.height="auto",eg.MuiTableCell.styleOverrides.head.lineHeight="150%",eg.MuiTableCell.styleOverrides.root["&:focus"]={boxShadow:"0 0 0 2px #3f8ab3 inset",outline:"none"},eg.MuiTableContainer.styleOverrides.root={},eg.MuiFormLabel.styleOverrides.root["&.Mui-focused"]={color:"inherit"},eg.MuiInputBase.styleOverrides.root={backgroundColor:"inherit"},eg.MuiInputBase.styleOverrides.input.padding="0px 12px",eg.MuiInputBase.styleOverrides.input.border="1px solid transparent",eg.MuiOutlinedInput.styleOverrides.input.padding="0px 12px",eg.MuiNativeSelect.styleOverrides.outlined.border="1px solid transparent",eg.MuiInputLabel.styleOverrides.outlined={fontSize:14,width:"fit-content",position:"relative",padding:8,transform:"none",fontWeight:400},eg.MuiFormControl.styleOverrides.root.paddingLeft=28,eg.MuiFormControl.styleOverrides.root.paddingRight=14),ol({...cg,direction:e})}(n);null==t||t.render(b.createElement(cn,{stylisPlugins:"rtl"===n?[Rl]:void 0},b.createElement(Zi,{theme:i},b.createElement(qf,{selectionsAPI:r,pageRows:null==o?void 0:o.rows},b.createElement(Jm,e)))))}var dg=I;Zm=dg.createRoot,dg.hydrateRoot;var pg,fg={SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。有关键盘导航的完整范围,请参阅文档。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。如需完整的鍵盤導覽,請參閱文件。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(pg||(pg={}));const mg=(t,n)=>e((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(fg).forEach((t=>{e.add(fg[t])}))}}(n),()=>((e,t,n)=>{let r=n||null;return({keys:n,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=n.map((e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)})).join(" "),s=e.querySelector("#sn-table-announcer--01"),l=e.querySelector("#sn-table-announcer--02");let c;r===pg.FIRST?(c=l,r=pg.SECOND):(c=s,r=pg.FIRST),c.innerHTML=c.innerHTML.endsWith(" ­")?a:`${a} ­`,c.setAttribute("aria-atomic",o.toString()),c.setAttribute("aria-live",i)}})(t,n))),[t,n.language()]),gg=(e,t)=>{const n=null==t?void 0:t.closest(".qv-object .qv-inner-object"),r=n&&window.getComputedStyle(n).backgroundColor,o=null==t?void 0:t.closest(".qv-panel-sheet"),i=o&&window.getComputedStyle(o).backgroundColor,a=e.getStyle("","","object.straightTable.backgroundColor"),s=e.getStyle("object","straightTable","backgroundColor"),l=a||r||s,c=function(e){if(void 0===e)return!1;const t=Qp(e),n=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),r=null==n?void 0:n[4];return void 0!==r&&0==+r}(l),u=ef(c?i:l),d=u?" #F2F2F2":"#D9D9D9";return{tableBackgroundColorFromTheme:a||"inherit",backgroundColor:l,isBackgroundTransparentColor:c,isBackgroundDarkColor:u,borderColor:d,body:{borderColor:d},pagination:{borderColor:d,color:u?"rgba(255, 255, 255, 0.9)":"#404040",iconColor:u?"rgba(255, 255, 255, 0.9)":"rgba(0, 0, 0, 0.54)",disabledIconColor:u?"rgba(255, 255, 255, 0.3)":"rgba(0, 0, 0, 0.3)"}}};const hg={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]};function bg(h){const b=h.flags.isEnabled("PS_15585_SN_TABLE_BASIC_FEATURES");return{qae:{properties:{initial:N},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]}},ext:oe(h),component(){const v=r(),y=(t=>e((()=>Zm(t)),[t]))(v),x=o(),{direction:S,footerContainer:w}=i(),C=a(),E=s(),k=l(),T=c(),R=u(),A=d(),P=p(),O=(n=>{const r=t();return e((()=>({...r,table:gg(r,n)})),[r.name(),n])})(v),D=mg(v,T),I=(t=>e((()=>(e=>{if(e)return async(t,n)=>{const{isDim:r,dataColIdx:o}=n,i=(await e.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,a=i[0];o!==a&&(i.splice(i.indexOf(o),1),i.unshift(o));const s=[{qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${i.join(",")}]`}];if(o===a){const{qDimensionInfo:e,qMeasureInfo:n}=t.qHyperCube,i=r?o:o-e.length,{qReverseSort:a}=r?e[i]:n[i],l=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/qReverseSort`;s.push({qPath:l,qOp:"Replace",qValue:(!a).toString()})}e.applyPatches(s,!0)}})(t)),[t]))(E),[M,N]=f(hg),[F]=m((async()=>!h.carbon||null!=E&&E.getHyperCubeData?le(E,x,M,N):(async()=>{})()),[x,M,E]);!function(e){null==n||n(((t,n)=>{e&&n.target&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{Cf(n)}})}))}(b),g((()=>{!h.carbon&&y&&x&&F&&I&&O&&ug({rootElement:v,layout:x,tableData:F,direction:S,pageInfo:M,setPageInfo:N,constraints:k,translator:T,selectionsAPI:R,theme:O,changeSortOrder:I,keyboard:A,rect:P,footerContainer:w,announce:D,areBasicFeaturesEnabled:b},y)}),[y,F,k,S,R.isModal(),O,A.active,P.width,D,I]),g((()=>{(({env:e,rootElement:t,model:n,theme:r,selectionsAPI:o,app:i,rect:a,layout:s,changeSortOrder:l})=>{e.carbon&&l&&r&&ug({rootElement:t,layout:s,model:n,manageData:le,theme:r,selectionsAPI:o,changeSortOrder:l,app:i,rect:a})})({env:h,rootElement:v,model:E,theme:O,selectionsAPI:R,app:C,rect:P,layout:x,changeSortOrder:I})}),[x,E,R.isModal(),O,T.language(),C,I]),g((()=>()=>{y&&function(e){e.unmount()}(y)}),[y])}}}export{bg as default};