@nebula.js/sn-table 2.7.0 → 2.9.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.
@@ -1,54 +1,54 @@
1
1
  /*
2
- * @nebula.js/sn-table v2.7.0
2
+ * @nebula.js/sn-table v2.9.0
3
3
  * Copyright (c) 2023 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-table"]=t(e.stardust)}(this,(function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};function n(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function r(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function o(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}function i(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function a(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function l(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 s(e){return e>0?0:1}function u(e){return e.translator.get("Visualizations.Descriptions.Column")}function c(e){return{measures:{min:s,max:1e3,description:()=>u(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;a(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties;l(o,(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r)}},dimensions:{min:s,max:1e3,description:()=>u(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return a(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;l(o,r)}}}}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var p={};!function(e){(()=>{var t={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Te});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=b(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=b(d,f),v=b(p,h);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}var R=t().bind(null,!0),k={},D=Array.isArray;function A(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function P(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(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]=P(e[n||t])?i:e[t],e=e[n||t]}})),e}function L(e,t){var n=!0;if(A(e)&&A(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){L(e[r],t[r])||(n=!1)})),n);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!L(e[r],t[r]))return!1;return!0}return e===t}k.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);L(i,a)||I(t,o)||(P(a)?r.push({op:"add",path:l,value:i}):A(i)&&A(a)?r=r.concat(k.generate(a,i,l)):D(i)&&D(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&P(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(L(t,o))return r;if(!P(t[0])&&P(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(k.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){P(t[o])&&!I(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,o=T(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(A(a)&&A(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!I(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=T(e,t.from);D(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.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},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const M=k,q=function(e,n,r){if(!e)return Promise.resolve();var o=M.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 O="accumulation";function _(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function N(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=_(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=_(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=_(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function H(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 B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var v=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=H(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=H(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=H(t,e);return i&&!i.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function 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===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var X="difference";function Z(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(J(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Z(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",ke="qDef.base.qAggrFunc",De={initBase:function(e,t){(t||De.isValid(e))&&(n(e,be,i(e,ve)),n(e,xe,i(e,ye)),n(e,we,i(e,Se)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){De.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,xe)),n(e,Se,i(e,we)),n(e,Ee,i(e,Ce)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,xe);return void 0!==t||void 0!==n}};const Ae=De;function Pe(e){return Pe="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},Pe(e)}var Ie={accumulation:z,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Te={modifiers:Ie,apply:Me,applyModifiers:qe,cleanUpMeasure:Oe,destroy:function(e){e&&Le[e.id]&&Le[e.id].masterItemSubscriber&&(Le[e.id].masterItemSubscriber&&Le[e.id].masterItemSubscriber.unsubscribe(),delete Le[e.id])},hasActiveModifiers:_e,getActiveModifier:Ne,initBase:Ae.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Le={};function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Le[n.id]=Le[n.id]||{isFirstTime:!0};var u=Le[n.id].isFirstTime;if(Le[n.id].isFirstTime=!1,r&&"object"===Pe(r))return qe({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Le[n.id].lastReloadTime;if(Le[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),_e({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.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 Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Qe(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(n++,"object"!==Pe(Ie[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=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),qe({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Pe(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return Oe(e)})),Ze({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function qe(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!_e({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ae.isValid(n)||Ae.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(l++,"object"!==Pe(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ie[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[r.type].updateModifier&&Ie[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Ie[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),$e(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Ze({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&!Ie[e.type]}))}(e)?Ae.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function _e(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:je(e),properties:n,layout:r})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ie[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||Ie[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&He(n)!==e.qDef.qDef?delete e.qDef.base:!Ae.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"===Pe(t)&&(t.disabled||!Ie[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ge({modifiers:je(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Pe(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ze(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):q(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ge({modifiers:r,properties:e})){var i=We(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Le[t.id].masterItemSubscriber=Le[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Me({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Le[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),e.default=o.default,Object.defineProperty(e,"__esModule",{value:!0})})()}(p);var f,m,h,g,v,b,y=d(p);!function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(f||(f={})),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"}(m||(m={})),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"}(h||(h={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(g||(g={})),function(e){e.A="ascending",e.D="descending"}(v||(v={})),function(e){e.PIXELS="pixels",e.PERCENTAGE="percentage",e.FIT_TO_CONTENT="fitToContent",e.AUTO="auto"}(b||(b={}));var x=120,S=24,E=[0,0],w=[1,0];const C={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}},R=e=>{var t,n,r,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!y.hasActiveModifiers({measures:[e],properties:t.properties})||y.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(r=e.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"totals"))}},k={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:b.AUTO,translation:"Common.Auto"},{value:b.FIT_TO_CONTENT,translation:"Object.Table.Column.FitToContent"},{value:b.PIXELS,translation:"Object.Table.Column.Pixels"},{value:b.PERCENTAGE,translation:"Object.Table.Column.Percentage"}],defaultValue:b.AUTO},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===b.PIXELS},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(7680,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===b.PERCENTAGE},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(100,e.qDef.columnWidth.percentage))}}},D={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"}]},...C,...k},A={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},P=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:R(e)}),I=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")?{type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:A},presentation:{type:"items",translation:"properties.presentation",items:D}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:P(e)},presentation:{type:"items",translation:"properties.presentation",items:D}}}}}:{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:{...A,...D}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",grouped:!0,items:{...P(e),...D}}}},T={type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},hoverEffectSection:{translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]},L=e=>{var t,n;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals"))}},M=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"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},q=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[T,L(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...M(e)}}),O={uses:"sorting"},_={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},N=e=>({type:"items",component:"accordion",items:{data:I(e),sorting:O,addOns:_,settings:q(e)}});var F=Object.prototype.hasOwnProperty,z=Object.prototype.toString,j=Object.defineProperty,H=Object.getOwnPropertyDescriptor,B=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===z.call(e)},$=function(e){if(!e||"[object Object]"!==z.call(e))return!1;var t,n=F.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&F.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||F.call(e,t)},V=function(e,t){j&&"__proto__"===t.name?j(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},W=function(e,t){if("__proto__"===t){if(!F.call(e,t))return;if(H)return H(e,t).value}return e[t]};function U(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function G(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Y(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=W(l,n),l!==(o=W(t,n))&&(c&&o&&($(o)||(i=B(o)))?(i?(i=!1,a=r&&B(r)?r:[]):a=r&&$(r)?r:{},V(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&V(l,{name:n,newValue:o}));return l}));var K=1/.7,X="\\s*([+-]?\\d+)\\s*",Z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",J="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q=/^#([0-9a-f]{3,8})$/,ee=new RegExp(`^rgb\\(${X},${X},${X}\\)$`),te=new RegExp(`^rgb\\(${J},${J},${J}\\)$`),ne=new RegExp(`^rgba\\(${X},${X},${X},${Z}\\)$`),re=new RegExp(`^rgba\\(${J},${J},${J},${Z}\\)$`),oe=new RegExp(`^hsl\\(${Z},${J},${J}\\)$`),ie=new RegExp(`^hsla\\(${Z},${J},${J},${Z}\\)$`),ae={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function le(){return this.rgb().formatHex()}function se(){return this.rgb().formatRgb()}function ue(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Q.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ce(t):3===n?new me(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?de(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?de(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ee.exec(e))?new me(t[1],t[2],t[3],1):(t=te.exec(e))?new me(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ne.exec(e))?de(t[1],t[2],t[3],t[4]):(t=re.exec(e))?de(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=oe.exec(e))?xe(t[1],t[2]/100,t[3]/100,1):(t=ie.exec(e))?xe(t[1],t[2]/100,t[3]/100,t[4]):ae.hasOwnProperty(e)?ce(ae[e]):"transparent"===e?new me(NaN,NaN,NaN,0):null}function ce(e){return new me(e>>16&255,e>>8&255,255&e,1)}function de(e,t,n,r){return r<=0&&(e=t=n=NaN),new me(e,t,n,r)}function pe(e){return e instanceof Y||(e=ue(e)),e?new me((e=e.rgb()).r,e.g,e.b,e.opacity):new me}function fe(e,t,n,r){return 1===arguments.length?pe(e):new me(e,t,n,null==r?1:r)}function me(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function he(){return`#${ye(this.r)}${ye(this.g)}${ye(this.b)}`}function ge(){const e=ve(this.opacity);return`${1===e?"rgb(":"rgba("}${be(this.r)}, ${be(this.g)}, ${be(this.b)}${1===e?")":`, ${e})`}`}function ve(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function be(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ye(e){return((e=be(e))<16?"0":"")+e.toString(16)}function xe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ee(e,t,n,r)}function Se(e){if(e instanceof Ee)return new Ee(e.h,e.s,e.l,e.opacity);if(e instanceof Y||(e=ue(e)),!e)return new Ee;if(e instanceof Ee)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Ee(a,l,s,e.opacity)}function Ee(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function we(e){return(e=(e||0)%360)<0?e+360:e}function Ce(e){return Math.max(0,Math.min(1,e||0))}function Re(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}U(Y,ue,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:le,formatHex:le,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Se(this).formatHsl()},formatRgb:se,toString:se}),U(me,fe,G(Y,{brighter(e){return e=null==e?K:Math.pow(K,e),new me(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new me(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new me(be(this.r),be(this.g),be(this.b),ve(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:he,formatHex:he,formatHex8:function(){return`#${ye(this.r)}${ye(this.g)}${ye(this.b)}${ye(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ge,toString:ge})),U(Ee,(function(e,t,n,r){return 1===arguments.length?Se(e):new Ee(e,t,n,null==r?1:r)}),G(Y,{brighter(e){return e=null==e?K:Math.pow(K,e),new Ee(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ee(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new me(Re(e>=240?e-240:e+120,o,r),Re(e,o,r),Re(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ee(we(this.h),Ce(this.s),Ce(this.l),ve(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ve(this.opacity);return`${1===e?"hsl(":"hsla("}${we(this.h)}, ${100*Ce(this.s)}%, ${100*Ce(this.l)}%${1===e?")":`, ${e})`}`}}));const ke=Math.PI/180,De=180/Math.PI,Ae=4/29,Pe=6/29,Ie=3*Pe*Pe;function Te(e){if(e instanceof Le)return new Le(e.l,e.a,e.b,e.opacity);if(e instanceof Ne)return Fe(e);e instanceof me||(e=pe(e));var t,n,r=_e(e.r),o=_e(e.g),i=_e(e.b),a=Me((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Me((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Me((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Le(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Le(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Me(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ie+Ae}function qe(e){return e>Pe?e*e*e:Ie*(e-Ae)}function Oe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function _e(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ne(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Fe(e){if(isNaN(e.h))return new Le(e.l,0,0,e.opacity);var t=e.h*ke;return new Le(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}U(Le,(function(e,t,n,r){return 1===arguments.length?Te(e):new Le(e,t,n,null==r?1:r)}),G(Y,{brighter(e){return new Le(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Le(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new me(Oe(3.1338561*(t=.96422*qe(t))-1.6168667*(e=1*qe(e))-.4906146*(n=.82521*qe(n))),Oe(-.9787684*t+1.9161415*e+.033454*n),Oe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),U(Ne,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ne)return new Ne(e.h,e.c,e.l,e.opacity);if(e instanceof Le||(e=Te(e)),0===e.a&&0===e.b)return new Ne(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*De;return new Ne(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ne(e,t,n,null==r?1:r)}),G(Y,{brighter(e){return new Ne(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ne(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Fe(this).rgb()}}));var ze=e=>()=>e;function je(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):ze(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?je:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ze(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=fe(e)).r,(t=fe(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=je(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var He,Be=["__proto__","constructor"];function $e(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!Be.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function We(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Ue(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ye)):void 0===t&&(t=Ge);for(var n,r,o,i,a,l=new Ze(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Ze(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Xe)}function Ge(e){return e.children}function Ye(e){return Array.isArray(e)?e[1]:null}function Ke(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Xe(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ze(e){this.data=e,this.depth=this.height=0,this.parent=null}Ze.prototype=Ue.prototype={constructor:Ze,count:function(){return this.eachAfter(We)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Ue(this).eachBefore(Ke)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},He=function(e){
8
- /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},He({exports:{}});var Je={exports:{}};!function(e,t){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/conversion/",n(n.s=2)}([function(e,t,n){var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},s=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,n=r.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,a,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=c(d,n),d!==(o=c(t,n))&&(m&&o&&(s(o)||(i=l(o)))?(i?(i=!1,a=r&&l(r)?r:[]):a=r&&s(r)?r:{},u(d,{name:n,newValue:e(m,a,o)})):void 0!==o&&u(d,{name:n,newValue:o}));return d}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/qlik-modifiers/",n(n.s=1)}([function(e,t,n){var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},s=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,n=r.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,a,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=c(d,n),d!==(o=c(t,n))&&(m&&o&&(s(o)||(i=l(o)))?(i?(i=!1,a=r&&l(r)?r:[]):a=r&&s(r)?r:{},u(d,{name:n,newValue:e(m,a,o)})):void 0!==o&&u(d,{name:n,newValue:o}));return d}},function(e,t,n){n.r(t);var r=n(0),o=n.n(r),i=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},a=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},l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e).trim();return"="===t.substring(0,1)?t.substring(1).trim():t}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=MinString(").concat(t,"))' and Only({1}").concat(t,")<='$(=MaxString(").concat(t,"))'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function y(e){return"".concat(e,"(")}function x(e){var t=e.properties,n=e.layout;return a(t,"qHyperCubeDef.qDimensions",a(n,"qHyperCube.qDimensionInfo",[])).length}var S={isFullRange:d,getNumDimensions:x,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=b({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:y,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return y(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===x({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=x({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")}};function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var w=o.a.bind(null,!0),C={},R=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function D(e){return void 0===e}function A(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=D(e[n||t])?i:e[t],e=e[n||t]}})),e}function I(e,t){var n=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){I(e[r],t[r])||(n=!1)})),n);if(R(e)&&R(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!I(e[r],t[r]))return!1;return!0}return e===t}C.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?w({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);I(i,a)||A(t,o)||(D(a)?r.push({op:"add",path:l,value:i}):k(i)&&k(a)?r=r.concat(C.generate(a,i,l)):R(i)&&R(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(I(t,o))return r;if(!D(t[0])&&D(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(C.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){D(t[o])&&!A(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},C.apply=function(e,t){t.forEach((function(t){var n,r=P(e,t.path),o=t.path.split("/").splice(-1)[0],i=o&&Number.isNaN(+o)?r[o]:r[+o]||r,a=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(r=null,i=e),"add"===t.op||"replace"===t.op)if(R(r))"-"===o&&(o=r.length),r.splice(+o,"add"===t.op?0:1,t.value);else if(R(i)&&R(t.value)){var l,s=t.value.slice();i.length=0,(l=i).push.apply(l,function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(s))}else if(k(i)&&k(t.value))n=i,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!A(n,e)&&delete n[e]})),w(i,t.value);else{if(!r)throw new Error("Patchee is not an object we can patch");r[o]=t.value}else if("move"===t.op){var u=P(e,t.from);R(r)?r.splice(+o,0,u.splice(+a,1)[0]):(r[o]=u[a],delete u[a])}else"remove"===t.op&&(R(r)?r.splice(+o,1):delete r[o])}))},C.clone=function(e){return w({},e)},C.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},C.updateObject=function(e,t){Object.keys(e).length?C.apply(e,C.generate(e,t)):w(e,t)};var T=C,L=function(e,t,n){if(!e)return Promise.resolve();var r=T.generate(t,n);return o()(!0,t,n),r&&r.length?(r=r.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(r,!0)):Promise.resolve()},M="accumulation";function q(e,t){var n=a(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===M)return n[r]}function O(e,t){var n=function(e,t){var n=a(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===M)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""},N={translationKey:"properties.modifier.accumulation",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.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,i=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=S.getNumDimensions({properties:r,layout:o}));var u=a(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=S.getNumStepComp(n,s),p=S.getAboveComp(n,s,c,d),f=S.getRangeComp("RangeSum",p);if(S.needDimension({modifier:n,properties:r,layout:o})){var m=S.getDimComp(u,1),h=S.getDimComp(u,0),g=S.getAggrComp(f,m,h);f=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,_)},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!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(O(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(O(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(O(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(O(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(O(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(M))return!1;var i=q(t,e);return i&&!i.disabled}};return n}},F="movingAverage";function z(e,t){var n=a(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===F)return n[r]}function j(e,t){var n=function(e,t){var n=a(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===F)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1},B={translationKey:"properties.modifier.movingAverage",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,i=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=S.getNumDimensions({properties:o,layout:i}));var c=a(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=S.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=S.getNumStepComp(r,u),m=S.getAboveComp(r,u,p,f);if(r.nullSuppression)t=S.getRangeComp("RangeAvg",m);else{var h=S.getRangeComp("RangeSum",m),g=function(e,t){var n=S.getRowNoComp(e,t);if(!S.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var v=t;if(S.needDimension({modifier:r,properties:o,layout:i})){var b=S.getDimComp(c,1),y=S.getDimComp(c,0),x=S.getAggrComp(v,b,y);v=r.showExcludedValues?S.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,H)},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!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=z(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=z(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(j(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=z(t,e);return i&&!i.disabled}};return n}},$="difference";function V(e,t){var n=a(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===$)return n[r]}function W(e,t){var n=function(e,t){var n=a(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 U={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""},G={translationKey:"properties.modifier.difference",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=S.getNumDimensions({properties:r,layout:o}));var u=a(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=S.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(S.needDimension({modifier:n,properties:r,layout:o})){var f=S.getDimComp(u,1),m=S.getDimComp(u,0),h=S.getAggrComp(p,f,m);p=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(U).forEach((function(t){void 0===e[t]&&(e[t]=U[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!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(W(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(W(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(W(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.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=V(t,e);return i&&!i.disabled}};return n}},Y={CURRENT_SELECTION:0,SELECT_FIELD_VALUE:1,DISREGARD_SELECTION:2},K={ONE_DIMENSION:0,ALL_DIMENSIOANS:1,DISREGARD_ALL_DIMENSIONS:2},X="normalization";function Z(e,t){var n=a(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=a(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function Q(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}function ee(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:K.ONE_DIMENSION,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:K.ALL_DIMENSIOANS,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:K.DISREGARD_ALL_DIMENSIONS,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=Q(t,0);t.splice(r,1)}return t}(o,i),function(e,t,n){if(0===e){var r=Q(t,1);t.splice(r,1)}return t}(Z(e,r).selectionScope,i)}function te(e,t,n){var r=[{value:Y.CURRENT_SELECTION,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:Y.SELECT_FIELD_VALUE,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:Y.DISREGARD_SELECTION,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return function(e,t,n){if(1===e){var r=Q(t,0);t.splice(r,1)}return t}(Z(e,n).dimensionalScope,r)}var ne={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:K.DISREGARD_ALL_DIMENSIONS,selectionScope:Y.DISREGARD_SELECTION};function re(e){return 2===e?"{1}":""}function oe(e,t,n){return 1===e?"{$<".concat(S.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function ie(e,t){return 0===e&&t>1||2===e?"Total":""}function ae(e,t,n){return 0===e&&t>1?"<".concat(S.getDimDefWithWrapper(n),">"):""}var le={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=S.getNumDimensions({properties:r,layout:o}));var u=a(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=re(t),s=oe(t,n,r),u=""===l&&""===s?"":l||s,c=ie(o,i),d=ae(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=S.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ne).forEach((function(t){void 0===e[t]&&(e[t]=ne[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!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(J(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:Y.DISREGARD_SELECTION,options:function(n){return te(n,t,e)}},field:{refFn:function(t){return"".concat(J(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 Z(t,e).selectionScope===Y.SELECT_FIELD_VALUE}},value:{refFn:function(t){return"".concat(J(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return Z(t,e).selectionScope===Y.SELECT_FIELD_VALUE}},dimensionalScope:{refFn:function(t){return"".concat(J(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:K.DISREGARD_ALL_DIMENSIONS,supportTooltip:!0,options:function(n,r){return ee(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(J(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(Z(t,e).dimensionalScope||0)===K.ONE_DIMENSION&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Z(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:re,getFieldSelectionComp:oe,getTotalComp:ie,getSelectedDimComp:ae},se={getExpression:function(e){return a(e,"qDef.base.qDef")||a(e,"qDef.qDef")},getExpressionRef:function(e){return a(e,"qDef.base.qDef")?"qDef.base.qDef":"qDef.qDef"},getLibraryIdRef:function(e){return a(e,"qDef.base.qLibraryId")?"qDef.base.qLibraryId":"qLibraryId"},getLibraryId:function(e){return a(e,"qDef.base.qLibraryId")||a(e,"qLibraryId")},getLabelRef:function(e){return a(e,"qDef.base")?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return a(e,"qDef.base")?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}},ue={initBase:function(e,t){(t||ue.isValid(e))&&(i(e,"qDef.base.qDef",a(e,"qDef.qDef")),i(e,"qDef.base.qLibraryId",a(e,"qLibraryId")),i(e,"qDef.base.qLabel",a(e,"qDef.qLabel")),i(e,"qDef.base.qLabelExpression",a(e,"qDef.qLabelExpression")))},restoreBase:function(e){ue.isValid(e)&&(i(e,"qDef.qDef",a(e,"qDef.base.qDef")),i(e,"qLibraryId",a(e,"qDef.base.qLibraryId")),i(e,"qDef.qLabel",a(e,"qDef.base.qLabel")),i(e,"qDef.qLabelExpression",a(e,"qDef.base.qLabelExpression")),a(e,"qDef.qAggrFunc")&&a(e,"qDef.base.qAggrFunc")&&i(e,"qDef.qAggrFunc",a(e,"qDef.base.qAggrFunc")),delete e.qDef.base)},isValid:function(e){var t=a(e,"qDef.base.qDef"),n=a(e,"qDef.base.qLibraryId");return void 0!==t||void 0!==n}},ce=ue;function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var pe={accumulation:N,movingAverage:B,difference:G,normalization:le},fe=(t.default={modifiers:pe,apply:me,applyModifiers:he,cleanUpMeasure:ge,destroy:function(e){e&&fe[e.id]&&fe[e.id].masterItemSubscriber&&(fe[e.id].masterItemSubscriber&&fe[e.id].masterItemSubscriber.unsubscribe(),delete fe[e.id])},hasActiveModifiers:ve,getActiveModifier:be,initBase:ce.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return pe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return pe[e]&&pe[e].isApplicable({properties:n,layout:r})}))},measureBase:se,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Se(e);Ae({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Me({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:ye},{});function me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,n=e.properties,r=e.isSnapshot,i=void 0!==r&&r,l=e.masterItem;fe[t.id]=fe[t.id]||{isFirstTime:!0};var s=fe[t.id].isFirstTime;if(fe[t.id].isFirstTime=!1,n&&"object"===de(n))return he({model:t,properties:n});var u=t?t.layout:void 0,c=a(u,"qSelectionInfo.qInSelections");if(i||c)return Promise.resolve(!1);var d=a(u,"qHyperCube.qMeasureInfo"),p=fe[t.id].lastReloadTime;if(fe[t.id].lastReloadTime=a(t,"app.layout.qLastReloadTime"),ve({measures:d,layout:u})){var f=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return a(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return De({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:d,layout:u,model:t,lastReloadTime:p});return f||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ae({modifiers:Se(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:d,layout:u,masterItem:l,isFirstTime:s})?t.getEffectiveProperties().then((function(e){var n=o()(!0,{},e);we(n);var r=qe(n);return Pe({model:t}).then((function(o){return Ie({libraryIds:r,model:t}).then((function(r){return f&&function(e){var t=e.properties;xe(t).forEach((function(e){return function(e){var t=e.measure;if(De({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===de(e)&&!e.disabled){if(n++,"object"!==de(pe[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=pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Re(t)&&S.simplifyExpression(t.qDef.base.qDef)!==S.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:n}),he({model:t,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:r,dimensionAndFieldList:o})}))}))})):Promise.resolve(!1)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===de(e.base)}))}(d)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,n=e.properties,r=qe(n);return Oe({model:t,libraryIds:r}).then((function(){var e=o()(!0,{},n);return xe(n).forEach((function(e){return ge(e)})),Le({oldProperties:e,newProperties:n,model:t})}))}({model:t,properties:e})})):Promise.resolve(!1)}function he(e){var t=e.model,n=e.oldProperties,r=e.properties,i=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?o()(!0,{},r):r),we(r);var p=qe(r);return Oe({model:t,libraryIds:p,masterItem:u}).then((function(){return function(e){var t=e.measures,n=e.properties,r=e.model,i=e.libraryItemsProps,l=e.dimensionAndFieldList;if(t||(t=xe(n)),!t.length)return Promise.resolve();if(!ve({measures:t,properties:n}))return t.forEach((function(e){return ge(e)})),Promise.resolve();var s=i?void 0:qe(n);return Pe({model:r,dimensionAndFieldList:l}).then((function(e){return Ie({libraryIds:s,model:r,libraryItemsProps:i}).then((function(r){t.forEach((function(t){Ae({modifiers:t.qDef.modifiers,properties:n})?(function(e){var t=e.measure,n=e.properties,r=e.libraryItemsProps,i=e.dimensionAndFieldList,l=0;ce.isValid(t)||ce.initBase(t,!0);var s=t.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===de(e)&&!e.disabled){if(l++,"object"!==de(pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");pe[e.type].initModifier(e);var s=t.qLibraryId||c&&c.qLibraryId;s?function(e){var t=e.measure,n=e.modifier,r=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=pe[n.type].generateExpression({expression:l,modifier:n,properties:r,dimensionAndFieldList:i});n.outputExpression=s,t.qDef.qDef=n.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,n.base=o()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:s,properties:n,libraryItemsProps:r,dimensionAndFieldList:i}):function(e){var t=e.measure,n=e.modifier,r=e.properties,i=e.dimensionAndFieldList;"function"==typeof pe[n.type].updateModifier&&pe[n.type].updateModifier(n,r.qHyperCubeDef);var a=se.getExpression(t),l=pe[n.type].generateExpression({expression:a,modifier:n,properties:r,dimensionAndFieldList:i});n.outputExpression=l,t.qDef.qDef=n.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,n.base=o()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:n,dimensionAndFieldList:i}),function(e){var t=a(e,"qDef.qAggrFunc");"Expr"!==t||ye(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ye(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:n,libraryItemsProps:r,dimensionAndFieldList:e}),Ce(t)):ge(t)}))}))}))}({measures:i,properties:r,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Le({oldProperties:n,newProperties:r,model:t}):Promise.resolve(!1)}))}))}function ge(e){!function(e){var t=Se(e);return Array.isArray(t)&&t.some((function(e){return"object"===de(e)&&!e.disabled&&!pe[e.type]}))}(e)?ce.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ce(e)}function ve(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ae({modifiers:Se(e),properties:n,layout:r})}))}function be(e){var t=Se(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(pe[r.type]&&!r.disabled)return r}}function ye(e){var t=be(e);return!t||pe[t.type].enableTotalsFunction(e)}function xe(e){return a(e,"qHyperCubeDef.qMeasures",[]).concat(a(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Se(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ee(e){return a(e,"outputExpression.qValueExpression.qExpr")||a(e,"outputExpression")}function we(e){xe(e).forEach((function(e){return function(e){var t=be(e);t&&(void 0!==t.outputExpression&&Ee(t)!==e.qDef.qDef?delete e.qDef.base:!ce.isValid(e)&&t.base&&(e.qDef.base=o()(!0,{},t.base)))}(e)}))}function Ce(e){var t=Se(e);Array.isArray(t)&&t.forEach((function(t){"object"===de(t)&&(t.disabled||!pe[t.type]&&Ee(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Re(e){return e.base||e.qDef&&e.qDef.base}function ke(e){var t=Re(e);return e.qLibraryId||t&&t.qLibraryId}function De(e){var t=e.measure,n=e.properties,r=e.layout;return!ke(t)&&Ae({modifiers:Se(t),properties:n,layout:r})}function Ae(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==de(e)||e.disabled||!pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=pe[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Pe(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 Ie(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Te(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Le(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(a(t,"qHyperCubeDef.qMeasures"),Te)!==JSON.stringify(a(n,"qHyperCubeDef.qMeasures"),Te)||JSON.stringify(a(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Te)!==JSON.stringify(a(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Te);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&a(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):L(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Me(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===de(e)&&!e.disabled&&pe[e.type]&&pe[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function qe(e){var t=xe(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=Se(t);if(Ae({modifiers:r,properties:e})){var i=ke(t);i&&n.push(i),o=o||Me({modifiers:r,properties:e})}})),a(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function Oe(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(fe[t.id].masterItemSubscriber=fe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},i={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=a(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=a(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,a=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),i={},t.forEach((function(e){i[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:a}),Object.keys(r).forEach((function(e){o[e]||i[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return me({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),fe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}}])},function(e,t,n){function r(e){var t=function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}(e%62),n=Math.floor(e/62);return n>0?r(n)+t:t}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.r(t);var i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return r(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}var d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c},p=n(1),f=n.n(p),m={addDimensions:function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},addMeasures:function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},setInterColumnSortOrder:function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},copyProperties:function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},updateLayoutExclude:function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},storeMeasuresModifiers:function(e){e.forEach((function(e){f.a.cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))}};function h(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var g=n(0),v=n.n(g);function b(e,t){var n=v()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function y(e,t){return v()(!0,{},t,e)}function x(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var S=Math.pow(2,53)-1;function E(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return R(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)?R(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var k={importCommonProperties:function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},addDimensions:function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=b(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=b(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},addMeasures:function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=y(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=y(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},getMaxMinDimensionMeasure:function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=x(a.max,o.dimensions.length,S),s=x(a.min,o.dimensions.length,0);return{maxDimensions:x(i.max,l,S),minDimensions:x(i.min,s,0),maxMeasures:l,minMeasures:s}},setInterColumnSortOrder:function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},createNewProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=v()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=v()(!0,{},n,o)).components&&(o.components=[]),o},shouldInitLayoutExclude:function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},initLayoutExclude:function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},updateDimensionsOnAdded:function(e){var t=e.newProperties,n=e.dataDefinition,r=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var o=i.getValue(t,r||"").qHyperCubeDef,a=E(o.qDimensions);o.qDimensions=[],a.forEach((function(e){o.qDimensions.push(e),n.dimensions.added(e,t)}))}},updateMeasuresOnAdded:function(e){var t=e.newProperties,n=e.dataDefinition,r=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var o=i.getValue(t,r||"").qHyperCubeDef,a=C(o.qMeasures);o.qMeasures=[],a.forEach((function(e){o.qMeasures.push(e),n.measures.added(e,t)}))}},restoreMeasuresModifiers:function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f.a.isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))}};function D(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}var A={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m.addDimensions({exportFormat:o,qHyperCubeDef:s}),m.addMeasures({exportFormat:o,qHyperCubeDef:s}),m.setInterColumnSortOrder({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,m.copyProperties({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),m.updateLayoutExclude({exportFormat:o,properties:a}),r||m.storeMeasuresModifiers(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(h(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(h(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(h(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=k.createNewProperties({exportFormat:t,initialProperties:r,hypercubePath:u}),v=i.getValue(r,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=k.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,w=y.minMeasures,C=s.defaultDimension,R=void 0===C?k.getDefaultDimension():C,A=s.defaultMeasure,P=void 0===A?k.getDefaultMeasure():A;b.qDimensions.length=0,b.qMeasures.length=0,k.shouldInitLayoutExclude({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w})&&k.initLayoutExclude({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w,newHyperCubeDef:b}),k.addDimensions({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),k.addMeasures({exportFormat:t,maxMeasures:E,minMeasures:w,newHyperCubeDef:b,defaultMeasure:P}),k.updateDimensionsOnAdded({newProperties:g,dataDefinition:a,hypercubePath:u}),k.updateMeasuresOnAdded({newProperties:g,dataDefinition:a,hypercubePath:u}),k.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:b}),k.copyPropertyIfExist("qMaxStackedCells",v,b),k.copyPropertyIfExist("qNoOfLeftDims",v,b),k.copyPropertyOrSetDefault("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),k.copyPropertyOrSetDefault("qMode",v,b,"S"),k.copyPropertyOrSetDefault("qReductionMode",v,b,"N"),k.copyPropertyOrSetDefault("qSortbyYValue",v,b),k.copyPropertyOrSetDefault("qIndentMode",v,b),k.copyPropertyOrSetDefault("qShowTotalsAbove",v,b),k.importCommonProperties(g,t,r),h.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return k.restoreMeasuresModifiers({measures:b.qMeasures,modifierTypes:I}),p&&D(h.qProperty,"storedFilters"),"S"===b.qMode&&m&&D(h.qProperty,"dynamicScript"),h}},P={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function I(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function T(e,t){return e.length!==t}var L={create:function(e,t){if(!e||!P[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(I(a,t,r,o),T(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},M={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},q={colorModeOptions:{primary:function(){return!0},dimension:function(e){return M.getNumDimensions(e)>0&&M.getNumMeasures(e)<=1},multiColor:function(e){return M.getNumMeasures(e)>1},measure:function(e){return M.getNumDimensions(e)>0},expression:function(e){return M.getNumMeasures(e)>=1}}},O={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return M.getNumMeasures(e)>=1}}},_={scatterplot:O,"sn-scatter-plot":O,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return M.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return M.getNumDimensions(e)>1},multiColor:function(e){return M.getNumMeasures(e)>1},measure:function(e){return M.getNumDimensions(e)<=1},expression:function(e){return M.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return M.getNumDimensions(e)>=1},multiColor:function(e){return M.getNumMeasures(e)>1},measure:function(e){return M.getNumDimensions(e)>=1},expression:function(e){return M.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return M.getNumDimensions(e)>=1}}}};function N(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function F(e,t){var n=L.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){N(e,"qAttributeDimensions",n),N(e,"qAttributeExpressions",n)})),t.forEach((function(e){N(e,"qAttributeDimensions",n),N(e,"qAttributeExpressions",n)}))}function z(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function j(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;F(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=L.create(L.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;o||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=a)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function H(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":(o=function(e,t){return t?e.qLibraryId:f.a.measureBase.getLibraryId(e)}(n,t))?(l.type="measure",l.name=o,l.id=o,(i=function(e,t){return f.a.hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r))&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}var B={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function $(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=M.getItemLabel(t);switch(z(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||M.wrapFieldName(t.name),key:M.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&B.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function V(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=L.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return $(e,H("dimension",!!a,a||r)),!!a}function W(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&z(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=H("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,$(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&V(e,t))return;j({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}function U(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&z(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=H("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,$(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=L.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return $(e,H("measure",!!l,l||r[0])),!!l}(e,t))return;j({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}var G={changeProperty:function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},getCanColorBy:function(e,t){var n={primary:!0};if(e){var r=(_[t]||q).colorModeOptions||q.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},shouldUpdateColorBy:function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},updateColorBy:function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"color.auto"),o=i.getValue(e,"".concat(t,"qDimensions"),[]),a=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);r?F(o,l):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions;return!t&&"byDimension"===n&&r.length>0}({auto:r,colorMode:n,dimensions:o})?W(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:r,colorMode:n,dimensions:o,measures:a,properties:e})?U(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),F(r,a)}(e,t)},deleteTotalMode:function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},shouldAddColorByExpression:function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},addColorByExpression:function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},switchToAutoColor:function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},shouldSwitchToColorPersistent:function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n}},Y={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=A.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=L.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return L.moveByIdFromGroup(a,[],"qAttributeDimensions",u),L.moveByIdFromGroup(a,[],"qAttributeExpressions",u),L.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=A.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=G.getCanColorBy(d,p),v=G.shouldUpdateColorBy({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?G.shouldAddColorByExpression({shouldUpdateColorBy:v,properties:d})&&G.addColorByExpression(d):G.switchToAutoColor(d),v&&G.updateColorBy(d,"qHyperCubeDef."),G.shouldSwitchToColorPersistent(d)&&G.changeProperty(d,"color.persistent",!0),G.deleteTotalMode(f),c}},K=["bar","marker","line"],X={handleAutoMinMax:function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?D(n,"unsupportedAutoMinMax")||v()(n.measureAxis,t.measureAxis):D(n,"supportedAutoMinMax")||v()(n.measureAxis,t.measureAxis)},handleMeasuresAxis:function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.exportFormat,n=e.initialProperties;return!(!t.properties.measureAxes||n.measureAxes||!n.measureAxis||void 0===n.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),K.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&v()(l,n.properties.measureAxes[t[0].axis])):v()(l,n.properties.measureAxes[0])}},setInterColumnSortOrder:function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}}},Z={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=Y.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(h(l,"measureAxis.min","supportedAutoMinMax"),h(l,"measureAxis.max","supportedAutoMinMax")):(h(l,"measureAxis.min","unsupportedAutoMinMax"),h(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=Y.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return X.handleAutoMinMax({initialProperties:n,properties:d}),X.handleMeasuresAxis({exportFormat:t,initialProperties:n,properties:d,measureType:a}),X.setInterColumnSortOrder(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function J(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Q(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=J(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=J(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var te={quarantine:function(e){Q({properties:e,arrayPath:"qHyperCubeDef.qMeasures",quarantineName:"conditionalColoring",arrayName:"measures",itemPath:"qDef.conditionalColoring"})},unquarantine:function(e){ee({properties:e,arrayPath:"qHyperCubeDef.qMeasures",itemPath:"qDef.conditionalColoring",arrayName:"measures",quarantineName:"conditionalColoring"})}},ne={quarantine:function(e){Q({properties:e,arrayPath:"qHyperCubeDef.qMeasures",quarantineName:"conditionalShowHide",arrayName:"measures",itemPath:"qCalcCondition"}),Q({properties:e,arrayPath:"qHyperCubeDef.qDimensions",quarantineName:"conditionalShowHide",arrayName:"dimensions",itemPath:"qCalcCondition"})},unquarantine:function(e){ee({properties:e,arrayPath:"qHyperCubeDef.qMeasures",quarantineName:"conditionalShowHide",arrayName:"measures",itemPath:"qCalcCondition"}),ee({properties:e,arrayPath:"qHyperCubeDef.qDimensions",quarantineName:"conditionalShowHide",arrayName:"dimensions",itemPath:"qCalcCondition"})},quarantineAlternative:function(e){Q({properties:e,arrayPath:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",quarantineName:"conditionalShowHide",arrayName:"alternativeMeasures",itemPath:"qCalcCondition"}),Q({properties:e,arrayPath:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",quarantineName:"conditionalShowHide",arrayName:"alternativeDimensions",itemPath:"qCalcCondition"})},unquarantineAlternative:function(e){ee({properties:e,arrayPath:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",quarantineName:"conditionalShowHide",arrayName:"alternativeMeasures",itemPath:"qCalcCondition"}),ee({properties:e,arrayPath:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",quarantineName:"conditionalShowHide",arrayName:"alternativeDimensions",itemPath:"qCalcCondition"})}};t.default={hypercube:A,colorChart:Y,axisChart:Z,quarantineProperty:h,unquarantineProperty:D,quarantineArrayProp:Q,unquarantineArrayProp:ee,conditionalColoring:te,conditionalShow:ne}}])}(Je);var Qe=d(Je.exports),et=function(e,n){var r=Qe.hypercube.exportProperties({propertyTree:e,hyperCubePath:n}),o=r.properties.qHyperCubeDef,i=o.qColumnOrder,a=function(e,t,n){var r=e.length+t.length,o=((null==n?void 0:n.length)===r?n:Array.from(Array(r).keys())).map((function(n){return function(e,t,n){var r,o=t.length,i=(e<o?t[e]:n[e-o]).qDef.columnWidth;return"pixels"===(null==i?void 0:i.type)?null!==(r=i.pixels)&&void 0!==r?r:200:-1}(n,e,t)}));return o}(o.qDimensions,o.qMeasures,i);return $e(r,"properties.qHyperCubeDef",t(t({},r.properties.qHyperCubeDef),{columnWidths:a})),Qe.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),Qe.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),Qe.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),r},tt=function(e,t,n,r){var o=t;r&&(o=t-r);var i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){var a=n[t];i.qDef.columnWidth=-1===a?{type:b.FIT_TO_CONTENT}:{type:b.PIXELS,pixels:a}}return i},nt=function(e,t,n,r){var o=Qe.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:{defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()},hypercubePath:r,extension:n});Qe.unquarantineProperty(o.qProperty,"straightTableColumnOrder");var i=o.qProperty.qHyperCubeDef,a=i.qDimensions,l=i.qMeasures,s=i.qColumnOrder,u=i.columnWidths,c=function(e,t,n,r){var o=e.length,i=o+t.length,a=(null==n?void 0:n.length)===i?n:Array.from(Array(i).keys());return{dimensions:a.filter((function(e){return e<o})).map((function(t){return tt(e,t,r)})),measures:a.filter((function(e){return e>=o})).map((function(e){return tt(t,e,r,o)}))}}(a,l,s,u),d=c.dimensions,p=c.measures;return Array.isArray(u)&&u.length>0&&($e(o,"qProperty.qHyperCubeDef.qDimensions",d),$e(o,"qProperty.qHyperCubeDef.qMeasures",p)),Qe.conditionalShow.unquarantine(o.qProperty),o};const rt=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")&&{exploration:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}}};function ot(e){return{definition:N(e),...rt(e),data:c(e),support:{export:e.flags.isEnabled("PS_20907_TABLE_DOWNLOAD"),exportData:!0,snapshot:e.flags.isEnabled("PS_20907_TABLE_DOWNLOAD"),viewData:!1,exploration:!0,cssScaling:!0},importProperties:nt,exportProperties:et}}var it=function(e){return r(void 0,void 0,void 0,(function(){var t,n,r,i;return o(this,(function(o){switch(o.label){case 0:(t=e.target).classList.contains("sn-table-cell")||(t=t.closest(".sn-table-cell")),n=null===(i=t.querySelector(".sn-table-cell-text"))||void 0===i?void 0:i.textContent,o.label=1;case 1:return o.trys.push([1,4,,5]),n?[4,navigator.clipboard.writeText(String(n))]:[3,3];case 2:o.sent(),o.label=3;case 3:return[3,5];case 4:return r=o.sent(),console.log(r),[3,5];case 5:return[2]}}))}))};var at=function(n,r){return e.useMemo((function(){return function(e,n){return function(r,o){var i=o.isDim,a=o.colIdx,l=i?a:a-e.qDimensionInfo.length,s="/qHyperCubeDef/".concat(i?"qDimensions":"qMeasures","/").concat(l,"/qDef/columnWidth"),u=e[i?"qDimensionInfo":"qMeasureInfo"][l].columnWidth,c=u?{qPath:s,qOp:"Replace",qValue:JSON.stringify(t(t({},u),r))}:{qPath:s,qOp:"Add",qValue:JSON.stringify(r)};null==n||n.applyPatches([c],!0)}}(n,r)}),[n,r])},lt={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}},st=function(e){return parseInt(e.repeat(2/e.length),16)},ut=function(e){var t=Math.floor((e.length-1)/3),n=function(e,t){return e.match(new RegExp(".{".concat(t,"}"),"g"))}(e.slice(1),t),r=n.map(st),o=r[0],i=r[1],a=r[2],l=r[3];return void 0!==l?"rgba(".concat(o,",").concat(i,",").concat(a,",").concat(l/255,")"):"rgb(".concat(o,",").concat(i,",").concat(a,")")};function ct(e){var t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return"rgb(".concat(t[1],",").concat(t[2],",").concat(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))return"rgba(".concat(t[1],",").concat(t[2],",").concat(t[3],",").concat(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)){var n=Math.round(+t[1]/2.55)/100;return"rgba(".concat(t[2],",").concat(t[3],",").concat(t[4],",").concat(n,")")}if(t=/^#(?:(?:[\da-f]{3}){1,2}|(?:[\da-f]{4}){1,2})$/i.exec(e))return ut(e);var r=e&&lt[e.toLowerCase()];return r?void 0!==r.a?"rgba(".concat(r.r,",").concat(r.g,",").concat(r.b,",").concat(r.a,")"):"rgb(".concat(r.r,",").concat(r.g,",").concat(r.b,")"):"none"}function dt(e){if(null==e)return!1;var t=ct(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}var pt=function(e,t){var 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.straightTableV2.backgroundColor"),l=e.getStyle("object","straightTableV2","backgroundColor"),s=a||r||l,u=function(e){if(void 0===e)return!1;var t=ct(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}(s);return{tableColorFromTheme:a||"inherit",color:s,isDark:dt(u?i:s),isTransparent:u}},ft=function(e){return!Number.isNaN(+e)},mt=function(e){return!(!e.qNum&&0!==e.qNum||!ft(e.qNum))},ht=1e4;function gt(e,t){return i([],t,!0).reverse().find((function(t){return t*e<=ht}))||Math.floor(ht/e)}function vt(e,t){var n,r;if(null===(n=t.viewState)||void 0===n?void 0:n.skipTotals)return{atTop:!1,atBottom:!1};var o=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(r=e.totals)||void 0===r?void 0:r.show,e.totals.position],i=o[0],a=o[3],l=o[4];if(o[2]&&(i&&o[1]||!a&&!i)){if(a||"top"===l)return{atTop:!0,atBottom:!1};if(!a&&"bottom"===l)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function bt(e,t,n,r){var o,i,a;return t?0===n&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(i=null===(o=e.qHyperCube.qGrandTotalRow[r])||void 0===o?void 0:o.qText)&&void 0!==i?i:""}var yt=function(e,t){return"auto"!==t?t:mt(e)?"right":"left"};var xt=function(e){var n=e.qHyperCube,r=n.qColumnOrder,o=n.qDimensionInfo,i=n.qMeasureInfo,a=o.length+i.length,l=function(e,t,n){var r=t.length,o=[],i=0,a=0;return{visibleColumnsOrder:e.filter((function(e){var l=e<r,s=(l?t[e]:n[e-r]).qError,u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-r-a,!u})),visibleColumnIndexes:o}}((null==r?void 0:r.length)===a?r:Array.from(Array(a).keys()),o,i),s=l.visibleColumnsOrder,u=l.visibleColumnIndexes;return s.map((function(n,r){return function(e,n,r,o){var i,a=e.qHyperCube,l=a.qDimensionInfo,s=a.qMeasureInfo,u=l.length,c=n<u,d=c?l[n]:s[n-u],p=0,f="",m=!1,h=-1;if(c){var g=d;p=g.qGroupPos,f=g.qGroupFieldDefs[p],m=g.qLocked,h=o,i=g.qDimensionType}var v=d.qFallbackTitle,b=d.textAlign,y=d.qAttrExprInfo,x=d.qSortIndicator,S=d.qReverseSort,E=d.qApprMaxGlyphCount,w=d.columnWidth,C=d.qLibraryId;return t({isDim:c,isLocked:m,fieldId:f,colIdx:n,qLibraryId:C,pageColIdx:r,qApprMaxGlyphCount:E,qReverseSort:S,columnWidth:w,selectionColIdx:h,id:"col-".concat(r),label:v,stylingIDs:y.map((function(e){return e.id})),sortDirection:x&&"N"!==x?x:"A",totalInfo:bt(e,c,r,o)},function(e,t,n){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}}(b,i,c))}(e,n,r,u[n])}))};function St(e,n,i,a,l){var s,u;return r(this,void 0,void 0,(function(){var r,c,d,p,f,m,h,g,v,b,y,x,S,E,w;return o(this,(function(o){switch(o.label){case 0:return r=i.page,c=i.rowsPerPage,d=i.rowsPerPageOptions,p=n.qHyperCube.qSize.qcx,f=n.qHyperCube.qSize.qcy,m=Math.ceil(f/c),h=null!==(s=l.visibleTop)&&void 0!==s?s:r*c,g=null!==(u=l.visibleHeight)&&void 0!==u?u:Math.min(c,f-h),r>0&&h>=f?(a(t(t({},i),{page:0})),[2,null]):g*p>ht?(a(t(t({},i),{rowsPerPage:gt(p,d),page:0})),[2,null]):(v=f>10,b=vt(n,l),y=xt(n),(x=!!n.snapshotData)?(E=n.qHyperCube.qDataPages,[3,3]):[3,1]);case 1:return[4,e.getHyperCubeData("/qHyperCubeDef",[{qTop:h,qLeft:0,qHeight:g,qWidth:p}])];case 2:E=o.sent(),o.label=3;case 3:return S=E,l&&!x&&(l.qTop=h,l.qHeight=g,l.rowsPerPage=i.rowsPerPage,l.page=i.page),w=(null==S?void 0:S[0].qMatrix.map((function(e,n){var r={id:"row-".concat(n)};return y.forEach((function(o,i){r[o.id]=t(t({},e[i]),{align:yt(e[i],o.bodyTextAlign),rowIdx:n+h,colIdx:o.colIdx,pageRowIdx:n,pageColIdx:i,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:n===g-1})})),r})))||[],[2,{totalColumnCount:p,totalRowCount:f,totalPages:m,paginationNeeded:v,totalsPosition:b,columns:y,rows:w}]}}))}))}var Et=function(e,t){var n;return!(!e.snapshotData&&!(null===(n=t.viewState)||void 0===n?void 0:n.visibleHeight))},wt=function(e,t){var n;return void 0!==(null===(n=t.viewState)||void 0===n?void 0:n.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Et(e,t)};function Ct(){return Ct=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},Ct.apply(this,arguments)}function Rt(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function kt(e){if(!Rt(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=kt(e[n])})),t}function Dt(e,t,n={clone:!0}){const r=n.clone?Ct({},e):e;return Rt(e)&&Rt(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Rt(t[o])&&o in e&&Rt(e[o])?r[o]=Dt(e[o],t[o],n):n.clone?r[o]=Rt(t[o])?kt(t[o]):t[o]:r[o]=t[o])})),r}var At={exports:{}};function Pt(){}function It(){}It.resetWarningCache=Pt;At.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:It,resetWarningCache:Pt};return n.PropTypes=n,n}();var Tt=d(At.exports);function Lt(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."}function Mt(e){if("string"!=typeof e)throw new Error(Lt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qt(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Ot(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}var _t={exports:{}},Nt={},Ft=Symbol.for("react.element"),zt=Symbol.for("react.portal"),jt=Symbol.for("react.fragment"),Ht=Symbol.for("react.strict_mode"),Bt=Symbol.for("react.profiler"),$t=Symbol.for("react.provider"),Vt=Symbol.for("react.context"),Wt=Symbol.for("react.forward_ref"),Ut=Symbol.for("react.suspense"),Gt=Symbol.for("react.memo"),Yt=Symbol.for("react.lazy"),Kt=Symbol.iterator;var Xt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zt=Object.assign,Jt={};function Qt(e,t,n){this.props=e,this.context=t,this.refs=Jt,this.updater=n||Xt}function en(){}function tn(e,t,n){this.props=e,this.context=t,this.refs=Jt,this.updater=n||Xt}Qt.prototype.isReactComponent={},Qt.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Qt.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},en.prototype=Qt.prototype;var nn=tn.prototype=new en;nn.constructor=tn,Zt(nn,Qt.prototype),nn.isPureReactComponent=!0;var rn=Array.isArray,on=Object.prototype.hasOwnProperty,an={current:null},ln={key:!0,ref:!0,__self:!0,__source:!0};function sn(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)on.call(t,r)&&!ln.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:Ft,type:e,key:i,ref:a,props:o,_owner:an.current}}function un(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ft}var cn=/\/+/g;function dn(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function pn(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Ft:case zt:a=!0}}if(a)return o=o(a=e),e=""===r?"."+dn(a,0):r,rn(o)?(n="",null!=e&&(n=e.replace(cn,"$&/")+"/"),pn(o,t,n,"",(function(e){return e}))):null!=o&&(un(o)&&(o=function(e,t){return{$$typeof:Ft,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(cn,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",rn(e))for(var l=0;l<e.length;l++){var s=r+dn(i=e[l],l);a+=pn(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Kt&&e[Kt]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=pn(i=i.value,t,n,s=r+dn(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function fn(e,t,n){if(null==e)return e;var r=[],o=0;return pn(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function mn(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var hn={current:null},gn={transition:null},vn={ReactCurrentDispatcher:hn,ReactCurrentBatchConfig:gn,ReactCurrentOwner:an};Nt.Children={map:fn,forEach:function(e,t,n){fn(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return fn(e,(function(){t++})),t},toArray:function(e){return fn(e,(function(e){return e}))||[]},only:function(e){if(!un(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Nt.Component=Qt,Nt.Fragment=jt,Nt.Profiler=Bt,Nt.PureComponent=tn,Nt.StrictMode=Ht,Nt.Suspense=Ut,Nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vn,Nt.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Zt({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=an.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)on.call(t,s)&&!ln.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Ft,type:e.type,key:o,ref:i,props:r,_owner:a}},Nt.createContext=function(e){return(e={$$typeof:Vt,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:$t,_context:e},e.Consumer=e},Nt.createElement=sn,Nt.createFactory=function(e){var t=sn.bind(null,e);return t.type=e,t},Nt.createRef=function(){return{current:null}},Nt.forwardRef=function(e){return{$$typeof:Wt,render:e}},Nt.isValidElement=un,Nt.lazy=function(e){return{$$typeof:Yt,_payload:{_status:-1,_result:e},_init:mn}},Nt.memo=function(e,t){return{$$typeof:Gt,type:e,compare:void 0===t?null:t}},Nt.startTransition=function(e){var t=gn.transition;gn.transition={};try{e()}finally{gn.transition=t}},Nt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Nt.useCallback=function(e,t){return hn.current.useCallback(e,t)},Nt.useContext=function(e){return hn.current.useContext(e)},Nt.useDebugValue=function(){},Nt.useDeferredValue=function(e){return hn.current.useDeferredValue(e)},Nt.useEffect=function(e,t){return hn.current.useEffect(e,t)},Nt.useId=function(){return hn.current.useId()},Nt.useImperativeHandle=function(e,t,n){return hn.current.useImperativeHandle(e,t,n)},Nt.useInsertionEffect=function(e,t){return hn.current.useInsertionEffect(e,t)},Nt.useLayoutEffect=function(e,t){return hn.current.useLayoutEffect(e,t)},Nt.useMemo=function(e,t){return hn.current.useMemo(e,t)},Nt.useReducer=function(e,t,n){return hn.current.useReducer(e,t,n)},Nt.useRef=function(e){return hn.current.useRef(e)},Nt.useState=function(e){return hn.current.useState(e)},Nt.useSyncExternalStore=function(e,t,n){return hn.current.useSyncExternalStore(e,t,n)},Nt.useTransition=function(){return hn.current.useTransition()},Nt.version="18.2.0",_t.exports=Nt;var bn=_t.exports,yn=d(bn);function xn(e){return e&&e.ownerDocument||document}function Sn(e){return xn(e).defaultView||window}function En(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var wn="undefined"!=typeof window?bn.useLayoutEffect:bn.useEffect;function Cn({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=bn.useRef(void 0!==e),[i,a]=bn.useState(t);return[o?e:i,bn.useCallback((e=>{o||a(e)}),[])]}function Rn(e){const t=bn.useRef(e);return wn((()=>{t.current=e})),bn.useCallback(((...e)=>(0,t.current)(...e)),[])}function kn(...e){return bn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{En(e,t)}))}),e)}let Dn,An=!0,Pn=!1;const In={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 Tn(e){e.metaKey||e.altKey||e.ctrlKey||(An=!0)}function Ln(){An=!1}function Mn(){"hidden"===this.visibilityState&&Pn&&(An=!0)}function qn(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return An||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!In[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function On(){const e=bn.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Tn,!0),t.addEventListener("mousedown",Ln,!0),t.addEventListener("pointerdown",Ln,!0),t.addEventListener("touchstart",Ln,!0),t.addEventListener("visibilitychange",Mn,!0))}),[]),t=bn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!qn(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Pn=!0,window.clearTimeout(Dn),Dn=window.setTimeout((()=>{Pn=!1}),100),t.current=!1,!0)},ref:e}}function _n(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Nn(e,t){const n=Ct({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ct({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Ct({},i),Object.keys(o).forEach((e=>{n[r][e]=Nn(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Fn(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const zn=e=>e;var jn=(()=>{let e=zn;return{configure(t){e=t},generate:t=>e(t),reset(){e=zn}}})();const Hn={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Bn(e,t,n="Mui"){const r=Hn[t];return r?`${n}-${r}`:`${jn.generate(e)}-${t}`}function $n(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Bn(e,t,n)})),r}var Vn="$$material";function Wn(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 Un={exports:{}},Gn={},Yn=60103,Kn=60106,Xn=60107,Zn=60108,Jn=60114,Qn=60109,er=60110,tr=60112,nr=60113,rr=60120,or=60115,ir=60116,ar=60121,lr=60122,sr=60117,ur=60129,cr=60131;if("function"==typeof Symbol&&Symbol.for){var dr=Symbol.for;Yn=dr("react.element"),Kn=dr("react.portal"),Xn=dr("react.fragment"),Zn=dr("react.strict_mode"),Jn=dr("react.profiler"),Qn=dr("react.provider"),er=dr("react.context"),tr=dr("react.forward_ref"),nr=dr("react.suspense"),rr=dr("react.suspense_list"),or=dr("react.memo"),ir=dr("react.lazy"),ar=dr("react.block"),lr=dr("react.server.block"),sr=dr("react.fundamental"),ur=dr("react.debug_trace_mode"),cr=dr("react.legacy_hidden")}function pr(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Yn:switch(e=e.type){case Xn:case Jn:case Zn:case nr:case rr:return e;default:switch(e=e&&e.$$typeof){case er:case tr:case ir:case or:case Qn:return e;default:return t}}case Kn:return t}}}var fr=Qn,mr=Yn,hr=tr,gr=Xn,vr=ir,br=or,yr=Kn,xr=Jn,Sr=Zn,Er=nr;Gn.ContextConsumer=er,Gn.ContextProvider=fr,Gn.Element=mr,Gn.ForwardRef=hr,Gn.Fragment=gr,Gn.Lazy=vr,Gn.Memo=br,Gn.Portal=yr,Gn.Profiler=xr,Gn.StrictMode=Sr,Gn.Suspense=Er,Gn.isAsyncMode=function(){return!1},Gn.isConcurrentMode=function(){return!1},Gn.isContextConsumer=function(e){return pr(e)===er},Gn.isContextProvider=function(e){return pr(e)===Qn},Gn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Yn},Gn.isForwardRef=function(e){return pr(e)===tr},Gn.isFragment=function(e){return pr(e)===Xn},Gn.isLazy=function(e){return pr(e)===ir},Gn.isMemo=function(e){return pr(e)===or},Gn.isPortal=function(e){return pr(e)===Kn},Gn.isProfiler=function(e){return pr(e)===Jn},Gn.isStrictMode=function(e){return pr(e)===Zn},Gn.isSuspense=function(e){return pr(e)===nr},Gn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Xn||e===Jn||e===ur||e===Zn||e===nr||e===rr||e===cr||"object"==typeof e&&null!==e&&(e.$$typeof===ir||e.$$typeof===or||e.$$typeof===Qn||e.$$typeof===er||e.$$typeof===tr||e.$$typeof===sr||e.$$typeof===ar||e[0]===lr)},Gn.typeOf=pr,Un.exports=Gn;var wr=Un.exports,Cr=d((function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0}));function Rr(e){function t(e,r,s,u,p){for(var f,m,h,g,x,E=0,w=0,C=0,R=0,k=0,L=0,q=h=f=0,_=0,N=0,F=0,z=0,j=s.length,H=j-1,B="",$="",V="",W="";_<j;){if(m=s.charCodeAt(_),_===H&&0!==w+R+C+E&&(0!==w&&(m=47===w?10:47),R=C=E=0,j++,H++),0===w+R+C+E){if(_===H&&(0<N&&(B=B.replace(d,"")),0<B.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:B+=s.charAt(_)}m=59}switch(m){case 123:for(f=(B=B.trim()).charCodeAt(0),h=1,z=++_;_<j;){switch(m=s.charCodeAt(_)){case 123:h++;break;case 125:h--;break;case 47:switch(m=s.charCodeAt(_+1)){case 42:case 47:e:{for(q=_+1;q<H;++q)switch(s.charCodeAt(q)){case 47:if(42===m&&42===s.charCodeAt(q-1)&&_+2!==q){_=q+1;break e}break;case 10:if(47===m){_=q+1;break e}}_=q}}break;case 91:m++;case 40:m++;case 34:case 39:for(;_++<H&&s.charCodeAt(_)!==m;);}if(0===h)break;_++}if(h=s.substring(z,_),0===f&&(f=(B=B.replace(c,"").trim()).charCodeAt(0)),64===f){switch(0<N&&(B=B.replace(d,"")),m=B.charCodeAt(1)){case 100:case 109:case 115:case 45:N=r;break;default:N=T}if(z=(h=t(r,N,h,m,p+1)).length,0<M&&(x=l(3,h,N=n(T,B,F),r,A,D,z,m,p,u),B=N.join(""),void 0!==x&&0===(z=(h=x.trim()).length)&&(m=0,h="")),0<z)switch(m){case 115:B=B.replace(S,a);case 100:case 109:case 45:h=B+"{"+h+"}";break;case 107:h=(B=B.replace(v,"$1 $2"))+"{"+h+"}",h=1===I||2===I&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=B+h,112===u&&($+=h,h="")}else h=""}else h=t(r,n(r,B,F),h,u,p+1);V+=h,h=F=N=q=f=0,B="",m=s.charCodeAt(++_);break;case 125:case 59:if(1<(z=(B=(0<N?B.replace(d,""):B).trim()).length))switch(0===q&&(f=B.charCodeAt(0),45===f||96<f&&123>f)&&(z=(B=B.replace(" ",":")).length),0<M&&void 0!==(x=l(1,B,r,e,A,D,$.length,u,p,u))&&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){W+=B+s.charAt(_);break}default:58!==B.charCodeAt(z-1)&&($+=o(B,f,m,B.charCodeAt(2)))}F=N=q=f=0,B="",m=s.charCodeAt(++_)}}switch(m){case 13:case 10:47===w?w=0:0===1+f&&107!==u&&0<B.length&&(N=1,B+="\0"),0<M*O&&l(0,B,r,e,A,D,$.length,u,p,u),D=1,A++;break;case 59:case 125:if(0===w+R+C+E){D++;break}default:switch(D++,g=s.charAt(_),m){case 9:case 32:if(0===R+E+w)switch(k){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===R+w+E&&(N=F=1,g="\f"+g);break;case 108:if(0===R+w+E+P&&0<q)switch(_-q){case 2:112===k&&58===s.charCodeAt(_-3)&&(P=k);case 8:111===L&&(P=L)}break;case 58:0===R+w+E&&(q=_);break;case 44:0===w+C+R+E&&(N=1,g+="\r");break;case 34:case 39:0===w&&(R=R===m?0:0===R?m:R);break;case 91:0===R+w+C&&E++;break;case 93:0===R+w+C&&E--;break;case 41:0===R+w+E&&C--;break;case 40:if(0===R+w+E){if(0===f)if(2*k+3*L==533);else f=1;C++}break;case 64:0===w+C+R+E+q+h&&(h=1);break;case 42:case 47:if(!(0<R+E+C))switch(w){case 0:switch(2*m+3*s.charCodeAt(_+1)){case 235:w=47;break;case 220:z=_,w=42}break;case 42:47===m&&42===k&&z+2!==_&&(33===s.charCodeAt(z+2)&&($+=s.substring(z,_+1)),g="",w=0)}}0===w&&(B+=g)}L=k,k=m,_++}if(0<(z=$.length)){if(N=r,0<M&&(void 0!==(x=l(2,$,N,e,A,D,z,u,p,u))&&0===($=x).length))return W+$+V;if($=N.join(",")+"{"+$+"}",0!=I*P){switch(2!==I||i($,2)||(P=0),P){case 111:$=$.replace(y,":-moz-$1")+$;break;case 112:$=$.replace(b,"::-webkit-input-$1")+$.replace(b,"::-moz-$1")+$.replace(b,":-ms-input-$1")+$}P=0}}return W+$+V}function n(e,t,n){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=r(e,t[l],n).trim();break;default:var s=l=0;for(t=[];l<i;++l)for(var u=0;u<a;++u)t[s++]=r(e[u]+" ",o[l],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(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",l=2*t+3*n+4*r;if(944===l){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===I||2===I&&i(s,1)?"-webkit-"+s+s:s}if(0===I||2===I&&!i(a,1))return a;switch(l){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(k,"$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"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(x,"tb");break;case 232:s=a.replace(x,"tb-rl");break;case 220:s=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===R.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.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),q(2!==t?r:r.replace(C,"$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(E," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,o,i,a,l,s,c){for(var d,p=0,f=t;p<M;++p)switch(d=L[p].call(u,e,f,n,r,o,i,a,l,s,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function s(e){return void 0!==(e=e.prefix)&&(q=null,e?"function"!=typeof e?I=1:(I=2,q=e):I=0),s}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<M){var o=l(-1,n,r,r,A,D,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(T,r,n,0,0);return 0<M&&(void 0!==(o=l(-2,i,r,r,A,D,i.length,0,0,0))&&(i=o)),"",P=0,D=A=1,i}var c=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,w=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,R=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,D=1,A=1,P=0,I=1,T=[],L=[],M=0,q=null,O=0;return u.use=function e(t){switch(t){case void 0:case null:M=L.length=0;break;default:if("function"==typeof t)L[M++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else O=0|!!t}return e},u.set=s,void 0!==e&&s(e),u}var kr={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 Dr(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ar=/^((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)-.*))$/,Pr=Dr((function(e){return Ar.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ir={exports:{}},Tr={},Lr="function"==typeof Symbol&&Symbol.for,Mr=Lr?Symbol.for("react.element"):60103,qr=Lr?Symbol.for("react.portal"):60106,Or=Lr?Symbol.for("react.fragment"):60107,_r=Lr?Symbol.for("react.strict_mode"):60108,Nr=Lr?Symbol.for("react.profiler"):60114,Fr=Lr?Symbol.for("react.provider"):60109,zr=Lr?Symbol.for("react.context"):60110,jr=Lr?Symbol.for("react.async_mode"):60111,Hr=Lr?Symbol.for("react.concurrent_mode"):60111,Br=Lr?Symbol.for("react.forward_ref"):60112,$r=Lr?Symbol.for("react.suspense"):60113,Vr=Lr?Symbol.for("react.suspense_list"):60120,Wr=Lr?Symbol.for("react.memo"):60115,Ur=Lr?Symbol.for("react.lazy"):60116,Gr=Lr?Symbol.for("react.block"):60121,Yr=Lr?Symbol.for("react.fundamental"):60117,Kr=Lr?Symbol.for("react.responder"):60118,Xr=Lr?Symbol.for("react.scope"):60119;function Zr(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Mr:switch(e=e.type){case jr:case Hr:case Or:case Nr:case _r:case $r:return e;default:switch(e=e&&e.$$typeof){case zr:case Br:case Ur:case Wr:case Fr:return e;default:return t}}case qr:return t}}}function Jr(e){return Zr(e)===Hr}Tr.AsyncMode=jr,Tr.ConcurrentMode=Hr,Tr.ContextConsumer=zr,Tr.ContextProvider=Fr,Tr.Element=Mr,Tr.ForwardRef=Br,Tr.Fragment=Or,Tr.Lazy=Ur,Tr.Memo=Wr,Tr.Portal=qr,Tr.Profiler=Nr,Tr.StrictMode=_r,Tr.Suspense=$r,Tr.isAsyncMode=function(e){return Jr(e)||Zr(e)===jr},Tr.isConcurrentMode=Jr,Tr.isContextConsumer=function(e){return Zr(e)===zr},Tr.isContextProvider=function(e){return Zr(e)===Fr},Tr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Mr},Tr.isForwardRef=function(e){return Zr(e)===Br},Tr.isFragment=function(e){return Zr(e)===Or},Tr.isLazy=function(e){return Zr(e)===Ur},Tr.isMemo=function(e){return Zr(e)===Wr},Tr.isPortal=function(e){return Zr(e)===qr},Tr.isProfiler=function(e){return Zr(e)===Nr},Tr.isStrictMode=function(e){return Zr(e)===_r},Tr.isSuspense=function(e){return Zr(e)===$r},Tr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Or||e===Hr||e===Nr||e===_r||e===$r||e===Vr||"object"==typeof e&&null!==e&&(e.$$typeof===Ur||e.$$typeof===Wr||e.$$typeof===Fr||e.$$typeof===zr||e.$$typeof===Br||e.$$typeof===Yr||e.$$typeof===Kr||e.$$typeof===Xr||e.$$typeof===Gr)},Tr.typeOf=Zr,Ir.exports=Tr;var Qr=Ir.exports,eo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},to={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},no={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ro={};function oo(e){return Qr.isMemo(e)?no:ro[e.$$typeof]||eo}ro[Qr.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ro[Qr.Memo]=no;var io=Object.defineProperty,ao=Object.getOwnPropertyNames,lo=Object.getOwnPropertySymbols,so=Object.getOwnPropertyDescriptor,uo=Object.getPrototypeOf,co=Object.prototype;var po=function e(t,n,r){if("string"!=typeof n){if(co){var o=uo(n);o&&o!==co&&e(t,o,r)}var i=ao(n);lo&&(i=i.concat(lo(n)));for(var a=oo(t),l=oo(n),s=0;s<i.length;++s){var u=i[s];if(!(to[u]||r&&r[u]||l&&l[u]||a&&a[u])){var c=so(n,u);try{io(t,u,c)}catch(e){}}}}return t},fo=d(po);function mo(){return(mo=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 ho=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},go=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!wr.typeOf(e)},vo=Object.freeze([]),bo=Object.freeze({});function yo(e){return"function"==typeof e}function xo(e){return e.displayName||e.name||"Component"}function So(e){return e&&"string"==typeof e.styledComponentId}var Eo="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",wo="undefined"!=typeof window&&"HTMLElement"in window,Co=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY))),Ro={};function ko(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 Do=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&&ko(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),l=0,s=t.length;l<s;l++)this.tag.insertRule(a,t[l])&&(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}(),Ao=new Map,Po=new Map,Io=1,To=function(e){if(Ao.has(e))return Ao.get(e);for(;Po.has(Io);)Io++;var t=Io++;return Ao.set(e,t),Po.set(t,e),t},Lo=function(e){return Po.get(e)},Mo=function(e,t){t>=Io&&(Io=t+1),Ao.set(e,t),Po.set(t,e)},qo="style["+Eo+'][data-styled-version="5.3.11"]',Oo=new RegExp("^"+Eo+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),_o=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)},No=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 l=a.match(Oo);if(l){var s=0|parseInt(l[1],10),u=l[2];0!==s&&(Mo(u,s),_o(e,u,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(a)}}},Fo=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(Eo))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Eo,"active"),r.setAttribute("data-styled-version","5.3.11");var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},zo=function(){function e(e){var t=this.element=Fo(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}ko(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}(),jo=function(){function e(e){var t=this.element=Fo(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}(),Ho=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}(),Bo=wo,$o={isServer:!wo,useCSSOMInjection:!Co},Vo=function(){function e(e,t,n){void 0===e&&(e=bo),void 0===t&&(t={}),this.options=mo({},$o,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&wo&&Bo&&(Bo=!1,function(e){for(var t=document.querySelectorAll(qo),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(Eo)&&(No(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return To(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(mo({},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 Ho(o):r?new zo(o):new jo(o),new Do(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(To(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(To(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(To(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=Lo(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var s=Eo+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+l+s+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),Wo=/(a)(d)/gi,Uo=function(e){return String.fromCharCode(e+(e>25?39:97))};function Go(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Uo(t%52)+n;return(Uo(t%52)+n).replace(Wo,"$1-$2")}var Yo=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ko=function(e){return Yo(5381,e)};function Xo(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(yo(n)&&!So(n))return!1}return!0}var Zo=Ko("5.3.11"),Jo=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Xo(e),this.componentId=t,this.baseHash=Yo(Zo,t),this.baseStyle=n,Vo.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=gi(this.rules,e,t,n).join(""),a=Go(Yo(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var l=n(i,"."+a,void 0,r);t.insertRules(r,a,l)}o.push(a),this.staticRulesId=a}else{for(var s=this.rules.length,u=Yo(this.baseHash,n.hash),c="",d=0;d<s;d++){var p=this.rules[d];if("string"==typeof p)c+=p;else if(p){var f=gi(p,e,t,n),m=Array.isArray(f)?f.join(""):f;u=Yo(u,m+d),c+=m}}if(c){var h=Go(u>>>0);if(!t.hasNameForId(r,h)){var g=n(c,"."+h,void 0,r);t.insertRules(r,h,g)}o.push(h)}}return o.join(" ")},e}(),Qo=/^\s*\/\/.*$/gm,ei=[":","[",".","#"];function ti(e){var t,n,r,o,i=void 0===e?bo:e,a=i.options,l=void 0===a?bo:a,s=i.plugins,u=void 0===s?vo:s,c=new Rr(l),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,l,s,u,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){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!==ei.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,l){void 0===l&&(l="&");var s=e.replace(Qo,""),u=i&&a?a+" "+i+" { "+s+" }":s;return t=l,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),c(a||!i?"":i,u)}return c.use([].concat(u,[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=u.length?u.reduce((function(e,t){return t.name||ko(15),Yo(e,t.name)}),5381).toString():"",m}var ni=yn.createContext();ni.Consumer;var ri=yn.createContext(),oi=(ri.Consumer,new Vo),ii=ti();function ai(){return bn.useContext(ni)||oi}function li(){return bn.useContext(ri)||ii}function si(e){var t=bn.useState(e.stylisPlugins),n=t[0],r=t[1],o=ai(),i=bn.useMemo((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=bn.useMemo((function(){return ti({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return bn.useEffect((function(){Cr(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),yn.createElement(ni.Provider,{value:i},yn.createElement(ri.Provider,{value:a},e.children))}var ui=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ii);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 ko(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=ii),this.name+e.hash},e}(),ci=/([A-Z])/,di=/([A-Z])/g,pi=/^ms-/,fi=function(e){return"-"+e.toLowerCase()};function mi(e){return ci.test(e)?e.replace(di,fi).replace(pi,"-ms-"):e}var hi=function(e){return null==e||!1===e||""===e};function gi(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=gi(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return hi(e)?"":So(e)?"."+e.styledComponentId:yo(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:gi(e(t),t,n,r):e instanceof ui?n?(e.inject(n,r),e.getName(r)):e:go(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!hi(t[a])&&(Array.isArray(t[a])&&t[a].isCss||yo(t[a])?i.push(mi(a)+":",t[a],";"):go(t[a])?i.push.apply(i,e(t[a],a)):i.push(mi(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in kr||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var s}var vi=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function bi(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 yo(e)||go(e)?vi(gi(ho(vo,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:vi(gi(ho(e,n)))}var yi=function(e,t,n){return void 0===n&&(n=bo),e.theme!==n.theme&&e.theme||t||n.theme},xi=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Si=/(^-|-$)/g;function Ei(e){return e.replace(xi,"-").replace(Si,"")}var wi=function(e){return Go(Ko(e)>>>0)};function Ci(e){return"string"==typeof e&&!0}var Ri=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ki=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Di(e,t,n){var r=e[n];Ri(t)&&Ri(r)?Ai(r,t):e[n]=t}function Ai(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(Ri(a))for(var l in a)ki(l)&&Di(e,a[l],l)}return e}var Pi=yn.createContext();Pi.Consumer;var Ii={};function Ti(e,t,n){var r=So(e),o=!Ci(e),i=t.attrs,a=void 0===i?vo:i,l=t.componentId,s=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Ei(e);Ii[n]=(Ii[n]||0)+1;var r=n+"-"+wi("5.3.11"+n+Ii[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,u=t.displayName,c=void 0===u?function(e){return Ci(e)?"styled."+e:"Styled("+xo(e)+")"}(e):u,d=t.displayName&&t.componentId?Ei(t.displayName)+"-"+t.componentId:t.componentId||s,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,h=new Jo(n,d,r?e.componentStyle:void 0),g=h.isStatic&&0===a.length,v=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,s=e.shouldForwardProp,u=e.styledComponentId,c=e.target,d=function(e,t,n){void 0===e&&(e=bo);var r=mo({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in yo(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]}(yi(t,bn.useContext(Pi),a)||bo,t,o),p=d[0],f=d[1],m=function(e,t,n,r){var o=ai(),i=li();return t?e.generateAndInjectStyles(bo,o,i):e.generateAndInjectStyles(n,o,i)}(i,r,p),h=n,g=f.$as||t.$as||f.as||t.as||c,v=Ci(g),b=f!==t?mo({},t,{},f):t,y={};for(var x in b)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?y.as=b[x]:(s?s(x,Pr,g):!v||Pr(x))&&(y[x]=b[x]));return t.style&&f.style!==t.style&&(y.style=mo({},t.style,{},f.style)),y.className=Array.prototype.concat(l,u,m!==u?m:null,t.className,f.className).filter(Boolean).join(" "),y.ref=h,bn.createElement(g,y)}(m,e,t,g)};return v.displayName=c,(m=yn.forwardRef(v)).attrs=p,m.componentStyle=h,m.displayName=c,m.shouldForwardProp=f,m.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):vo,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+"-"+(Ci(e)?e:Ei(xo(e)));return Ti(e,mo({},o,{attrs:p,componentId:i}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Ai({},e.defaultProps,t):t}}),Object.defineProperty(m,"toString",{value:function(){return"."+m.styledComponentId}}),o&&fo(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var Li=function(e){return function e(t,n,r){if(void 0===r&&(r=bo),!wr.isValidElementType(n))return ko(1,String(n));var o=function(){return t(n,r,bi.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,mo({},r,{},o))},o.attrs=function(o){return e(t,n,mo({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(Ti,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){Li[e]=Li(e)}));var Mi=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Xo(e),Vo.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(gi(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&&Vo.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function qi(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=bi.apply(void 0,[e].concat(n)).join(""),i=wi(o);return new ui(i,o)}var Oi=Li;const _i=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=bi.apply(void 0,[e].concat(n)),i="sc-global-"+wi(JSON.stringify(o)),a=new Mi(o,i);function l(e){var t=ai(),n=li(),r=bn.useContext(Pi),o=bn.useRef(t.allocateGSInstance(i)).current;return t.server&&s(o,e,t,r,n),null}function s(e,t,n,r,o){if(a.isStatic)a.renderStyles(e,Ro,n,o);else{var i=mo({},t,{theme:yi(t,r,l.defaultProps)});a.renderStyles(e,i,n,o)}}return yn.memo(l)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var Ni=_i;
10
- /** @license MUI v5.10.0
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */
15
- function Fi(e,t){let n;return n=t?Oi(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Oi(e),n}_i.propTypes={defaultTheme:Tt.object,styles:Tt.oneOfType([Tt.string,Tt.object,Tt.func])};const zi=["values","unit","step"],ji=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)=>Ct({},e,{[t.key]:t.val})),{})};var Hi={borderRadius:4};function Bi(e,t){return t?Dt(e,t,{clone:!1}):e}const $i={xs:0,sm:600,md:900,lg:1200,xl:1536},Vi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${$i[e]}px)`};function Wi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Vi;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Vi;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||$i).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Ui(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 Gi(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Ui(e,n)||r,t&&(o=t(o,r,e)),o}function Yi(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=Ui(e.theme,r)||{};return Wi(e,i,(e=>{let r=Gi(a,o,e);return e===r&&"string"==typeof e&&(r=Gi(a,o,`${t}${"default"===e?"":Mt(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Ki={m:"margin",p:"padding"},Xi={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Zi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ji=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Zi[e])return[e];e=Zi[e]}const[t,n]=e.split(""),r=Ki[t],o=Xi[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Qi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ea=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ta(e,t,n,r){var o;const i=null!=(o=Ui(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 na(e){return ta(e,"spacing",8)}function ra(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 oa(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=ra(t,n),e)),{})}(Ji(n),r);return Wi(e,e[n],o)}function ia(e,t){const n=na(e.theme);return Object.keys(e).map((r=>oa(e,t,r,n))).reduce(Bi,{})}function aa(e){return ia(e,Qi)}function la(e){return ia(e,ea)}function sa(...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]?Bi(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function ua(e){return"number"!=typeof e?e:`${e}px solid`}aa.propTypes={},aa.filterProps=Qi,la.propTypes={},la.filterProps=ea;const ca=Yi({prop:"border",themeKey:"borders",transform:ua}),da=Yi({prop:"borderTop",themeKey:"borders",transform:ua}),pa=Yi({prop:"borderRight",themeKey:"borders",transform:ua}),fa=Yi({prop:"borderBottom",themeKey:"borders",transform:ua}),ma=Yi({prop:"borderLeft",themeKey:"borders",transform:ua}),ha=Yi({prop:"borderColor",themeKey:"palette"}),ga=Yi({prop:"borderTopColor",themeKey:"palette"}),va=Yi({prop:"borderRightColor",themeKey:"palette"}),ba=Yi({prop:"borderBottomColor",themeKey:"palette"}),ya=Yi({prop:"borderLeftColor",themeKey:"palette"}),xa=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ta(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:ra(t,e)});return Wi(e,e.borderRadius,n)}return null};xa.propTypes={},xa.filterProps=["borderRadius"],sa(ca,da,pa,fa,ma,ha,ga,va,ba,ya,xa);const Sa=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ta(e.theme,"spacing",8),n=e=>({gap:ra(t,e)});return Wi(e,e.gap,n)}return null};Sa.propTypes={},Sa.filterProps=["gap"];const Ea=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ta(e.theme,"spacing",8),n=e=>({columnGap:ra(t,e)});return Wi(e,e.columnGap,n)}return null};Ea.propTypes={},Ea.filterProps=["columnGap"];const wa=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ta(e.theme,"spacing",8),n=e=>({rowGap:ra(t,e)});return Wi(e,e.rowGap,n)}return null};wa.propTypes={},wa.filterProps=["rowGap"];function Ca(e,t){return"grey"===t?t:e}sa(Sa,Ea,wa,Yi({prop:"gridColumn"}),Yi({prop:"gridRow"}),Yi({prop:"gridAutoFlow"}),Yi({prop:"gridAutoColumns"}),Yi({prop:"gridAutoRows"}),Yi({prop:"gridTemplateColumns"}),Yi({prop:"gridTemplateRows"}),Yi({prop:"gridTemplateAreas"}),Yi({prop:"gridArea"}));function Ra(e){return e<=1&&0!==e?100*e+"%":e}sa(Yi({prop:"color",themeKey:"palette",transform:Ca}),Yi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ca}),Yi({prop:"backgroundColor",themeKey:"palette",transform:Ca}));const ka=Yi({prop:"width",transform:Ra}),Da=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n;return{maxWidth:(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||$i[t]||Ra(t)}};return Wi(e,e.maxWidth,t)}return null};Da.filterProps=["maxWidth"];const Aa=Yi({prop:"minWidth",transform:Ra}),Pa=Yi({prop:"height",transform:Ra}),Ia=Yi({prop:"maxHeight",transform:Ra}),Ta=Yi({prop:"minHeight",transform:Ra});Yi({prop:"size",cssProperty:"width",transform:Ra}),Yi({prop:"size",cssProperty:"height",transform:Ra});sa(ka,Da,Aa,Pa,Ia,Ta,Yi({prop:"boxSizing"}));var La={border:{themeKey:"borders",transform:ua},borderTop:{themeKey:"borders",transform:ua},borderRight:{themeKey:"borders",transform:ua},borderBottom:{themeKey:"borders",transform:ua},borderLeft:{themeKey:"borders",transform:ua},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xa},color:{themeKey:"palette",transform:Ca},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ca},backgroundColor:{themeKey:"palette",transform:Ca},p:{style:la},pt:{style:la},pr:{style:la},pb:{style:la},pl:{style:la},px:{style:la},py:{style:la},padding:{style:la},paddingTop:{style:la},paddingRight:{style:la},paddingBottom:{style:la},paddingLeft:{style:la},paddingX:{style:la},paddingY:{style:la},paddingInline:{style:la},paddingInlineStart:{style:la},paddingInlineEnd:{style:la},paddingBlock:{style:la},paddingBlockStart:{style:la},paddingBlockEnd:{style:la},m:{style:aa},mt:{style:aa},mr:{style:aa},mb:{style:aa},ml:{style:aa},mx:{style:aa},my:{style:aa},margin:{style:aa},marginTop:{style:aa},marginRight:{style:aa},marginBottom:{style:aa},marginLeft:{style:aa},marginX:{style:aa},marginY:{style:aa},marginInline:{style:aa},marginInlineStart:{style:aa},marginInlineEnd:{style:aa},marginBlock:{style:aa},marginBlockStart:{style:aa},marginBlockEnd:{style:aa},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Sa},rowGap:{style:wa},columnGap:{style:Ea},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ra},maxWidth:{style:Da},minWidth:{transform:Ra},height:{transform:Ra},maxHeight:{transform:Ra},minHeight:{transform:Ra},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Ma=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Ui(n,l)||{};if(u)return u(o);return Wi(o,t,(t=>{let n=Gi(c,s,t);return t===n&&"string"==typeof t&&(n=Gi(c,s,`${e}${"default"===t?"":Mt(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:La;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=Bi(s,e(n,o,i,a));else{const e=Wi({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Bi(s,e):s[n]=t({sx:o,theme:i})}else s=Bi(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Ma.filterProps=["sx"];var qa=Ma;const Oa=["breakpoints","palette","spacing","shape"];function _a(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Wn(e,Oa),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Wn(e,zi),i=ji(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Ct({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=na({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=Dt({breakpoints:l,direction:"ltr",components:{},palette:Ct({mode:"light"},r),spacing:s,shape:Ct({},Hi,i)},a);return u=t.reduce(((e,t)=>Dt(e,t)),u),u.unstable_sxConfig=Ct({},La,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return qa({sx:e,theme:this})},u}function Na(e=null){const t=bn.useContext(Pi);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Fa=_a();function za(e=Fa){return Na(e)}var ja={exports:{}},Ha={},Ba=bn,$a=Symbol.for("react.element"),Va=Symbol.for("react.fragment"),Wa=Object.prototype.hasOwnProperty,Ua=Ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ga={key:!0,ref:!0,__self:!0,__source:!0};function Ya(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Wa.call(t,r)&&!Ga.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:$a,type:e,key:i,ref:a,props:o,_owner:Ua.current}}Ha.Fragment=Va,Ha.jsx=Ya,Ha.jsxs=Ya,ja.exports=Ha;var Ka=ja.exports;function Xa({styles:e,themeId:t,defaultTheme:n={}}){const r=za(n),o="function"==typeof e?e(t&&r[t]||r):e;return Ka.jsx(Ni,{styles:o})}const Za=["sx"],Ja=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:La;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Qa(e){const{sx:t}=e,n=Wn(e,Za),{systemProps:r,otherProps:o}=Ja(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Rt(n)?Ct({},r,n):r}:Ct({},r,t),Ct({},o,{sx:i})}function el(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=el(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function tl(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=el(e))&&(r&&(r+=" "),r+=t);return r}const nl=["className","component"];const rl=["variant"];function ol(e){return 0===e.length}function il(e){const{variant:t}=e,n=Wn(e,rl);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?ol(r)?e[t]:Mt(e[t]):`${ol(r)?t:Mt(t)}${Mt(e[t].toString())}`})),r}const al=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ll(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const sl=_a(),ul=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function cl({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function dl(e){return e?(t,n)=>n[e]:null}function pl({props:e,name:t,defaultTheme:n,themeId:r}){let o=za(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Nn(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function fl(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function ml(e){if(e.type)return e;if("#"===e.charAt(0))return ml(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(Lt(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(Lt(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function hl(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 gl(e){let t="hsl"===(e=ml(e)).type||"hsla"===e.type?ml(function(e){e=ml(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),hl({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vl(e,t){return e=ml(e),t=fl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,hl(e)}function bl(e,t){if(e=ml(e),t=fl(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 hl(e)}function yl(e,t){if(e=ml(e),t=fl(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 hl(e)}var xl=bn.createContext(null);function Sl(){return bn.useContext(xl)}var El="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function wl(e){const{children:t,theme:n}=e,r=Sl(),o=bn.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Ct({},e,t)}(r,n);return null!=e&&(e[El]=null!==r),e}),[n,r]);return Ka.jsx(xl.Provider,{value:o,children:t})}const Cl={};function Rl(e,t,n,r=!1){return bn.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Ct({},t,{[e]:i}):i;return r?()=>a:a}return Ct({},t,e?{[e]:n}:n)}),[e,t,n,r])}function kl(e){const{children:t,theme:n,themeId:r}=e,o=Na(Cl),i=Sl()||Cl,a=Rl(r,o,n),l=Rl(r,i,n,!0);return Ka.jsx(wl,{theme:l,children:Ka.jsx(Pi.Provider,{value:a,children:t})})}var Dl={black:"#000",white:"#fff"};var Al={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var Pl={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var Il={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var Tl={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Ll={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Ml={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var ql={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const Ol=["mode","contrastThreshold","tonalOffset"],_l={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:Dl.white,default:Dl.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}},Nl={text:{primary:Dl.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:Dl.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 Fl(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=yl(e.main,o):"dark"===t&&(e.dark=bl(e.main,i)))}function zl(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Wn(e,Ol),i=e.primary||function(e="light"){return"dark"===e?{main:Ll[200],light:Ll[50],dark:Ll[400]}:{main:Ll[700],light:Ll[400],dark:Ll[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Pl[200],light:Pl[50],dark:Pl[400]}:{main:Pl[500],light:Pl[300],dark:Pl[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Il[500],light:Il[300],dark:Il[700]}:{main:Il[700],light:Il[400],dark:Il[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ml[400],light:Ml[300],dark:Ml[700]}:{main:Ml[700],light:Ml[500],dark:Ml[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ql[400],light:ql[300],dark:ql[700]}:{main:ql[800],light:ql[500],dark:ql[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Tl[400],light:Tl[300],dark:Tl[700]}:{main:"#ed6c02",light:Tl[500],dark:Tl[900]}}(t);function d(e){const t=function(e,t){const n=gl(e),r=gl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Nl.text.primary)>=n?Nl.text.primary:_l.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ct({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Lt(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Lt(12,t?` (${t})`:"",JSON.stringify(e.main)));return Fl(e,"light",o,r),Fl(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Nl,light:_l};return Dt(Ct({common:Ct({},Dl),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Al,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const jl=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Hl={textTransform:"uppercase"},Bl='"Roboto", "Helvetica", "Arial", sans-serif';function $l(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Bl,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Wn(n,jl),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Ct({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Bl?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Hl),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Hl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dt(Ct({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Vl(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Wl=["none",Vl(0,2,1,-1,0,1,1,0,0,1,3,0),Vl(0,3,1,-2,0,2,2,0,0,1,5,0),Vl(0,3,3,-2,0,3,4,0,0,1,8,0),Vl(0,2,4,-1,0,4,5,0,0,1,10,0),Vl(0,3,5,-1,0,5,8,0,0,1,14,0),Vl(0,3,5,-1,0,6,10,0,0,1,18,0),Vl(0,4,5,-2,0,7,10,1,0,2,16,1),Vl(0,5,5,-3,0,8,10,1,0,3,14,2),Vl(0,5,6,-3,0,9,12,1,0,3,16,2),Vl(0,6,6,-3,0,10,14,1,0,4,18,3),Vl(0,6,7,-4,0,11,15,1,0,4,20,3),Vl(0,7,8,-4,0,12,17,2,0,5,22,4),Vl(0,7,8,-4,0,13,19,2,0,5,24,4),Vl(0,7,9,-4,0,14,21,2,0,5,26,4),Vl(0,8,9,-5,0,15,22,2,0,6,28,5),Vl(0,8,10,-5,0,16,24,2,0,6,30,5),Vl(0,8,11,-5,0,17,26,2,0,6,32,5),Vl(0,9,11,-5,0,18,28,2,0,7,34,6),Vl(0,9,12,-6,0,19,29,2,0,7,36,6),Vl(0,10,13,-6,0,20,31,3,0,8,38,7),Vl(0,10,13,-6,0,21,33,3,0,8,40,7),Vl(0,10,14,-6,0,22,35,3,0,8,42,7),Vl(0,11,14,-7,0,23,36,3,0,9,44,8),Vl(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ul=["duration","easing","delay"],Gl={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)"},Yl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Kl(e){return`${Math.round(e)}ms`}function Xl(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Zl(e){const t=Ct({},Gl,e.easing),n=Ct({},Yl,e.duration);return Ct({getAutoHeightDuration:Xl,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Wn(r,Ul),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Kl(o)} ${i} ${"string"==typeof a?a:Kl(a)}`)).join(",")}},e,{easing:t,duration:n})}var Jl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Ql=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function es(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Wn(e,Ql);if(e.vars)throw new Error(Lt(18));const l=zl(r),s=_a(e);let u=Dt(s,{mixins:(c=s.breakpoints,d=n,Ct({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Wl.slice(),typography:$l(l,i),transitions:Zl(o),zIndex:Ct({},Jl)});var c,d;return u=Dt(u,a),u=t.reduce(((e,t)=>Dt(e,t)),u),u.unstable_sxConfig=Ct({},La,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return qa({sx:e,theme:this})},u}var ts=es();function ns(){const e=za(ts);return e[Vn]||e}function rs({props:e,name:t}){return pl({props:e,name:t,defaultTheme:ts,themeId:Vn})}const os=e=>ll(e)&&"classes"!==e,is=ll,as=function(e={}){const{themeId:t,defaultTheme:n=sl,rootShouldForwardProp:r=ll,slotShouldForwardProp:o=ll}=e,i=e=>qa(Ct({},e,{theme:cl(Ct({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=dl(ul(s))}=a,p=Wn(a,al),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=ll;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Fi(e,Ct({shouldForwardProp:h,label:undefined},p)),v=(r,...o)=>{const a=o?o.map((e=>"function"==typeof e&&e.__emotion_real!==e?r=>e(Ct({},r,{theme:cl(Ct({},r,{defaultTheme:n,themeId:t}))})):e)):[];let s=r;l&&d&&a.push((e=>{const r=cl(Ct({},e,{defaultTheme:n,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,r);if(o){const t={};return Object.entries(o).forEach((([n,o])=>{t[n]="function"==typeof o?o(Ct({},e,{theme:r})):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const r=cl(Ct({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var o;const{ownerState:i={}}=e,a=[],l=null==n||null==(o=n.components)||null==(o=o[r])?void 0:o.variants;return l&&l.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{i[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&a.push(t[il(n.props)])})),a})(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=il(e.props);r[t]=e.style})),r})(l,r),r,l)})),m||a.push(i);const u=a.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>r(Ct({},e,{theme:cl(Ct({},e,{defaultTheme:n,themeId:t}))})));const c=g(s,...a);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Vn,defaultTheme:ts,rootShouldForwardProp:os});var ls=as;const ss=["theme"];function us(e){let{theme:t}=e,n=Wn(e,ss);const r=t[Vn];return Ka.jsx(kl,Ct({},n,{themeId:r?Vn:void 0,theme:r||t}))}var cs=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ds={},ps={exports:{}};
16
- /*!
17
- * Converts CSS stylesheets between left-to-right and right-to-left.
18
- * https://github.com/cssjanus/cssjanus
19
- *
20
- * Copyright 2008 Google Inc.
21
- * Copyright 2010 Trevor Parscal
22
- */
23
- !function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="[^\\u0020-\\u007e]",n="(?:[0-9]*\\.[0-9]+|[0-9]+)",o="direction\\s*:\\s*",i="['\"]?\\s*",a="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",s="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",u="(?:[_a-z0-9-]|"+t+"|"+s+")",c=n+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+t+"|"+s+")")+u+"*")+")?",d="((?:-?"+c+")|(?:inherit|auto))",p="(#?"+u+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",f="(?:[!#$%&*-~]|"+t+"|"+s+")*?",m="(?![a-zA-Z])",h="(?!("+u+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'])*?{)",g="(?!"+f+i+"\\))",v="(?="+f+i+"\\))",b="(\\s*(?:!important\\s*)?[;}])",y=new RegExp("`TMP`","g"),x=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),S=new RegExp("("+l+h+"[^;}]+;?)","gi"),E=new RegExp("("+l+"[^\\}]*?})","gi"),w=new RegExp("("+o+")ltr","gi"),C=new RegExp("("+o+")rtl","gi"),R=new RegExp(a+"(left)"+m+g+h,"gi"),k=new RegExp(a+"(right)"+m+g+h,"gi"),D=new RegExp(a+"(left)"+v,"gi"),A=new RegExp(a+"(right)"+v,"gi"),P=new RegExp(a+"(ltr)"+v,"gi"),I=new RegExp(a+"(rtl)"+v,"gi"),T=new RegExp(a+"([ns]?)e-resize","gi"),L=new RegExp(a+"([ns]?)w-resize","gi"),M=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+d+"(\\s+)"+d+"(\\s+)"+d+"(\\s+)"+d+b,"gi"),q=new RegExp("((?:-color|border-style)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+b,"gi"),O=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+c+")","gi"),_=new RegExp("(background-position-x\\s*:\\s*)(-?"+n+"%)","gi"),N=new RegExp("(border-radius\\s*:\\s*)"+d+"(?:(?:\\s+"+d+")(?:\\s+"+d+")?(?:\\s+"+d+")?)?(?:(?:(?:\\s*\\/\\s*)"+d+")(?:\\s+"+d+")?(?:\\s+"+d+")?(?:\\s+"+d+")?)?"+b,"gi"),F=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+d,"gi"),z=new RegExp("(text-shadow\\s*:\\s*)"+d+"(\\s*)"+p,"gi"),j=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+d,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+d,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+d+"(\\s*\\))","gi"),$=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+d+"((?:\\s*,\\s*"+d+"){0,2}\\s*\\))","gi");function V(e,t,n){var r,o;return"%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n}function W(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter((function(e){return e})),o=n.slice(6,10).filter((function(e){return e})),i=n[10]||"";return t+(o.length?W(r)+" / "+W(o):W(r))+i}function G(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function Y(e,t,n){return t+G(n)}function K(e,t,n,r,o){return t+n+G(r)+o}function X(e,t,n,r,o){return t+n+r+G(o)}return{transform:function(t,n){var o=new r(S,"`NOFLIP_SINGLE`"),i=new r(E,"`NOFLIP_CLASS`"),a=new r(x,"`COMMENT`");return t=a.tokenize(i.tokenize(o.tokenize(t.replace("`","%60")))),n.transformDirInUrl&&(t=t.replace(P,"$1"+e).replace(I,"$1ltr").replace(y,"rtl")),n.transformEdgeInUrl&&(t=t.replace(D,"$1"+e).replace(A,"$1left").replace(y,"right")),t=t.replace(w,"$1"+e).replace(C,"$1ltr").replace(y,"rtl").replace(R,"$1"+e).replace(k,"$1left").replace(y,"right").replace(T,"$1$2"+e).replace(L,"$1$2e-resize").replace(y,"w-resize").replace(N,U).replace(F,Y).replace(z,X).replace(j,X).replace(H,Y).replace(B,K).replace($,K).replace(M,"$1$2$3$8$5$6$7$4$9").replace(q,"$1$2$3$8$5$6$7$4$9").replace(O,V).replace(_,V),t=o.detokenize(i.detokenize(a.detokenize(t)))}}},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)}(ps,ps.exports);var fs=ps.exports;Object.defineProperty(ds,"__esModule",{value:!0}),ds.STYLIS_PROPERTY_CONTEXT=void 0;var ms,hs=(ms=fs)&&ms.__esModule?ms:{default:ms};var gs=ds.STYLIS_PROPERTY_CONTEXT=-1;function vs(e,t){if(e===gs)return hs.default.transform(t)}Object.defineProperty(vs,"name",{value:"stylisRTLPlugin"});var bs=ds.default=vs;function ys(e,t){const[n,r]=bn.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}function xs(e){if(e.type)return e;if("#"===e.charAt(0))return xs(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Ss(e,t){return e=xs(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function Es(e,t){return Es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Es(e,t)}function ws(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Es(e,t)}function Cs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Rs={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},ks={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Rs,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Ds=12,As=14,Ps=16,Is=24,Ts=3,Ls=300,Ms=400,qs=600,Os=700,_s={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Ss(ks.GREYSCALE_0,.05),Ss(ks.GREEN_PALE,.5),Ss(ks.BLUE_PALE,.5),Ss(ks.GREEN_PALE,.5),Ss(ks.BLUE_PALE,.5),Ss(ks.GREEN_PALE,.5),Ss(ks.BLUE_PALE,.5);var Ns;function Fs(){return Fs=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},Fs.apply(this,arguments)}Ss(ks.GREEN_PALE,.5),Ss(ks.BLUE_PALE,.5),Ss(ks.GREEN_PALE,.5),Ss(ks.BLUE_PALE,.5);var zs,js=function(e){return bn.createElement("svg",Fs({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Ns||(Ns=bn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})))};function Hs(){return Hs=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},Hs.apply(this,arguments)}var Bs=function(e){return bn.createElement("svg",Hs({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),zs||(zs=bn.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})))};function $s({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return yn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var Vs=(e={})=>yn.createElement($s,{...e},yn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},yn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),yn.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),Ws=(e={})=>yn.createElement($s,{...e},yn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},yn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},yn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),yn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Us=(e={})=>yn.createElement($s,{fontSize:"medium",...e},yn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},yn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},yn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Gs=(e={})=>yn.createElement($s,{fontSize:"medium",...e},yn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},yn.createElement("defs",null,yn.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),yn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},yn.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},yn.createElement("use",{href:"#radio-checked-path-1"})),yn.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),yn.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),Ys=({className:e})=>yn.createElement($s,{fontSize:"small",className:e},yn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},yn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},yn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},yn.createElement("g",{transform:"translate(4.324187, 1.300372)"},yn.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),yn.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));function Ks(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=Ks(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Xs(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ks(e))&&(r&&(r+=" "),r+=t);return r}function Zs(e){return Bn("MuiSvgIcon",e)}$n("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Js=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Qs=ls("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Mt(n.color)}`],t[`fontSize${Mt(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),eu=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=Wn(n,Js),f=bn.isValidElement(r)&&"svg"===r.type,m=Ct({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Fn({root:["root","inherit"!==t&&`color${Mt(t)}`,`fontSize${Mt(n)}`]},Zs,r)})(m);return Ka.jsxs(Qs,Ct({as:a,className:Xs(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?Ka.jsx("title",{children:c}):null]}))}));eu.muiName="SvgIcon";var tu=eu;var nu,ru={},ou=Symbol.for("react.element"),iu=Symbol.for("react.portal"),au=Symbol.for("react.fragment"),lu=Symbol.for("react.strict_mode"),su=Symbol.for("react.profiler"),uu=Symbol.for("react.provider"),cu=Symbol.for("react.context"),du=Symbol.for("react.server_context"),pu=Symbol.for("react.forward_ref"),fu=Symbol.for("react.suspense"),mu=Symbol.for("react.suspense_list"),hu=Symbol.for("react.memo"),gu=Symbol.for("react.lazy"),vu=Symbol.for("react.offscreen");
7
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-table"]=t(e.stardust)}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}function a(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var s={exports:{}},u={},c=Symbol.for("react.element"),d=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),g=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),x=Symbol.iterator;var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,C={};function R(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||E}function k(){}function P(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||E}R.prototype.isReactComponent={},R.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},R.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=R.prototype;var D=P.prototype=new k;D.constructor=P,w(D,R.prototype),D.isPureReactComponent=!0;var A=Array.isArray,I=Object.prototype.hasOwnProperty,T={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)I.call(t,r)&&!L.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:c,type:e,key:i,ref:a,props:o,_owner:T.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===c}var q=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function _(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case c:case d:a=!0}}if(a)return o=o(a=e),e=""===r?"."+N(a,0):r,A(o)?(n="",null!=e&&(n=e.replace(q,"$&/")+"/"),_(o,t,n,"",(function(e){return e}))):null!=o&&(O(o)&&(o=function(e,t){return{$$typeof:c,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(q,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",A(e))for(var l=0;l<e.length;l++){var s=r+N(i=e[l],l);a+=_(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=x&&e[x]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=_(i=i.value,t,n,s=r+N(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function F(e,t,n){if(null==e)return e;var r=[],o=0;return _(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function z(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j={current:null},H={transition:null},B={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:H,ReactCurrentOwner:T};u.Children={map:F,forEach:function(e,t,n){F(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return F(e,(function(){t++})),t},toArray:function(e){return F(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},u.Component=R,u.Fragment=p,u.Profiler=m,u.PureComponent=P,u.StrictMode=f,u.Suspense=b,u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,u.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=w({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=T.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)I.call(t,s)&&!L.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:c,type:e.type,key:o,ref:i,props:r,_owner:a}},u.createContext=function(e){return(e={$$typeof:g,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:h,_context:e},e.Consumer=e},u.createElement=M,u.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:v,render:e}},u.isValidElement=O,u.lazy=function(e){return{$$typeof:S,_payload:{_status:-1,_result:e},_init:z}},u.memo=function(e,t){return{$$typeof:y,type:e,compare:void 0===t?null:t}},u.startTransition=function(e){var t=H.transition;H.transition={};try{e()}finally{H.transition=t}},u.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},u.useCallback=function(e,t){return j.current.useCallback(e,t)},u.useContext=function(e){return j.current.useContext(e)},u.useDebugValue=function(){},u.useDeferredValue=function(e){return j.current.useDeferredValue(e)},u.useEffect=function(e,t){return j.current.useEffect(e,t)},u.useId=function(){return j.current.useId()},u.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},u.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},u.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},u.useMemo=function(e,t){return j.current.useMemo(e,t)},u.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},u.useRef=function(e){return j.current.useRef(e)},u.useState=function(e){return j.current.useState(e)},u.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},u.useTransition=function(){return j.current.useTransition()},u.version="18.2.0",s.exports=u;var $=s.exports,W=l($),V=t({__proto__:null,default:W},[$]);function U(e,t){const[n,r]=$.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var G={NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const Y=({translator:e})=>($.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(G).forEach((t=>{e.add(G[t])}))}}(e)),[e]),e);var K={exports:{}},Z={},X={exports:{}},J={};
24
8
  /**
25
9
  * @license React
26
- * react-is.production.min.js
10
+ * scheduler.production.min.js
27
11
  *
28
12
  * Copyright (c) Facebook, Inc. and its affiliates.
29
13
  *
30
14
  * This source code is licensed under the MIT license found in the
31
15
  * LICENSE file in the root directory of this source tree.
32
- */function bu(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ou:switch(e=e.type){case au:case su:case lu:case fu:case mu:return e;default:switch(e=e&&e.$$typeof){case du:case cu:case pu:case gu:case hu:case uu:return e;default:return t}}case iu:return t}}}nu=Symbol.for("react.module.reference"),ru.ContextConsumer=cu,ru.ContextProvider=uu,ru.Element=ou,ru.ForwardRef=pu,ru.Fragment=au,ru.Lazy=gu,ru.Memo=hu,ru.Portal=iu,ru.Profiler=su,ru.StrictMode=lu,ru.Suspense=fu,ru.SuspenseList=mu,ru.isAsyncMode=function(){return!1},ru.isConcurrentMode=function(){return!1},ru.isContextConsumer=function(e){return bu(e)===cu},ru.isContextProvider=function(e){return bu(e)===uu},ru.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ou},ru.isForwardRef=function(e){return bu(e)===pu},ru.isFragment=function(e){return bu(e)===au},ru.isLazy=function(e){return bu(e)===gu},ru.isMemo=function(e){return bu(e)===hu},ru.isPortal=function(e){return bu(e)===iu},ru.isProfiler=function(e){return bu(e)===su},ru.isStrictMode=function(e){return bu(e)===lu},ru.isSuspense=function(e){return bu(e)===fu},ru.isSuspenseList=function(e){return bu(e)===mu},ru.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===au||e===su||e===lu||e===fu||e===mu||e===vu||"object"==typeof e&&null!==e&&(e.$$typeof===gu||e.$$typeof===hu||e.$$typeof===uu||e.$$typeof===cu||e.$$typeof===pu||e.$$typeof===nu||void 0!==e.getModuleId)},ru.typeOf=bu;var yu={exports:{}},xu={},Su={exports:{}},Eu={};
16
+ */
17
+ !function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,p=3,f=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function S(e){if(h=!1,y(e),!m)if(null!==n(s))m=!0,L(x);else{var t=n(u);null!==t&&M(S,t.startTime-e)}}function x(t,o){m=!1,h&&(h=!1,v(R),R=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!D());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&M(S,g.startTime-o),c=!1}return c}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,w=!1,C=null,R=-1,k=5,P=-1;function D(){return!(e.unstable_now()-P<k)}function A(){if(null!==C){var t=e.unstable_now();P=t;var n=!0;try{n=C(!0,t)}finally{n?E():(w=!1,C=null)}}else w=!1}if("function"==typeof b)E=function(){b(A)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,T=I.port2;I.port1.onmessage=A,E=function(){T.postMessage(null)}}else E=function(){g(A,0)};function L(e){C=e,w||(w=!0,E())}function M(t,n){R=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||f||(m=!0,L(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(h?(v(R),R=-1):h=!0,M(S,i-a))):(r.sortIndex=l,t(s,r),m||f||(m=!0,L(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(J),X.exports=J;var Q=X.exports,ee=$,te=Q;
33
18
  /**
34
19
  * @license React
35
- * scheduler.production.min.js
20
+ * react-dom.production.min.js
36
21
  *
37
22
  * Copyright (c) Facebook, Inc. and its affiliates.
38
23
  *
39
24
  * This source code is licensed under the MIT license found in the
40
25
  * LICENSE file in the root directory of this source tree.
26
+ */function ne(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var re=new Set,oe={};function ie(e,t){ae(e,t),ae(e+"Capture",t)}function ae(e,t){for(oe[e]=t,e=0;e<t.length;e++)re.add(t[e])}var le=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),se=Object.prototype.hasOwnProperty,ue=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ce={},de={};function pe(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){fe[e]=new pe(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];fe[t]=new pe(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){fe[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){fe[e]=new pe(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){fe[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){fe[e]=new pe(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){fe[e]=new pe(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){fe[e]=new pe(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){fe[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)}));var me=/[\-:]([a-z])/g;function he(e){return e[1].toUpperCase()}function ge(e,t,n,r){var o=fe.hasOwnProperty(t)?fe[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!se.call(de,e)||!se.call(ce,e)&&(ue.test(e)?de[e]=!0:(ce[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(me,he);fe[t]=new pe(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(me,he);fe[t]=new pe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(me,he);fe[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){fe[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)})),fe.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){fe[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)}));var ve=ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,be=Symbol.for("react.element"),ye=Symbol.for("react.portal"),Se=Symbol.for("react.fragment"),xe=Symbol.for("react.strict_mode"),Ee=Symbol.for("react.profiler"),we=Symbol.for("react.provider"),Ce=Symbol.for("react.context"),Re=Symbol.for("react.forward_ref"),ke=Symbol.for("react.suspense"),Pe=Symbol.for("react.suspense_list"),De=Symbol.for("react.memo"),Ae=Symbol.for("react.lazy"),Ie=Symbol.for("react.offscreen"),Te=Symbol.iterator;function Le(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Te&&e[Te]||e["@@iterator"])?e:null}var Me,Oe=Object.assign;function qe(e){if(void 0===Me)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Me=t&&t[1]||""}return"\n"+Me+e}var Ne=!1;function _e(e,t){if(!e||Ne)return"";Ne=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{Ne=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qe(e):""}function Fe(e){switch(e.tag){case 5:return qe(e.type);case 16:return qe("Lazy");case 13:return qe("Suspense");case 19:return qe("SuspenseList");case 0:case 2:case 15:return e=_e(e.type,!1);case 11:return e=_e(e.type.render,!1);case 1:return e=_e(e.type,!0);default:return""}}function ze(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Se:return"Fragment";case ye:return"Portal";case Ee:return"Profiler";case xe:return"StrictMode";case ke:return"Suspense";case Pe:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ce:return(e.displayName||"Context")+".Consumer";case we:return(e._context.displayName||"Context")+".Provider";case Re:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case De:return null!==(t=e.displayName||null)?t:ze(e.type)||"Memo";case Ae:t=e._payload,e=e._init;try{return ze(e(t))}catch(e){}}return null}function je(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ze(t);case 8:return t===xe?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function He(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $e(e){e._valueTracker||(e._valueTracker=function(e){var t=Be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function We(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ve(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ue(e,t){var n=t.checked;return Oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ge(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=He(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ye(e,t){null!=(t=t.checked)&&ge(e,"checked",t,!1)}function Ke(e,t){Ye(e,t);var n=He(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Xe(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xe(e,t.type,He(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ze(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Xe(e,t,n){"number"===t&&Ve(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Je=Array.isArray;function Qe(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+He(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function et(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(ne(91));return Oe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function tt(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(ne(92));if(Je(n)){if(1<n.length)throw Error(ne(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:He(n)}}function nt(e,t){var n=He(t.value),r=He(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function rt(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ot(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function it(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ot(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var at,lt,st=(lt=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((at=at||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=at.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return lt(e,t)}))}:lt);function ut(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ct={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dt=["Webkit","ms","Moz","O"];function pt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ct.hasOwnProperty(e)&&ct[e]?(""+t).trim():t+"px"}function ft(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=pt(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ct).forEach((function(e){dt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ct[t]=ct[e]}))}));var mt=Oe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ht(e,t){if(t){if(mt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ne(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ne(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(ne(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(ne(62))}}function gt(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vt=null;function bt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var yt=null,St=null,xt=null;function Et(e){if(e=vi(e)){if("function"!=typeof yt)throw Error(ne(280));var t=e.stateNode;t&&(t=yi(t),yt(e.stateNode,e.type,t))}}function wt(e){St?xt?xt.push(e):xt=[e]:St=e}function Ct(){if(St){var e=St,t=xt;if(xt=St=null,Et(e),t)for(e=0;e<t.length;e++)Et(t[e])}}function Rt(e,t){return e(t)}function kt(){}var Pt=!1;function Dt(e,t,n){if(Pt)return e(t,n);Pt=!0;try{return Rt(e,t,n)}finally{Pt=!1,(null!==St||null!==xt)&&(kt(),Ct())}}function At(e,t){var n=e.stateNode;if(null===n)return null;var r=yi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(ne(231,t,typeof n));return n}var It=!1;if(le)try{var Tt={};Object.defineProperty(Tt,"passive",{get:function(){It=!0}}),window.addEventListener("test",Tt,Tt),window.removeEventListener("test",Tt,Tt)}catch(lt){It=!1}function Lt(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Mt=!1,Ot=null,qt=!1,Nt=null,_t={onError:function(e){Mt=!0,Ot=e}};function Ft(e,t,n,r,o,i,a,l,s){Mt=!1,Ot=null,Lt.apply(_t,arguments)}function zt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function jt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ht(e){if(zt(e)!==e)throw Error(ne(188))}function Bt(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=zt(e)))throw Error(ne(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ht(o),e;if(i===r)return Ht(o),t;i=i.sibling}throw Error(ne(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(ne(189))}}if(n.alternate!==r)throw Error(ne(190))}if(3!==n.tag)throw Error(ne(188));return n.stateNode.current===n?e:t}(e),null!==e?$t(e):null}function $t(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$t(e);if(null!==t)return t;e=e.sibling}return null}var Wt=te.unstable_scheduleCallback,Vt=te.unstable_cancelCallback,Ut=te.unstable_shouldYield,Gt=te.unstable_requestPaint,Yt=te.unstable_now,Kt=te.unstable_getCurrentPriorityLevel,Zt=te.unstable_ImmediatePriority,Xt=te.unstable_UserBlockingPriority,Jt=te.unstable_NormalPriority,Qt=te.unstable_LowPriority,en=te.unstable_IdlePriority,tn=null,nn=null;var rn=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(on(e)/an|0)|0},on=Math.log,an=Math.LN2;var ln=64,sn=4194304;function un(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function cn(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=un(l):0!==(i&=a)&&(r=un(i))}else 0!==(a=n&~o)?r=un(a):0!==i&&(r=un(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-rn(t)),r|=e[n],t&=~o;return r}function dn(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pn(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function fn(){var e=ln;return 0==(4194240&(ln<<=1))&&(ln=64),e}function mn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function hn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rn(t)]=n}function gn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vn=0;function bn(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var yn,Sn,xn,En,wn,Cn=!1,Rn=[],kn=null,Pn=null,Dn=null,An=new Map,In=new Map,Tn=[],Ln="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mn(e,t){switch(e){case"focusin":case"focusout":kn=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":Dn=null;break;case"pointerover":case"pointerout":An.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":In.delete(t.pointerId)}}function On(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=vi(t))&&Sn(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function qn(e){var t=gi(e.target);if(null!==t){var n=zt(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=jt(n)))return e.blockedOn=t,void wn(e.priority,(function(){xn(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nn(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=vi(n))&&Sn(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);vt=r,n.target.dispatchEvent(r),vt=null,t.shift()}return!0}function _n(e,t,n){Nn(e)&&n.delete(t)}function Fn(){Cn=!1,null!==kn&&Nn(kn)&&(kn=null),null!==Pn&&Nn(Pn)&&(Pn=null),null!==Dn&&Nn(Dn)&&(Dn=null),An.forEach(_n),In.forEach(_n)}function zn(e,t){e.blockedOn===t&&(e.blockedOn=null,Cn||(Cn=!0,te.unstable_scheduleCallback(te.unstable_NormalPriority,Fn)))}function jn(e){function t(t){return zn(t,e)}if(0<Rn.length){zn(Rn[0],e);for(var n=1;n<Rn.length;n++){var r=Rn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==kn&&zn(kn,e),null!==Pn&&zn(Pn,e),null!==Dn&&zn(Dn,e),An.forEach(t),In.forEach(t),n=0;n<Tn.length;n++)(r=Tn[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tn.length&&null===(n=Tn[0]).blockedOn;)qn(n),null===n.blockedOn&&Tn.shift()}var Hn=ve.ReactCurrentBatchConfig,Bn=!0;function $n(e,t,n,r){var o=vn,i=Hn.transition;Hn.transition=null;try{vn=1,Vn(e,t,n,r)}finally{vn=o,Hn.transition=i}}function Wn(e,t,n,r){var o=vn,i=Hn.transition;Hn.transition=null;try{vn=4,Vn(e,t,n,r)}finally{vn=o,Hn.transition=i}}function Vn(e,t,n,r){if(Bn){var o=Gn(e,t,n,r);if(null===o)Bo(e,t,r,Un,n),Mn(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return kn=On(kn,e,t,n,r,o),!0;case"dragenter":return Pn=On(Pn,e,t,n,r,o),!0;case"mouseover":return Dn=On(Dn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return An.set(i,On(An.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,In.set(i,On(In.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mn(e,r),4&t&&-1<Ln.indexOf(e)){for(;null!==o;){var i=vi(o);if(null!==i&&yn(i),null===(i=Gn(e,t,n,r))&&Bo(e,t,r,Un,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Bo(e,t,r,null,n)}}var Un=null;function Gn(e,t,n,r){if(Un=null,null!==(e=gi(e=bt(r))))if(null===(t=zt(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=jt(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Un=e,null}function Yn(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Kt()){case Zt:return 1;case Xt:return 4;case Jt:case Qt:return 16;case en:return 536870912;default:return 16}default:return 16}}var Kn=null,Zn=null,Xn=null;function Jn(){if(Xn)return Xn;var e,t,n=Zn,r=n.length,o="value"in Kn?Kn.value:Kn.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Xn=o.slice(e,1<t?1-t:void 0)}function Qn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function er(){return!0}function tr(){return!1}function nr(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?er:tr,this.isPropagationStopped=tr,this}return Oe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=er)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=er)},persist:function(){},isPersistent:er}),t}var rr,or,ir,ar={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lr=nr(ar),sr=Oe({},ar,{view:0,detail:0}),ur=nr(sr),cr=Oe({},sr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Er,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ir&&(ir&&"mousemove"===e.type?(rr=e.screenX-ir.screenX,or=e.screenY-ir.screenY):or=rr=0,ir=e),rr)},movementY:function(e){return"movementY"in e?e.movementY:or}}),dr=nr(cr),pr=nr(Oe({},cr,{dataTransfer:0})),fr=nr(Oe({},sr,{relatedTarget:0})),mr=nr(Oe({},ar,{animationName:0,elapsedTime:0,pseudoElement:0})),hr=Oe({},ar,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gr=nr(hr),vr=nr(Oe({},ar,{data:0})),br={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sr[e])&&!!t[e]}function Er(){return xr}var wr=Oe({},sr,{key:function(e){if(e.key){var t=br[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Qn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?yr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Er,charCode:function(e){return"keypress"===e.type?Qn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Qn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cr=nr(wr),Rr=nr(Oe({},cr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),kr=nr(Oe({},sr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Er})),Pr=nr(Oe({},ar,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dr=Oe({},cr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ar=nr(Dr),Ir=[9,13,27,32],Tr=le&&"CompositionEvent"in window,Lr=null;le&&"documentMode"in document&&(Lr=document.documentMode);var Mr=le&&"TextEvent"in window&&!Lr,Or=le&&(!Tr||Lr&&8<Lr&&11>=Lr),qr=String.fromCharCode(32),Nr=!1;function _r(e,t){switch(e){case"keyup":return-1!==Ir.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zr=!1;var jr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!jr[e.type]:"textarea"===t}function Br(e,t,n,r){wt(r),0<(t=Wo(t,"onChange")).length&&(n=new lr("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $r=null,Wr=null;function Vr(e){No(e,0)}function Ur(e){if(We(bi(e)))return e}function Gr(e,t){if("change"===e)return t}var Yr=!1;if(le){var Kr;if(le){var Zr="oninput"in document;if(!Zr){var Xr=document.createElement("div");Xr.setAttribute("oninput","return;"),Zr="function"==typeof Xr.oninput}Kr=Zr}else Kr=!1;Yr=Kr&&(!document.documentMode||9<document.documentMode)}function Jr(){$r&&($r.detachEvent("onpropertychange",Qr),Wr=$r=null)}function Qr(e){if("value"===e.propertyName&&Ur(Wr)){var t=[];Br(t,Wr,e,bt(e)),Dt(Vr,t)}}function eo(e,t,n){"focusin"===e?(Jr(),Wr=n,($r=t).attachEvent("onpropertychange",Qr)):"focusout"===e&&Jr()}function to(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Ur(Wr)}function no(e,t){if("click"===e)return Ur(t)}function ro(e,t){if("input"===e||"change"===e)return Ur(t)}var oo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function io(e,t){if(oo(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!se.call(t,o)||!oo(e[o],t[o]))return!1}return!0}function ao(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lo(e,t){var n,r=ao(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ao(r)}}function so(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?so(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function uo(){for(var e=window,t=Ve();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Ve((e=t.contentWindow).document)}return t}function co(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function po(e){var t=uo(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&so(n.ownerDocument.documentElement,n)){if(null!==r&&co(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=lo(n,i);var a=lo(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fo=le&&"documentMode"in document&&11>=document.documentMode,mo=null,ho=null,go=null,vo=!1;function bo(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vo||null==mo||mo!==Ve(r)||("selectionStart"in(r=mo)&&co(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},go&&io(go,r)||(go=r,0<(r=Wo(ho,"onSelect")).length&&(t=new lr("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mo)))}function yo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var So={animationend:yo("Animation","AnimationEnd"),animationiteration:yo("Animation","AnimationIteration"),animationstart:yo("Animation","AnimationStart"),transitionend:yo("Transition","TransitionEnd")},xo={},Eo={};function wo(e){if(xo[e])return xo[e];if(!So[e])return e;var t,n=So[e];for(t in n)if(n.hasOwnProperty(t)&&t in Eo)return xo[e]=n[t];return e}le&&(Eo=document.createElement("div").style,"AnimationEvent"in window||(delete So.animationend.animation,delete So.animationiteration.animation,delete So.animationstart.animation),"TransitionEvent"in window||delete So.transitionend.transition);var Co=wo("animationend"),Ro=wo("animationiteration"),ko=wo("animationstart"),Po=wo("transitionend"),Do=new Map,Ao="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Io(e,t){Do.set(e,t),ie(t,[e])}for(var To=0;To<Ao.length;To++){var Lo=Ao[To];Io(Lo.toLowerCase(),"on"+(Lo[0].toUpperCase()+Lo.slice(1)))}Io(Co,"onAnimationEnd"),Io(Ro,"onAnimationIteration"),Io(ko,"onAnimationStart"),Io("dblclick","onDoubleClick"),Io("focusin","onFocus"),Io("focusout","onBlur"),Io(Po,"onTransitionEnd"),ae("onMouseEnter",["mouseout","mouseover"]),ae("onMouseLeave",["mouseout","mouseover"]),ae("onPointerEnter",["pointerout","pointerover"]),ae("onPointerLeave",["pointerout","pointerover"]),ie("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ie("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ie("onBeforeInput",["compositionend","keypress","textInput","paste"]),ie("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ie("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ie("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Oo=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mo));function qo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(Ft.apply(this,arguments),Mt){if(!Mt)throw Error(ne(198));var u=Ot;Mt=!1,Ot=null,qt||(qt=!0,Nt=u)}}(r,t,void 0,e),e.currentTarget=null}function No(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;qo(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;qo(o,l,u),i=s}}}if(qt)throw e=Nt,qt=!1,Nt=null,e}function _o(e,t){var n=t[fi];void 0===n&&(n=t[fi]=new Set);var r=e+"__bubble";n.has(r)||(Ho(t,e,2,!1),n.add(r))}function Fo(e,t,n){var r=0;t&&(r|=4),Ho(n,e,r,t)}var zo="_reactListening"+Math.random().toString(36).slice(2);function jo(e){if(!e[zo]){e[zo]=!0,re.forEach((function(t){"selectionchange"!==t&&(Oo.has(t)||Fo(t,!1,e),Fo(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zo]||(t[zo]=!0,Fo("selectionchange",!1,t))}}function Ho(e,t,n,r){switch(Yn(t)){case 1:var o=$n;break;case 4:o=Wn;break;default:o=Vn}n=o.bind(null,t,n,e),o=void 0,!It||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Bo(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=gi(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Dt((function(){var r=i,o=bt(n),a=[];e:{var l=Do.get(e);if(void 0!==l){var s=lr,u=e;switch(e){case"keypress":if(0===Qn(n))break e;case"keydown":case"keyup":s=Cr;break;case"focusin":u="focus",s=fr;break;case"focusout":u="blur",s=fr;break;case"beforeblur":case"afterblur":s=fr;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=dr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=pr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=kr;break;case Co:case Ro:case ko:s=mr;break;case Po:s=Pr;break;case"scroll":s=ur;break;case"wheel":s=Ar;break;case"copy":case"cut":case"paste":s=gr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Rr}var c=0!=(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=At(m,p))&&c.push($o(m,h,f)))),d)break;m=m.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===vt||!(u=n.relatedTarget||n.fromElement)||!gi(u)&&!u[pi])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?gi(u):null)&&(u!==(d=zt(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=dr,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rr,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==s?l:bi(s),f=null==u?l:bi(u),(l=new c(h,m+"leave",s,n,o)).target=d,l.relatedTarget=f,h=null,gi(o)===r&&((c=new c(p,m+"enter",u,n,o)).target=f,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(p=u,m=0,f=c=s;f;f=Vo(f))m++;for(f=0,h=p;h;h=Vo(h))f++;for(;0<m-f;)c=Vo(c),m--;for(;0<f-m;)p=Vo(p),f--;for(;m--;){if(c===p||null!==p&&c===p.alternate)break e;c=Vo(c),p=Vo(p)}c=null}else c=null;null!==s&&Uo(a,l,s,c,!1),null!==u&&null!==d&&Uo(a,d,u,c,!0)}if("select"===(s=(l=r?bi(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Gr;else if(Hr(l))if(Yr)g=ro;else{g=to;var v=eo}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=no);switch(g&&(g=g(e,r))?Br(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&Xe(l,"number",l.value)),v=r?bi(r):window,e){case"focusin":(Hr(v)||"true"===v.contentEditable)&&(mo=v,ho=r,go=null);break;case"focusout":go=ho=mo=null;break;case"mousedown":vo=!0;break;case"contextmenu":case"mouseup":case"dragend":vo=!1,bo(a,n,o);break;case"selectionchange":if(fo)break;case"keydown":case"keyup":bo(a,n,o)}var b;if(Tr)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else zr?_r(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Or&&"ko"!==n.locale&&(zr||"onCompositionStart"!==y?"onCompositionEnd"===y&&zr&&(b=Jn()):(Zn="value"in(Kn=o)?Kn.value:Kn.textContent,zr=!0)),0<(v=Wo(r,y)).length&&(y=new vr(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Fr(n))&&(y.data=b))),(b=Mr?function(e,t){switch(e){case"compositionend":return Fr(t);case"keypress":return 32!==t.which?null:(Nr=!0,qr);case"textInput":return(e=t.data)===qr&&Nr?null:e;default:return null}}(e,n):function(e,t){if(zr)return"compositionend"===e||!Tr&&_r(e,t)?(e=Jn(),Xn=Zn=Kn=null,zr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Or&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wo(r,"onBeforeInput")).length&&(o=new vr("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}No(a,t)}))}function $o(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wo(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=At(e,n))&&r.unshift($o(e,i,o)),null!=(i=At(e,t))&&r.push($o(e,i,o))),e=e.return}return r}function Vo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Uo(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=At(n,i))&&a.unshift($o(n,s,l)):o||null!=(s=At(n,i))&&a.push($o(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Go=/\r\n?/g,Yo=/\u0000|\uFFFD/g;function Ko(e){return("string"==typeof e?e:""+e).replace(Go,"\n").replace(Yo,"")}function Zo(e,t,n){if(t=Ko(t),Ko(e)!==t&&n)throw Error(ne(425))}function Xo(){}var Jo=null,Qo=null;function ei(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ti="function"==typeof setTimeout?setTimeout:void 0,ni="function"==typeof clearTimeout?clearTimeout:void 0,ri="function"==typeof Promise?Promise:void 0,oi="function"==typeof queueMicrotask?queueMicrotask:void 0!==ri?function(e){return ri.resolve(null).then(e).catch(ii)}:ti;function ii(e){setTimeout((function(){throw e}))}function ai(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void jn(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);jn(t)}function li(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function si(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ui=Math.random().toString(36).slice(2),ci="__reactFiber$"+ui,di="__reactProps$"+ui,pi="__reactContainer$"+ui,fi="__reactEvents$"+ui,mi="__reactListeners$"+ui,hi="__reactHandles$"+ui;function gi(e){var t=e[ci];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[ci]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=si(e);null!==e;){if(n=e[ci])return n;e=si(e)}return t}n=(e=n).parentNode}return null}function vi(e){return!(e=e[ci]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(ne(33))}function yi(e){return e[di]||null}var Si=[],xi=-1;function Ei(e){return{current:e}}function wi(e){0>xi||(e.current=Si[xi],Si[xi]=null,xi--)}function Ci(e,t){xi++,Si[xi]=e.current,e.current=t}var Ri={},ki=Ei(Ri),Pi=Ei(!1),Di=Ri;function Ai(e,t){var n=e.type.contextTypes;if(!n)return Ri;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ii(e){return null!=(e=e.childContextTypes)}function Ti(){wi(Pi),wi(ki)}function Li(e,t,n){if(ki.current!==Ri)throw Error(ne(168));Ci(ki,t),Ci(Pi,n)}function Mi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(ne(108,je(e)||"Unknown",o));return Oe({},n,r)}function Oi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ri,Di=ki.current,Ci(ki,e),Ci(Pi,Pi.current),!0}function qi(e,t,n){var r=e.stateNode;if(!r)throw Error(ne(169));n?(e=Mi(e,t,Di),r.__reactInternalMemoizedMergedChildContext=e,wi(Pi),wi(ki),Ci(ki,e)):wi(Pi),Ci(Pi,n)}var Ni=null,_i=!1,Fi=!1;function zi(e){null===Ni?Ni=[e]:Ni.push(e)}function ji(){if(!Fi&&null!==Ni){Fi=!0;var e=0,t=vn;try{var n=Ni;for(vn=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ni=null,_i=!1}catch(t){throw null!==Ni&&(Ni=Ni.slice(e+1)),Wt(Zt,ji),t}finally{vn=t,Fi=!1}}return null}var Hi=[],Bi=0,$i=null,Wi=0,Vi=[],Ui=0,Gi=null,Yi=1,Ki="";function Zi(e,t){Hi[Bi++]=Wi,Hi[Bi++]=$i,$i=e,Wi=t}function Xi(e,t,n){Vi[Ui++]=Yi,Vi[Ui++]=Ki,Vi[Ui++]=Gi,Gi=e;var r=Yi;e=Ki;var o=32-rn(r)-1;r&=~(1<<o),n+=1;var i=32-rn(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Yi=1<<32-rn(t)+o|n<<o|r,Ki=i+e}else Yi=1<<i|n<<o|r,Ki=e}function Ji(e){null!==e.return&&(Zi(e,1),Xi(e,1,0))}function Qi(e){for(;e===$i;)$i=Hi[--Bi],Hi[Bi]=null,Wi=Hi[--Bi],Hi[Bi]=null;for(;e===Gi;)Gi=Vi[--Ui],Vi[Ui]=null,Ki=Vi[--Ui],Vi[Ui]=null,Yi=Vi[--Ui],Vi[Ui]=null}var ea=null,ta=null,na=!1,ra=null;function oa(e,t){var n=Ac(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ia(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ea=e,ta=li(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ea=e,ta=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Gi?{id:Yi,overflow:Ki}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ac(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ea=e,ta=null,!0);default:return!1}}function aa(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function la(e){if(na){var t=ta;if(t){var n=t;if(!ia(e,t)){if(aa(e))throw Error(ne(418));t=li(n.nextSibling);var r=ea;t&&ia(e,t)?oa(r,n):(e.flags=-4097&e.flags|2,na=!1,ea=e)}}else{if(aa(e))throw Error(ne(418));e.flags=-4097&e.flags|2,na=!1,ea=e}}}function sa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ea=e}function ua(e){if(e!==ea)return!1;if(!na)return sa(e),na=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ei(e.type,e.memoizedProps)),t&&(t=ta)){if(aa(e))throw ca(),Error(ne(418));for(;t;)oa(e,t),t=li(t.nextSibling)}if(sa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(ne(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ta=li(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ta=null}}else ta=ea?li(e.stateNode.nextSibling):null;return!0}function ca(){for(var e=ta;e;)e=li(e.nextSibling)}function da(){ta=ea=null,na=!1}function pa(e){null===ra?ra=[e]:ra.push(e)}var fa=ve.ReactCurrentBatchConfig;function ma(e,t){if(e&&e.defaultProps){for(var n in t=Oe({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ha=Ei(null),ga=null,va=null,ba=null;function ya(){ba=va=ga=null}function Sa(e){var t=ha.current;wi(ha),e._currentValue=t}function xa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ea(e,t){ga=e,ba=va=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(vs=!0),e.firstContext=null)}function wa(e){var t=e._currentValue;if(ba!==e)if(e={context:e,memoizedValue:t,next:null},null===va){if(null===ga)throw Error(ne(308));va=e,ga.dependencies={lanes:0,firstContext:e}}else va=va.next=e;return t}var Ca=null;function Ra(e){null===Ca?Ca=[e]:Ca.push(e)}function ka(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ra(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pa(e,r)}function Pa(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Da=!1;function Aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ta(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&ku)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Pa(e,n)}return null===(o=r.interleaved)?(t.next=t,Ra(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pa(e,n)}function Ma(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gn(e,n)}}function Oa(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qa(e,t,n,r){var o=e.updateQueue;Da=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(p=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,d,p):m))break e;d=Oe({},d,p);break e;case 2:Da=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ou|=a,e.lanes=a,e.memoizedState=d}}function Na(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(ne(191,o));o.call(r)}}}var _a=(new ee.Component).refs;function Fa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Oe({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var za={isMounted:function(e){return!!(e=e._reactInternals)&&zt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ju(),o=Qu(e),i=Ta(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=La(e,i,o))&&(ec(t,e,o,r),Ma(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ju(),o=Qu(e),i=Ta(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=La(e,i,o))&&(ec(t,e,o,r),Ma(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ju(),r=Qu(e),o=Ta(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=La(e,o,r))&&(ec(t,e,r,n),Ma(t,e,r))}};function ja(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!io(n,r)||!io(o,i))}function Ha(e,t,n){var r=!1,o=Ri,i=t.contextType;return"object"==typeof i&&null!==i?i=wa(i):(o=Ii(t)?Di:ki.current,i=(r=null!=(r=t.contextTypes))?Ai(e,o):Ri),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=za,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ba(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&za.enqueueReplaceState(t,t.state,null)}function $a(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=_a,Aa(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=wa(i):(i=Ii(t)?Di:ki.current,o.context=Ai(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Fa(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&za.enqueueReplaceState(o,o.state,null),qa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Wa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(ne(309));var r=n.stateNode}if(!r)throw Error(ne(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===_a&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(ne(284));if(!n._owner)throw Error(ne(290,e))}return e}function Va(e,t){throw e=Object.prototype.toString.call(t),Error(ne(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ua(e){return(0,e._init)(e._payload)}function Ga(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Tc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=qc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===Se?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Ae&&Ua(i)===t.type)?((r=o(t,n.props)).ref=Wa(e,t,n),r.return=e,r):((r=Lc(n.type,n.key,n.props,null,e.mode,r)).ref=Wa(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Nc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=Mc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=qc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case be:return(n=Lc(t.type,t.key,t.props,null,e.mode,n)).ref=Wa(e,null,t),n.return=e,n;case ye:return(t=Nc(t,e.mode,n)).return=e,t;case Ae:return d(e,(0,t._init)(t._payload),n)}if(Je(t)||Le(t))return(t=Mc(t,e.mode,n,null)).return=e,t;Va(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case be:return n.key===o?s(e,t,n,r):null;case ye:return n.key===o?u(e,t,n,r):null;case Ae:return p(e,t,(o=n._init)(n._payload),r)}if(Je(n)||Le(n))return null!==o?null:c(e,t,n,r,null);Va(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case be:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case ye:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ae:return f(e,t,n,(0,r._init)(r._payload),o)}if(Je(r)||Le(r))return c(t,e=e.get(n)||null,r,o,null);Va(t,r)}return null}function m(o,a,l,s){for(var u=null,c=null,m=a,h=a=0,g=null;null!==m&&h<l.length;h++){m.index>h?(g=m,m=null):g=m.sibling;var v=p(o,m,l[h],s);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v,m=g}if(h===l.length)return n(o,m),na&&Zi(o,h),u;if(null===m){for(;h<l.length;h++)null!==(m=d(o,l[h],s))&&(a=i(m,a,h),null===c?u=m:c.sibling=m,c=m);return na&&Zi(o,h),u}for(m=r(o,m);h<l.length;h++)null!==(g=f(m,o,h,l[h],s))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),a=i(g,a,h),null===c?u=g:c.sibling=g,c=g);return e&&m.forEach((function(e){return t(o,e)})),na&&Zi(o,h),u}function h(o,a,l,s){var u=Le(l);if("function"!=typeof u)throw Error(ne(150));if(null==(l=u.call(l)))throw Error(ne(151));for(var c=u=null,m=a,h=a=0,g=null,v=l.next();null!==m&&!v.done;h++,v=l.next()){m.index>h?(g=m,m=null):g=m.sibling;var b=p(o,m,v.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),a=i(b,a,h),null===c?u=b:c.sibling=b,c=b,m=g}if(v.done)return n(o,m),na&&Zi(o,h),u;if(null===m){for(;!v.done;h++,v=l.next())null!==(v=d(o,v.value,s))&&(a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return na&&Zi(o,h),u}for(m=r(o,m);!v.done;h++,v=l.next())null!==(v=f(m,o,h,v.value,s))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return e&&m.forEach((function(e){return t(o,e)})),na&&Zi(o,h),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===Se&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case be:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===Se){if(7===c.tag){n(r,c.sibling),(i=o(c,l.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===Ae&&Ua(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=Wa(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===Se?((i=Mc(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=Lc(l.type,l.key,l.props,null,r.mode,s)).ref=Wa(r,i,l),s.return=r,r=s)}return a(r);case ye:e:{for(c=l.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Nc(l,r.mode,s)).return=r,r=i}return a(r);case Ae:return e(r,i,(c=l._init)(l._payload),s)}if(Je(l))return m(r,i,l,s);if(Le(l))return h(r,i,l,s);Va(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=qc(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var Ya=Ga(!0),Ka=Ga(!1),Za={},Xa=Ei(Za),Ja=Ei(Za),Qa=Ei(Za);function el(e){if(e===Za)throw Error(ne(174));return e}function tl(e,t){switch(Ci(Qa,t),Ci(Ja,e),Ci(Xa,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:it(null,"");break;default:t=it(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}wi(Xa),Ci(Xa,t)}function nl(){wi(Xa),wi(Ja),wi(Qa)}function rl(e){el(Qa.current);var t=el(Xa.current),n=it(t,e.type);t!==n&&(Ci(Ja,e),Ci(Xa,n))}function ol(e){Ja.current===e&&(wi(Xa),wi(Ja))}var il=Ei(0);function al(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ll=[];function sl(){for(var e=0;e<ll.length;e++)ll[e]._workInProgressVersionPrimary=null;ll.length=0}var ul=ve.ReactCurrentDispatcher,cl=ve.ReactCurrentBatchConfig,dl=0,pl=null,fl=null,ml=null,hl=!1,gl=!1,vl=0,bl=0;function yl(){throw Error(ne(321))}function Sl(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!oo(e[n],t[n]))return!1;return!0}function xl(e,t,n,r,o,i){if(dl=i,pl=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ul.current=null===e||null===e.memoizedState?os:is,e=n(r,o),gl){i=0;do{if(gl=!1,vl=0,25<=i)throw Error(ne(301));i+=1,ml=fl=null,t.updateQueue=null,ul.current=as,e=n(r,o)}while(gl)}if(ul.current=rs,t=null!==fl&&null!==fl.next,dl=0,ml=fl=pl=null,hl=!1,t)throw Error(ne(300));return e}function El(){var e=0!==vl;return vl=0,e}function wl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ml?pl.memoizedState=ml=e:ml=ml.next=e,ml}function Cl(){if(null===fl){var e=pl.alternate;e=null!==e?e.memoizedState:null}else e=fl.next;var t=null===ml?pl.memoizedState:ml.next;if(null!==t)ml=t,fl=e;else{if(null===e)throw Error(ne(310));e={memoizedState:(fl=e).memoizedState,baseState:fl.baseState,baseQueue:fl.baseQueue,queue:fl.queue,next:null},null===ml?pl.memoizedState=ml=e:ml=ml.next=e}return ml}function Rl(e,t){return"function"==typeof t?t(e):t}function kl(e){var t=Cl(),n=t.queue;if(null===n)throw Error(ne(311));n.lastRenderedReducer=e;var r=fl,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((dl&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(l=s=d,a=r):s=s.next=d,pl.lanes|=c,Ou|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,oo(r,t.memoizedState)||(vs=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,pl.lanes|=i,Ou|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pl(e){var t=Cl(),n=t.queue;if(null===n)throw Error(ne(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);oo(i,t.memoizedState)||(vs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Dl(){}function Al(e,t){var n=pl,r=Cl(),o=t(),i=!oo(r.memoizedState,o);if(i&&(r.memoizedState=o,vs=!0),r=r.queue,Hl(Ll.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==ml&&1&ml.memoizedState.tag){if(n.flags|=2048,Nl(9,Tl.bind(null,n,r,o,t),void 0,null),null===Pu)throw Error(ne(349));0!=(30&dl)||Il(n,t,o)}return o}function Il(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=pl.updateQueue)?(t={lastEffect:null,stores:null},pl.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Tl(e,t,n,r){t.value=n,t.getSnapshot=r,Ml(t)&&Ol(e)}function Ll(e,t,n){return n((function(){Ml(t)&&Ol(e)}))}function Ml(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!oo(e,n)}catch(e){return!0}}function Ol(e){var t=Pa(e,1);null!==t&&ec(t,e,1,-1)}function ql(e){var t=wl();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rl,lastRenderedState:e},t.queue=e,e=e.dispatch=Ql.bind(null,pl,e),[t.memoizedState,e]}function Nl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=pl.updateQueue)?(t={lastEffect:null,stores:null},pl.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function _l(){return Cl().memoizedState}function Fl(e,t,n,r){var o=wl();pl.flags|=e,o.memoizedState=Nl(1|t,n,void 0,void 0===r?null:r)}function zl(e,t,n,r){var o=Cl();r=void 0===r?null:r;var i=void 0;if(null!==fl){var a=fl.memoizedState;if(i=a.destroy,null!==r&&Sl(r,a.deps))return void(o.memoizedState=Nl(t,n,i,r))}pl.flags|=e,o.memoizedState=Nl(1|t,n,i,r)}function jl(e,t){return Fl(8390656,8,e,t)}function Hl(e,t){return zl(2048,8,e,t)}function Bl(e,t){return zl(4,2,e,t)}function $l(e,t){return zl(4,4,e,t)}function Wl(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Vl(e,t,n){return n=null!=n?n.concat([e]):null,zl(4,4,Wl.bind(null,t,e),n)}function Ul(){}function Gl(e,t){var n=Cl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yl(e,t){var n=Cl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Kl(e,t,n){return 0==(21&dl)?(e.baseState&&(e.baseState=!1,vs=!0),e.memoizedState=n):(oo(n,t)||(n=fn(),pl.lanes|=n,Ou|=n,e.baseState=!0),t)}function Zl(e,t){var n=vn;vn=0!==n&&4>n?n:4,e(!0);var r=cl.transition;cl.transition={};try{e(!1),t()}finally{vn=n,cl.transition=r}}function Xl(){return Cl().memoizedState}function Jl(e,t,n){var r=Qu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},es(e))ts(t,n);else if(null!==(n=ka(e,t,n,r))){ec(n,e,r,Ju()),ns(n,t,r)}}function Ql(e,t,n){var r=Qu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(es(e))ts(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,oo(l,a)){var s=t.interleaved;return null===s?(o.next=o,Ra(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=ka(e,t,o,r))&&(ec(n,e,r,o=Ju()),ns(n,t,r))}}function es(e){var t=e.alternate;return e===pl||null!==t&&t===pl}function ts(e,t){gl=hl=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ns(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gn(e,n)}}var rs={readContext:wa,useCallback:yl,useContext:yl,useEffect:yl,useImperativeHandle:yl,useInsertionEffect:yl,useLayoutEffect:yl,useMemo:yl,useReducer:yl,useRef:yl,useState:yl,useDebugValue:yl,useDeferredValue:yl,useTransition:yl,useMutableSource:yl,useSyncExternalStore:yl,useId:yl,unstable_isNewReconciler:!1},os={readContext:wa,useCallback:function(e,t){return wl().memoizedState=[e,void 0===t?null:t],e},useContext:wa,useEffect:jl,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Fl(4194308,4,Wl.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fl(4,2,e,t)},useMemo:function(e,t){var n=wl();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wl();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Jl.bind(null,pl,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},wl().memoizedState=e},useState:ql,useDebugValue:Ul,useDeferredValue:function(e){return wl().memoizedState=e},useTransition:function(){var e=ql(!1),t=e[0];return e=Zl.bind(null,e[1]),wl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pl,o=wl();if(na){if(void 0===n)throw Error(ne(407));n=n()}else{if(n=t(),null===Pu)throw Error(ne(349));0!=(30&dl)||Il(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,jl(Ll.bind(null,r,i,e),[e]),r.flags|=2048,Nl(9,Tl.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=wl(),t=Pu.identifierPrefix;if(na){var n=Ki;t=":"+t+"R"+(n=(Yi&~(1<<32-rn(Yi)-1)).toString(32)+n),0<(n=vl++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=bl++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},is={readContext:wa,useCallback:Gl,useContext:wa,useEffect:Hl,useImperativeHandle:Vl,useInsertionEffect:Bl,useLayoutEffect:$l,useMemo:Yl,useReducer:kl,useRef:_l,useState:function(){return kl(Rl)},useDebugValue:Ul,useDeferredValue:function(e){return Kl(Cl(),fl.memoizedState,e)},useTransition:function(){return[kl(Rl)[0],Cl().memoizedState]},useMutableSource:Dl,useSyncExternalStore:Al,useId:Xl,unstable_isNewReconciler:!1},as={readContext:wa,useCallback:Gl,useContext:wa,useEffect:Hl,useImperativeHandle:Vl,useInsertionEffect:Bl,useLayoutEffect:$l,useMemo:Yl,useReducer:Pl,useRef:_l,useState:function(){return Pl(Rl)},useDebugValue:Ul,useDeferredValue:function(e){var t=Cl();return null===fl?t.memoizedState=e:Kl(t,fl.memoizedState,e)},useTransition:function(){return[Pl(Rl)[0],Cl().memoizedState]},useMutableSource:Dl,useSyncExternalStore:Al,useId:Xl,unstable_isNewReconciler:!1};function ls(e,t){try{var n="",r=t;do{n+=Fe(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ss(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function us(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var cs="function"==typeof WeakMap?WeakMap:Map;function ds(e,t,n){(n=Ta(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bu||(Bu=!0,$u=r),us(0,t)},n}function ps(e,t,n){(n=Ta(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){us(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){us(0,t),"function"!=typeof r&&(null===Wu?Wu=new Set([this]):Wu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function fs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new cs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=wc.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function hs(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ta(-1,1)).tag=2,La(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var gs=ve.ReactCurrentOwner,vs=!1;function bs(e,t,n,r){t.child=null===e?Ka(t,null,n,r):Ya(t,e.child,n,r)}function ys(e,t,n,r,o){n=n.render;var i=t.ref;return Ea(t,o),r=xl(e,t,n,r,i,o),n=El(),null===e||vs?(na&&n&&Ji(t),t.flags|=1,bs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bs(e,t,o))}function Ss(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ic(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,xs(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:io)(a,r)&&e.ref===t.ref)return Bs(e,t,o)}return t.flags|=1,(e=Tc(i,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(io(i,r)&&e.ref===t.ref){if(vs=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Bs(e,t,o);0!=(131072&e.flags)&&(vs=!0)}}return Cs(e,t,n,r,o)}function Es(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ci(Tu,Iu),Iu|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ci(Tu,Iu),Iu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ci(Tu,Iu),Iu|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ci(Tu,Iu),Iu|=r;return bs(e,t,o,n),t.child}function ws(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,o){var i=Ii(n)?Di:ki.current;return i=Ai(t,i),Ea(t,o),n=xl(e,t,n,r,i,o),r=El(),null===e||vs?(na&&r&&Ji(t),t.flags|=1,bs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bs(e,t,o))}function Rs(e,t,n,r,o){if(Ii(n)){var i=!0;Oi(t)}else i=!1;if(Ea(t,o),null===t.stateNode)Hs(e,t),Ha(t,n,r),$a(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=wa(u):u=Ai(t,u=Ii(n)?Di:ki.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&Ba(t,a,r,u),Da=!1;var p=t.memoizedState;a.state=p,qa(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Pi.current||Da?("function"==typeof c&&(Fa(t,n,c,r),s=t.memoizedState),(l=Da||ja(t,n,l,r,p,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ia(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ma(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=wa(s):s=Ai(t,s=Ii(n)?Di:ki.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&Ba(t,a,r,s),Da=!1,p=t.memoizedState,a.state=p,qa(t,r,a,o);var m=t.memoizedState;l!==d||p!==m||Pi.current||Da?("function"==typeof f&&(Fa(t,n,f,r),m=t.memoizedState),(u=Da||ja(t,n,u,r,p,m,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return ks(e,t,n,r,i,o)}function ks(e,t,n,r,o,i){ws(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&qi(t,n,!1),Bs(e,t,i);r=t.stateNode,gs.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ya(t,e.child,null,i),t.child=Ya(t,null,l,i)):bs(e,t,l,i),t.memoizedState=r.state,o&&qi(t,n,!0),t.child}function Ps(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),tl(e,t.containerInfo)}function Ds(e,t,n,r,o){return da(),pa(o),t.flags|=256,bs(e,t,n,r),t.child}var As,Is,Ts,Ls,Ms={dehydrated:null,treeContext:null,retryLane:0};function Os(e){return{baseLanes:e,cachePool:null,transitions:null}}function qs(e,t,n){var r,o=t.pendingProps,i=il.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Ci(il,1&i),null===e)return la(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Oc(l,o,0,null),e=Mc(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Os(n),t.memoizedState=Ms,e):Ns(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,_s(e,t,a,r=ss(Error(ne(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Oc({mode:"visible",children:r.children},o,0,null),(i=Mc(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Ya(t,e.child,null,a),t.child.memoizedState=Os(a),t.memoizedState=Ms,i);if(0==(1&t.mode))return _s(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,_s(e,t,a,r=ss(i=Error(ne(419)),r,void 0))}if(l=0!=(a&e.childLanes),vs||l){if(null!==(r=Pu)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Pa(e,o),ec(r,e,o,-1))}return fc(),_s(e,t,a,r=ss(Error(ne(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Rc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ta=li(o.nextSibling),ea=t,na=!0,ra=null,null!==e&&(Vi[Ui++]=Yi,Vi[Ui++]=Ki,Vi[Ui++]=Gi,Yi=e.id,Ki=e.overflow,Gi=t),t=Ns(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Tc(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?a=Tc(r,a):(a=Mc(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Os(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Ms,o}return e=(a=e.child).sibling,o=Tc(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ns(e,t){return(t=Oc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function _s(e,t,n,r){return null!==r&&pa(r),Ya(t,e.child,null,n),(e=Ns(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),xa(e.return,t,n)}function zs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function js(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(bs(e,t,r.children,n),0!=(2&(r=il.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fs(e,n,t);else if(19===e.tag)Fs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ci(il,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===al(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),zs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===al(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}zs(t,!0,n,null,i);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hs(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ou|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(ne(153));if(null!==t.child){for(n=Tc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $s(e,t){if(!na)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vs(e,t,n){var r=t.pendingProps;switch(Qi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Ii(t.type)&&Ti(),Ws(t),null;case 3:return r=t.stateNode,nl(),wi(Pi),wi(ki),sl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ua(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ra&&(oc(ra),ra=null))),Is(e,t),Ws(t),null;case 5:ol(t);var o=el(Qa.current);if(n=t.type,null!==e&&null!=t.stateNode)Ts(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(ne(166));return Ws(t),null}if(e=el(Xa.current),ua(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ci]=t,r[di]=i,e=0!=(1&t.mode),n){case"dialog":_o("cancel",r),_o("close",r);break;case"iframe":case"object":case"embed":_o("load",r);break;case"video":case"audio":for(o=0;o<Mo.length;o++)_o(Mo[o],r);break;case"source":_o("error",r);break;case"img":case"image":case"link":_o("error",r),_o("load",r);break;case"details":_o("toggle",r);break;case"input":Ge(r,i),_o("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},_o("invalid",r);break;case"textarea":tt(r,i),_o("invalid",r)}for(var a in ht(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&Zo(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&Zo(r.textContent,l,e),o=["children",""+l]):oe.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&_o("scroll",r)}switch(n){case"input":$e(r),Ze(r,i,!0);break;case"textarea":$e(r),rt(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Xo)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ot(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[ci]=t,e[di]=r,As(e,t,!1,!1),t.stateNode=e;e:{switch(a=gt(n,r),n){case"dialog":_o("cancel",e),_o("close",e),o=r;break;case"iframe":case"object":case"embed":_o("load",e),o=r;break;case"video":case"audio":for(o=0;o<Mo.length;o++)_o(Mo[o],e);o=r;break;case"source":_o("error",e),o=r;break;case"img":case"image":case"link":_o("error",e),_o("load",e),o=r;break;case"details":_o("toggle",e),o=r;break;case"input":Ge(e,r),o=Ue(e,r),_o("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Oe({},r,{value:void 0}),_o("invalid",e);break;case"textarea":tt(e,r),o=et(e,r),_o("invalid",e)}for(i in ht(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?ft(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&st(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&ut(e,s):"number"==typeof s&&ut(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(oe.hasOwnProperty(i)?null!=s&&"onScroll"===i&&_o("scroll",e):null!=s&&ge(e,i,s,a))}switch(n){case"input":$e(e),Ze(e,r,!1);break;case"textarea":$e(e),rt(e);break;case"option":null!=r.value&&e.setAttribute("value",""+He(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?Qe(e,!!r.multiple,i,!1):null!=r.defaultValue&&Qe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Xo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(ne(166));if(n=el(Qa.current),el(Xa.current),ua(t)){if(r=t.stateNode,n=t.memoizedProps,r[ci]=t,(i=r.nodeValue!==n)&&null!==(e=ea))switch(e.tag){case 3:Zo(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zo(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ci]=t,t.stateNode=r}return Ws(t),null;case 13:if(wi(il),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(na&&null!==ta&&0!=(1&t.mode)&&0==(128&t.flags))ca(),da(),t.flags|=98560,i=!1;else if(i=ua(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(ne(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(ne(317));i[ci]=t}else da(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),i=!1}else null!==ra&&(oc(ra),ra=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&il.current)?0===Lu&&(Lu=3):fc())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return nl(),Is(e,t),null===e&&jo(t.stateNode.containerInfo),Ws(t),null;case 10:return Sa(t.type._context),Ws(t),null;case 19:if(wi(il),null===(i=t.memoizedState))return Ws(t),null;if(r=0!=(128&t.flags),null===(a=i.rendering))if(r)$s(i,!1);else{if(0!==Lu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=al(e))){for(t.flags|=128,$s(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ci(il,1&il.current|2),t.child}e=e.sibling}null!==i.tail&&Yt()>ju&&(t.flags|=128,r=!0,$s(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=al(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$s(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!na)return Ws(t),null}else 2*Yt()-i.renderingStartTime>ju&&1073741824!==n&&(t.flags|=128,r=!0,$s(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Yt(),t.sibling=null,n=il.current,Ci(il,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return uc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Iu)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(ne(156,t.tag))}function Us(e,t){switch(Qi(t),t.tag){case 1:return Ii(t.type)&&Ti(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return nl(),wi(Pi),wi(ki),sl(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ol(t),null;case 13:if(wi(il),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(ne(340));da()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return wi(il),null;case 4:return nl(),null;case 10:return Sa(t.type._context),null;case 22:case 23:return uc(),null;default:return null}}As=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Is=function(){},Ts=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,el(Xa.current);var i,a=null;switch(n){case"input":o=Ue(e,o),r=Ue(e,r),a=[];break;case"select":o=Oe({},o,{value:void 0}),r=Oe({},r,{value:void 0}),a=[];break;case"textarea":o=et(e,o),r=et(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Xo)}for(u in ht(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(oe.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(oe.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&_o("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gs=!1,Ys=!1,Ks="function"==typeof WeakSet?WeakSet:Set,Zs=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Ec(e,t,n)}else n.current=null}function Js(e,t,n){try{n()}catch(n){Ec(e,t,n)}}var Qs=!1;function eu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Js(t,n,i)}o=o.next}while(o!==r)}}function tu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ru(e){var t=e.alternate;null!==t&&(e.alternate=null,ru(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ci],delete t[di],delete t[fi],delete t[mi],delete t[hi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ou(e){return 5===e.tag||3===e.tag||4===e.tag}function iu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ou(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function au(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xo));else if(4!==r&&null!==(e=e.child))for(au(e,t,n),e=e.sibling;null!==e;)au(e,t,n),e=e.sibling}function lu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(lu(e,t,n),e=e.sibling;null!==e;)lu(e,t,n),e=e.sibling}var su=null,uu=!1;function cu(e,t,n){for(n=n.child;null!==n;)du(e,t,n),n=n.sibling}function du(e,t,n){if(nn&&"function"==typeof nn.onCommitFiberUnmount)try{nn.onCommitFiberUnmount(tn,n)}catch(e){}switch(n.tag){case 5:Ys||Xs(n,t);case 6:var r=su,o=uu;su=null,cu(e,t,n),uu=o,null!==(su=r)&&(uu?(e=su,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):su.removeChild(n.stateNode));break;case 18:null!==su&&(uu?(e=su,n=n.stateNode,8===e.nodeType?ai(e.parentNode,n):1===e.nodeType&&ai(e,n),jn(e)):ai(su,n.stateNode));break;case 4:r=su,o=uu,su=n.stateNode.containerInfo,uu=!0,cu(e,t,n),su=r,uu=o;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&Js(n,t,a),o=o.next}while(o!==r)}cu(e,t,n);break;case 1:if(!Ys&&(Xs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Ec(n,t,e)}cu(e,t,n);break;case 21:cu(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,cu(e,t,n),Ys=r):cu(e,t,n);break;default:cu(e,t,n)}}function pu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ks),t.forEach((function(t){var r=kc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function fu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:su=l.stateNode,uu=!1;break e;case 3:case 4:su=l.stateNode.containerInfo,uu=!0;break e}l=l.return}if(null===su)throw Error(ne(160));du(i,a,o),su=null,uu=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Ec(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mu(t,e),t=t.sibling}function mu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fu(t,e),hu(e),4&r){try{eu(3,e,e.return),tu(3,e)}catch(t){Ec(e,e.return,t)}try{eu(5,e,e.return)}catch(t){Ec(e,e.return,t)}}break;case 1:fu(t,e),hu(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(fu(t,e),hu(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var o=e.stateNode;try{ut(o,"")}catch(t){Ec(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&Ye(o,i),gt(l,a);var u=gt(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?ft(o,d):"dangerouslySetInnerHTML"===c?st(o,d):"children"===c?ut(o,d):ge(o,c,d,u)}switch(l){case"input":Ke(o,i);break;case"textarea":nt(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?Qe(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?Qe(o,!!i.multiple,i.defaultValue,!0):Qe(o,!!i.multiple,i.multiple?[]:"",!1))}o[di]=i}catch(t){Ec(e,e.return,t)}}break;case 6:if(fu(t,e),hu(e),4&r){if(null===e.stateNode)throw Error(ne(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Ec(e,e.return,t)}}break;case 3:if(fu(t,e),hu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{jn(t.containerInfo)}catch(t){Ec(e,e.return,t)}break;case 4:default:fu(t,e),hu(e);break;case 13:fu(t,e),hu(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(zu=Yt())),4&r&&pu(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(u=Ys)||c,fu(t,e),Ys=u):fu(t,e),hu(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(Zs=e,c=e.child;null!==c;){for(d=Zs=c;null!==Zs;){switch(f=(p=Zs).child,p.tag){case 0:case 11:case 14:case 15:eu(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Ec(r,n,e)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){yu(d);continue}}null!==f?(f.return=p,Zs=f):yu(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=pt("display",a))}catch(t){Ec(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){Ec(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:fu(t,e),hu(e),4&r&&pu(e);case 21:}}function hu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ou(n)){var r=n;break e}n=n.return}throw Error(ne(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(ut(o,""),r.flags&=-33),lu(e,iu(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;au(e,iu(e),i);break;default:throw Error(ne(161))}}catch(t){Ec(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gu(e,t,n){Zs=e,vu(e)}function vu(e,t,n){for(var r=0!=(1&e.mode);null!==Zs;){var o=Zs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Gs;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Ys;l=Gs;var u=Ys;if(Gs=a,(Ys=s)&&!u)for(Zs=o;null!==Zs;)s=(a=Zs).child,22===a.tag&&null!==a.memoizedState?Su(o):null!==s?(s.return=a,Zs=s):Su(o);for(;null!==i;)Zs=i,vu(i),i=i.sibling;Zs=o,Gs=l,Ys=u}bu(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Zs=i):bu(e)}}function bu(e){for(;null!==Zs;){var t=Zs;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||tu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ma(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Na(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Na(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&jn(d)}}}break;default:throw Error(ne(163))}Ys||512&t.flags&&nu(t)}catch(e){Ec(t,t.return,e)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function yu(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function Su(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{tu(4,t)}catch(e){Ec(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Ec(t,o,e)}}var i=t.return;try{nu(t)}catch(e){Ec(t,i,e)}break;case 5:var a=t.return;try{nu(t)}catch(e){Ec(t,a,e)}}}catch(e){Ec(t,t.return,e)}if(t===e){Zs=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zs=l;break}Zs=t.return}}var xu,Eu=Math.ceil,wu=ve.ReactCurrentDispatcher,Cu=ve.ReactCurrentOwner,Ru=ve.ReactCurrentBatchConfig,ku=0,Pu=null,Du=null,Au=0,Iu=0,Tu=Ei(0),Lu=0,Mu=null,Ou=0,qu=0,Nu=0,_u=null,Fu=null,zu=0,ju=1/0,Hu=null,Bu=!1,$u=null,Wu=null,Vu=!1,Uu=null,Gu=0,Yu=0,Ku=null,Zu=-1,Xu=0;function Ju(){return 0!=(6&ku)?Yt():-1!==Zu?Zu:Zu=Yt()}function Qu(e){return 0==(1&e.mode)?1:0!=(2&ku)&&0!==Au?Au&-Au:null!==fa.transition?(0===Xu&&(Xu=fn()),Xu):0!==(e=vn)?e:e=void 0===(e=window.event)?16:Yn(e.type)}function ec(e,t,n,r){if(50<Yu)throw Yu=0,Ku=null,Error(ne(185));hn(e,n,r),0!=(2&ku)&&e===Pu||(e===Pu&&(0==(2&ku)&&(qu|=n),4===Lu&&ic(e,Au)),tc(e,r),1===n&&0===ku&&0==(1&t.mode)&&(ju=Yt()+500,_i&&ji()))}function tc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-rn(i),l=1<<a,s=o[a];-1===s?0!=(l&n)&&0==(l&r)||(o[a]=dn(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=cn(e,e===Pu?Au:0);if(0===r)null!==n&&Vt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Vt(n),1===t)0===e.tag?function(e){_i=!0,zi(e)}(ac.bind(null,e)):zi(ac.bind(null,e)),oi((function(){0==(6&ku)&&ji()})),n=null;else{switch(bn(r)){case 1:n=Zt;break;case 4:n=Xt;break;case 16:default:n=Jt;break;case 536870912:n=en}n=Pc(n,nc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function nc(e,t){if(Zu=-1,Xu=0,0!=(6&ku))throw Error(ne(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=cn(e,e===Pu?Au:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=mc(e,r);else{t=r;var o=ku;ku|=2;var i=pc();for(Pu===e&&Au===t||(Hu=null,ju=Yt()+500,cc(e,t));;)try{gc();break}catch(t){dc(e,t)}ya(),wu.current=i,ku=o,null!==Du?t=0:(Pu=null,Au=0,t=Lu)}if(0!==t){if(2===t&&(0!==(o=pn(e))&&(r=o,t=rc(e,o))),1===t)throw n=Mu,cc(e,0),ic(e,r),tc(e,Yt()),n;if(6===t)ic(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!oo(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=mc(e,r))&&(0!==(i=pn(e))&&(r=i,t=rc(e,i))),1===t))throw n=Mu,cc(e,0),ic(e,r),tc(e,Yt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(ne(345));case 2:case 5:yc(e,Fu,Hu);break;case 3:if(ic(e,r),(130023424&r)===r&&10<(t=zu+500-Yt())){if(0!==cn(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Ju(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ti(yc.bind(null,e,Fu,Hu),t);break}yc(e,Fu,Hu);break;case 4:if(ic(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-rn(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=Yt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Eu(r/1960))-r)){e.timeoutHandle=ti(yc.bind(null,e,Fu,Hu),r);break}yc(e,Fu,Hu);break;default:throw Error(ne(329))}}}return tc(e,Yt()),e.callbackNode===n?nc.bind(null,e):null}function rc(e,t){var n=_u;return e.current.memoizedState.isDehydrated&&(cc(e,t).flags|=256),2!==(e=mc(e,t))&&(t=Fu,Fu=n,null!==t&&oc(t)),e}function oc(e){null===Fu?Fu=e:Fu.push.apply(Fu,e)}function ic(e,t){for(t&=~Nu,t&=~qu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rn(t),r=1<<n;e[n]=-1,t&=~r}}function ac(e){if(0!=(6&ku))throw Error(ne(327));Sc();var t=cn(e,0);if(0==(1&t))return tc(e,Yt()),null;var n=mc(e,t);if(0!==e.tag&&2===n){var r=pn(e);0!==r&&(t=r,n=rc(e,r))}if(1===n)throw n=Mu,cc(e,0),ic(e,t),tc(e,Yt()),n;if(6===n)throw Error(ne(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,yc(e,Fu,Hu),tc(e,Yt()),null}function lc(e,t){var n=ku;ku|=1;try{return e(t)}finally{0===(ku=n)&&(ju=Yt()+500,_i&&ji())}}function sc(e){null!==Uu&&0===Uu.tag&&0==(6&ku)&&Sc();var t=ku;ku|=1;var n=Ru.transition,r=vn;try{if(Ru.transition=null,vn=1,e)return e()}finally{vn=r,Ru.transition=n,0==(6&(ku=t))&&ji()}}function uc(){Iu=Tu.current,wi(Tu)}function cc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ni(n)),null!==Du)for(n=Du.return;null!==n;){var r=n;switch(Qi(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ti();break;case 3:nl(),wi(Pi),wi(ki),sl();break;case 5:ol(r);break;case 4:nl();break;case 13:case 19:wi(il);break;case 10:Sa(r.type._context);break;case 22:case 23:uc()}n=n.return}if(Pu=e,Du=e=Tc(e.current,null),Au=Iu=t,Lu=0,Mu=null,Nu=qu=Ou=0,Fu=_u=null,null!==Ca){for(t=0;t<Ca.length;t++)if(null!==(r=(n=Ca[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ca=null}return e}function dc(e,t){for(;;){var n=Du;try{if(ya(),ul.current=rs,hl){for(var r=pl.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}hl=!1}if(dl=0,ml=fl=pl=null,gl=!1,vl=0,Cu.current=null,null===n||null===n.return){Lu=1,Mu=t,Du=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Au,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=l,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=ms(a);if(null!==f){f.flags&=-257,hs(f,a,l,0,t),1&f.mode&&fs(i,u,t),s=u;var m=(t=f).updateQueue;if(null===m){var h=new Set;h.add(s),t.updateQueue=h}else m.add(s);break e}if(0==(1&t)){fs(i,u,t),fc();break e}s=Error(ne(426))}else if(na&&1&l.mode){var g=ms(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),hs(g,a,l,0,t),pa(ls(s,l));break e}}i=s=ls(s,l),4!==Lu&&(Lu=2),null===_u?_u=[i]:_u.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Oa(i,ds(0,s,t));break e;case 1:l=s;var v=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Wu||!Wu.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Oa(i,ps(i,l,t));break e}}i=i.return}while(null!==i)}bc(n)}catch(e){t=e,Du===n&&null!==n&&(Du=n=n.return);continue}break}}function pc(){var e=wu.current;return wu.current=rs,null===e?rs:e}function fc(){0!==Lu&&3!==Lu&&2!==Lu||(Lu=4),null===Pu||0==(268435455&Ou)&&0==(268435455&qu)||ic(Pu,Au)}function mc(e,t){var n=ku;ku|=2;var r=pc();for(Pu===e&&Au===t||(Hu=null,cc(e,t));;)try{hc();break}catch(t){dc(e,t)}if(ya(),ku=n,wu.current=r,null!==Du)throw Error(ne(261));return Pu=null,Au=0,Lu}function hc(){for(;null!==Du;)vc(Du)}function gc(){for(;null!==Du&&!Ut();)vc(Du)}function vc(e){var t=xu(e.alternate,e,Iu);e.memoizedProps=e.pendingProps,null===t?bc(e):Du=t,Cu.current=null}function bc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Vs(n,t,Iu)))return void(Du=n)}else{if(null!==(n=Us(n,t)))return n.flags&=32767,void(Du=n);if(null===e)return Lu=6,void(Du=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Du=t);Du=t=e}while(null!==t);0===Lu&&(Lu=5)}function yc(e,t,n){var r=vn,o=Ru.transition;try{Ru.transition=null,vn=1,function(e,t,n,r){do{Sc()}while(null!==Uu);if(0!=(6&ku))throw Error(ne(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ne(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-rn(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Pu&&(Du=Pu=null,Au=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Vu||(Vu=!0,Pc(Jt,(function(){return Sc(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Ru.transition,Ru.transition=null;var a=vn;vn=1;var l=ku;ku|=4,Cu.current=null,function(e,t){if(Jo=Bn,co(e=uo())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++c===r&&(s=a),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qo={focusedElem:e,selectionRange:n},Bn=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var h=m.memoizedProps,g=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:ma(t.type,h),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(ne(163))}}catch(e){Ec(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=Qs,Qs=!1}(e,n),mu(n,e),po(Qo),Bn=!!Jo,Qo=Jo=null,e.current=n,gu(n),Gt(),ku=l,vn=a,Ru.transition=i}else e.current=n;if(Vu&&(Vu=!1,Uu=e,Gu=o),i=e.pendingLanes,0===i&&(Wu=null),function(e){if(nn&&"function"==typeof nn.onCommitFiberRoot)try{nn.onCommitFiberRoot(tn,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),tc(e,Yt()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Bu)throw Bu=!1,e=$u,$u=null,e;0!=(1&Gu)&&0!==e.tag&&Sc(),i=e.pendingLanes,0!=(1&i)?e===Ku?Yu++:(Yu=0,Ku=e):Yu=0,ji()}(e,t,n,r)}finally{Ru.transition=o,vn=r}return null}function Sc(){if(null!==Uu){var e=bn(Gu),t=Ru.transition,n=vn;try{if(Ru.transition=null,vn=16>e?16:e,null===Uu)var r=!1;else{if(e=Uu,Uu=null,Gu=0,0!=(6&ku))throw Error(ne(331));var o=ku;for(ku|=4,Zs=e.current;null!==Zs;){var i=Zs,a=i.child;if(0!=(16&Zs.flags)){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(Zs=u;null!==Zs;){var c=Zs;switch(c.tag){case 0:case 11:case 15:eu(8,c,i)}var d=c.child;if(null!==d)d.return=c,Zs=d;else for(;null!==Zs;){var p=(c=Zs).sibling,f=c.return;if(ru(c),c===u){Zs=null;break}if(null!==p){p.return=f,Zs=p;break}Zs=f}}}var m=i.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var g=h.sibling;h.sibling=null,h=g}while(null!==h)}}Zs=i}}if(0!=(2064&i.subtreeFlags)&&null!==a)a.return=i,Zs=a;else e:for(;null!==Zs;){if(0!=(2048&(i=Zs).flags))switch(i.tag){case 0:case 11:case 15:eu(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Zs=v;break e}Zs=i.return}}var b=e.current;for(Zs=b;null!==Zs;){var y=(a=Zs).child;if(0!=(2064&a.subtreeFlags)&&null!==y)y.return=a,Zs=y;else e:for(a=b;null!==Zs;){if(0!=(2048&(l=Zs).flags))try{switch(l.tag){case 0:case 11:case 15:tu(9,l)}}catch(e){Ec(l,l.return,e)}if(l===a){Zs=null;break e}var S=l.sibling;if(null!==S){S.return=l.return,Zs=S;break e}Zs=l.return}}if(ku=o,ji(),nn&&"function"==typeof nn.onPostCommitFiberRoot)try{nn.onPostCommitFiberRoot(tn,e)}catch(e){}r=!0}return r}finally{vn=n,Ru.transition=t}}return!1}function xc(e,t,n){e=La(e,t=ds(0,t=ls(n,t),1),1),t=Ju(),null!==e&&(hn(e,1,t),tc(e,t))}function Ec(e,t,n){if(3===e.tag)xc(e,e,n);else for(;null!==t;){if(3===t.tag){xc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wu||!Wu.has(r))){t=La(t,e=ps(t,e=ls(n,e),1),1),e=Ju(),null!==t&&(hn(t,1,e),tc(t,e));break}}t=t.return}}function wc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Ju(),e.pingedLanes|=e.suspendedLanes&n,Pu===e&&(Au&n)===n&&(4===Lu||3===Lu&&(130023424&Au)===Au&&500>Yt()-zu?cc(e,0):Nu|=n),tc(e,t)}function Cc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=sn,0==(130023424&(sn<<=1))&&(sn=4194304)));var n=Ju();null!==(e=Pa(e,t))&&(hn(e,t,n),tc(e,n))}function Rc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cc(e,n)}function kc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ne(314))}null!==r&&r.delete(t),Cc(e,n)}function Pc(e,t){return Wt(e,t)}function Dc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ac(e,t,n,r){return new Dc(e,t,n,r)}function Ic(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tc(e,t){var n=e.alternate;return null===n?((n=Ac(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lc(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Ic(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Se:return Mc(n.children,o,i,t);case xe:a=8,o|=8;break;case Ee:return(e=Ac(12,n,t,2|o)).elementType=Ee,e.lanes=i,e;case ke:return(e=Ac(13,n,t,o)).elementType=ke,e.lanes=i,e;case Pe:return(e=Ac(19,n,t,o)).elementType=Pe,e.lanes=i,e;case Ie:return Oc(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case we:a=10;break e;case Ce:a=9;break e;case Re:a=11;break e;case De:a=14;break e;case Ae:a=16,r=null;break e}throw Error(ne(130,null==e?e:typeof e,""))}return(t=Ac(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Mc(e,t,n,r){return(e=Ac(7,e,r,t)).lanes=n,e}function Oc(e,t,n,r){return(e=Ac(22,e,r,t)).elementType=Ie,e.lanes=n,e.stateNode={isHidden:!1},e}function qc(e,t,n){return(e=Ac(6,e,null,t)).lanes=n,e}function Nc(e,t,n){return(t=Ac(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _c(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mn(0),this.expirationTimes=mn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mn(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fc(e,t,n,r,o,i,a,l,s){return e=new _c(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ac(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Aa(i),e}function zc(e){if(!e)return Ri;e:{if(zt(e=e._reactInternals)!==e||1!==e.tag)throw Error(ne(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ii(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(ne(171))}if(1===e.tag){var n=e.type;if(Ii(n))return Mi(e,n,t)}return t}function jc(e,t,n,r,o,i,a,l,s){return(e=Fc(n,r,!0,e,0,i,0,l,s)).context=zc(null),n=e.current,(i=Ta(r=Ju(),o=Qu(n))).callback=null!=t?t:null,La(n,i,o),e.current.lanes=o,hn(e,o,r),tc(e,r),e}function Hc(e,t,n,r){var o=t.current,i=Ju(),a=Qu(o);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ta(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=La(o,t,a))&&(ec(e,o,a,i),Ma(e,o,a)),a}function Bc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $c(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){$c(e,t),(e=e.alternate)&&$c(e,t)}xu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Pi.current)vs=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return vs=!1,function(e,t,n){switch(t.tag){case 3:Ps(t),da();break;case 5:rl(t);break;case 1:Ii(t.type)&&Oi(t);break;case 4:tl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ci(ha,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ci(il,1&il.current),t.flags|=128,null):0!=(n&t.child.childLanes)?qs(e,t,n):(Ci(il,1&il.current),null!==(e=Bs(e,t,n))?e.sibling:null);Ci(il,1&il.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return js(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ci(il,il.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Bs(e,t,n)}(e,t,n);vs=0!=(131072&e.flags)}else vs=!1,na&&0!=(1048576&t.flags)&&Xi(t,Wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var o=Ai(t,ki.current);Ea(t,n),o=xl(null,t,r,e,o,n);var i=El();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ii(r)?(i=!0,Oi(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Aa(t),o.updater=za,t.stateNode=o,o._reactInternals=t,$a(t,r,e,n),t=ks(null,t,r,!0,i,n)):(t.tag=0,na&&i&&Ji(t),bs(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Ic(e)?1:0;if(null!=e){if((e=e.$$typeof)===Re)return 11;if(e===De)return 14}return 2}(r),e=ma(r,e),o){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Rs(null,t,r,e,n);break e;case 11:t=ys(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,ma(r.type,e),n);break e}throw Error(ne(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Cs(e,t,r,o=t.elementType===r?o:ma(r,o),n);case 1:return r=t.type,o=t.pendingProps,Rs(e,t,r,o=t.elementType===r?o:ma(r,o),n);case 3:e:{if(Ps(t),null===e)throw Error(ne(387));r=t.pendingProps,o=(i=t.memoizedState).element,Ia(e,t),qa(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ds(e,t,r,n,o=ls(Error(ne(423)),t));break e}if(r!==o){t=Ds(e,t,r,n,o=ls(Error(ne(424)),t));break e}for(ta=li(t.stateNode.containerInfo.firstChild),ea=t,na=!0,ra=null,n=Ka(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(da(),r===o){t=Bs(e,t,n);break e}bs(e,t,r,n)}t=t.child}return t;case 5:return rl(t),null===e&&la(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,ei(r,o)?a=null:null!==i&&ei(r,i)&&(t.flags|=32),ws(e,t),bs(e,t,a,n),t.child;case 6:return null===e&&la(t),null;case 13:return qs(e,t,n);case 4:return tl(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ya(t,null,r,n):bs(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ys(e,t,r,o=t.elementType===r?o:ma(r,o),n);case 7:return bs(e,t,t.pendingProps,n),t.child;case 8:case 12:return bs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ci(ha,r._currentValue),r._currentValue=a,null!==i)if(oo(i.value,a)){if(i.children===o.children&&!Pi.current){t=Bs(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=Ta(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),xa(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(ne(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),xa(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}bs(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ea(t,n),r=r(o=wa(o)),t.flags|=1,bs(e,t,r,n),t.child;case 14:return o=ma(r=t.type,t.pendingProps),Ss(e,t,r,o=ma(r.type,o),n);case 15:return xs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ma(r,o),Hs(e,t),t.tag=1,Ii(r)?(e=!0,Oi(t)):e=!1,Ea(t,n),Ha(t,r,o),$a(t,r,o,n),ks(null,t,r,!0,e,n);case 19:return js(e,t,n);case 22:return Es(e,t,n)}throw Error(ne(156,t.tag))};var Vc="function"==typeof reportError?reportError:function(e){console.error(e)};function Uc(e){this._internalRoot=e}function Gc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function Xc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Bc(a);l.call(e)}}Hc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Bc(a);i.call(e)}}var a=jc(t,r,e,0,null,!1,0,"",Zc);return e._reactRootContainer=a,e[pi]=a.current,jo(8===e.nodeType?e.parentNode:e),sc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Bc(s);l.call(e)}}var s=Fc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=s,e[pi]=s.current,jo(8===e.nodeType?e.parentNode:e),sc((function(){Hc(t,s,n,r)})),s}(n,t,e,o,r);return Bc(a)}Gc.prototype.render=Uc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(ne(409));Hc(e,t,null,null)},Gc.prototype.unmount=Uc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;sc((function(){Hc(null,e,null,null)})),t[pi]=null}},Gc.prototype.unstable_scheduleHydration=function(e){if(e){var t=En();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tn.length&&0!==t&&t<Tn[n].priority;n++);Tn.splice(n,0,e),0===n&&qn(e)}},yn=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=un(t.pendingLanes);0!==n&&(gn(t,1|n),tc(t,Yt()),0==(6&ku)&&(ju=Yt()+500,ji()))}break;case 13:sc((function(){var t=Pa(e,1);if(null!==t){var n=Ju();ec(t,e,1,n)}})),Wc(e,1)}},Sn=function(e){if(13===e.tag){var t=Pa(e,134217728);if(null!==t)ec(t,e,134217728,Ju());Wc(e,134217728)}},xn=function(e){if(13===e.tag){var t=Qu(e),n=Pa(e,t);if(null!==n)ec(n,e,t,Ju());Wc(e,t)}},En=function(){return vn},wn=function(e,t){var n=vn;try{return vn=e,t()}finally{vn=n}},yt=function(e,t,n){switch(t){case"input":if(Ke(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=yi(r);if(!o)throw Error(ne(90));We(r),Ke(r,o)}}}break;case"textarea":nt(e,n);break;case"select":null!=(t=n.value)&&Qe(e,!!n.multiple,t,!1)}},Rt=lc,kt=sc;var Jc={usingClientEntryPoint:!1,Events:[vi,bi,yi,wt,Ct,lc]},Qc={findFiberByHostInstance:gi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ed={bundleType:Qc.bundleType,version:Qc.version,rendererPackageName:Qc.rendererPackageName,rendererConfig:Qc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ve.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Bt(e))?null:e.stateNode},findFiberByHostInstance:Qc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var td=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!td.isDisabled&&td.supportsFiber)try{tn=td.inject(ed),nn=td}catch(lt){}}Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jc,Z.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(ne(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ye,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},Z.createRoot=function(e,t){if(!Yc(e))throw Error(ne(299));var n=!1,r="",o=Vc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fc(e,1,!1,null,0,n,0,r,o),e[pi]=t.current,jo(8===e.nodeType?e.parentNode:e),new Uc(t)},Z.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(ne(188));throw e=Object.keys(e).join(","),Error(ne(268,e))}return e=null===(e=Bt(t))?null:e.stateNode},Z.flushSync=function(e){return sc(e)},Z.hydrate=function(e,t,n){if(!Kc(t))throw Error(ne(200));return Xc(null,e,t,!0,n)},Z.hydrateRoot=function(e,t,n){if(!Yc(e))throw Error(ne(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=Vc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=jc(t,null,e,1,null!=n?n:null,o,0,i,a),e[pi]=t.current,jo(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Gc(t)},Z.render=function(e,t,n){if(!Kc(t))throw Error(ne(200));return Xc(null,e,t,!1,n)},Z.unmountComponentAtNode=function(e){if(!Kc(e))throw Error(ne(40));return!!e._reactRootContainer&&(sc((function(){Xc(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},Z.unstable_batchedUpdates=lc,Z.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Kc(n))throw Error(ne(200));if(null==e||void 0===e._reactInternals)throw Error(ne(38));return Xc(e,t,n,!1,r)},Z.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),K.exports=Z;var nd,rd=K.exports,od=l(rd),id=rd;function ad(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ld(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function sd(){}nd=id.createRoot,id.hydrateRoot;var ud=.7,cd=1/ud,dd="\\s*([+-]?\\d+)\\s*",pd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",md=/^#([0-9a-f]{3,8})$/,hd=new RegExp(`^rgb\\(${dd},${dd},${dd}\\)$`),gd=new RegExp(`^rgb\\(${fd},${fd},${fd}\\)$`),vd=new RegExp(`^rgba\\(${dd},${dd},${dd},${pd}\\)$`),bd=new RegExp(`^rgba\\(${fd},${fd},${fd},${pd}\\)$`),yd=new RegExp(`^hsl\\(${pd},${fd},${fd}\\)$`),Sd=new RegExp(`^hsla\\(${pd},${fd},${fd},${pd}\\)$`),xd={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ed(){return this.rgb().formatHex()}function wd(){return this.rgb().formatRgb()}function Cd(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=md.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Rd(t):3===n?new Ad(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?kd(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?kd(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=hd.exec(e))?new Ad(t[1],t[2],t[3],1):(t=gd.exec(e))?new Ad(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=vd.exec(e))?kd(t[1],t[2],t[3],t[4]):(t=bd.exec(e))?kd(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=yd.exec(e))?qd(t[1],t[2]/100,t[3]/100,1):(t=Sd.exec(e))?qd(t[1],t[2]/100,t[3]/100,t[4]):xd.hasOwnProperty(e)?Rd(xd[e]):"transparent"===e?new Ad(NaN,NaN,NaN,0):null}function Rd(e){return new Ad(e>>16&255,e>>8&255,255&e,1)}function kd(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ad(e,t,n,r)}function Pd(e){return e instanceof sd||(e=Cd(e)),e?new Ad((e=e.rgb()).r,e.g,e.b,e.opacity):new Ad}function Dd(e,t,n,r){return 1===arguments.length?Pd(e):new Ad(e,t,n,null==r?1:r)}function Ad(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Id(){return`#${Od(this.r)}${Od(this.g)}${Od(this.b)}`}function Td(){const e=Ld(this.opacity);return`${1===e?"rgb(":"rgba("}${Md(this.r)}, ${Md(this.g)}, ${Md(this.b)}${1===e?")":`, ${e})`}`}function Ld(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Md(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Od(e){return((e=Md(e))<16?"0":"")+e.toString(16)}function qd(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _d(e,t,n,r)}function Nd(e){if(e instanceof _d)return new _d(e.h,e.s,e.l,e.opacity);if(e instanceof sd||(e=Cd(e)),!e)return new _d;if(e instanceof _d)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new _d(a,l,s,e.opacity)}function _d(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Fd(e){return(e=(e||0)%360)<0?e+360:e}function zd(e){return Math.max(0,Math.min(1,e||0))}function jd(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ad(sd,Cd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ed,formatHex:Ed,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Nd(this).formatHsl()},formatRgb:wd,toString:wd}),ad(Ad,Dd,ld(sd,{brighter(e){return e=null==e?cd:Math.pow(cd,e),new Ad(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ud:Math.pow(ud,e),new Ad(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ad(Md(this.r),Md(this.g),Md(this.b),Ld(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Id,formatHex:Id,formatHex8:function(){return`#${Od(this.r)}${Od(this.g)}${Od(this.b)}${Od(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Td,toString:Td})),ad(_d,(function(e,t,n,r){return 1===arguments.length?Nd(e):new _d(e,t,n,null==r?1:r)}),ld(sd,{brighter(e){return e=null==e?cd:Math.pow(cd,e),new _d(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ud:Math.pow(ud,e),new _d(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ad(jd(e>=240?e-240:e+120,o,r),jd(e,o,r),jd(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new _d(Fd(this.h),zd(this.s),zd(this.l),Ld(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ld(this.opacity);return`${1===e?"hsl(":"hsla("}${Fd(this.h)}, ${100*zd(this.s)}%, ${100*zd(this.l)}%${1===e?")":`, ${e})`}`}}));const Hd=e=>{if(e){const t=Dd(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},Bd=(e,t,n,r)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==n?void 0:n(e),u=null==r?void 0:r(e),c=s||i||u,d=(e=>!!e&&0===Dd(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:Hd(d?l:c),isTransparent:d}};var $d=Object.prototype.hasOwnProperty,Wd=Object.prototype.toString,Vd=Object.defineProperty,Ud=Object.getOwnPropertyDescriptor,Gd=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Wd.call(e)},Yd=function(e){if(!e||"[object Object]"!==Wd.call(e))return!1;var t,n=$d.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&$d.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||$d.call(e,t)},Kd=function(e,t){Vd&&"__proto__"===t.name?Vd(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Zd=function(e,t){if("__proto__"===t){if(!$d.call(e,t))return;if(Ud)return Ud(e,t).value}return e[t]};function Xd(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Jd(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Qd(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=Zd(l,n),l!==(o=Zd(t,n))&&(c&&o&&(Yd(o)||(i=Gd(o)))?(i?(i=!1,a=r&&Gd(r)?r:[]):a=r&&Yd(r)?r:{},Kd(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Kd(l,{name:n,newValue:o}));return l}));var ep=1/.7,tp="\\s*([+-]?\\d+)\\s*",np="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",op=/^#([0-9a-f]{3,8})$/,ip=new RegExp(`^rgb\\(${tp},${tp},${tp}\\)$`),ap=new RegExp(`^rgb\\(${rp},${rp},${rp}\\)$`),lp=new RegExp(`^rgba\\(${tp},${tp},${tp},${np}\\)$`),sp=new RegExp(`^rgba\\(${rp},${rp},${rp},${np}\\)$`),up=new RegExp(`^hsl\\(${np},${rp},${rp}\\)$`),cp=new RegExp(`^hsla\\(${np},${rp},${rp},${np}\\)$`),dp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function pp(){return this.rgb().formatHex()}function fp(){return this.rgb().formatRgb()}function mp(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=op.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?hp(t):3===n?new yp(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?gp(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?gp(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ip.exec(e))?new yp(t[1],t[2],t[3],1):(t=ap.exec(e))?new yp(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=lp.exec(e))?gp(t[1],t[2],t[3],t[4]):(t=sp.exec(e))?gp(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=up.exec(e))?Rp(t[1],t[2]/100,t[3]/100,1):(t=cp.exec(e))?Rp(t[1],t[2]/100,t[3]/100,t[4]):dp.hasOwnProperty(e)?hp(dp[e]):"transparent"===e?new yp(NaN,NaN,NaN,0):null}function hp(e){return new yp(e>>16&255,e>>8&255,255&e,1)}function gp(e,t,n,r){return r<=0&&(e=t=n=NaN),new yp(e,t,n,r)}function vp(e){return e instanceof Qd||(e=mp(e)),e?new yp((e=e.rgb()).r,e.g,e.b,e.opacity):new yp}function bp(e,t,n,r){return 1===arguments.length?vp(e):new yp(e,t,n,null==r?1:r)}function yp(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Sp(){return`#${Cp(this.r)}${Cp(this.g)}${Cp(this.b)}`}function xp(){const e=Ep(this.opacity);return`${1===e?"rgb(":"rgba("}${wp(this.r)}, ${wp(this.g)}, ${wp(this.b)}${1===e?")":`, ${e})`}`}function Ep(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Cp(e){return((e=wp(e))<16?"0":"")+e.toString(16)}function Rp(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Pp(e,t,n,r)}function kp(e){if(e instanceof Pp)return new Pp(e.h,e.s,e.l,e.opacity);if(e instanceof Qd||(e=mp(e)),!e)return new Pp;if(e instanceof Pp)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Pp(a,l,s,e.opacity)}function Pp(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Dp(e){return(e=(e||0)%360)<0?e+360:e}function Ap(e){return Math.max(0,Math.min(1,e||0))}function Ip(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Xd(Qd,mp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:pp,formatHex:pp,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return kp(this).formatHsl()},formatRgb:fp,toString:fp}),Xd(yp,bp,Jd(Qd,{brighter(e){return e=null==e?ep:Math.pow(ep,e),new yp(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new yp(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yp(wp(this.r),wp(this.g),wp(this.b),Ep(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Sp,formatHex:Sp,formatHex8:function(){return`#${Cp(this.r)}${Cp(this.g)}${Cp(this.b)}${Cp(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:xp,toString:xp})),Xd(Pp,(function(e,t,n,r){return 1===arguments.length?kp(e):new Pp(e,t,n,null==r?1:r)}),Jd(Qd,{brighter(e){return e=null==e?ep:Math.pow(ep,e),new Pp(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Pp(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new yp(Ip(e>=240?e-240:e+120,o,r),Ip(e,o,r),Ip(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Pp(Dp(this.h),Ap(this.s),Ap(this.l),Ep(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ep(this.opacity);return`${1===e?"hsl(":"hsla("}${Dp(this.h)}, ${100*Ap(this.s)}%, ${100*Ap(this.l)}%${1===e?")":`, ${e})`}`}}));const Tp=Math.PI/180,Lp=180/Math.PI,Mp=4/29,Op=6/29,qp=3*Op*Op;function Np(e){if(e instanceof _p)return new _p(e.l,e.a,e.b,e.opacity);if(e instanceof Bp)return $p(e);e instanceof yp||(e=vp(e));var t,n,r=Hp(e.r),o=Hp(e.g),i=Hp(e.b),a=Fp((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Fp((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Fp((.0139322*r+.0971045*o+.7141733*i)/.82521)),new _p(116*a-16,500*(t-a),200*(a-n),e.opacity)}function _p(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Fp(e){return e>.008856451679035631?Math.pow(e,1/3):e/qp+Mp}function zp(e){return e>Op?e*e*e:qp*(e-Mp)}function jp(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Hp(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Bp(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function $p(e){if(isNaN(e.h))return new _p(e.l,0,0,e.opacity);var t=e.h*Tp;return new _p(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Xd(_p,(function(e,t,n,r){return 1===arguments.length?Np(e):new _p(e,t,n,null==r?1:r)}),Jd(Qd,{brighter(e){return new _p(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new _p(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new yp(jp(3.1338561*(t=.96422*zp(t))-1.6168667*(e=1*zp(e))-.4906146*(n=.82521*zp(n))),jp(-.9787684*t+1.9161415*e+.033454*n),jp(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Xd(Bp,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Bp)return new Bp(e.h,e.c,e.l,e.opacity);if(e instanceof _p||(e=Np(e)),0===e.a&&0===e.b)return new Bp(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Lp;return new Bp(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Bp(e,t,n,null==r?1:r)}),Jd(Qd,{brighter(e){return new Bp(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Bp(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return $p(this).rgb()}}));var Wp=e=>()=>e;function Vp(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Wp(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Vp:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Wp(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=bp(e)).r,(t=bp(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Vp(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var Up,Gp=["__proto__","constructor"];function Yp(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!Gp.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function Kp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function Zp(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Xp(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Qp)):void 0===t&&(t=Jp);for(var n,r,o,i,a,l=new nf(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new nf(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(tf)}function Jp(e){return e.children}function Qp(e){return Array.isArray(e)?e[1]:null}function ef(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function tf(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function nf(e){this.data=e,this.depth=this.height=0,this.parent=null}nf.prototype=Xp.prototype={constructor:nf,count:function(){return this.eachAfter(Zp)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Xp(this).eachBefore(ef)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},Up=function(e){
27
+ /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
28
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),S=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+S}},Up({exports:{}});function rf(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function of({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="",bold:r=!1,maxNbrLinesOfText:o=3}){const{estimateWidth:i,measureText:a,estimateLineCount:l}=$.useMemo((()=>{const i=document.createElement("canvas").getContext("2d");i.font=`${n}${n?" ":""}${r?"600 ":""}${e} ${t}`;const a=Kp(i.measureText.bind(i)),l=e=>+a(e).width.toFixed(2),s=Kp((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,i=e;do{r+=1,i=rf(i,t,l)}while(null!==i&&r<o);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[n,r,e,t,o]);return{estimateWidth:i,measureText:a,estimateLineCount:l}}function af(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function lf(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 sf(e){return e>0?0:1}function uf(e){return e.translator.get("Visualizations.Descriptions.Column")}function cf(e){return{measures:{min:sf,max:1e3,description:()=>uf(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;af(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties;lf(o,(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r)}},dimensions:{min:sf,max:1e3,description:()=>uf(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return af(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;lf(o,r)}}}}var df={};!function(e){(()=>{var t={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Te});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=b(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=b(d,f),v=b(p,h);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function S(e){return"".concat(e,"(")}function x(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:x,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix: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:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===x({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=x({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}var R=t().bind(null,!0),k={},P=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function A(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(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]=A(e[n||t])?i:e[t],e=e[n||t]}})),e}function L(e,t){var n=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){L(e[r],t[r])||(n=!1)})),n);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!L(e[r],t[r]))return!1;return!0}return e===t}k.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);L(i,a)||I(t,o)||(A(a)?r.push({op:"add",path:l,value:i}):D(i)&&D(a)?r=r.concat(k.generate(a,i,l)):P(i)&&P(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&A(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(L(t,o))return r;if(!A(t[0])&&A(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(k.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){A(t[o])&&!I(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,o=T(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!I(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=T(e,t.from);P(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.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},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const M=k,O=function(e,n,r){if(!e)return Promise.resolve();var o=M.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 q="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===q)return n[r]}function _(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===q)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(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(_(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(_(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(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(q))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function H(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 B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var v=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),S=E.getAggrComp(v,b,y);v=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:S}):S}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=H(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=H(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=H(t,e);return i&&!i.disabled}};return n}};var V="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===V)return n[r]}function 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===V)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var Z="difference";function X(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===Z)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===Z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(J(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=X(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",Se="qDef.base.qLibraryId",xe="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",ke="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(n(e,be,i(e,ve)),n(e,Se,i(e,ye)),n(e,we,i(e,xe)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){Pe.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,Se)),n(e,xe,i(e,we)),n(e,Ee,i(e,Ce)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,Se);return void 0!==t||void 0!==n}};const De=Pe;function Ae(e){return Ae="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},Ae(e)}var Ie={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Te={modifiers:Ie,apply:Me,applyModifiers:Oe,cleanUpMeasure:qe,destroy:function(e){e&&Le[e.id]&&Le[e.id].masterItemSubscriber&&(Le[e.id].masterItemSubscriber&&Le[e.id].masterItemSubscriber.unsubscribe(),delete Le[e.id])},hasActiveModifiers:Ne,getActiveModifier:_e,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Le={};function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Le[n.id]=Le[n.id]||{isFirstTime:!0};var u=Le[n.id].isFirstTime;if(Le[n.id].isFirstTime=!1,r&&"object"===Ae(r))return Oe({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Le[n.id].lastReloadTime;if(Le[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.model,o=e.lastReloadTime;return i(r,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Qe(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Ae(e)&&!e.disabled){if(n++,"object"!==Ae(Ie[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=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Oe({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Ae(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return qe(e)})),Xe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Oe(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return qe(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;De.isValid(n)||De.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ae(e)&&!e.disabled){if(l++,"object"!==Ae(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ie[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[r.type].updateModifier&&Ie[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Ie[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),$e(n)):qe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Xe({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function qe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ae(e)&&!e.disabled&&!Ie[e.type]}))}(e)?De.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 Ge({modifiers:je(e),properties:n,layout:r})}))}function _e(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ie[r.type]&&!r.disabled)return r}}function Fe(e){var t=_e(e);return!t||Ie[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var n=_e(e);n&&(void 0!==n.outputExpression&&He(n)!==e.qDef.qDef?delete e.qDef.base:!De.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"===Ae(t)&&(t.disabled||!Ie[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!Ve(t)&&Ge({modifiers:je(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Ae(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Ze(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Xe(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):O(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Ae(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ge({modifiers:r,properties:e})){var i=Ve(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Le[t.id].masterItemSubscriber=Le[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Me({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Le[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),e.default=o.default,Object.defineProperty(e,"__esModule",{value:!0})})()}(df);var pf=l(df);const ff="12px",mf="nebula-table-utils-head-menu-button";var hf;!function(e){e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c"}(hf||(hf={}));const gf="nebula-table-utils-column-adjuster",vf=`${gf}-border`;var bf,yf;!function(e){e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMinTable=120]="PixelsMinTable",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.AutoMin=80]="AutoMin"}(bf||(bf={})),function(e){e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage"}(yf||(yf={}));const Sf={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}},xf=e=>{var t,n,r,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!pf.hasActiveModifiers({measures:[e],properties:t.properties})||pf.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(r=e.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"totals"))}},Ef={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:yf.Auto,translation:"Common.Auto"},{value:yf.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:yf.Pixels,translation:"Object.Table.Column.Pixels"},{value:yf.percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:yf.auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===yf.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(bf.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===yf.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(bf.PercentageMax,e.qDef.columnWidth.percentage))}}},wf={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"}]},...Sf,...Ef},Cf={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},Rf=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:xf(e)}),kf=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")?{type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:Cf},presentation:{type:"items",translation:"properties.presentation",items:wf}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:Rf(e)},presentation:{type:"items",translation:"properties.presentation",items:wf}}}}}:{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:{...Cf,...wf}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",grouped:!0,items:{...Rf(e),...wf}}}},Pf={type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},hoverEffectSection:{translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]},Df=e=>{var t,n;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals"))}},Af=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"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},If=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[Pf,Df(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...Af(e)}}),Tf={uses:"sorting"},Lf={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Mf=e=>({type:"items",component:"accordion",items:{data:kf(e),sorting:Tf,addOns:Lf,settings:If(e)}});var Of={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Te});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=b(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=b(d,f),v=b(p,h);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function S(e){return"".concat(e,"(")}function x(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:x,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix: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:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===x({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=x({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}var R=t().bind(null,!0),k={},P=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function A(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(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]=A(e[n||t])?i:e[t],e=e[n||t]}})),e}function L(e,t){var n=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){L(e[r],t[r])||(n=!1)})),n);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!L(e[r],t[r]))return!1;return!0}return e===t}k.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);L(i,a)||I(t,o)||(A(a)?r.push({op:"add",path:l,value:i}):D(i)&&D(a)?r=r.concat(k.generate(a,i,l)):P(i)&&P(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&A(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(L(t,o))return r;if(!A(t[0])&&A(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(k.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){A(t[o])&&!I(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,o=T(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!I(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=T(e,t.from);P(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.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},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const M=k,O=function(e,n,r){if(!e)return Promise.resolve();var o=M.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 q="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===q)return n[r]}function _(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===q)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(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(_(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(_(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(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(q))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function H(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 B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var v=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),S=E.getAggrComp(v,b,y);v=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:S}):S}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=H(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=H(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=H(t,e);return i&&!i.disabled}};return n}};var V="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===V)return n[r]}function 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===V)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var Z="difference";function X(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===Z)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===Z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(J(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=X(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",Se="qDef.base.qLibraryId",xe="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",ke="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(n(e,be,i(e,ve)),n(e,Se,i(e,ye)),n(e,we,i(e,xe)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){Pe.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,Se)),n(e,xe,i(e,we)),n(e,Ee,i(e,Ce)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,Se);return void 0!==t||void 0!==n}};const De=Pe;function Ae(e){return Ae="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},Ae(e)}var Ie={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Te={modifiers:Ie,apply:Me,applyModifiers:Oe,cleanUpMeasure:qe,destroy:function(e){e&&Le[e.id]&&Le[e.id].masterItemSubscriber&&(Le[e.id].masterItemSubscriber&&Le[e.id].masterItemSubscriber.unsubscribe(),delete Le[e.id])},hasActiveModifiers:Ne,getActiveModifier:_e,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Le={};function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Le[n.id]=Le[n.id]||{isFirstTime:!0};var u=Le[n.id].isFirstTime;if(Le[n.id].isFirstTime=!1,r&&"object"===Ae(r))return Oe({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Le[n.id].lastReloadTime;if(Le[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Qe(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Ae(e)&&!e.disabled){if(n++,"object"!==Ae(Ie[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=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Oe({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Ae(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return qe(e)})),Xe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Oe(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return qe(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;De.isValid(n)||De.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ae(e)&&!e.disabled){if(l++,"object"!==Ae(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ie[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[r.type].updateModifier&&Ie[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Ie[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),$e(n)):qe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Xe({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function qe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ae(e)&&!e.disabled&&!Ie[e.type]}))}(e)?De.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 Ge({modifiers:je(e),properties:n,layout:r})}))}function _e(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ie[r.type]&&!r.disabled)return r}}function Fe(e){var t=_e(e);return!t||Ie[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var n=_e(e);n&&(void 0!==n.outputExpression&&He(n)!==e.qDef.qDef?delete e.qDef.base:!De.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"===Ae(t)&&(t.disabled||!Ie[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!Ve(t)&&Ge({modifiers:je(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Ae(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Ze(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Xe(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):O(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Ae(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ge({modifiers:r,properties:e})){var i=Ve(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Le[t.id].masterItemSubscriber=Le[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Me({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Le[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},b=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function S(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var x=n(229),E=n.n(x);function w(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function C(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var k=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const A=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},I=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},T=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},L=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},M=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},O=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=w(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=w(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},q=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=C(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=C(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,k),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,k),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},_=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return D(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var 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)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},$=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const V={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,v({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),b({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(S(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(S(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(S(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),v=i.getValue(r,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),S=y.maxDimensions,x=y.minDimensions,E=y.maxMeasures,w=y.minMeasures,C=s.defaultDimension,R=void 0===C?L():C,k=s.defaultMeasure,P=void 0===k?M():k;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:S,minDimensions:x,maxMeasures:E,minMeasures:w})&&j({exportFormat:t,maxDimensions:S,minDimensions:x,maxMeasures:E,minMeasures:w,newHyperCubeDef:b}),O({exportFormat:t,maxDimensions:S,minDimensions:x,newHyperCubeDef:b,defaultDimension:R}),q({exportFormat:t,maxMeasures:E,minMeasures:w,newHyperCubeDef:b,defaultMeasure:P}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),_({exportFormat:t,newHyperCubeDef:b}),I("qMaxStackedCells",v,b),I("qNoOfLeftDims",v,b),T("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),T("qMode",v,b,"S"),T("qReductionMode",v,b,"N"),T("qSortbyYValue",v,b),T("qIndentMode",v,b),T("qShowTotalsAbove",v,b),A(g,t,r),h.qProperty=g;var D=i.getValue(c||{},"support.modifiers");return $({measures:b.qMeasures,modifierTypes:D}),p&&W(h.qProperty,"storedFilters"),"S"===b.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(G(a,t,r,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},Z={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},X={colorModeOptions:{primary:function(){return!0},dimension:function(e){return Z.getNumDimensions(e)>0&&Z.getNumMeasures(e)<=1},multiColor:function(e){return Z.getNumMeasures(e)>1},measure:function(e){return Z.getNumDimensions(e)>0},expression:function(e){return Z.getNumMeasures(e)>=1}}},J={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return Z.getNumMeasures(e)>=1}}};var Q={scatterplot:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return Z.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return Z.getNumDimensions(e)>1},multiColor:function(e){return Z.getNumMeasures(e)>1},measure:function(e){return Z.getNumDimensions(e)<=1},expression:function(e){return Z.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return Z.getNumDimensions(e)>=1},multiColor:function(e){return Z.getNumMeasures(e)>1},measure:function(e){return Z.getNumDimensions(e)>=1},expression:function(e){return Z.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return Z.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=Z.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||Z.wrapFieldName(t.name),key:Z.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||X).colorModeOptions||X.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=V.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=V.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:v,properties:d})&&me(d):he(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},Se=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},xe=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(S(l,"measureAxis.min","supportedAutoMinMax"),S(l,"measureAxis.max","supportedAutoMinMax")):(S(l,"measureAxis.min","unsupportedAutoMinMax"),S(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),Se({exportFormat:t,initialProperties:n,properties:d,measureType:a}),xe(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function we(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=we(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=we(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var ke="qHyperCubeDef.qMeasures",Pe="conditionalColoring",De="measures",Ae="qDef.conditionalColoring";const Ie={quarantine:function(e){Ce({properties:e,arrayPath:ke,quarantineName:Pe,arrayName:De,itemPath:Ae})},unquarantine:function(e){Re({properties:e,arrayPath:ke,itemPath:Ae,arrayName:De,quarantineName:Pe})}};var Te="qHyperCubeDef.qMeasures",Le="measures",Me="qHyperCubeDef.qDimensions",Oe="dimensions",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const He={quarantine:function(e){Ce({properties:e,arrayPath:Te,quarantineName:je,arrayName:Le,itemPath:ze}),Ce({properties:e,arrayPath:Me,quarantineName:je,arrayName:Oe,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Te,quarantineName:je,arrayName:Le,itemPath:ze}),Re({properties:e,arrayPath:Me,quarantineName:je,arrayName:Oe,itemPath:ze})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:qe,quarantineName:je,arrayName:Ne,itemPath:ze}),Ce({properties:e,arrayPath:_e,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:_e,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:V,colorChart:ve,axisChart:Ee,quarantineProperty:S,unquarantineProperty:W,quarantineArrayProp:Ce,unquarantineArrayProp:Re,conditionalColoring:Ie,conditionalShow:He}})(),r.default})()}(Of);var qf=l(Of.exports),Nf=function(e,t,n){var r=e.length+t.length,o=((null==n?void 0:n.length)===r?n:Array.from(Array(r).keys())).map((function(n){return function(e,t,n){var r,o=t.length,i=(e<o?t[e]:n[e-o]).qDef.columnWidth;return"pixels"===(null==i?void 0:i.type)?null!==(r=i.pixels)&&void 0!==r?r:bf.PixelsDefault:-1}(n,e,t)}));return o},_f=function(e){var t=e.propertyTree,r=e.hyperCubePath,o=qf.hypercube.exportProperties({propertyTree:t,hyperCubePath:r}),i=o.properties.qHyperCubeDef,a=i.qColumnOrder,l=i.qDimensions,s=i.qMeasures,u=Nf(l,s,a);return Yp(o,"properties.qHyperCubeDef",n(n({},o.properties.qHyperCubeDef),{columnWidths:u})),qf.quarantineProperty(o.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),qf.quarantineProperty(o.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),qf.quarantineProperty(o.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),o},Ff=function(e,t,n,r){var o=t;r&&(o=t-r);var i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){var a=n[t];i.qDef.columnWidth=-1===a?{type:yf.FitToContent}:{type:yf.Pixels,pixels:a}}return i},zf=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.extension,o=e.hypercubePath,i=e.defaultPropertyValues,a=e.viewDataMode,l=qf.hypercube.importProperties({exportFormat:t,initialProperties:n,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:i,hypercubePath:o,extension:r});qf.unquarantineProperty(l.qProperty,"straightTableColumnOrder");var s=l.qProperty.qHyperCubeDef,u=s.qDimensions,c=s.qMeasures,d=s.qColumnOrder,p=s.columnWidths,f=function(e,t,n,r){var o=e.length,i=o+t.length,a=(null==n?void 0:n.length)===i?n:Array.from(Array(i).keys());return{dimensions:a.filter((function(e){return e<o})).map((function(t){return Ff(e,t,r)})),measures:a.filter((function(e){return e>=o})).map((function(e){return Ff(t,e,r,o)}))}}(u,c,d,p),m=f.dimensions,h=f.measures;return Array.isArray(p)&&p.length>0&&(Yp(l,"qProperty.qHyperCubeDef.qDimensions",m),Yp(l,"qProperty.qHyperCubeDef.qMeasures",h)),a&&(Yp(l,"qProperty.totals.show",!1),Yp(l,"qProperty.usePagination",!0)),qf.conditionalShow.unquarantine(l.qProperty),l};const jf=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")&&{exploration:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}}};function Hf(e){return{definition:Mf(e),...jf(e),data:cf(e),support:{export:e.flags.isEnabled("PS_20907_TABLE_DOWNLOAD"),exportData:!0,snapshot:e.flags.isEnabled("PS_20907_TABLE_DOWNLOAD"),viewData:!1,exploration:!0,cssScaling:!0},importProperties(e,t,n,r){const o={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return zf({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o})},exportProperties:(e,t)=>_f({propertyTree:e,hyperCubePath:t})}}var Bf=function(e){return o(void 0,void 0,void 0,(function(){var t,n,r,o;return i(this,(function(i){switch(i.label){case 0:(t=e.target).classList.contains("sn-table-cell")||(t=t.closest(".sn-table-cell")),n=null===(o=t.querySelector(".sn-table-cell-text"))||void 0===o?void 0:o.textContent,i.label=1;case 1:return i.trys.push([1,4,,5]),n?[4,navigator.clipboard.writeText(String(n))]:[3,3];case 2:i.sent(),i.label=3;case 3:return[3,5];case 4:return r=i.sent(),console.log(r),[3,5];case 5:return[2]}}))}))};var $f=function(t,r){return e.useMemo((function(){return function(e,t){return function(r,o){var i=o.isDim,a=o.colIdx,l=i?a:a-e.qDimensionInfo.length,s="/qHyperCubeDef/".concat(i?"qDimensions":"qMeasures","/").concat(l,"/qDef/columnWidth"),u=e[i?"qDimensionInfo":"qMeasureInfo"][l].columnWidth,c=u?{qPath:s,qOp:"Replace",qValue:JSON.stringify(n(n({},u),r))}:{qPath:s,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([c],!0)}}(t,r)}),[t,r])},Wf=function(e){return!Number.isNaN(+e)},Vf=function(e){return!(!e.qNum&&0!==e.qNum||!Wf(e.qNum))},Uf=1e4;function Gf(e,t){return a([],t,!0).reverse().find((function(t){return t*e<=Uf}))||Math.floor(Uf/e)}function Yf(e,t){var n,r;if(null===(n=t.viewState)||void 0===n?void 0:n.skipTotals)return{atTop:!1,atBottom:!1};var o=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(r=e.totals)||void 0===r?void 0:r.show,e.totals.position],i=o[0],a=o[3],l=o[4];if(o[2]&&(i&&o[1]||!a&&!i)){if(a||"top"===l)return{atTop:!0,atBottom:!1};if(!a&&"bottom"===l)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function Kf(e,t,n,r){var o,i,a;return t?0===n&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(i=null===(o=e.qHyperCube.qGrandTotalRow[r])||void 0===o?void 0:o.qText)&&void 0!==i?i:""}var Zf=function(e,t){return"auto"!==t?t:Vf(e)?"right":"left"};var Xf=function(e){var t=e.qHyperCube,r=t.qColumnOrder,o=t.qDimensionInfo,i=t.qMeasureInfo,a=o.length+i.length,l=function(e,t,n){var r=t.length,o=[],i=0,a=0;return{visibleColumnsOrder:e.filter((function(e){var l=e<r,s=(l?t[e]:n[e-r]).qError,u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-r-a,!u})),visibleColumnIndexes:o}}((null==r?void 0:r.length)===a?r:Array.from(Array(a).keys()),o,i),s=l.visibleColumnsOrder,u=l.visibleColumnIndexes;return s.map((function(t,r){return function(e,t,r,o){var i,a=e.qHyperCube,l=a.qDimensionInfo,s=a.qMeasureInfo,u=a.qEffectiveInterColumnSortOrder,c=l.length,d=t<c,p=d?l[t]:s[t-c],f=t===u[0],m=0,h="",g=!1,v=-1;if(d){var b=p;m=b.qGroupPos,h=b.qGroupFieldDefs[m],g=b.qLocked,v=o,i=b.qDimensionType}var y=p.qFallbackTitle,S=p.textAlign,x=p.qAttrExprInfo,E=p.qSortIndicator,w=p.qReverseSort,C=p.qApprMaxGlyphCount,R=p.columnWidth,k=p.qLibraryId;return n({isDim:d,isLocked:g,fieldId:h,colIdx:t,qLibraryId:k,pageColIdx:r,qApprMaxGlyphCount:C,qReverseSort:w,columnWidth:R,selectionColIdx:v,isActivelySorted:f,id:"col-".concat(r),label:y,stylingIDs:x.map((function(e){return e.id})),sortDirection:E&&"N"!==E?E:"A",totalInfo:Kf(e,d,r,o)},function(e,t,n){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}}(S,i,d))}(e,t,r,u[t])}))};function Jf(e,t,r,a,l){var s,u;return o(this,void 0,void 0,(function(){var o,c,d,p,f,m,h,g,v,b,y,S,x,E,w;return i(this,(function(i){switch(i.label){case 0:return o=r.page,c=r.rowsPerPage,d=r.rowsPerPageOptions,p=t.qHyperCube.qSize.qcx,f=t.qHyperCube.qSize.qcy,m=Math.ceil(f/c),h=null!==(s=l.visibleTop)&&void 0!==s?s:o*c,g=null!==(u=l.visibleHeight)&&void 0!==u?u:Math.min(c,f-h),o>0&&h>=f?(a(n(n({},r),{page:0})),[2,null]):g*p>Uf?(a(n(n({},r),{rowsPerPage:Gf(p,d),page:0})),[2,null]):(v=f>10,b=Yf(t,l),y=Xf(t),(S=!!t.snapshotData)?(E=t.qHyperCube.qDataPages,[3,3]):[3,1]);case 1:return[4,e.getHyperCubeData("/qHyperCubeDef",[{qTop:h,qLeft:0,qHeight:g,qWidth:p}])];case 2:E=i.sent(),i.label=3;case 3:return x=E,l&&!S&&(l.qTop=h,l.qHeight=g,l.rowsPerPage=r.rowsPerPage,l.page=r.page),w=(null==x?void 0:x[0].qMatrix.map((function(e,t){var r={id:"row-".concat(t)};return y.forEach((function(o,i){r[o.id]=n(n({},e[i]),{align:Zf(e[i],o.bodyTextAlign),rowIdx:t+h,colIdx:o.colIdx,pageRowIdx:t,pageColIdx:i,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:t===g-1})})),r})))||[],[2,{totalColumnCount:p,totalRowCount:f,totalPages:m,paginationNeeded:v,totalsPosition:b,columns:y,rows:w}]}}))}))}var Qf=function(e,t){var n;return!(!e.snapshotData&&!(null===(n=t.viewState)||void 0===n?void 0:n.visibleHeight))},em=function(e,t){var n;return void 0!==(null===(n=t.viewState)||void 0===n?void 0:n.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Qf(e,t)};function tm(){return tm=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},tm.apply(this,arguments)}function nm(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function rm(e){if(!nm(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=rm(e[n])})),t}function om(e,t,n={clone:!0}){const r=n.clone?tm({},e):e;return nm(e)&&nm(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(nm(t[o])&&o in e&&nm(e[o])?r[o]=om(e[o],t[o],n):n.clone?r[o]=nm(t[o])?rm(t[o]):t[o]:r[o]=t[o])})),r}var im={exports:{}};function am(){}function lm(){}lm.resetWarningCache=am;im.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:lm,resetWarningCache:am};return n.PropTypes=n,n}();var sm=l(im.exports);function um(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."}function cm(e){if("string"!=typeof e)throw new Error(um(7));return e.charAt(0).toUpperCase()+e.slice(1)}function dm(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function pm(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function fm(e){return e&&e.ownerDocument||document}function mm(e){return fm(e).defaultView||window}function hm(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var gm="undefined"!=typeof window?$.useLayoutEffect:$.useEffect;let vm=0;const bm=V["useId".toString()];function ym(e){if(void 0!==bm){const t=bm();return null!=e?e:t}return function(e){const[t,n]=$.useState(e),r=e||t;return $.useEffect((()=>{null==t&&(vm+=1,n(`mui-${vm}`))}),[t]),r}(e)}function Sm({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=$.useRef(void 0!==e),[i,a]=$.useState(t);return[o?e:i,$.useCallback((e=>{o||a(e)}),[])]}function xm(e){const t=$.useRef(e);return gm((()=>{t.current=e})),$.useRef(((...e)=>(0,t.current)(...e))).current}function Em(...e){return $.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{hm(e,t)}))}),e)}let wm,Cm=!0,Rm=!1;const km={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 Pm(e){e.metaKey||e.altKey||e.ctrlKey||(Cm=!0)}function Dm(){Cm=!1}function Am(){"hidden"===this.visibilityState&&Rm&&(Cm=!0)}function Im(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Cm||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!km[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Tm(){const e=$.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Pm,!0),t.addEventListener("mousedown",Dm,!0),t.addEventListener("pointerdown",Dm,!0),t.addEventListener("touchstart",Dm,!0),t.addEventListener("visibilitychange",Am,!0))}),[]),t=$.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Im(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Rm=!0,window.clearTimeout(wm),wm=window.setTimeout((()=>{Rm=!1}),100),t.current=!1,!0)},ref:e}}function Lm(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Mm(e,t){const n=tm({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=tm({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=tm({},i),Object.keys(o).forEach((e=>{n[r][e]=Mm(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Om(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const qm=e=>e;var Nm=(()=>{let e=qm;return{configure(t){e=t},generate:t=>e(t),reset(){e=qm}}})();const _m={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Fm(e,t,n="Mui"){const r=_m[t];return r?`${n}-${r}`:`${Nm.generate(e)}-${t}`}function zm(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Fm(e,t,n)})),r}var jm="$$material";function Hm(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 Bm={exports:{}},$m={},Wm=60103,Vm=60106,Um=60107,Gm=60108,Ym=60114,Km=60109,Zm=60110,Xm=60112,Jm=60113,Qm=60120,eh=60115,th=60116,nh=60121,rh=60122,oh=60117,ih=60129,ah=60131;if("function"==typeof Symbol&&Symbol.for){var lh=Symbol.for;Wm=lh("react.element"),Vm=lh("react.portal"),Um=lh("react.fragment"),Gm=lh("react.strict_mode"),Ym=lh("react.profiler"),Km=lh("react.provider"),Zm=lh("react.context"),Xm=lh("react.forward_ref"),Jm=lh("react.suspense"),Qm=lh("react.suspense_list"),eh=lh("react.memo"),th=lh("react.lazy"),nh=lh("react.block"),rh=lh("react.server.block"),oh=lh("react.fundamental"),ih=lh("react.debug_trace_mode"),ah=lh("react.legacy_hidden")}function sh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Wm:switch(e=e.type){case Um:case Ym:case Gm:case Jm:case Qm:return e;default:switch(e=e&&e.$$typeof){case Zm:case Xm:case th:case eh:case Km:return e;default:return t}}case Vm:return t}}}var uh=Km,ch=Wm,dh=Xm,ph=Um,fh=th,mh=eh,hh=Vm,gh=Ym,vh=Gm,bh=Jm;$m.ContextConsumer=Zm,$m.ContextProvider=uh,$m.Element=ch,$m.ForwardRef=dh,$m.Fragment=ph,$m.Lazy=fh,$m.Memo=mh,$m.Portal=hh,$m.Profiler=gh,$m.StrictMode=vh,$m.Suspense=bh,$m.isAsyncMode=function(){return!1},$m.isConcurrentMode=function(){return!1},$m.isContextConsumer=function(e){return sh(e)===Zm},$m.isContextProvider=function(e){return sh(e)===Km},$m.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Wm},$m.isForwardRef=function(e){return sh(e)===Xm},$m.isFragment=function(e){return sh(e)===Um},$m.isLazy=function(e){return sh(e)===th},$m.isMemo=function(e){return sh(e)===eh},$m.isPortal=function(e){return sh(e)===Vm},$m.isProfiler=function(e){return sh(e)===Ym},$m.isStrictMode=function(e){return sh(e)===Gm},$m.isSuspense=function(e){return sh(e)===Jm},$m.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Um||e===Ym||e===ih||e===Gm||e===Jm||e===Qm||e===ah||"object"==typeof e&&null!==e&&(e.$$typeof===th||e.$$typeof===eh||e.$$typeof===Km||e.$$typeof===Zm||e.$$typeof===Xm||e.$$typeof===oh||e.$$typeof===nh||e[0]===rh)},$m.typeOf=sh,Bm.exports=$m;var yh=Bm.exports,Sh=l((function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0}));function xh(e){function t(e,r,s,u,p){for(var f,m,h,g,S,E=0,w=0,C=0,R=0,k=0,L=0,O=h=f=0,N=0,_=0,F=0,z=0,j=s.length,H=j-1,B="",$="",W="",V="";N<j;){if(m=s.charCodeAt(N),N===H&&0!==w+R+C+E&&(0!==w&&(m=47===w?10:47),R=C=E=0,j++,H++),0===w+R+C+E){if(N===H&&(0<_&&(B=B.replace(d,"")),0<B.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:B+=s.charAt(N)}m=59}switch(m){case 123:for(f=(B=B.trim()).charCodeAt(0),h=1,z=++N;N<j;){switch(m=s.charCodeAt(N)){case 123:h++;break;case 125:h--;break;case 47:switch(m=s.charCodeAt(N+1)){case 42:case 47:e:{for(O=N+1;O<H;++O)switch(s.charCodeAt(O)){case 47:if(42===m&&42===s.charCodeAt(O-1)&&N+2!==O){N=O+1;break e}break;case 10:if(47===m){N=O+1;break e}}N=O}}break;case 91:m++;case 40:m++;case 34:case 39:for(;N++<H&&s.charCodeAt(N)!==m;);}if(0===h)break;N++}if(h=s.substring(z,N),0===f&&(f=(B=B.replace(c,"").trim()).charCodeAt(0)),64===f){switch(0<_&&(B=B.replace(d,"")),m=B.charCodeAt(1)){case 100:case 109:case 115:case 45:_=r;break;default:_=T}if(z=(h=t(r,_,h,m,p+1)).length,0<M&&(S=l(3,h,_=n(T,B,F),r,D,P,z,m,p,u),B=_.join(""),void 0!==S&&0===(z=(h=S.trim()).length)&&(m=0,h="")),0<z)switch(m){case 115:B=B.replace(x,a);case 100:case 109:case 45:h=B+"{"+h+"}";break;case 107:h=(B=B.replace(v,"$1 $2"))+"{"+h+"}",h=1===I||2===I&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=B+h,112===u&&($+=h,h="")}else h=""}else h=t(r,n(r,B,F),h,u,p+1);W+=h,h=F=_=O=f=0,B="",m=s.charCodeAt(++N);break;case 125:case 59:if(1<(z=(B=(0<_?B.replace(d,""):B).trim()).length))switch(0===O&&(f=B.charCodeAt(0),45===f||96<f&&123>f)&&(z=(B=B.replace(" ",":")).length),0<M&&void 0!==(S=l(1,B,r,e,D,P,$.length,u,p,u))&&0===(z=(B=S.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+s.charAt(N);break}default:58!==B.charCodeAt(z-1)&&($+=o(B,f,m,B.charCodeAt(2)))}F=_=O=f=0,B="",m=s.charCodeAt(++N)}}switch(m){case 13:case 10:47===w?w=0:0===1+f&&107!==u&&0<B.length&&(_=1,B+="\0"),0<M*q&&l(0,B,r,e,D,P,$.length,u,p,u),P=1,D++;break;case 59:case 125:if(0===w+R+C+E){P++;break}default:switch(P++,g=s.charAt(N),m){case 9:case 32:if(0===R+E+w)switch(k){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===R+w+E&&(_=F=1,g="\f"+g);break;case 108:if(0===R+w+E+A&&0<O)switch(N-O){case 2:112===k&&58===s.charCodeAt(N-3)&&(A=k);case 8:111===L&&(A=L)}break;case 58:0===R+w+E&&(O=N);break;case 44:0===w+C+R+E&&(_=1,g+="\r");break;case 34:case 39:0===w&&(R=R===m?0:0===R?m:R);break;case 91:0===R+w+C&&E++;break;case 93:0===R+w+C&&E--;break;case 41:0===R+w+E&&C--;break;case 40:if(0===R+w+E){if(0===f)if(2*k+3*L==533);else f=1;C++}break;case 64:0===w+C+R+E+O+h&&(h=1);break;case 42:case 47:if(!(0<R+E+C))switch(w){case 0:switch(2*m+3*s.charCodeAt(N+1)){case 235:w=47;break;case 220:z=N,w=42}break;case 42:47===m&&42===k&&z+2!==N&&(33===s.charCodeAt(z+2)&&($+=s.substring(z,N+1)),g="",w=0)}}0===w&&(B+=g)}L=k,k=m,N++}if(0<(z=$.length)){if(_=r,0<M&&(void 0!==(S=l(2,$,_,e,D,P,z,u,p,u))&&0===($=S).length))return V+$+W;if($=_.join(",")+"{"+$+"}",0!=I*A){switch(2!==I||i($,2)||(A=0),A){case 111:$=$.replace(y,":-moz-$1")+$;break;case 112:$=$.replace(b,"::-webkit-input-$1")+$.replace(b,"::-moz-$1")+$.replace(b,":-ms-input-$1")+$}A=0}}return V+$+W}function n(e,t,n){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=r(e,t[l],n).trim();break;default:var s=l=0;for(t=[];l<i;++l)for(var u=0;u<a;++u)t[s++]=r(e[u]+" ",o[l],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(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",l=2*t+3*n+4*r;if(944===l){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===I||2===I&&i(s,1)?"-webkit-"+s+s:s}if(0===I||2===I&&!i(a,1))return a;switch(l){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(k,"$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"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(S,"tb");break;case 232:s=a.replace(S,"tb-rl");break;case 220:s=a.replace(S,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===R.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.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),O(2!==t?r:r.replace(C,"$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(E," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,o,i,a,l,s,c){for(var d,p=0,f=t;p<M;++p)switch(d=L[p].call(u,e,f,n,r,o,i,a,l,s,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function s(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?I=1:(I=2,O=e):I=0),s}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<M){var o=l(-1,n,r,r,D,P,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(T,r,n,0,0);return 0<M&&(void 0!==(o=l(-2,i,r,r,D,P,i.length,0,0,0))&&(i=o)),"",A=0,P=D=1,i}var c=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,S=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,w=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,R=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,P=1,D=1,A=0,I=1,T=[],L=[],M=0,O=null,q=0;return u.use=function e(t){switch(t){case void 0:case null:M=L.length=0;break;default:if("function"==typeof t)L[M++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else q=0|!!t}return e},u.set=s,void 0!==e&&s(e),u}var Eh={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 wh(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ch=/^((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)-.*))$/,Rh=wh((function(e){return Ch.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),kh={exports:{}},Ph={},Dh="function"==typeof Symbol&&Symbol.for,Ah=Dh?Symbol.for("react.element"):60103,Ih=Dh?Symbol.for("react.portal"):60106,Th=Dh?Symbol.for("react.fragment"):60107,Lh=Dh?Symbol.for("react.strict_mode"):60108,Mh=Dh?Symbol.for("react.profiler"):60114,Oh=Dh?Symbol.for("react.provider"):60109,qh=Dh?Symbol.for("react.context"):60110,Nh=Dh?Symbol.for("react.async_mode"):60111,_h=Dh?Symbol.for("react.concurrent_mode"):60111,Fh=Dh?Symbol.for("react.forward_ref"):60112,zh=Dh?Symbol.for("react.suspense"):60113,jh=Dh?Symbol.for("react.suspense_list"):60120,Hh=Dh?Symbol.for("react.memo"):60115,Bh=Dh?Symbol.for("react.lazy"):60116,$h=Dh?Symbol.for("react.block"):60121,Wh=Dh?Symbol.for("react.fundamental"):60117,Vh=Dh?Symbol.for("react.responder"):60118,Uh=Dh?Symbol.for("react.scope"):60119;function Gh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ah:switch(e=e.type){case Nh:case _h:case Th:case Mh:case Lh:case zh:return e;default:switch(e=e&&e.$$typeof){case qh:case Fh:case Bh:case Hh:case Oh:return e;default:return t}}case Ih:return t}}}function Yh(e){return Gh(e)===_h}Ph.AsyncMode=Nh,Ph.ConcurrentMode=_h,Ph.ContextConsumer=qh,Ph.ContextProvider=Oh,Ph.Element=Ah,Ph.ForwardRef=Fh,Ph.Fragment=Th,Ph.Lazy=Bh,Ph.Memo=Hh,Ph.Portal=Ih,Ph.Profiler=Mh,Ph.StrictMode=Lh,Ph.Suspense=zh,Ph.isAsyncMode=function(e){return Yh(e)||Gh(e)===Nh},Ph.isConcurrentMode=Yh,Ph.isContextConsumer=function(e){return Gh(e)===qh},Ph.isContextProvider=function(e){return Gh(e)===Oh},Ph.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ah},Ph.isForwardRef=function(e){return Gh(e)===Fh},Ph.isFragment=function(e){return Gh(e)===Th},Ph.isLazy=function(e){return Gh(e)===Bh},Ph.isMemo=function(e){return Gh(e)===Hh},Ph.isPortal=function(e){return Gh(e)===Ih},Ph.isProfiler=function(e){return Gh(e)===Mh},Ph.isStrictMode=function(e){return Gh(e)===Lh},Ph.isSuspense=function(e){return Gh(e)===zh},Ph.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Th||e===_h||e===Mh||e===Lh||e===zh||e===jh||"object"==typeof e&&null!==e&&(e.$$typeof===Bh||e.$$typeof===Hh||e.$$typeof===Oh||e.$$typeof===qh||e.$$typeof===Fh||e.$$typeof===Wh||e.$$typeof===Vh||e.$$typeof===Uh||e.$$typeof===$h)},Ph.typeOf=Gh,kh.exports=Ph;var Kh=kh.exports,Zh={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xh={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jh={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qh={};function eg(e){return Kh.isMemo(e)?Jh:Qh[e.$$typeof]||Zh}Qh[Kh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qh[Kh.Memo]=Jh;var tg=Object.defineProperty,ng=Object.getOwnPropertyNames,rg=Object.getOwnPropertySymbols,og=Object.getOwnPropertyDescriptor,ig=Object.getPrototypeOf,ag=Object.prototype;var lg=function e(t,n,r){if("string"!=typeof n){if(ag){var o=ig(n);o&&o!==ag&&e(t,o,r)}var i=ng(n);rg&&(i=i.concat(rg(n)));for(var a=eg(t),l=eg(n),s=0;s<i.length;++s){var u=i[s];if(!(Xh[u]||r&&r[u]||l&&l[u]||a&&a[u])){var c=og(n,u);try{tg(t,u,c)}catch(e){}}}}return t},sg=l(lg);function ug(){return(ug=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 cg=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},dg=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!yh.typeOf(e)},pg=Object.freeze([]),fg=Object.freeze({});function mg(e){return"function"==typeof e}function hg(e){return e.displayName||e.name||"Component"}function gg(e){return e&&"string"==typeof e.styledComponentId}var vg="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",bg="undefined"!=typeof window&&"HTMLElement"in window,yg=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY))),Sg={};function xg(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 Eg=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&&xg(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),l=0,s=t.length;l<s;l++)this.tag.insertRule(a,t[l])&&(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}(),wg=new Map,Cg=new Map,Rg=1,kg=function(e){if(wg.has(e))return wg.get(e);for(;Cg.has(Rg);)Rg++;var t=Rg++;return wg.set(e,t),Cg.set(t,e),t},Pg=function(e){return Cg.get(e)},Dg=function(e,t){t>=Rg&&(Rg=t+1),wg.set(e,t),Cg.set(t,e)},Ag="style["+vg+'][data-styled-version="5.3.11"]',Ig=new RegExp("^"+vg+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Tg=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)},Lg=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 l=a.match(Ig);if(l){var s=0|parseInt(l[1],10),u=l[2];0!==s&&(Dg(u,s),Tg(e,u,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(a)}}},Mg=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(vg))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(vg,"active"),r.setAttribute("data-styled-version","5.3.11");var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Og=function(){function e(e){var t=this.element=Mg(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}xg(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}(),qg=function(){function e(e){var t=this.element=Mg(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}(),Ng=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}(),_g=bg,Fg={isServer:!bg,useCSSOMInjection:!yg},zg=function(){function e(e,t,n){void 0===e&&(e=fg),void 0===t&&(t={}),this.options=ug({},Fg,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&bg&&_g&&(_g=!1,function(e){for(var t=document.querySelectorAll(Ag),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(vg)&&(Lg(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return kg(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(ug({},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 Ng(o):r?new Og(o):new qg(o),new Eg(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(kg(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(kg(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(kg(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=Pg(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var s=vg+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+l+s+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),jg=/(a)(d)/gi,Hg=function(e){return String.fromCharCode(e+(e>25?39:97))};function Bg(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Hg(t%52)+n;return(Hg(t%52)+n).replace(jg,"$1-$2")}var $g=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Wg=function(e){return $g(5381,e)};function Vg(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(mg(n)&&!gg(n))return!1}return!0}var Ug=Wg("5.3.11"),Gg=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Vg(e),this.componentId=t,this.baseHash=$g(Ug,t),this.baseStyle=n,zg.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=dv(this.rules,e,t,n).join(""),a=Bg($g(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var l=n(i,"."+a,void 0,r);t.insertRules(r,a,l)}o.push(a),this.staticRulesId=a}else{for(var s=this.rules.length,u=$g(this.baseHash,n.hash),c="",d=0;d<s;d++){var p=this.rules[d];if("string"==typeof p)c+=p;else if(p){var f=dv(p,e,t,n),m=Array.isArray(f)?f.join(""):f;u=$g(u,m+d),c+=m}}if(c){var h=Bg(u>>>0);if(!t.hasNameForId(r,h)){var g=n(c,"."+h,void 0,r);t.insertRules(r,h,g)}o.push(h)}}return o.join(" ")},e}(),Yg=/^\s*\/\/.*$/gm,Kg=[":","[",".","#"];function Zg(e){var t,n,r,o,i=void 0===e?fg:e,a=i.options,l=void 0===a?fg:a,s=i.plugins,u=void 0===s?pg:s,c=new xh(l),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,l,s,u,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){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!==Kg.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,l){void 0===l&&(l="&");var s=e.replace(Yg,""),u=i&&a?a+" "+i+" { "+s+" }":s;return t=l,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),c(a||!i?"":i,u)}return c.use([].concat(u,[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=u.length?u.reduce((function(e,t){return t.name||xg(15),$g(e,t.name)}),5381).toString():"",m}var Xg=W.createContext();Xg.Consumer;var Jg=W.createContext(),Qg=(Jg.Consumer,new zg),ev=Zg();function tv(){return $.useContext(Xg)||Qg}function nv(){return $.useContext(Jg)||ev}function rv(e){var t=$.useState(e.stylisPlugins),n=t[0],r=t[1],o=tv(),i=$.useMemo((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=$.useMemo((function(){return Zg({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return $.useEffect((function(){Sh(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),W.createElement(Xg.Provider,{value:i},W.createElement(Jg.Provider,{value:a},e.children))}var ov=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ev);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 xg(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=ev),this.name+e.hash},e}(),iv=/([A-Z])/,av=/([A-Z])/g,lv=/^ms-/,sv=function(e){return"-"+e.toLowerCase()};function uv(e){return iv.test(e)?e.replace(av,sv).replace(lv,"-ms-"):e}var cv=function(e){return null==e||!1===e||""===e};function dv(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=dv(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return cv(e)?"":gg(e)?"."+e.styledComponentId:mg(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:dv(e(t),t,n,r):e instanceof ov?n?(e.inject(n,r),e.getName(r)):e:dg(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!cv(t[a])&&(Array.isArray(t[a])&&t[a].isCss||mg(t[a])?i.push(uv(a)+":",t[a],";"):dg(t[a])?i.push.apply(i,e(t[a],a)):i.push(uv(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in Eh||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var s}var pv=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function fv(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 mg(e)||dg(e)?pv(dv(cg(pg,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:pv(dv(cg(e,n)))}var mv=function(e,t,n){return void 0===n&&(n=fg),e.theme!==n.theme&&e.theme||t||n.theme},hv=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,gv=/(^-|-$)/g;function vv(e){return e.replace(hv,"-").replace(gv,"")}var bv=function(e){return Bg(Wg(e)>>>0)};function yv(e){return"string"==typeof e&&!0}var Sv=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},xv=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ev(e,t,n){var r=e[n];Sv(t)&&Sv(r)?wv(r,t):e[n]=t}function wv(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(Sv(a))for(var l in a)xv(l)&&Ev(e,a[l],l)}return e}var Cv=W.createContext();Cv.Consumer;var Rv={};function kv(e,t,n){var r=gg(e),o=!yv(e),i=t.attrs,a=void 0===i?pg:i,l=t.componentId,s=void 0===l?function(e,t){var n="string"!=typeof e?"sc":vv(e);Rv[n]=(Rv[n]||0)+1;var r=n+"-"+bv("5.3.11"+n+Rv[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,u=t.displayName,c=void 0===u?function(e){return yv(e)?"styled."+e:"Styled("+hg(e)+")"}(e):u,d=t.displayName&&t.componentId?vv(t.displayName)+"-"+t.componentId:t.componentId||s,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,h=new Gg(n,d,r?e.componentStyle:void 0),g=h.isStatic&&0===a.length,v=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,s=e.shouldForwardProp,u=e.styledComponentId,c=e.target,d=function(e,t,n){void 0===e&&(e=fg);var r=ug({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in mg(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]}(mv(t,$.useContext(Cv),a)||fg,t,o),p=d[0],f=d[1],m=function(e,t,n,r){var o=tv(),i=nv();return t?e.generateAndInjectStyles(fg,o,i):e.generateAndInjectStyles(n,o,i)}(i,r,p),h=n,g=f.$as||t.$as||f.as||t.as||c,v=yv(g),b=f!==t?ug({},t,{},f):t,y={};for(var S in b)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?y.as=b[S]:(s?s(S,Rh,g):!v||Rh(S))&&(y[S]=b[S]));return t.style&&f.style!==t.style&&(y.style=ug({},t.style,{},f.style)),y.className=Array.prototype.concat(l,u,m!==u?m:null,t.className,f.className).filter(Boolean).join(" "),y.ref=h,$.createElement(g,y)}(m,e,t,g)};return v.displayName=c,(m=W.forwardRef(v)).attrs=p,m.componentStyle=h,m.displayName=c,m.shouldForwardProp=f,m.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):pg,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+"-"+(yv(e)?e:vv(hg(e)));return kv(e,ug({},o,{attrs:p,componentId:i}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?wv({},e.defaultProps,t):t}}),Object.defineProperty(m,"toString",{value:function(){return"."+m.styledComponentId}}),o&&sg(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var Pv=function(e){return function e(t,n,r){if(void 0===r&&(r=fg),!yh.isValidElementType(n))return xg(1,String(n));var o=function(){return t(n,r,fv.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,ug({},r,{},o))},o.attrs=function(o){return e(t,n,ug({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(kv,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){Pv[e]=Pv(e)}));var Dv=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Vg(e),zg.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(dv(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&&zg.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Av(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=fv.apply(void 0,[e].concat(n)).join(""),i=bv(o);return new ov(i,o)}var Iv=Pv;const Tv=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=fv.apply(void 0,[e].concat(n)),i="sc-global-"+bv(JSON.stringify(o)),a=new Dv(o,i);function l(e){var t=tv(),n=nv(),r=$.useContext(Cv),o=$.useRef(t.allocateGSInstance(i)).current;return t.server&&s(o,e,t,r,n),null}function s(e,t,n,r,o){if(a.isStatic)a.renderStyles(e,Sg,n,o);else{var i=ug({},t,{theme:mv(t,r,l.defaultProps)});a.renderStyles(e,i,n,o)}}return W.memo(l)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var Lv=Tv;
29
+ /** @license MUI v5.10.0
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */
34
+ function Mv(e,t){let n;return n=t?Iv(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Iv(e),n}Tv.propTypes={defaultTheme:sm.object,styles:sm.oneOfType([sm.string,sm.object,sm.func])};const Ov=["values","unit","step"],qv=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)=>tm({},e,{[t.key]:t.val})),{})};var Nv={borderRadius:4};function _v(e,t){return t?om(e,t,{clone:!1}):e}const Fv={xs:0,sm:600,md:900,lg:1200,xl:1536},zv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Fv[e]}px)`};function jv(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||zv;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||zv;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Fv).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Hv(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 Bv(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Hv(e,n)||r,t&&(o=t(o,r,e)),o}function $v(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=Hv(e.theme,r)||{};return jv(e,i,(e=>{let r=Bv(a,o,e);return e===r&&"string"==typeof e&&(r=Bv(a,o,`${t}${"default"===e?"":cm(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Wv={m:"margin",p:"padding"},Vv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Uv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Gv=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Uv[e])return[e];e=Uv[e]}const[t,n]=e.split(""),r=Wv[t],o=Vv[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Yv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Kv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Zv(e,t,n,r){var o;const i=null!=(o=Hv(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 Xv(e){return Zv(e,"spacing",8)}function Jv(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 Qv(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Jv(t,n),e)),{})}(Gv(n),r);return jv(e,e[n],o)}function eb(e,t){const n=Xv(e.theme);return Object.keys(e).map((r=>Qv(e,t,r,n))).reduce(_v,{})}function tb(e){return eb(e,Yv)}function nb(e){return eb(e,Kv)}function rb(...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]?_v(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function ob(e){return"number"!=typeof e?e:`${e}px solid`}tb.propTypes={},tb.filterProps=Yv,nb.propTypes={},nb.filterProps=Kv;const ib=$v({prop:"border",themeKey:"borders",transform:ob}),ab=$v({prop:"borderTop",themeKey:"borders",transform:ob}),lb=$v({prop:"borderRight",themeKey:"borders",transform:ob}),sb=$v({prop:"borderBottom",themeKey:"borders",transform:ob}),ub=$v({prop:"borderLeft",themeKey:"borders",transform:ob}),cb=$v({prop:"borderColor",themeKey:"palette"}),db=$v({prop:"borderTopColor",themeKey:"palette"}),pb=$v({prop:"borderRightColor",themeKey:"palette"}),fb=$v({prop:"borderBottomColor",themeKey:"palette"}),mb=$v({prop:"borderLeftColor",themeKey:"palette"}),hb=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Zv(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Jv(t,e)});return jv(e,e.borderRadius,n)}return null};hb.propTypes={},hb.filterProps=["borderRadius"],rb(ib,ab,lb,sb,ub,cb,db,pb,fb,mb,hb);const gb=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Zv(e.theme,"spacing",8),n=e=>({gap:Jv(t,e)});return jv(e,e.gap,n)}return null};gb.propTypes={},gb.filterProps=["gap"];const vb=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Zv(e.theme,"spacing",8),n=e=>({columnGap:Jv(t,e)});return jv(e,e.columnGap,n)}return null};vb.propTypes={},vb.filterProps=["columnGap"];const bb=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Zv(e.theme,"spacing",8),n=e=>({rowGap:Jv(t,e)});return jv(e,e.rowGap,n)}return null};bb.propTypes={},bb.filterProps=["rowGap"];function yb(e,t){return"grey"===t?t:e}rb(gb,vb,bb,$v({prop:"gridColumn"}),$v({prop:"gridRow"}),$v({prop:"gridAutoFlow"}),$v({prop:"gridAutoColumns"}),$v({prop:"gridAutoRows"}),$v({prop:"gridTemplateColumns"}),$v({prop:"gridTemplateRows"}),$v({prop:"gridTemplateAreas"}),$v({prop:"gridArea"}));function Sb(e){return e<=1&&0!==e?100*e+"%":e}rb($v({prop:"color",themeKey:"palette",transform:yb}),$v({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:yb}),$v({prop:"backgroundColor",themeKey:"palette",transform:yb}));const xb=$v({prop:"width",transform:Sb}),Eb=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Fv[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Sb(t)}};return jv(e,e.maxWidth,t)}return null};Eb.filterProps=["maxWidth"];const wb=$v({prop:"minWidth",transform:Sb}),Cb=$v({prop:"height",transform:Sb}),Rb=$v({prop:"maxHeight",transform:Sb}),kb=$v({prop:"minHeight",transform:Sb});$v({prop:"size",cssProperty:"width",transform:Sb}),$v({prop:"size",cssProperty:"height",transform:Sb});rb(xb,Eb,wb,Cb,Rb,kb,$v({prop:"boxSizing"}));var Pb={border:{themeKey:"borders",transform:ob},borderTop:{themeKey:"borders",transform:ob},borderRight:{themeKey:"borders",transform:ob},borderBottom:{themeKey:"borders",transform:ob},borderLeft:{themeKey:"borders",transform:ob},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:hb},color:{themeKey:"palette",transform:yb},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:yb},backgroundColor:{themeKey:"palette",transform:yb},p:{style:nb},pt:{style:nb},pr:{style:nb},pb:{style:nb},pl:{style:nb},px:{style:nb},py:{style:nb},padding:{style:nb},paddingTop:{style:nb},paddingRight:{style:nb},paddingBottom:{style:nb},paddingLeft:{style:nb},paddingX:{style:nb},paddingY:{style:nb},paddingInline:{style:nb},paddingInlineStart:{style:nb},paddingInlineEnd:{style:nb},paddingBlock:{style:nb},paddingBlockStart:{style:nb},paddingBlockEnd:{style:nb},m:{style:tb},mt:{style:tb},mr:{style:tb},mb:{style:tb},ml:{style:tb},mx:{style:tb},my:{style:tb},margin:{style:tb},marginTop:{style:tb},marginRight:{style:tb},marginBottom:{style:tb},marginLeft:{style:tb},marginX:{style:tb},marginY:{style:tb},marginInline:{style:tb},marginInlineStart:{style:tb},marginInlineEnd:{style:tb},marginBlock:{style:tb},marginBlockStart:{style:tb},marginBlockEnd:{style:tb},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gb},rowGap:{style:bb},columnGap:{style:vb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Sb},maxWidth:{style:Eb},minWidth:{transform:Sb},height:{transform:Sb},maxHeight:{transform:Sb},minHeight:{transform:Sb},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Db=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Hv(n,l)||{};if(u)return u(o);return jv(o,t,(t=>{let n=Bv(c,s,t);return t===n&&"string"==typeof t&&(n=Bv(c,s,`${e}${"default"===t?"":cm(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Pb;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=_v(s,e(n,o,i,a));else{const e=jv({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=_v(s,e):s[n]=t({sx:o,theme:i})}else s=_v(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Db.filterProps=["sx"];var Ab=Db;const Ib=["breakpoints","palette","spacing","shape"];function Tb(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Hm(e,Ib),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Hm(e,Ov),i=qv(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return tm({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=Xv({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=om({breakpoints:l,direction:"ltr",components:{},palette:tm({mode:"light"},r),spacing:s,shape:tm({},Nv,i)},a);return u=t.reduce(((e,t)=>om(e,t)),u),u.unstable_sxConfig=tm({},Pb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ab({sx:e,theme:this})},u}function Lb(e=null){const t=$.useContext(Cv);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Mb=Tb();function Ob(e=Mb){return Lb(e)}var qb={exports:{}},Nb={},_b=$,Fb=Symbol.for("react.element"),zb=Symbol.for("react.fragment"),jb=Object.prototype.hasOwnProperty,Hb=_b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Bb={key:!0,ref:!0,__self:!0,__source:!0};function $b(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)jb.call(t,r)&&!Bb.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Fb,type:e,key:i,ref:a,props:o,_owner:Hb.current}}Nb.Fragment=zb,Nb.jsx=$b,Nb.jsxs=$b,qb.exports=Nb;var Wb=qb.exports;function Vb({styles:e,themeId:t,defaultTheme:n={}}){const r=Ob(n),o="function"==typeof e?e(t&&r[t]||r):e;return Wb.jsx(Lv,{styles:o})}const Ub=["sx"],Gb=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Pb;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Yb(e){const{sx:t}=e,n=Hm(e,Ub),{systemProps:r,otherProps:o}=Gb(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return nm(n)?tm({},r,n):r}:tm({},r,t),tm({},o,{sx:i})}function Kb(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=Kb(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Zb(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Kb(e))&&(r&&(r+=" "),r+=t);return r}const Xb=["className","component"];const Jb=["variant"];function Qb(e){return 0===e.length}function ey(e){const{variant:t}=e,n=Hm(e,Jb);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Qb(r)?e[t]:cm(e[t]):`${Qb(r)?t:cm(t)}${cm(e[t].toString())}`})),r}const ty=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const ny=e=>{const t={};return e&&e.forEach((e=>{const n=ey(e.props);t[n]=e.style})),t},ry=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach((n=>{let i=!0;Object.keys(n.props).forEach((t=>{r[t]!==n.props[t]&&e[t]!==n.props[t]&&(i=!1)})),i&&o.push(t[ey(n.props)])})),o};function oy(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const iy=Tb(),ay=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ly({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function sy(e){return e?(t,n)=>n[e]:null}const uy=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(tm({},t,{theme:ly(tm({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){return[o,...ry(t,ny(i),i)]}return o};function cy({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ob(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Mm(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function dy(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function py(e){if(e.type)return e;if("#"===e.charAt(0))return py(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(um(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(um(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function fy(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 my(e){let t="hsl"===(e=py(e)).type||"hsla"===e.type?py(function(e){e=py(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),fy({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function hy(e,t){return e=py(e),t=dy(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,fy(e)}function gy(e,t){if(e=py(e),t=dy(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 fy(e)}function vy(e,t){if(e=py(e),t=dy(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 fy(e)}var by=$.createContext(null);function yy(){return $.useContext(by)}var Sy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function xy(e){const{children:t,theme:n}=e,r=yy(),o=$.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return tm({},e,t)}(r,n);return null!=e&&(e[Sy]=null!==r),e}),[n,r]);return Wb.jsx(by.Provider,{value:o,children:t})}const Ey={};function wy(e,t,n,r=!1){return $.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?tm({},t,{[e]:i}):i;return r?()=>a:a}return tm({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Cy(e){const{children:t,theme:n,themeId:r}=e,o=Lb(Ey),i=yy()||Ey,a=wy(r,o,n),l=wy(r,i,n,!0);return Wb.jsx(xy,{theme:l,children:Wb.jsx(Cv.Provider,{value:a,children:t})})}var Ry={black:"#000",white:"#fff"};var ky={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var Py={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var Dy={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var Ay={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Iy={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Ty={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Ly={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const My=["mode","contrastThreshold","tonalOffset"],Oy={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:Ry.white,default:Ry.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}},qy={text:{primary:Ry.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:Ry.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 Ny(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=vy(e.main,o):"dark"===t&&(e.dark=gy(e.main,i)))}function _y(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Hm(e,My),i=e.primary||function(e="light"){return"dark"===e?{main:Iy[200],light:Iy[50],dark:Iy[400]}:{main:Iy[700],light:Iy[400],dark:Iy[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Py[200],light:Py[50],dark:Py[400]}:{main:Py[500],light:Py[300],dark:Py[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Dy[500],light:Dy[300],dark:Dy[700]}:{main:Dy[700],light:Dy[400],dark:Dy[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ty[400],light:Ty[300],dark:Ty[700]}:{main:Ty[700],light:Ty[500],dark:Ty[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ly[400],light:Ly[300],dark:Ly[700]}:{main:Ly[800],light:Ly[500],dark:Ly[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ay[400],light:Ay[300],dark:Ay[700]}:{main:"#ed6c02",light:Ay[500],dark:Ay[900]}}(t);function d(e){const t=function(e,t){const n=my(e),r=my(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,qy.text.primary)>=n?qy.text.primary:Oy.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=tm({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(um(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(um(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ny(e,"light",o,r),Ny(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:qy,light:Oy};return om(tm({common:tm({},Ry),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:ky,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Fy=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const zy={textTransform:"uppercase"},jy='"Roboto", "Helvetica", "Arial", sans-serif';function Hy(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=jy,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Hm(n,Fy),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return tm({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===jy?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,zy),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,zy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return om(tm({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function By(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var $y=["none",By(0,2,1,-1,0,1,1,0,0,1,3,0),By(0,3,1,-2,0,2,2,0,0,1,5,0),By(0,3,3,-2,0,3,4,0,0,1,8,0),By(0,2,4,-1,0,4,5,0,0,1,10,0),By(0,3,5,-1,0,5,8,0,0,1,14,0),By(0,3,5,-1,0,6,10,0,0,1,18,0),By(0,4,5,-2,0,7,10,1,0,2,16,1),By(0,5,5,-3,0,8,10,1,0,3,14,2),By(0,5,6,-3,0,9,12,1,0,3,16,2),By(0,6,6,-3,0,10,14,1,0,4,18,3),By(0,6,7,-4,0,11,15,1,0,4,20,3),By(0,7,8,-4,0,12,17,2,0,5,22,4),By(0,7,8,-4,0,13,19,2,0,5,24,4),By(0,7,9,-4,0,14,21,2,0,5,26,4),By(0,8,9,-5,0,15,22,2,0,6,28,5),By(0,8,10,-5,0,16,24,2,0,6,30,5),By(0,8,11,-5,0,17,26,2,0,6,32,5),By(0,9,11,-5,0,18,28,2,0,7,34,6),By(0,9,12,-6,0,19,29,2,0,7,36,6),By(0,10,13,-6,0,20,31,3,0,8,38,7),By(0,10,13,-6,0,21,33,3,0,8,40,7),By(0,10,14,-6,0,22,35,3,0,8,42,7),By(0,11,14,-7,0,23,36,3,0,9,44,8),By(0,11,15,-7,0,24,38,3,0,9,46,8)];const Wy=["duration","easing","delay"],Vy={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)"},Uy={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gy(e){return`${Math.round(e)}ms`}function Yy(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ky(e){const t=tm({},Vy,e.easing),n=tm({},Uy,e.duration);return tm({getAutoHeightDuration:Yy,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Hm(r,Wy),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Gy(o)} ${i} ${"string"==typeof a?a:Gy(a)}`)).join(",")}},e,{easing:t,duration:n})}var Zy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Xy=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Jy(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Hm(e,Xy);if(e.vars)throw new Error(um(18));const l=_y(r),s=Tb(e);let u=om(s,{mixins:(c=s.breakpoints,d=n,tm({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:$y.slice(),typography:Hy(l,i),transitions:Ky(o),zIndex:tm({},Zy)});var c,d;return u=om(u,a),u=t.reduce(((e,t)=>om(e,t)),u),u.unstable_sxConfig=tm({},Pb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ab({sx:e,theme:this})},u}var Qy=Jy();function eS(){const e=Ob(Qy);return e[jm]||e}function tS({props:e,name:t}){return cy({props:e,name:t,defaultTheme:Qy,themeId:jm})}const nS=e=>oy(e)&&"classes"!==e,rS=oy,oS=function(e={}){const{themeId:t,defaultTheme:n=iy,rootShouldForwardProp:r=oy,slotShouldForwardProp:o=oy}=e,i=e=>Ab(tm({},e,{theme:ly(tm({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=sy(ay(s))}=a,p=Hm(a,ty),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=oy;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Mv(e,tm({shouldForwardProp:h,label:undefined},p)),v=(r,...o)=>{const a=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return r=>uy({styledArg:e,props:r,defaultTheme:n,themeId:t});if(nm(e)){let t,n=e;return e&&e.variants&&(t=e.variants,delete n.variants,n=n=>{let r=e;return ry(n,ny(t),t).forEach((e=>{r=om(r,e)})),r}),n}return e})):[];let s=r;if(nm(r)){let e;r&&r.variants&&(e=r.variants,delete s.variants,s=t=>{let n=r;return ry(t,ny(e),e).forEach((e=>{n=om(n,e)})),n})}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>uy({styledArg:r,props:e,defaultTheme:n,themeId:t}));l&&d&&a.push((e=>{const r=ly(tm({},e,{defaultTheme:n,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,r);if(o){const t={};return Object.entries(o).forEach((([n,o])=>{t[n]="function"==typeof o?o(tm({},e,{theme:r})):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const r=ly(tm({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var o;const i=null==n||null==(o=n.components)||null==(o=o[r])?void 0:o.variants;return ry(e,t,i)})(e,((e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),ny(n)})(l,r),r,l)})),m||a.push(i);const u=a.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}const c=g(s,...a);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:jm,defaultTheme:Qy,rootShouldForwardProp:nS});var iS=oS;const aS=["theme"];function lS(e){let{theme:t}=e,n=Hm(e,aS);const r=t[jm];return Wb.jsx(Cy,tm({},n,{themeId:r?jm:void 0,theme:r||t}))}var sS=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},uS={},cS={exports:{}};
35
+ /*!
36
+ * Converts CSS stylesheets between left-to-right and right-to-left.
37
+ * https://github.com/cssjanus/cssjanus
38
+ *
39
+ * Copyright 2008 Google Inc.
40
+ * Copyright 2010 Trevor Parscal
41
41
  */
42
- !function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,p=3,f=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(h=!1,y(e),!m)if(null!==n(s))m=!0,L(S);else{var t=n(u);null!==t&&M(x,t.startTime-e)}}function S(t,o){m=!1,h&&(h=!1,v(R),R=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!A());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&M(x,g.startTime-o),c=!1}return c}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,w=!1,C=null,R=-1,k=5,D=-1;function A(){return!(e.unstable_now()-D<k)}function P(){if(null!==C){var t=e.unstable_now();D=t;var n=!0;try{n=C(!0,t)}finally{n?E():(w=!1,C=null)}}else w=!1}if("function"==typeof b)E=function(){b(P)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,T=I.port2;I.port1.onmessage=P,E=function(){T.postMessage(null)}}else E=function(){g(P,0)};function L(e){C=e,w||(w=!0,E())}function M(t,n){R=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||f||(m=!0,L(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(h?(v(R),R=-1):h=!0,M(x,i-a))):(r.sortIndex=l,t(s,r),m||f||(m=!0,L(S))),r},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(Eu),Su.exports=Eu;var wu=Su.exports,Cu=bn,Ru=wu;
42
+ !function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="[^\\u0020-\\u007e]",n="(?:[0-9]*\\.[0-9]+|[0-9]+)",o="direction\\s*:\\s*",i="['\"]?\\s*",a="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",s="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",u="(?:[_a-z0-9-]|"+t+"|"+s+")",c=n+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+t+"|"+s+")")+u+"*")+")?",d="((?:-?"+c+")|(?:inherit|auto))",p="(#?"+u+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",f="(?:[!#$%&*-~]|"+t+"|"+s+")*?",m="(?![a-zA-Z])",h="(?!("+u+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'])*?{)",g="(?!"+f+i+"\\))",v="(?="+f+i+"\\))",b="(\\s*(?:!important\\s*)?[;}])",y=new RegExp("`TMP`","g"),S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),x=new RegExp("("+l+h+"[^;}]+;?)","gi"),E=new RegExp("("+l+"[^\\}]*?})","gi"),w=new RegExp("("+o+")ltr","gi"),C=new RegExp("("+o+")rtl","gi"),R=new RegExp(a+"(left)"+m+g+h,"gi"),k=new RegExp(a+"(right)"+m+g+h,"gi"),P=new RegExp(a+"(left)"+v,"gi"),D=new RegExp(a+"(right)"+v,"gi"),A=new RegExp(a+"(ltr)"+v,"gi"),I=new RegExp(a+"(rtl)"+v,"gi"),T=new RegExp(a+"([ns]?)e-resize","gi"),L=new RegExp(a+"([ns]?)w-resize","gi"),M=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+d+"(\\s+)"+d+"(\\s+)"+d+"(\\s+)"+d+b,"gi"),O=new RegExp("((?:-color|border-style)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+b,"gi"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+c+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+n+"%)","gi"),_=new RegExp("(border-radius\\s*:\\s*)"+d+"(?:(?:\\s+"+d+")(?:\\s+"+d+")?(?:\\s+"+d+")?)?(?:(?:(?:\\s*\\/\\s*)"+d+")(?:\\s+"+d+")?(?:\\s+"+d+")?(?:\\s+"+d+")?)?"+b,"gi"),F=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+d,"gi"),z=new RegExp("(text-shadow\\s*:\\s*)"+d+"(\\s*)"+p,"gi"),j=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+d,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+d,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+d+"(\\s*\\))","gi"),$=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+d+"((?:\\s*,\\s*"+d+"){0,2}\\s*\\))","gi");function W(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 V(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var 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?V(r)+" / "+V(o):V(r))+i}function G(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function Y(e,t,n){return t+G(n)}function K(e,t,n,r,o){return t+n+G(r)+o}function Z(e,t,n,r,o){return t+n+r+G(o)}return{transform:function(t,n){var o=new r(x,"`NOFLIP_SINGLE`"),i=new r(E,"`NOFLIP_CLASS`"),a=new r(S,"`COMMENT`");return t=a.tokenize(i.tokenize(o.tokenize(t.replace("`","%60")))),n.transformDirInUrl&&(t=t.replace(A,"$1"+e).replace(I,"$1ltr").replace(y,"rtl")),n.transformEdgeInUrl&&(t=t.replace(P,"$1"+e).replace(D,"$1left").replace(y,"right")),t=t.replace(w,"$1"+e).replace(C,"$1ltr").replace(y,"rtl").replace(R,"$1"+e).replace(k,"$1left").replace(y,"right").replace(T,"$1$2"+e).replace(L,"$1$2e-resize").replace(y,"w-resize").replace(_,U).replace(F,Y).replace(z,Z).replace(j,Z).replace(H,Y).replace(B,K).replace($,K).replace(M,"$1$2$3$8$5$6$7$4$9").replace(O,"$1$2$3$8$5$6$7$4$9").replace(q,W).replace(N,W),t=o.detokenize(i.detokenize(a.detokenize(t)))}}},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)}(cS,cS.exports);var dS=cS.exports;Object.defineProperty(uS,"__esModule",{value:!0}),uS.STYLIS_PROPERTY_CONTEXT=void 0;var pS,fS=(pS=dS)&&pS.__esModule?pS:{default:pS};var mS=uS.STYLIS_PROPERTY_CONTEXT=-1;function hS(e,t){if(e===mS)return fS.default.transform(t)}Object.defineProperty(hS,"name",{value:"stylisRTLPlugin"});var gS,vS,bS,yS,SS,xS=uS.default=hS;!function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(gS||(gS={})),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"}(vS||(vS={})),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"}(bS||(bS={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(yS||(yS={})),function(e){e.A="ascending",e.D="descending"}(SS||(SS={}));var ES=24,wS=[0,0],CS=[1,0];function RS(e){if(e.type)return e;if("#"===e.charAt(0))return RS(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function kS(e,t){return e=RS(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function PS(e,t){return PS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},PS(e,t)}function DS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,PS(e,t)}function AS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const IS={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},TS={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...IS,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},LS=12,MS=14,OS=16,qS=24,NS=3,_S=300,FS=400,zS=600,jS=700,HS={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};kS(TS.GREYSCALE_0,.05),kS(TS.GREEN_PALE,.5),kS(TS.BLUE_PALE,.5),kS(TS.GREEN_PALE,.5),kS(TS.BLUE_PALE,.5),kS(TS.GREEN_PALE,.5),kS(TS.BLUE_PALE,.5);var BS;function $S(){return $S=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},$S.apply(this,arguments)}kS(TS.GREEN_PALE,.5),kS(TS.BLUE_PALE,.5),kS(TS.GREEN_PALE,.5),kS(TS.BLUE_PALE,.5);var WS,VS=function(e){return $.createElement("svg",$S({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),BS||(BS=$.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})))};function US(){return US=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},US.apply(this,arguments)}var GS=function(e){return $.createElement("svg",US({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),WS||(WS=$.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})))};function YS({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return W.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var KS=(e={})=>W.createElement(YS,{...e},W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},W.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),W.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),ZS=(e={})=>W.createElement(YS,{...e},W.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},W.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},W.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),W.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),XS=(e={})=>W.createElement(YS,{fontSize:"medium",...e},W.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},W.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},W.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),JS=(e={})=>W.createElement(YS,{fontSize:"medium",...e},W.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},W.createElement("defs",null,W.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),W.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},W.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},W.createElement("use",{href:"#radio-checked-path-1"})),W.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),W.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),QS=({className:e})=>W.createElement(YS,{fontSize:"small",className:e},W.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},W.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},W.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},W.createElement("g",{transform:"translate(4.324187, 1.300372)"},W.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),W.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));function ex(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=ex(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function tx(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ex(e))&&(r&&(r+=" "),r+=t);return r}function nx(e){return Fm("MuiSvgIcon",e)}zm("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const rx=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ox=iS("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${cm(n.color)}`],t[`fontSize${cm(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),ix=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=Hm(n,rx),f=$.isValidElement(r)&&"svg"===r.type,m=tm({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Om({root:["root","inherit"!==t&&`color${cm(t)}`,`fontSize${cm(n)}`]},nx,r)})(m);return Wb.jsxs(ox,tm({as:a,className:tx(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?Wb.jsx("title",{children:c}):null]}))}));ix.muiName="SvgIcon";var ax=ix;var lx,sx={},ux=Symbol.for("react.element"),cx=Symbol.for("react.portal"),dx=Symbol.for("react.fragment"),px=Symbol.for("react.strict_mode"),fx=Symbol.for("react.profiler"),mx=Symbol.for("react.provider"),hx=Symbol.for("react.context"),gx=Symbol.for("react.server_context"),vx=Symbol.for("react.forward_ref"),bx=Symbol.for("react.suspense"),yx=Symbol.for("react.suspense_list"),Sx=Symbol.for("react.memo"),xx=Symbol.for("react.lazy"),Ex=Symbol.for("react.offscreen");
43
43
  /**
44
44
  * @license React
45
- * react-dom.production.min.js
45
+ * react-is.production.min.js
46
46
  *
47
47
  * Copyright (c) Facebook, Inc. and its affiliates.
48
48
  *
49
49
  * This source code is licensed under the MIT license found in the
50
50
  * LICENSE file in the root directory of this source tree.
51
- */function ku(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Du=new Set,Au={};function Pu(e,t){Iu(e,t),Iu(e+"Capture",t)}function Iu(e,t){for(Au[e]=t,e=0;e<t.length;e++)Du.add(t[e])}var Tu=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Lu=Object.prototype.hasOwnProperty,Mu=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,qu={},Ou={};function _u(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Nu={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Nu[e]=new _u(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Nu[t]=new _u(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Nu[e]=new _u(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Nu[e]=new _u(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Nu[e]=new _u(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Nu[e]=new _u(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Nu[e]=new _u(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Nu[e]=new _u(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Nu[e]=new _u(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Fu=/[\-:]([a-z])/g;function zu(e){return e[1].toUpperCase()}function ju(e,t,n,r){var o=Nu.hasOwnProperty(t)?Nu[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Lu.call(Ou,e)||!Lu.call(qu,e)&&(Mu.test(e)?Ou[e]=!0:(qu[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Fu,zu);Nu[t]=new _u(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Fu,zu);Nu[t]=new _u(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Fu,zu);Nu[t]=new _u(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Nu[e]=new _u(e,1,!1,e.toLowerCase(),null,!1,!1)})),Nu.xlinkHref=new _u("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Nu[e]=new _u(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Hu=Cu.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Bu=Symbol.for("react.element"),$u=Symbol.for("react.portal"),Vu=Symbol.for("react.fragment"),Wu=Symbol.for("react.strict_mode"),Uu=Symbol.for("react.profiler"),Gu=Symbol.for("react.provider"),Yu=Symbol.for("react.context"),Ku=Symbol.for("react.forward_ref"),Xu=Symbol.for("react.suspense"),Zu=Symbol.for("react.suspense_list"),Ju=Symbol.for("react.memo"),Qu=Symbol.for("react.lazy"),ec=Symbol.for("react.offscreen"),tc=Symbol.iterator;function nc(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=tc&&e[tc]||e["@@iterator"])?e:null}var rc,oc=Object.assign;function ic(e){if(void 0===rc)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);rc=t&&t[1]||""}return"\n"+rc+e}var ac=!1;function lc(e,t){if(!e||ac)return"";ac=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{ac=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ic(e):""}function sc(e){switch(e.tag){case 5:return ic(e.type);case 16:return ic("Lazy");case 13:return ic("Suspense");case 19:return ic("SuspenseList");case 0:case 2:case 15:return e=lc(e.type,!1);case 11:return e=lc(e.type.render,!1);case 1:return e=lc(e.type,!0);default:return""}}function uc(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Vu:return"Fragment";case $u:return"Portal";case Uu:return"Profiler";case Wu:return"StrictMode";case Xu:return"Suspense";case Zu:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Yu:return(e.displayName||"Context")+".Consumer";case Gu:return(e._context.displayName||"Context")+".Provider";case Ku:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ju:return null!==(t=e.displayName||null)?t:uc(e.type)||"Memo";case Qu:t=e._payload,e=e._init;try{return uc(e(t))}catch(e){}}return null}function cc(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return uc(t);case 8:return t===Wu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function dc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function pc(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function fc(e){e._valueTracker||(e._valueTracker=function(e){var t=pc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function mc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pc(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function hc(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function gc(e,t){var n=t.checked;return oc({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function vc(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=dc(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function bc(e,t){null!=(t=t.checked)&&ju(e,"checked",t,!1)}function yc(e,t){bc(e,t);var n=dc(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Sc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Sc(e,t.type,dc(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function xc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Sc(e,t,n){"number"===t&&hc(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ec=Array.isArray;function wc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dc(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Cc(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(ku(91));return oc({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Rc(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(ku(92));if(Ec(n)){if(1<n.length)throw Error(ku(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:dc(n)}}function kc(e,t){var n=dc(t.value),r=dc(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Dc(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Ac(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pc(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ac(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ic,Tc,Lc=(Tc=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Ic=Ic||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ic.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Tc(e,t)}))}:Tc);function Mc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var qc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Oc=["Webkit","ms","Moz","O"];function _c(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||qc.hasOwnProperty(e)&&qc[e]?(""+t).trim():t+"px"}function Nc(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=_c(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(qc).forEach((function(e){Oc.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qc[t]=qc[e]}))}));var Fc=oc({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zc(e,t){if(t){if(Fc[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ku(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ku(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(ku(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(ku(62))}}function jc(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hc=null;function Bc(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var $c=null,Vc=null,Wc=null;function Uc(e){if(e=jm(e)){if("function"!=typeof $c)throw Error(ku(280));var t=e.stateNode;t&&(t=Bm(t),$c(e.stateNode,e.type,t))}}function Gc(e){Vc?Wc?Wc.push(e):Wc=[e]:Vc=e}function Yc(){if(Vc){var e=Vc,t=Wc;if(Wc=Vc=null,Uc(e),t)for(e=0;e<t.length;e++)Uc(t[e])}}function Kc(e,t){return e(t)}function Xc(){}var Zc=!1;function Jc(e,t,n){if(Zc)return e(t,n);Zc=!0;try{return Kc(e,t,n)}finally{Zc=!1,(null!==Vc||null!==Wc)&&(Xc(),Yc())}}function Qc(e,t){var n=e.stateNode;if(null===n)return null;var r=Bm(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(ku(231,t,typeof n));return n}var ed=!1;if(Tu)try{var td={};Object.defineProperty(td,"passive",{get:function(){ed=!0}}),window.addEventListener("test",td,td),window.removeEventListener("test",td,td)}catch(Tc){ed=!1}function nd(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var rd=!1,od=null,id=!1,ad=null,ld={onError:function(e){rd=!0,od=e}};function sd(e,t,n,r,o,i,a,l,s){rd=!1,od=null,nd.apply(ld,arguments)}function ud(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function cd(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function dd(e){if(ud(e)!==e)throw Error(ku(188))}function pd(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=ud(e)))throw Error(ku(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return dd(o),e;if(i===r)return dd(o),t;i=i.sibling}throw Error(ku(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(ku(189))}}if(n.alternate!==r)throw Error(ku(190))}if(3!==n.tag)throw Error(ku(188));return n.stateNode.current===n?e:t}(e),null!==e?fd(e):null}function fd(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=fd(e);if(null!==t)return t;e=e.sibling}return null}var md=Ru.unstable_scheduleCallback,hd=Ru.unstable_cancelCallback,gd=Ru.unstable_shouldYield,vd=Ru.unstable_requestPaint,bd=Ru.unstable_now,yd=Ru.unstable_getCurrentPriorityLevel,xd=Ru.unstable_ImmediatePriority,Sd=Ru.unstable_UserBlockingPriority,Ed=Ru.unstable_NormalPriority,wd=Ru.unstable_LowPriority,Cd=Ru.unstable_IdlePriority,Rd=null,kd=null;var Dd=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Ad(e)/Pd|0)|0},Ad=Math.log,Pd=Math.LN2;var Id=64,Td=4194304;function Ld(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Md(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=Ld(l):0!==(i&=a)&&(r=Ld(i))}else 0!==(a=n&~o)?r=Ld(a):0!==i&&(r=Ld(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Dd(t)),r|=e[n],t&=~o;return r}function qd(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Od(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function _d(){var e=Id;return 0==(4194240&(Id<<=1))&&(Id=64),e}function Nd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Fd(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Dd(t)]=n}function zd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Dd(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var jd=0;function Hd(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Bd,$d,Vd,Wd,Ud,Gd=!1,Yd=[],Kd=null,Xd=null,Zd=null,Jd=new Map,Qd=new Map,ep=[],tp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function np(e,t){switch(e){case"focusin":case"focusout":Kd=null;break;case"dragenter":case"dragleave":Xd=null;break;case"mouseover":case"mouseout":Zd=null;break;case"pointerover":case"pointerout":Jd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qd.delete(t.pointerId)}}function rp(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=jm(t))&&$d(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function op(e){var t=zm(e.target);if(null!==t){var n=ud(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=cd(n)))return e.blockedOn=t,void Ud(e.priority,(function(){Vd(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function ip(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=gp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=jm(n))&&$d(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Hc=r,n.target.dispatchEvent(r),Hc=null,t.shift()}return!0}function ap(e,t,n){ip(e)&&n.delete(t)}function lp(){Gd=!1,null!==Kd&&ip(Kd)&&(Kd=null),null!==Xd&&ip(Xd)&&(Xd=null),null!==Zd&&ip(Zd)&&(Zd=null),Jd.forEach(ap),Qd.forEach(ap)}function sp(e,t){e.blockedOn===t&&(e.blockedOn=null,Gd||(Gd=!0,Ru.unstable_scheduleCallback(Ru.unstable_NormalPriority,lp)))}function up(e){function t(t){return sp(t,e)}if(0<Yd.length){sp(Yd[0],e);for(var n=1;n<Yd.length;n++){var r=Yd[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Kd&&sp(Kd,e),null!==Xd&&sp(Xd,e),null!==Zd&&sp(Zd,e),Jd.forEach(t),Qd.forEach(t),n=0;n<ep.length;n++)(r=ep[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ep.length&&null===(n=ep[0]).blockedOn;)op(n),null===n.blockedOn&&ep.shift()}var cp=Hu.ReactCurrentBatchConfig,dp=!0;function pp(e,t,n,r){var o=jd,i=cp.transition;cp.transition=null;try{jd=1,mp(e,t,n,r)}finally{jd=o,cp.transition=i}}function fp(e,t,n,r){var o=jd,i=cp.transition;cp.transition=null;try{jd=4,mp(e,t,n,r)}finally{jd=o,cp.transition=i}}function mp(e,t,n,r){if(dp){var o=gp(e,t,n,r);if(null===o)dm(e,t,r,hp,n),np(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Kd=rp(Kd,e,t,n,r,o),!0;case"dragenter":return Xd=rp(Xd,e,t,n,r,o),!0;case"mouseover":return Zd=rp(Zd,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Jd.set(i,rp(Jd.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Qd.set(i,rp(Qd.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(np(e,r),4&t&&-1<tp.indexOf(e)){for(;null!==o;){var i=jm(o);if(null!==i&&Bd(i),null===(i=gp(e,t,n,r))&&dm(e,t,r,hp,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else dm(e,t,r,null,n)}}var hp=null;function gp(e,t,n,r){if(hp=null,null!==(e=zm(e=Bc(r))))if(null===(t=ud(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=cd(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return hp=e,null}function vp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(yd()){case xd:return 1;case Sd:return 4;case Ed:case wd:return 16;case Cd:return 536870912;default:return 16}default:return 16}}var bp=null,yp=null,xp=null;function Sp(){if(xp)return xp;var e,t,n=yp,r=n.length,o="value"in bp?bp.value:bp.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return xp=o.slice(e,1<t?1-t:void 0)}function Ep(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function wp(){return!0}function Cp(){return!1}function Rp(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?wp:Cp,this.isPropagationStopped=Cp,this}return oc(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=wp)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=wp)},persist:function(){},isPersistent:wp}),t}var kp,Dp,Ap,Pp={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ip=Rp(Pp),Tp=oc({},Pp,{view:0,detail:0}),Lp=Rp(Tp),Mp=oc({},Tp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wp,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ap&&(Ap&&"mousemove"===e.type?(kp=e.screenX-Ap.screenX,Dp=e.screenY-Ap.screenY):Dp=kp=0,Ap=e),kp)},movementY:function(e){return"movementY"in e?e.movementY:Dp}}),qp=Rp(Mp),Op=Rp(oc({},Mp,{dataTransfer:0})),_p=Rp(oc({},Tp,{relatedTarget:0})),Np=Rp(oc({},Pp,{animationName:0,elapsedTime:0,pseudoElement:0})),Fp=oc({},Pp,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zp=Rp(Fp),jp=Rp(oc({},Pp,{data:0})),Hp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bp={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},$p={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=$p[e])&&!!t[e]}function Wp(){return Vp}var Up=oc({},Tp,{key:function(e){if(e.key){var t=Hp[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ep(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Bp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wp,charCode:function(e){return"keypress"===e.type?Ep(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ep(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Gp=Rp(Up),Yp=Rp(oc({},Mp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Kp=Rp(oc({},Tp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wp})),Xp=Rp(oc({},Pp,{propertyName:0,elapsedTime:0,pseudoElement:0})),Zp=oc({},Mp,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Jp=Rp(Zp),Qp=[9,13,27,32],ef=Tu&&"CompositionEvent"in window,tf=null;Tu&&"documentMode"in document&&(tf=document.documentMode);var nf=Tu&&"TextEvent"in window&&!tf,rf=Tu&&(!ef||tf&&8<tf&&11>=tf),of=String.fromCharCode(32),af=!1;function lf(e,t){switch(e){case"keyup":return-1!==Qp.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sf(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var uf=!1;var cf={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function df(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!cf[e.type]:"textarea"===t}function pf(e,t,n,r){Gc(r),0<(t=fm(t,"onChange")).length&&(n=new Ip("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ff=null,mf=null;function hf(e){im(e,0)}function gf(e){if(mc(Hm(e)))return e}function vf(e,t){if("change"===e)return t}var bf=!1;if(Tu){var yf;if(Tu){var xf="oninput"in document;if(!xf){var Sf=document.createElement("div");Sf.setAttribute("oninput","return;"),xf="function"==typeof Sf.oninput}yf=xf}else yf=!1;bf=yf&&(!document.documentMode||9<document.documentMode)}function Ef(){ff&&(ff.detachEvent("onpropertychange",wf),mf=ff=null)}function wf(e){if("value"===e.propertyName&&gf(mf)){var t=[];pf(t,mf,e,Bc(e)),Jc(hf,t)}}function Cf(e,t,n){"focusin"===e?(Ef(),mf=n,(ff=t).attachEvent("onpropertychange",wf)):"focusout"===e&&Ef()}function Rf(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return gf(mf)}function kf(e,t){if("click"===e)return gf(t)}function Df(e,t){if("input"===e||"change"===e)return gf(t)}var Af="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Pf(e,t){if(Af(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Lu.call(t,o)||!Af(e[o],t[o]))return!1}return!0}function If(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tf(e,t){var n,r=If(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=If(r)}}function Lf(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Lf(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Mf(){for(var e=window,t=hc();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=hc((e=t.contentWindow).document)}return t}function qf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Of(e){var t=Mf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lf(n.ownerDocument.documentElement,n)){if(null!==r&&qf(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Tf(n,i);var a=Tf(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var _f=Tu&&"documentMode"in document&&11>=document.documentMode,Nf=null,Ff=null,zf=null,jf=!1;function Hf(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;jf||null==Nf||Nf!==hc(r)||("selectionStart"in(r=Nf)&&qf(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},zf&&Pf(zf,r)||(zf=r,0<(r=fm(Ff,"onSelect")).length&&(t=new Ip("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Nf)))}function Bf(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $f={animationend:Bf("Animation","AnimationEnd"),animationiteration:Bf("Animation","AnimationIteration"),animationstart:Bf("Animation","AnimationStart"),transitionend:Bf("Transition","TransitionEnd")},Vf={},Wf={};function Uf(e){if(Vf[e])return Vf[e];if(!$f[e])return e;var t,n=$f[e];for(t in n)if(n.hasOwnProperty(t)&&t in Wf)return Vf[e]=n[t];return e}Tu&&(Wf=document.createElement("div").style,"AnimationEvent"in window||(delete $f.animationend.animation,delete $f.animationiteration.animation,delete $f.animationstart.animation),"TransitionEvent"in window||delete $f.transitionend.transition);var Gf=Uf("animationend"),Yf=Uf("animationiteration"),Kf=Uf("animationstart"),Xf=Uf("transitionend"),Zf=new Map,Jf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Qf(e,t){Zf.set(e,t),Pu(t,[e])}for(var em=0;em<Jf.length;em++){var tm=Jf[em];Qf(tm.toLowerCase(),"on"+(tm[0].toUpperCase()+tm.slice(1)))}Qf(Gf,"onAnimationEnd"),Qf(Yf,"onAnimationIteration"),Qf(Kf,"onAnimationStart"),Qf("dblclick","onDoubleClick"),Qf("focusin","onFocus"),Qf("focusout","onBlur"),Qf(Xf,"onTransitionEnd"),Iu("onMouseEnter",["mouseout","mouseover"]),Iu("onMouseLeave",["mouseout","mouseover"]),Iu("onPointerEnter",["pointerout","pointerover"]),Iu("onPointerLeave",["pointerout","pointerover"]),Pu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pu("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nm="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rm=new Set("cancel close invalid load scroll toggle".split(" ").concat(nm));function om(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(sd.apply(this,arguments),rd){if(!rd)throw Error(ku(198));var u=od;rd=!1,od=null,id||(id=!0,ad=u)}}(r,t,void 0,e),e.currentTarget=null}function im(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;om(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;om(o,l,u),i=s}}}if(id)throw e=ad,id=!1,ad=null,e}function am(e,t){var n=t[_m];void 0===n&&(n=t[_m]=new Set);var r=e+"__bubble";n.has(r)||(cm(t,e,2,!1),n.add(r))}function lm(e,t,n){var r=0;t&&(r|=4),cm(n,e,r,t)}var sm="_reactListening"+Math.random().toString(36).slice(2);function um(e){if(!e[sm]){e[sm]=!0,Du.forEach((function(t){"selectionchange"!==t&&(rm.has(t)||lm(t,!1,e),lm(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[sm]||(t[sm]=!0,lm("selectionchange",!1,t))}}function cm(e,t,n,r){switch(vp(t)){case 1:var o=pp;break;case 4:o=fp;break;default:o=mp}n=o.bind(null,t,n,e),o=void 0,!ed||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function dm(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=zm(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Jc((function(){var r=i,o=Bc(n),a=[];e:{var l=Zf.get(e);if(void 0!==l){var s=Ip,u=e;switch(e){case"keypress":if(0===Ep(n))break e;case"keydown":case"keyup":s=Gp;break;case"focusin":u="focus",s=_p;break;case"focusout":u="blur",s=_p;break;case"beforeblur":case"afterblur":s=_p;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=qp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=Op;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Kp;break;case Gf:case Yf:case Kf:s=Np;break;case Xf:s=Xp;break;case"scroll":s=Lp;break;case"wheel":s=Jp;break;case"copy":case"cut":case"paste":s=zp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Yp}var c=0!=(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=Qc(m,p))&&c.push(pm(m,h,f)))),d)break;m=m.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Hc||!(u=n.relatedTarget||n.fromElement)||!zm(u)&&!u[Om])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?zm(u):null)&&(u!==(d=ud(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=qp,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Yp,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==s?l:Hm(s),f=null==u?l:Hm(u),(l=new c(h,m+"leave",s,n,o)).target=d,l.relatedTarget=f,h=null,zm(o)===r&&((c=new c(p,m+"enter",u,n,o)).target=f,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(p=u,m=0,f=c=s;f;f=mm(f))m++;for(f=0,h=p;h;h=mm(h))f++;for(;0<m-f;)c=mm(c),m--;for(;0<f-m;)p=mm(p),f--;for(;m--;){if(c===p||null!==p&&c===p.alternate)break e;c=mm(c),p=mm(p)}c=null}else c=null;null!==s&&hm(a,l,s,c,!1),null!==u&&null!==d&&hm(a,d,u,c,!0)}if("select"===(s=(l=r?Hm(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=vf;else if(df(l))if(bf)g=Df;else{g=Rf;var v=Cf}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=kf);switch(g&&(g=g(e,r))?pf(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&Sc(l,"number",l.value)),v=r?Hm(r):window,e){case"focusin":(df(v)||"true"===v.contentEditable)&&(Nf=v,Ff=r,zf=null);break;case"focusout":zf=Ff=Nf=null;break;case"mousedown":jf=!0;break;case"contextmenu":case"mouseup":case"dragend":jf=!1,Hf(a,n,o);break;case"selectionchange":if(_f)break;case"keydown":case"keyup":Hf(a,n,o)}var b;if(ef)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else uf?lf(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(rf&&"ko"!==n.locale&&(uf||"onCompositionStart"!==y?"onCompositionEnd"===y&&uf&&(b=Sp()):(yp="value"in(bp=o)?bp.value:bp.textContent,uf=!0)),0<(v=fm(r,y)).length&&(y=new jp(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=sf(n))&&(y.data=b))),(b=nf?function(e,t){switch(e){case"compositionend":return sf(t);case"keypress":return 32!==t.which?null:(af=!0,of);case"textInput":return(e=t.data)===of&&af?null:e;default:return null}}(e,n):function(e,t){if(uf)return"compositionend"===e||!ef&&lf(e,t)?(e=Sp(),xp=yp=bp=null,uf=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return rf&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=fm(r,"onBeforeInput")).length&&(o=new jp("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}im(a,t)}))}function pm(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fm(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Qc(e,n))&&r.unshift(pm(e,i,o)),null!=(i=Qc(e,t))&&r.push(pm(e,i,o))),e=e.return}return r}function mm(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function hm(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Qc(n,i))&&a.unshift(pm(n,s,l)):o||null!=(s=Qc(n,i))&&a.push(pm(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var gm=/\r\n?/g,vm=/\u0000|\uFFFD/g;function bm(e){return("string"==typeof e?e:""+e).replace(gm,"\n").replace(vm,"")}function ym(e,t,n){if(t=bm(t),bm(e)!==t&&n)throw Error(ku(425))}function xm(){}var Sm=null,Em=null;function wm(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Cm="function"==typeof setTimeout?setTimeout:void 0,Rm="function"==typeof clearTimeout?clearTimeout:void 0,km="function"==typeof Promise?Promise:void 0,Dm="function"==typeof queueMicrotask?queueMicrotask:void 0!==km?function(e){return km.resolve(null).then(e).catch(Am)}:Cm;function Am(e){setTimeout((function(){throw e}))}function Pm(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void up(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);up(t)}function Im(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Tm(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Lm=Math.random().toString(36).slice(2),Mm="__reactFiber$"+Lm,qm="__reactProps$"+Lm,Om="__reactContainer$"+Lm,_m="__reactEvents$"+Lm,Nm="__reactListeners$"+Lm,Fm="__reactHandles$"+Lm;function zm(e){var t=e[Mm];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Om]||n[Mm]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Tm(e);null!==e;){if(n=e[Mm])return n;e=Tm(e)}return t}n=(e=n).parentNode}return null}function jm(e){return!(e=e[Mm]||e[Om])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Hm(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(ku(33))}function Bm(e){return e[qm]||null}var $m=[],Vm=-1;function Wm(e){return{current:e}}function Um(e){0>Vm||(e.current=$m[Vm],$m[Vm]=null,Vm--)}function Gm(e,t){Vm++,$m[Vm]=e.current,e.current=t}var Ym={},Km=Wm(Ym),Xm=Wm(!1),Zm=Ym;function Jm(e,t){var n=e.type.contextTypes;if(!n)return Ym;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Qm(e){return null!=(e=e.childContextTypes)}function eh(){Um(Xm),Um(Km)}function th(e,t,n){if(Km.current!==Ym)throw Error(ku(168));Gm(Km,t),Gm(Xm,n)}function nh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(ku(108,cc(e)||"Unknown",o));return oc({},n,r)}function rh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ym,Zm=Km.current,Gm(Km,e),Gm(Xm,Xm.current),!0}function oh(e,t,n){var r=e.stateNode;if(!r)throw Error(ku(169));n?(e=nh(e,t,Zm),r.__reactInternalMemoizedMergedChildContext=e,Um(Xm),Um(Km),Gm(Km,e)):Um(Xm),Gm(Xm,n)}var ih=null,ah=!1,lh=!1;function sh(e){null===ih?ih=[e]:ih.push(e)}function uh(){if(!lh&&null!==ih){lh=!0;var e=0,t=jd;try{var n=ih;for(jd=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}ih=null,ah=!1}catch(t){throw null!==ih&&(ih=ih.slice(e+1)),md(xd,uh),t}finally{jd=t,lh=!1}}return null}var ch=[],dh=0,ph=null,fh=0,mh=[],hh=0,gh=null,vh=1,bh="";function yh(e,t){ch[dh++]=fh,ch[dh++]=ph,ph=e,fh=t}function xh(e,t,n){mh[hh++]=vh,mh[hh++]=bh,mh[hh++]=gh,gh=e;var r=vh;e=bh;var o=32-Dd(r)-1;r&=~(1<<o),n+=1;var i=32-Dd(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,vh=1<<32-Dd(t)+o|n<<o|r,bh=i+e}else vh=1<<i|n<<o|r,bh=e}function Sh(e){null!==e.return&&(yh(e,1),xh(e,1,0))}function Eh(e){for(;e===ph;)ph=ch[--dh],ch[dh]=null,fh=ch[--dh],ch[dh]=null;for(;e===gh;)gh=mh[--hh],mh[hh]=null,bh=mh[--hh],mh[hh]=null,vh=mh[--hh],mh[hh]=null}var wh=null,Ch=null,Rh=!1,kh=null;function Dh(e,t){var n=Jy(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Ah(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,wh=e,Ch=Im(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,wh=e,Ch=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==gh?{id:vh,overflow:bh}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Jy(18,null,null,0)).stateNode=t,n.return=e,e.child=n,wh=e,Ch=null,!0);default:return!1}}function Ph(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Ih(e){if(Rh){var t=Ch;if(t){var n=t;if(!Ah(e,t)){if(Ph(e))throw Error(ku(418));t=Im(n.nextSibling);var r=wh;t&&Ah(e,t)?Dh(r,n):(e.flags=-4097&e.flags|2,Rh=!1,wh=e)}}else{if(Ph(e))throw Error(ku(418));e.flags=-4097&e.flags|2,Rh=!1,wh=e}}}function Th(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wh=e}function Lh(e){if(e!==wh)return!1;if(!Rh)return Th(e),Rh=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!wm(e.type,e.memoizedProps)),t&&(t=Ch)){if(Ph(e))throw Mh(),Error(ku(418));for(;t;)Dh(e,t),t=Im(t.nextSibling)}if(Th(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(ku(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ch=Im(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ch=null}}else Ch=wh?Im(e.stateNode.nextSibling):null;return!0}function Mh(){for(var e=Ch;e;)e=Im(e.nextSibling)}function qh(){Ch=wh=null,Rh=!1}function Oh(e){null===kh?kh=[e]:kh.push(e)}var _h=Hu.ReactCurrentBatchConfig;function Nh(e,t){if(e&&e.defaultProps){for(var n in t=oc({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Fh=Wm(null),zh=null,jh=null,Hh=null;function Bh(){Hh=jh=zh=null}function $h(e){var t=Fh.current;Um(Fh),e._currentValue=t}function Vh(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Wh(e,t){zh=e,Hh=jh=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(jv=!0),e.firstContext=null)}function Uh(e){var t=e._currentValue;if(Hh!==e)if(e={context:e,memoizedValue:t,next:null},null===jh){if(null===zh)throw Error(ku(308));jh=e,zh.dependencies={lanes:0,firstContext:e}}else jh=jh.next=e;return t}var Gh=null;function Yh(e){null===Gh?Gh=[e]:Gh.push(e)}function Kh(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Yh(t)):(n.next=o.next,o.next=n),t.interleaved=n,Xh(e,r)}function Xh(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Zh=!1;function Jh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function eg(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tg(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Kb)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Xh(e,n)}return null===(o=r.interleaved)?(t.next=t,Yh(r)):(t.next=o.next,o.next=t),r.interleaved=t,Xh(e,n)}function ng(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,zd(e,n)}}function rg(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function og(e,t,n,r){var o=e.updateQueue;Zh=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(p=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,d,p):m))break e;d=oc({},d,p);break e;case 2:Zh=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);ry|=a,e.lanes=a,e.memoizedState=d}}function ig(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(ku(191,o));o.call(r)}}}var ag=(new Cu.Component).refs;function lg(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:oc({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var sg={isMounted:function(e){return!!(e=e._reactInternals)&&ud(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Sy(),o=Ey(e),i=eg(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=tg(e,i,o))&&(wy(t,e,o,r),ng(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Sy(),o=Ey(e),i=eg(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=tg(e,i,o))&&(wy(t,e,o,r),ng(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Sy(),r=Ey(e),o=eg(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=tg(e,o,r))&&(wy(t,e,r,n),ng(t,e,r))}};function ug(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Pf(n,r)||!Pf(o,i))}function cg(e,t,n){var r=!1,o=Ym,i=t.contextType;return"object"==typeof i&&null!==i?i=Uh(i):(o=Qm(t)?Zm:Km.current,i=(r=null!=(r=t.contextTypes))?Jm(e,o):Ym),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=sg,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function dg(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&sg.enqueueReplaceState(t,t.state,null)}function pg(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ag,Jh(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Uh(i):(i=Qm(t)?Zm:Km.current,o.context=Jm(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(lg(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&sg.enqueueReplaceState(o,o.state,null),og(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function fg(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(ku(309));var r=n.stateNode}if(!r)throw Error(ku(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===ag&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(ku(284));if(!n._owner)throw Error(ku(290,e))}return e}function mg(e,t){throw e=Object.prototype.toString.call(t),Error(ku(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function hg(e){return(0,e._init)(e._payload)}function gg(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=ex(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=ox(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===Vu?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Qu&&hg(i)===t.type)?((r=o(t,n.props)).ref=fg(e,t,n),r.return=e,r):((r=tx(n.type,n.key,n.props,null,e.mode,r)).ref=fg(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ix(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=nx(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ox(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Bu:return(n=tx(t.type,t.key,t.props,null,e.mode,n)).ref=fg(e,null,t),n.return=e,n;case $u:return(t=ix(t,e.mode,n)).return=e,t;case Qu:return d(e,(0,t._init)(t._payload),n)}if(Ec(t)||nc(t))return(t=nx(t,e.mode,n,null)).return=e,t;mg(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Bu:return n.key===o?s(e,t,n,r):null;case $u:return n.key===o?u(e,t,n,r):null;case Qu:return p(e,t,(o=n._init)(n._payload),r)}if(Ec(n)||nc(n))return null!==o?null:c(e,t,n,r,null);mg(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Bu:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case $u:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Qu:return f(e,t,n,(0,r._init)(r._payload),o)}if(Ec(r)||nc(r))return c(t,e=e.get(n)||null,r,o,null);mg(t,r)}return null}function m(o,a,l,s){for(var u=null,c=null,m=a,h=a=0,g=null;null!==m&&h<l.length;h++){m.index>h?(g=m,m=null):g=m.sibling;var v=p(o,m,l[h],s);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v,m=g}if(h===l.length)return n(o,m),Rh&&yh(o,h),u;if(null===m){for(;h<l.length;h++)null!==(m=d(o,l[h],s))&&(a=i(m,a,h),null===c?u=m:c.sibling=m,c=m);return Rh&&yh(o,h),u}for(m=r(o,m);h<l.length;h++)null!==(g=f(m,o,h,l[h],s))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),a=i(g,a,h),null===c?u=g:c.sibling=g,c=g);return e&&m.forEach((function(e){return t(o,e)})),Rh&&yh(o,h),u}function h(o,a,l,s){var u=nc(l);if("function"!=typeof u)throw Error(ku(150));if(null==(l=u.call(l)))throw Error(ku(151));for(var c=u=null,m=a,h=a=0,g=null,v=l.next();null!==m&&!v.done;h++,v=l.next()){m.index>h?(g=m,m=null):g=m.sibling;var b=p(o,m,v.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),a=i(b,a,h),null===c?u=b:c.sibling=b,c=b,m=g}if(v.done)return n(o,m),Rh&&yh(o,h),u;if(null===m){for(;!v.done;h++,v=l.next())null!==(v=d(o,v.value,s))&&(a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return Rh&&yh(o,h),u}for(m=r(o,m);!v.done;h++,v=l.next())null!==(v=f(m,o,h,v.value,s))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return e&&m.forEach((function(e){return t(o,e)})),Rh&&yh(o,h),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===Vu&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case Bu:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===Vu){if(7===c.tag){n(r,c.sibling),(i=o(c,l.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===Qu&&hg(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=fg(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===Vu?((i=nx(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=tx(l.type,l.key,l.props,null,r.mode,s)).ref=fg(r,i,l),s.return=r,r=s)}return a(r);case $u:e:{for(c=l.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=ix(l,r.mode,s)).return=r,r=i}return a(r);case Qu:return e(r,i,(c=l._init)(l._payload),s)}if(Ec(l))return m(r,i,l,s);if(nc(l))return h(r,i,l,s);mg(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=ox(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var vg=gg(!0),bg=gg(!1),yg={},xg=Wm(yg),Sg=Wm(yg),Eg=Wm(yg);function wg(e){if(e===yg)throw Error(ku(174));return e}function Cg(e,t){switch(Gm(Eg,t),Gm(Sg,e),Gm(xg,yg),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pc(null,"");break;default:t=Pc(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Um(xg),Gm(xg,t)}function Rg(){Um(xg),Um(Sg),Um(Eg)}function kg(e){wg(Eg.current);var t=wg(xg.current),n=Pc(t,e.type);t!==n&&(Gm(Sg,e),Gm(xg,n))}function Dg(e){Sg.current===e&&(Um(xg),Um(Sg))}var Ag=Wm(0);function Pg(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ig=[];function Tg(){for(var e=0;e<Ig.length;e++)Ig[e]._workInProgressVersionPrimary=null;Ig.length=0}var Lg=Hu.ReactCurrentDispatcher,Mg=Hu.ReactCurrentBatchConfig,qg=0,Og=null,_g=null,Ng=null,Fg=!1,zg=!1,jg=0,Hg=0;function Bg(){throw Error(ku(321))}function $g(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Af(e[n],t[n]))return!1;return!0}function Vg(e,t,n,r,o,i){if(qg=i,Og=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Lg.current=null===e||null===e.memoizedState?Dv:Av,e=n(r,o),zg){i=0;do{if(zg=!1,jg=0,25<=i)throw Error(ku(301));i+=1,Ng=_g=null,t.updateQueue=null,Lg.current=Pv,e=n(r,o)}while(zg)}if(Lg.current=kv,t=null!==_g&&null!==_g.next,qg=0,Ng=_g=Og=null,Fg=!1,t)throw Error(ku(300));return e}function Wg(){var e=0!==jg;return jg=0,e}function Ug(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ng?Og.memoizedState=Ng=e:Ng=Ng.next=e,Ng}function Gg(){if(null===_g){var e=Og.alternate;e=null!==e?e.memoizedState:null}else e=_g.next;var t=null===Ng?Og.memoizedState:Ng.next;if(null!==t)Ng=t,_g=e;else{if(null===e)throw Error(ku(310));e={memoizedState:(_g=e).memoizedState,baseState:_g.baseState,baseQueue:_g.baseQueue,queue:_g.queue,next:null},null===Ng?Og.memoizedState=Ng=e:Ng=Ng.next=e}return Ng}function Yg(e,t){return"function"==typeof t?t(e):t}function Kg(e){var t=Gg(),n=t.queue;if(null===n)throw Error(ku(311));n.lastRenderedReducer=e;var r=_g,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((qg&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(l=s=d,a=r):s=s.next=d,Og.lanes|=c,ry|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,Af(r,t.memoizedState)||(jv=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,Og.lanes|=i,ry|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Xg(e){var t=Gg(),n=t.queue;if(null===n)throw Error(ku(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);Af(i,t.memoizedState)||(jv=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Zg(){}function Jg(e,t){var n=Og,r=Gg(),o=t(),i=!Af(r.memoizedState,o);if(i&&(r.memoizedState=o,jv=!0),r=r.queue,cv(tv.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==Ng&&1&Ng.memoizedState.tag){if(n.flags|=2048,iv(9,ev.bind(null,n,r,o,t),void 0,null),null===Xb)throw Error(ku(349));0!=(30&qg)||Qg(n,t,o)}return o}function Qg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Og.updateQueue)?(t={lastEffect:null,stores:null},Og.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ev(e,t,n,r){t.value=n,t.getSnapshot=r,nv(t)&&rv(e)}function tv(e,t,n){return n((function(){nv(t)&&rv(e)}))}function nv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Af(e,n)}catch(e){return!0}}function rv(e){var t=Xh(e,1);null!==t&&wy(t,e,1,-1)}function ov(e){var t=Ug();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yg,lastRenderedState:e},t.queue=e,e=e.dispatch=Ev.bind(null,Og,e),[t.memoizedState,e]}function iv(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Og.updateQueue)?(t={lastEffect:null,stores:null},Og.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function av(){return Gg().memoizedState}function lv(e,t,n,r){var o=Ug();Og.flags|=e,o.memoizedState=iv(1|t,n,void 0,void 0===r?null:r)}function sv(e,t,n,r){var o=Gg();r=void 0===r?null:r;var i=void 0;if(null!==_g){var a=_g.memoizedState;if(i=a.destroy,null!==r&&$g(r,a.deps))return void(o.memoizedState=iv(t,n,i,r))}Og.flags|=e,o.memoizedState=iv(1|t,n,i,r)}function uv(e,t){return lv(8390656,8,e,t)}function cv(e,t){return sv(2048,8,e,t)}function dv(e,t){return sv(4,2,e,t)}function pv(e,t){return sv(4,4,e,t)}function fv(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function mv(e,t,n){return n=null!=n?n.concat([e]):null,sv(4,4,fv.bind(null,t,e),n)}function hv(){}function gv(e,t){var n=Gg();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&$g(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function vv(e,t){var n=Gg();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&$g(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function bv(e,t,n){return 0==(21&qg)?(e.baseState&&(e.baseState=!1,jv=!0),e.memoizedState=n):(Af(n,t)||(n=_d(),Og.lanes|=n,ry|=n,e.baseState=!0),t)}function yv(e,t){var n=jd;jd=0!==n&&4>n?n:4,e(!0);var r=Mg.transition;Mg.transition={};try{e(!1),t()}finally{jd=n,Mg.transition=r}}function xv(){return Gg().memoizedState}function Sv(e,t,n){var r=Ey(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wv(e))Cv(t,n);else if(null!==(n=Kh(e,t,n,r))){wy(n,e,r,Sy()),Rv(n,t,r)}}function Ev(e,t,n){var r=Ey(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wv(e))Cv(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Af(l,a)){var s=t.interleaved;return null===s?(o.next=o,Yh(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Kh(e,t,o,r))&&(wy(n,e,r,o=Sy()),Rv(n,t,r))}}function wv(e){var t=e.alternate;return e===Og||null!==t&&t===Og}function Cv(e,t){zg=Fg=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rv(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,zd(e,n)}}var kv={readContext:Uh,useCallback:Bg,useContext:Bg,useEffect:Bg,useImperativeHandle:Bg,useInsertionEffect:Bg,useLayoutEffect:Bg,useMemo:Bg,useReducer:Bg,useRef:Bg,useState:Bg,useDebugValue:Bg,useDeferredValue:Bg,useTransition:Bg,useMutableSource:Bg,useSyncExternalStore:Bg,useId:Bg,unstable_isNewReconciler:!1},Dv={readContext:Uh,useCallback:function(e,t){return Ug().memoizedState=[e,void 0===t?null:t],e},useContext:Uh,useEffect:uv,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,lv(4194308,4,fv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return lv(4194308,4,e,t)},useInsertionEffect:function(e,t){return lv(4,2,e,t)},useMemo:function(e,t){var n=Ug();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ug();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Sv.bind(null,Og,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ug().memoizedState=e},useState:ov,useDebugValue:hv,useDeferredValue:function(e){return Ug().memoizedState=e},useTransition:function(){var e=ov(!1),t=e[0];return e=yv.bind(null,e[1]),Ug().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Og,o=Ug();if(Rh){if(void 0===n)throw Error(ku(407));n=n()}else{if(n=t(),null===Xb)throw Error(ku(349));0!=(30&qg)||Qg(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,uv(tv.bind(null,r,i,e),[e]),r.flags|=2048,iv(9,ev.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ug(),t=Xb.identifierPrefix;if(Rh){var n=bh;t=":"+t+"R"+(n=(vh&~(1<<32-Dd(vh)-1)).toString(32)+n),0<(n=jg++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Hg++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Av={readContext:Uh,useCallback:gv,useContext:Uh,useEffect:cv,useImperativeHandle:mv,useInsertionEffect:dv,useLayoutEffect:pv,useMemo:vv,useReducer:Kg,useRef:av,useState:function(){return Kg(Yg)},useDebugValue:hv,useDeferredValue:function(e){return bv(Gg(),_g.memoizedState,e)},useTransition:function(){return[Kg(Yg)[0],Gg().memoizedState]},useMutableSource:Zg,useSyncExternalStore:Jg,useId:xv,unstable_isNewReconciler:!1},Pv={readContext:Uh,useCallback:gv,useContext:Uh,useEffect:cv,useImperativeHandle:mv,useInsertionEffect:dv,useLayoutEffect:pv,useMemo:vv,useReducer:Xg,useRef:av,useState:function(){return Xg(Yg)},useDebugValue:hv,useDeferredValue:function(e){var t=Gg();return null===_g?t.memoizedState=e:bv(t,_g.memoizedState,e)},useTransition:function(){return[Xg(Yg)[0],Gg().memoizedState]},useMutableSource:Zg,useSyncExternalStore:Jg,useId:xv,unstable_isNewReconciler:!1};function Iv(e,t){try{var n="",r=t;do{n+=sc(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function Tv(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Lv(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Mv="function"==typeof WeakMap?WeakMap:Map;function qv(e,t,n){(n=eg(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){dy||(dy=!0,py=r),Lv(0,t)},n}function Ov(e,t,n){(n=eg(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Lv(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){Lv(0,t),"function"!=typeof r&&(null===fy?fy=new Set([this]):fy.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function _v(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Mv;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Uy.bind(null,e,t,n),t.then(e,e))}function Nv(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Fv(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=eg(-1,1)).tag=2,tg(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var zv=Hu.ReactCurrentOwner,jv=!1;function Hv(e,t,n,r){t.child=null===e?bg(t,null,n,r):vg(t,e.child,n,r)}function Bv(e,t,n,r,o){n=n.render;var i=t.ref;return Wh(t,o),r=Vg(e,t,n,r,i,o),n=Wg(),null===e||jv?(Rh&&n&&Sh(t),t.flags|=1,Hv(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,db(e,t,o))}function $v(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Qy(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=tx(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Vv(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Pf)(a,r)&&e.ref===t.ref)return db(e,t,o)}return t.flags|=1,(e=ex(i,r)).ref=t.ref,e.return=t,t.child=e}function Vv(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Pf(i,r)&&e.ref===t.ref){if(jv=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,db(e,t,o);0!=(131072&e.flags)&&(jv=!0)}}return Gv(e,t,n,r,o)}function Wv(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Gm(ey,Qb),Qb|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Gm(ey,Qb),Qb|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Gm(ey,Qb),Qb|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Gm(ey,Qb),Qb|=r;return Hv(e,t,o,n),t.child}function Uv(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Gv(e,t,n,r,o){var i=Qm(n)?Zm:Km.current;return i=Jm(t,i),Wh(t,o),n=Vg(e,t,n,r,i,o),r=Wg(),null===e||jv?(Rh&&r&&Sh(t),t.flags|=1,Hv(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,db(e,t,o))}function Yv(e,t,n,r,o){if(Qm(n)){var i=!0;rh(t)}else i=!1;if(Wh(t,o),null===t.stateNode)cb(e,t),cg(t,n,r),pg(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Uh(u):u=Jm(t,u=Qm(n)?Zm:Km.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&dg(t,a,r,u),Zh=!1;var p=t.memoizedState;a.state=p,og(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Xm.current||Zh?("function"==typeof c&&(lg(t,n,c,r),s=t.memoizedState),(l=Zh||ug(t,n,l,r,p,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Qh(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Nh(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Uh(s):s=Jm(t,s=Qm(n)?Zm:Km.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&dg(t,a,r,s),Zh=!1,p=t.memoizedState,a.state=p,og(t,r,a,o);var m=t.memoizedState;l!==d||p!==m||Xm.current||Zh?("function"==typeof f&&(lg(t,n,f,r),m=t.memoizedState),(u=Zh||ug(t,n,u,r,p,m,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Kv(e,t,n,r,i,o)}function Kv(e,t,n,r,o,i){Uv(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&oh(t,n,!1),db(e,t,i);r=t.stateNode,zv.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=vg(t,e.child,null,i),t.child=vg(t,null,l,i)):Hv(e,t,l,i),t.memoizedState=r.state,o&&oh(t,n,!0),t.child}function Xv(e){var t=e.stateNode;t.pendingContext?th(0,t.pendingContext,t.pendingContext!==t.context):t.context&&th(0,t.context,!1),Cg(e,t.containerInfo)}function Zv(e,t,n,r,o){return qh(),Oh(o),t.flags|=256,Hv(e,t,n,r),t.child}var Jv,Qv,eb,tb,nb={dehydrated:null,treeContext:null,retryLane:0};function rb(e){return{baseLanes:e,cachePool:null,transitions:null}}function ob(e,t,n){var r,o=t.pendingProps,i=Ag.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Gm(Ag,1&i),null===e)return Ih(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=rx(l,o,0,null),e=nx(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=rb(n),t.memoizedState=nb,e):ib(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,ab(e,t,a,r=Tv(Error(ku(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=rx({mode:"visible",children:r.children},o,0,null),(i=nx(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&vg(t,e.child,null,a),t.child.memoizedState=rb(a),t.memoizedState=nb,i);if(0==(1&t.mode))return ab(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,ab(e,t,a,r=Tv(i=Error(ku(419)),r,void 0))}if(l=0!=(a&e.childLanes),jv||l){if(null!==(r=Xb)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Xh(e,o),wy(r,e,o,-1))}return _y(),ab(e,t,a,r=Tv(Error(ku(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Yy.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Ch=Im(o.nextSibling),wh=t,Rh=!0,kh=null,null!==e&&(mh[hh++]=vh,mh[hh++]=bh,mh[hh++]=gh,vh=e.id,bh=e.overflow,gh=t),t=ib(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=ex(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?a=ex(r,a):(a=nx(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?rb(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=nb,o}return e=(a=e.child).sibling,o=ex(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function ib(e,t){return(t=rx({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function ab(e,t,n,r){return null!==r&&Oh(r),vg(t,e.child,null,n),(e=ib(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function lb(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Vh(e.return,t,n)}function sb(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function ub(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Hv(e,t,r.children,n),0!=(2&(r=Ag.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&lb(e,n,t);else if(19===e.tag)lb(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Gm(Ag,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Pg(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),sb(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Pg(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}sb(t,!0,n,null,i);break;case"together":sb(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cb(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function db(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ry|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(ku(153));if(null!==t.child){for(n=ex(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ex(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function pb(e,t){if(!Rh)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fb(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function mb(e,t,n){var r=t.pendingProps;switch(Eh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fb(t),null;case 1:case 17:return Qm(t.type)&&eh(),fb(t),null;case 3:return r=t.stateNode,Rg(),Um(Xm),Um(Km),Tg(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Lh(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==kh&&(Dy(kh),kh=null))),Qv(e,t),fb(t),null;case 5:Dg(t);var o=wg(Eg.current);if(n=t.type,null!==e&&null!=t.stateNode)eb(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(ku(166));return fb(t),null}if(e=wg(xg.current),Lh(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Mm]=t,r[qm]=i,e=0!=(1&t.mode),n){case"dialog":am("cancel",r),am("close",r);break;case"iframe":case"object":case"embed":am("load",r);break;case"video":case"audio":for(o=0;o<nm.length;o++)am(nm[o],r);break;case"source":am("error",r);break;case"img":case"image":case"link":am("error",r),am("load",r);break;case"details":am("toggle",r);break;case"input":vc(r,i),am("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},am("invalid",r);break;case"textarea":Rc(r,i),am("invalid",r)}for(var a in zc(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&ym(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&ym(r.textContent,l,e),o=["children",""+l]):Au.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&am("scroll",r)}switch(n){case"input":fc(r),xc(r,i,!0);break;case"textarea":fc(r),Dc(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=xm)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=Ac(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Mm]=t,e[qm]=r,Jv(e,t,!1,!1),t.stateNode=e;e:{switch(a=jc(n,r),n){case"dialog":am("cancel",e),am("close",e),o=r;break;case"iframe":case"object":case"embed":am("load",e),o=r;break;case"video":case"audio":for(o=0;o<nm.length;o++)am(nm[o],e);o=r;break;case"source":am("error",e),o=r;break;case"img":case"image":case"link":am("error",e),am("load",e),o=r;break;case"details":am("toggle",e),o=r;break;case"input":vc(e,r),o=gc(e,r),am("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=oc({},r,{value:void 0}),am("invalid",e);break;case"textarea":Rc(e,r),o=Cc(e,r),am("invalid",e)}for(i in zc(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?Nc(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&Lc(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&Mc(e,s):"number"==typeof s&&Mc(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(Au.hasOwnProperty(i)?null!=s&&"onScroll"===i&&am("scroll",e):null!=s&&ju(e,i,s,a))}switch(n){case"input":fc(e),xc(e,r,!1);break;case"textarea":fc(e),Dc(e);break;case"option":null!=r.value&&e.setAttribute("value",""+dc(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?wc(e,!!r.multiple,i,!1):null!=r.defaultValue&&wc(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=xm)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return fb(t),null;case 6:if(e&&null!=t.stateNode)tb(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(ku(166));if(n=wg(Eg.current),wg(xg.current),Lh(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mm]=t,(i=r.nodeValue!==n)&&null!==(e=wh))switch(e.tag){case 3:ym(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ym(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Mm]=t,t.stateNode=r}return fb(t),null;case 13:if(Um(Ag),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Rh&&null!==Ch&&0!=(1&t.mode)&&0==(128&t.flags))Mh(),qh(),t.flags|=98560,i=!1;else if(i=Lh(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(ku(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(ku(317));i[Mm]=t}else qh(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fb(t),i=!1}else null!==kh&&(Dy(kh),kh=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&Ag.current)?0===ty&&(ty=3):_y())),null!==t.updateQueue&&(t.flags|=4),fb(t),null);case 4:return Rg(),Qv(e,t),null===e&&um(t.stateNode.containerInfo),fb(t),null;case 10:return $h(t.type._context),fb(t),null;case 19:if(Um(Ag),null===(i=t.memoizedState))return fb(t),null;if(r=0!=(128&t.flags),null===(a=i.rendering))if(r)pb(i,!1);else{if(0!==ty||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=Pg(e))){for(t.flags|=128,pb(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Gm(Ag,1&Ag.current|2),t.child}e=e.sibling}null!==i.tail&&bd()>uy&&(t.flags|=128,r=!0,pb(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Pg(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),pb(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!Rh)return fb(t),null}else 2*bd()-i.renderingStartTime>uy&&1073741824!==n&&(t.flags|=128,r=!0,pb(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=bd(),t.sibling=null,n=Ag.current,Gm(Ag,r?1&n|2:1&n),t):(fb(t),null);case 22:case 23:return Ly(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Qb)&&(fb(t),6&t.subtreeFlags&&(t.flags|=8192)):fb(t),null;case 24:case 25:return null}throw Error(ku(156,t.tag))}function hb(e,t){switch(Eh(t),t.tag){case 1:return Qm(t.type)&&eh(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Rg(),Um(Xm),Um(Km),Tg(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Dg(t),null;case 13:if(Um(Ag),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(ku(340));qh()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Um(Ag),null;case 4:return Rg(),null;case 10:return $h(t.type._context),null;case 22:case 23:return Ly(),null;default:return null}}Jv=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qv=function(){},eb=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,wg(xg.current);var i,a=null;switch(n){case"input":o=gc(e,o),r=gc(e,r),a=[];break;case"select":o=oc({},o,{value:void 0}),r=oc({},r,{value:void 0}),a=[];break;case"textarea":o=Cc(e,o),r=Cc(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=xm)}for(u in zc(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(Au.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(Au.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&am("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},tb=function(e,t,n,r){n!==r&&(t.flags|=4)};var gb=!1,vb=!1,bb="function"==typeof WeakSet?WeakSet:Set,yb=null;function xb(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Wy(e,t,n)}else n.current=null}function Sb(e,t,n){try{n()}catch(n){Wy(e,t,n)}}var Eb=!1;function wb(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Sb(t,n,i)}o=o.next}while(o!==r)}}function Cb(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Rb(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function kb(e){var t=e.alternate;null!==t&&(e.alternate=null,kb(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Mm],delete t[qm],delete t[_m],delete t[Nm],delete t[Fm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Db(e){return 5===e.tag||3===e.tag||4===e.tag}function Ab(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Db(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Pb(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=xm));else if(4!==r&&null!==(e=e.child))for(Pb(e,t,n),e=e.sibling;null!==e;)Pb(e,t,n),e=e.sibling}function Ib(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Ib(e,t,n),e=e.sibling;null!==e;)Ib(e,t,n),e=e.sibling}var Tb=null,Lb=!1;function Mb(e,t,n){for(n=n.child;null!==n;)qb(e,t,n),n=n.sibling}function qb(e,t,n){if(kd&&"function"==typeof kd.onCommitFiberUnmount)try{kd.onCommitFiberUnmount(Rd,n)}catch(e){}switch(n.tag){case 5:vb||xb(n,t);case 6:var r=Tb,o=Lb;Tb=null,Mb(e,t,n),Lb=o,null!==(Tb=r)&&(Lb?(e=Tb,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Tb.removeChild(n.stateNode));break;case 18:null!==Tb&&(Lb?(e=Tb,n=n.stateNode,8===e.nodeType?Pm(e.parentNode,n):1===e.nodeType&&Pm(e,n),up(e)):Pm(Tb,n.stateNode));break;case 4:r=Tb,o=Lb,Tb=n.stateNode.containerInfo,Lb=!0,Mb(e,t,n),Tb=r,Lb=o;break;case 0:case 11:case 14:case 15:if(!vb&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&Sb(n,t,a),o=o.next}while(o!==r)}Mb(e,t,n);break;case 1:if(!vb&&(xb(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Wy(n,t,e)}Mb(e,t,n);break;case 21:Mb(e,t,n);break;case 22:1&n.mode?(vb=(r=vb)||null!==n.memoizedState,Mb(e,t,n),vb=r):Mb(e,t,n);break;default:Mb(e,t,n)}}function Ob(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new bb),t.forEach((function(t){var r=Ky.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function _b(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:Tb=l.stateNode,Lb=!1;break e;case 3:case 4:Tb=l.stateNode.containerInfo,Lb=!0;break e}l=l.return}if(null===Tb)throw Error(ku(160));qb(i,a,o),Tb=null,Lb=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Wy(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Nb(t,e),t=t.sibling}function Nb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_b(t,e),Fb(e),4&r){try{wb(3,e,e.return),Cb(3,e)}catch(t){Wy(e,e.return,t)}try{wb(5,e,e.return)}catch(t){Wy(e,e.return,t)}}break;case 1:_b(t,e),Fb(e),512&r&&null!==n&&xb(n,n.return);break;case 5:if(_b(t,e),Fb(e),512&r&&null!==n&&xb(n,n.return),32&e.flags){var o=e.stateNode;try{Mc(o,"")}catch(t){Wy(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&bc(o,i),jc(l,a);var u=jc(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?Nc(o,d):"dangerouslySetInnerHTML"===c?Lc(o,d):"children"===c?Mc(o,d):ju(o,c,d,u)}switch(l){case"input":yc(o,i);break;case"textarea":kc(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?wc(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?wc(o,!!i.multiple,i.defaultValue,!0):wc(o,!!i.multiple,i.multiple?[]:"",!1))}o[qm]=i}catch(t){Wy(e,e.return,t)}}break;case 6:if(_b(t,e),Fb(e),4&r){if(null===e.stateNode)throw Error(ku(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Wy(e,e.return,t)}}break;case 3:if(_b(t,e),Fb(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{up(t.containerInfo)}catch(t){Wy(e,e.return,t)}break;case 4:default:_b(t,e),Fb(e);break;case 13:_b(t,e),Fb(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(sy=bd())),4&r&&Ob(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(vb=(u=vb)||c,_b(t,e),vb=u):_b(t,e),Fb(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(yb=e,c=e.child;null!==c;){for(d=yb=c;null!==yb;){switch(f=(p=yb).child,p.tag){case 0:case 11:case 14:case 15:wb(4,p,p.return);break;case 1:xb(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Wy(r,n,e)}}break;case 5:xb(p,p.return);break;case 22:if(null!==p.memoizedState){Bb(d);continue}}null!==f?(f.return=p,yb=f):Bb(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=_c("display",a))}catch(t){Wy(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){Wy(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:_b(t,e),Fb(e),4&r&&Ob(e);case 21:}}function Fb(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Db(n)){var r=n;break e}n=n.return}throw Error(ku(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(Mc(o,""),r.flags&=-33),Ib(e,Ab(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;Pb(e,Ab(e),i);break;default:throw Error(ku(161))}}catch(t){Wy(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function zb(e,t,n){yb=e,jb(e)}function jb(e,t,n){for(var r=0!=(1&e.mode);null!==yb;){var o=yb,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||gb;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||vb;l=gb;var u=vb;if(gb=a,(vb=s)&&!u)for(yb=o;null!==yb;)s=(a=yb).child,22===a.tag&&null!==a.memoizedState?$b(o):null!==s?(s.return=a,yb=s):$b(o);for(;null!==i;)yb=i,jb(i),i=i.sibling;yb=o,gb=l,vb=u}Hb(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,yb=i):Hb(e)}}function Hb(e){for(;null!==yb;){var t=yb;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:vb||Cb(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!vb)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Nh(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&ig(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}ig(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&up(d)}}}break;default:throw Error(ku(163))}vb||512&t.flags&&Rb(t)}catch(e){Wy(t,t.return,e)}}if(t===e){yb=null;break}if(null!==(n=t.sibling)){n.return=t.return,yb=n;break}yb=t.return}}function Bb(e){for(;null!==yb;){var t=yb;if(t===e){yb=null;break}var n=t.sibling;if(null!==n){n.return=t.return,yb=n;break}yb=t.return}}function $b(e){for(;null!==yb;){var t=yb;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Cb(4,t)}catch(e){Wy(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Wy(t,o,e)}}var i=t.return;try{Rb(t)}catch(e){Wy(t,i,e)}break;case 5:var a=t.return;try{Rb(t)}catch(e){Wy(t,a,e)}}}catch(e){Wy(t,t.return,e)}if(t===e){yb=null;break}var l=t.sibling;if(null!==l){l.return=t.return,yb=l;break}yb=t.return}}var Vb,Wb=Math.ceil,Ub=Hu.ReactCurrentDispatcher,Gb=Hu.ReactCurrentOwner,Yb=Hu.ReactCurrentBatchConfig,Kb=0,Xb=null,Zb=null,Jb=0,Qb=0,ey=Wm(0),ty=0,ny=null,ry=0,oy=0,iy=0,ay=null,ly=null,sy=0,uy=1/0,cy=null,dy=!1,py=null,fy=null,my=!1,hy=null,gy=0,vy=0,by=null,yy=-1,xy=0;function Sy(){return 0!=(6&Kb)?bd():-1!==yy?yy:yy=bd()}function Ey(e){return 0==(1&e.mode)?1:0!=(2&Kb)&&0!==Jb?Jb&-Jb:null!==_h.transition?(0===xy&&(xy=_d()),xy):0!==(e=jd)?e:e=void 0===(e=window.event)?16:vp(e.type)}function wy(e,t,n,r){if(50<vy)throw vy=0,by=null,Error(ku(185));Fd(e,n,r),0!=(2&Kb)&&e===Xb||(e===Xb&&(0==(2&Kb)&&(oy|=n),4===ty&&Ay(e,Jb)),Cy(e,r),1===n&&0===Kb&&0==(1&t.mode)&&(uy=bd()+500,ah&&uh()))}function Cy(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Dd(i),l=1<<a,s=o[a];-1===s?0!=(l&n)&&0==(l&r)||(o[a]=qd(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=Md(e,e===Xb?Jb:0);if(0===r)null!==n&&hd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&hd(n),1===t)0===e.tag?function(e){ah=!0,sh(e)}(Py.bind(null,e)):sh(Py.bind(null,e)),Dm((function(){0==(6&Kb)&&uh()})),n=null;else{switch(Hd(r)){case 1:n=xd;break;case 4:n=Sd;break;case 16:default:n=Ed;break;case 536870912:n=Cd}n=Xy(n,Ry.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ry(e,t){if(yy=-1,xy=0,0!=(6&Kb))throw Error(ku(327));var n=e.callbackNode;if($y()&&e.callbackNode!==n)return null;var r=Md(e,e===Xb?Jb:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Ny(e,r);else{t=r;var o=Kb;Kb|=2;var i=Oy();for(Xb===e&&Jb===t||(cy=null,uy=bd()+500,My(e,t));;)try{zy();break}catch(t){qy(e,t)}Bh(),Ub.current=i,Kb=o,null!==Zb?t=0:(Xb=null,Jb=0,t=ty)}if(0!==t){if(2===t&&(0!==(o=Od(e))&&(r=o,t=ky(e,o))),1===t)throw n=ny,My(e,0),Ay(e,r),Cy(e,bd()),n;if(6===t)Ay(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Af(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=Ny(e,r))&&(0!==(i=Od(e))&&(r=i,t=ky(e,i))),1===t))throw n=ny,My(e,0),Ay(e,r),Cy(e,bd()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(ku(345));case 2:case 5:By(e,ly,cy);break;case 3:if(Ay(e,r),(130023424&r)===r&&10<(t=sy+500-bd())){if(0!==Md(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Sy(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Cm(By.bind(null,e,ly,cy),t);break}By(e,ly,cy);break;case 4:if(Ay(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Dd(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=bd()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Wb(r/1960))-r)){e.timeoutHandle=Cm(By.bind(null,e,ly,cy),r);break}By(e,ly,cy);break;default:throw Error(ku(329))}}}return Cy(e,bd()),e.callbackNode===n?Ry.bind(null,e):null}function ky(e,t){var n=ay;return e.current.memoizedState.isDehydrated&&(My(e,t).flags|=256),2!==(e=Ny(e,t))&&(t=ly,ly=n,null!==t&&Dy(t)),e}function Dy(e){null===ly?ly=e:ly.push.apply(ly,e)}function Ay(e,t){for(t&=~iy,t&=~oy,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Dd(t),r=1<<n;e[n]=-1,t&=~r}}function Py(e){if(0!=(6&Kb))throw Error(ku(327));$y();var t=Md(e,0);if(0==(1&t))return Cy(e,bd()),null;var n=Ny(e,t);if(0!==e.tag&&2===n){var r=Od(e);0!==r&&(t=r,n=ky(e,r))}if(1===n)throw n=ny,My(e,0),Ay(e,t),Cy(e,bd()),n;if(6===n)throw Error(ku(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,By(e,ly,cy),Cy(e,bd()),null}function Iy(e,t){var n=Kb;Kb|=1;try{return e(t)}finally{0===(Kb=n)&&(uy=bd()+500,ah&&uh())}}function Ty(e){null!==hy&&0===hy.tag&&0==(6&Kb)&&$y();var t=Kb;Kb|=1;var n=Yb.transition,r=jd;try{if(Yb.transition=null,jd=1,e)return e()}finally{jd=r,Yb.transition=n,0==(6&(Kb=t))&&uh()}}function Ly(){Qb=ey.current,Um(ey)}function My(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Rm(n)),null!==Zb)for(n=Zb.return;null!==n;){var r=n;switch(Eh(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&eh();break;case 3:Rg(),Um(Xm),Um(Km),Tg();break;case 5:Dg(r);break;case 4:Rg();break;case 13:case 19:Um(Ag);break;case 10:$h(r.type._context);break;case 22:case 23:Ly()}n=n.return}if(Xb=e,Zb=e=ex(e.current,null),Jb=Qb=t,ty=0,ny=null,iy=oy=ry=0,ly=ay=null,null!==Gh){for(t=0;t<Gh.length;t++)if(null!==(r=(n=Gh[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Gh=null}return e}function qy(e,t){for(;;){var n=Zb;try{if(Bh(),Lg.current=kv,Fg){for(var r=Og.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Fg=!1}if(qg=0,Ng=_g=Og=null,zg=!1,jg=0,Gb.current=null,null===n||null===n.return){ty=1,ny=t,Zb=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Jb,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=l,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=Nv(a);if(null!==f){f.flags&=-257,Fv(f,a,l,0,t),1&f.mode&&_v(i,u,t),s=u;var m=(t=f).updateQueue;if(null===m){var h=new Set;h.add(s),t.updateQueue=h}else m.add(s);break e}if(0==(1&t)){_v(i,u,t),_y();break e}s=Error(ku(426))}else if(Rh&&1&l.mode){var g=Nv(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Fv(g,a,l,0,t),Oh(Iv(s,l));break e}}i=s=Iv(s,l),4!==ty&&(ty=2),null===ay?ay=[i]:ay.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,rg(i,qv(0,s,t));break e;case 1:l=s;var v=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===fy||!fy.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,rg(i,Ov(i,l,t));break e}}i=i.return}while(null!==i)}Hy(n)}catch(e){t=e,Zb===n&&null!==n&&(Zb=n=n.return);continue}break}}function Oy(){var e=Ub.current;return Ub.current=kv,null===e?kv:e}function _y(){0!==ty&&3!==ty&&2!==ty||(ty=4),null===Xb||0==(268435455&ry)&&0==(268435455&oy)||Ay(Xb,Jb)}function Ny(e,t){var n=Kb;Kb|=2;var r=Oy();for(Xb===e&&Jb===t||(cy=null,My(e,t));;)try{Fy();break}catch(t){qy(e,t)}if(Bh(),Kb=n,Ub.current=r,null!==Zb)throw Error(ku(261));return Xb=null,Jb=0,ty}function Fy(){for(;null!==Zb;)jy(Zb)}function zy(){for(;null!==Zb&&!gd();)jy(Zb)}function jy(e){var t=Vb(e.alternate,e,Qb);e.memoizedProps=e.pendingProps,null===t?Hy(e):Zb=t,Gb.current=null}function Hy(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=mb(n,t,Qb)))return void(Zb=n)}else{if(null!==(n=hb(n,t)))return n.flags&=32767,void(Zb=n);if(null===e)return ty=6,void(Zb=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Zb=t);Zb=t=e}while(null!==t);0===ty&&(ty=5)}function By(e,t,n){var r=jd,o=Yb.transition;try{Yb.transition=null,jd=1,function(e,t,n,r){do{$y()}while(null!==hy);if(0!=(6&Kb))throw Error(ku(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ku(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Dd(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Xb&&(Zb=Xb=null,Jb=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||my||(my=!0,Xy(Ed,(function(){return $y(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Yb.transition,Yb.transition=null;var a=jd;jd=1;var l=Kb;Kb|=4,Gb.current=null,function(e,t){if(Sm=dp,qf(e=Mf())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++c===r&&(s=a),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Em={focusedElem:e,selectionRange:n},dp=!1,yb=t;null!==yb;)if(e=(t=yb).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,yb=e;else for(;null!==yb;){t=yb;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var h=m.memoizedProps,g=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:Nh(t.type,h),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(ku(163))}}catch(e){Wy(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,yb=e;break}yb=t.return}m=Eb,Eb=!1}(e,n),Nb(n,e),Of(Em),dp=!!Sm,Em=Sm=null,e.current=n,zb(n),vd(),Kb=l,jd=a,Yb.transition=i}else e.current=n;if(my&&(my=!1,hy=e,gy=o),i=e.pendingLanes,0===i&&(fy=null),function(e){if(kd&&"function"==typeof kd.onCommitFiberRoot)try{kd.onCommitFiberRoot(Rd,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),Cy(e,bd()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(dy)throw dy=!1,e=py,py=null,e;0!=(1&gy)&&0!==e.tag&&$y(),i=e.pendingLanes,0!=(1&i)?e===by?vy++:(vy=0,by=e):vy=0,uh()}(e,t,n,r)}finally{Yb.transition=o,jd=r}return null}function $y(){if(null!==hy){var e=Hd(gy),t=Yb.transition,n=jd;try{if(Yb.transition=null,jd=16>e?16:e,null===hy)var r=!1;else{if(e=hy,hy=null,gy=0,0!=(6&Kb))throw Error(ku(331));var o=Kb;for(Kb|=4,yb=e.current;null!==yb;){var i=yb,a=i.child;if(0!=(16&yb.flags)){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(yb=u;null!==yb;){var c=yb;switch(c.tag){case 0:case 11:case 15:wb(8,c,i)}var d=c.child;if(null!==d)d.return=c,yb=d;else for(;null!==yb;){var p=(c=yb).sibling,f=c.return;if(kb(c),c===u){yb=null;break}if(null!==p){p.return=f,yb=p;break}yb=f}}}var m=i.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var g=h.sibling;h.sibling=null,h=g}while(null!==h)}}yb=i}}if(0!=(2064&i.subtreeFlags)&&null!==a)a.return=i,yb=a;else e:for(;null!==yb;){if(0!=(2048&(i=yb).flags))switch(i.tag){case 0:case 11:case 15:wb(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,yb=v;break e}yb=i.return}}var b=e.current;for(yb=b;null!==yb;){var y=(a=yb).child;if(0!=(2064&a.subtreeFlags)&&null!==y)y.return=a,yb=y;else e:for(a=b;null!==yb;){if(0!=(2048&(l=yb).flags))try{switch(l.tag){case 0:case 11:case 15:Cb(9,l)}}catch(e){Wy(l,l.return,e)}if(l===a){yb=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,yb=x;break e}yb=l.return}}if(Kb=o,uh(),kd&&"function"==typeof kd.onPostCommitFiberRoot)try{kd.onPostCommitFiberRoot(Rd,e)}catch(e){}r=!0}return r}finally{jd=n,Yb.transition=t}}return!1}function Vy(e,t,n){e=tg(e,t=qv(0,t=Iv(n,t),1),1),t=Sy(),null!==e&&(Fd(e,1,t),Cy(e,t))}function Wy(e,t,n){if(3===e.tag)Vy(e,e,n);else for(;null!==t;){if(3===t.tag){Vy(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===fy||!fy.has(r))){t=tg(t,e=Ov(t,e=Iv(n,e),1),1),e=Sy(),null!==t&&(Fd(t,1,e),Cy(t,e));break}}t=t.return}}function Uy(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Sy(),e.pingedLanes|=e.suspendedLanes&n,Xb===e&&(Jb&n)===n&&(4===ty||3===ty&&(130023424&Jb)===Jb&&500>bd()-sy?My(e,0):iy|=n),Cy(e,t)}function Gy(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Td,0==(130023424&(Td<<=1))&&(Td=4194304)));var n=Sy();null!==(e=Xh(e,t))&&(Fd(e,t,n),Cy(e,n))}function Yy(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Gy(e,n)}function Ky(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ku(314))}null!==r&&r.delete(t),Gy(e,n)}function Xy(e,t){return md(e,t)}function Zy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jy(e,t,n,r){return new Zy(e,t,n,r)}function Qy(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ex(e,t){var n=e.alternate;return null===n?((n=Jy(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function tx(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Qy(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Vu:return nx(n.children,o,i,t);case Wu:a=8,o|=8;break;case Uu:return(e=Jy(12,n,t,2|o)).elementType=Uu,e.lanes=i,e;case Xu:return(e=Jy(13,n,t,o)).elementType=Xu,e.lanes=i,e;case Zu:return(e=Jy(19,n,t,o)).elementType=Zu,e.lanes=i,e;case ec:return rx(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Gu:a=10;break e;case Yu:a=9;break e;case Ku:a=11;break e;case Ju:a=14;break e;case Qu:a=16,r=null;break e}throw Error(ku(130,null==e?e:typeof e,""))}return(t=Jy(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function nx(e,t,n,r){return(e=Jy(7,e,r,t)).lanes=n,e}function rx(e,t,n,r){return(e=Jy(22,e,r,t)).elementType=ec,e.lanes=n,e.stateNode={isHidden:!1},e}function ox(e,t,n){return(e=Jy(6,e,null,t)).lanes=n,e}function ix(e,t,n){return(t=Jy(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ax(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nd(0),this.expirationTimes=Nd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function lx(e,t,n,r,o,i,a,l,s){return e=new ax(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Jy(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jh(i),e}function sx(e){if(!e)return Ym;e:{if(ud(e=e._reactInternals)!==e||1!==e.tag)throw Error(ku(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Qm(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(ku(171))}if(1===e.tag){var n=e.type;if(Qm(n))return nh(e,n,t)}return t}function ux(e,t,n,r,o,i,a,l,s){return(e=lx(n,r,!0,e,0,i,0,l,s)).context=sx(null),n=e.current,(i=eg(r=Sy(),o=Ey(n))).callback=null!=t?t:null,tg(n,i,o),e.current.lanes=o,Fd(e,o,r),Cy(e,r),e}function cx(e,t,n,r){var o=t.current,i=Sy(),a=Ey(o);return n=sx(n),null===t.context?t.context=n:t.pendingContext=n,(t=eg(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=tg(o,t,a))&&(wy(e,o,a,i),ng(e,o,a)),a}function dx(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function px(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function fx(e,t){px(e,t),(e=e.alternate)&&px(e,t)}Vb=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Xm.current)jv=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return jv=!1,function(e,t,n){switch(t.tag){case 3:Xv(t),qh();break;case 5:kg(t);break;case 1:Qm(t.type)&&rh(t);break;case 4:Cg(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Gm(Fh,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Gm(Ag,1&Ag.current),t.flags|=128,null):0!=(n&t.child.childLanes)?ob(e,t,n):(Gm(Ag,1&Ag.current),null!==(e=db(e,t,n))?e.sibling:null);Gm(Ag,1&Ag.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return ub(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Gm(Ag,Ag.current),r)break;return null;case 22:case 23:return t.lanes=0,Wv(e,t,n)}return db(e,t,n)}(e,t,n);jv=0!=(131072&e.flags)}else jv=!1,Rh&&0!=(1048576&t.flags)&&xh(t,fh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cb(e,t),e=t.pendingProps;var o=Jm(t,Km.current);Wh(t,n),o=Vg(null,t,r,e,o,n);var i=Wg();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qm(r)?(i=!0,rh(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Jh(t),o.updater=sg,t.stateNode=o,o._reactInternals=t,pg(t,r,e,n),t=Kv(null,t,r,!0,i,n)):(t.tag=0,Rh&&i&&Sh(t),Hv(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cb(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Qy(e)?1:0;if(null!=e){if((e=e.$$typeof)===Ku)return 11;if(e===Ju)return 14}return 2}(r),e=Nh(r,e),o){case 0:t=Gv(null,t,r,e,n);break e;case 1:t=Yv(null,t,r,e,n);break e;case 11:t=Bv(null,t,r,e,n);break e;case 14:t=$v(null,t,r,Nh(r.type,e),n);break e}throw Error(ku(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Gv(e,t,r,o=t.elementType===r?o:Nh(r,o),n);case 1:return r=t.type,o=t.pendingProps,Yv(e,t,r,o=t.elementType===r?o:Nh(r,o),n);case 3:e:{if(Xv(t),null===e)throw Error(ku(387));r=t.pendingProps,o=(i=t.memoizedState).element,Qh(e,t),og(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Zv(e,t,r,n,o=Iv(Error(ku(423)),t));break e}if(r!==o){t=Zv(e,t,r,n,o=Iv(Error(ku(424)),t));break e}for(Ch=Im(t.stateNode.containerInfo.firstChild),wh=t,Rh=!0,kh=null,n=bg(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(qh(),r===o){t=db(e,t,n);break e}Hv(e,t,r,n)}t=t.child}return t;case 5:return kg(t),null===e&&Ih(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,wm(r,o)?a=null:null!==i&&wm(r,i)&&(t.flags|=32),Uv(e,t),Hv(e,t,a,n),t.child;case 6:return null===e&&Ih(t),null;case 13:return ob(e,t,n);case 4:return Cg(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=vg(t,null,r,n):Hv(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Bv(e,t,r,o=t.elementType===r?o:Nh(r,o),n);case 7:return Hv(e,t,t.pendingProps,n),t.child;case 8:case 12:return Hv(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Gm(Fh,r._currentValue),r._currentValue=a,null!==i)if(Af(i.value,a)){if(i.children===o.children&&!Xm.current){t=db(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=eg(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Vh(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(ku(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Vh(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}Hv(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Wh(t,n),r=r(o=Uh(o)),t.flags|=1,Hv(e,t,r,n),t.child;case 14:return o=Nh(r=t.type,t.pendingProps),$v(e,t,r,o=Nh(r.type,o),n);case 15:return Vv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nh(r,o),cb(e,t),t.tag=1,Qm(r)?(e=!0,rh(t)):e=!1,Wh(t,n),cg(t,r,o),pg(t,r,o,n),Kv(null,t,r,!0,e,n);case 19:return ub(e,t,n);case 22:return Wv(e,t,n)}throw Error(ku(156,t.tag))};var mx="function"==typeof reportError?reportError:function(e){console.error(e)};function hx(e){this._internalRoot=e}function gx(e){this._internalRoot=e}function vx(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function bx(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function yx(){}function xx(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=dx(a);l.call(e)}}cx(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=dx(a);i.call(e)}}var a=ux(t,r,e,0,null,!1,0,"",yx);return e._reactRootContainer=a,e[Om]=a.current,um(8===e.nodeType?e.parentNode:e),Ty(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=dx(s);l.call(e)}}var s=lx(e,0,!1,null,0,!1,0,"",yx);return e._reactRootContainer=s,e[Om]=s.current,um(8===e.nodeType?e.parentNode:e),Ty((function(){cx(t,s,n,r)})),s}(n,t,e,o,r);return dx(a)}gx.prototype.render=hx.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(ku(409));cx(e,t,null,null)},gx.prototype.unmount=hx.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Ty((function(){cx(null,e,null,null)})),t[Om]=null}},gx.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ep.length&&0!==t&&t<ep[n].priority;n++);ep.splice(n,0,e),0===n&&op(e)}},Bd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ld(t.pendingLanes);0!==n&&(zd(t,1|n),Cy(t,bd()),0==(6&Kb)&&(uy=bd()+500,uh()))}break;case 13:Ty((function(){var t=Xh(e,1);if(null!==t){var n=Sy();wy(t,e,1,n)}})),fx(e,1)}},$d=function(e){if(13===e.tag){var t=Xh(e,134217728);if(null!==t)wy(t,e,134217728,Sy());fx(e,134217728)}},Vd=function(e){if(13===e.tag){var t=Ey(e),n=Xh(e,t);if(null!==n)wy(n,e,t,Sy());fx(e,t)}},Wd=function(){return jd},Ud=function(e,t){var n=jd;try{return jd=e,t()}finally{jd=n}},$c=function(e,t,n){switch(t){case"input":if(yc(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Bm(r);if(!o)throw Error(ku(90));mc(r),yc(r,o)}}}break;case"textarea":kc(e,n);break;case"select":null!=(t=n.value)&&wc(e,!!n.multiple,t,!1)}},Kc=Iy,Xc=Ty;var Sx={usingClientEntryPoint:!1,Events:[jm,Hm,Bm,Gc,Yc,Iy]},Ex={findFiberByHostInstance:zm,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},wx={bundleType:Ex.bundleType,version:Ex.version,rendererPackageName:Ex.rendererPackageName,rendererConfig:Ex.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Hu.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=pd(e))?null:e.stateNode},findFiberByHostInstance:Ex.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Cx=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cx.isDisabled&&Cx.supportsFiber)try{Rd=Cx.inject(wx),kd=Cx}catch(Tc){}}xu.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Sx,xu.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!vx(t))throw Error(ku(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:$u,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},xu.createRoot=function(e,t){if(!vx(e))throw Error(ku(299));var n=!1,r="",o=mx;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=lx(e,1,!1,null,0,n,0,r,o),e[Om]=t.current,um(8===e.nodeType?e.parentNode:e),new hx(t)},xu.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(ku(188));throw e=Object.keys(e).join(","),Error(ku(268,e))}return e=null===(e=pd(t))?null:e.stateNode},xu.flushSync=function(e){return Ty(e)},xu.hydrate=function(e,t,n){if(!bx(t))throw Error(ku(200));return xx(null,e,t,!0,n)},xu.hydrateRoot=function(e,t,n){if(!vx(e))throw Error(ku(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=mx;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=ux(t,null,e,1,null!=n?n:null,o,0,i,a),e[Om]=t.current,um(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new gx(t)},xu.render=function(e,t,n){if(!bx(t))throw Error(ku(200));return xx(null,e,t,!1,n)},xu.unmountComponentAtNode=function(e){if(!bx(e))throw Error(ku(40));return!!e._reactRootContainer&&(Ty((function(){xx(null,null,e,!1,(function(){e._reactRootContainer=null,e[Om]=null}))})),!0)},xu.unstable_batchedUpdates=Iy,xu.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!bx(n))throw Error(ku(200));if(null==e||void 0===e._reactInternals)throw Error(ku(38));return xx(e,t,n,!1,r)},xu.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),yu.exports=xu;var Rx=yu.exports,kx=d(Rx),Dx=!1,Ax=yn.createContext(null),Px="unmounted",Ix="exited",Tx="entering",Lx="entered",Mx="exiting",qx=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=Ix,r.appearStatus=Tx):o=Lx:o=t.unmountOnExit||t.mountOnEnter?Px:Ix,r.state={status:o},r.nextCallback=null,r}ws(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Px?{status:Ix}: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!==Tx&&n!==Lx&&(t=Tx):n!==Tx&&n!==Lx||(t=Mx)}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===Tx){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:kx.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ix&&this.setState({status:Px})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[kx.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Dx?this.safeSetState({status:Lx},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Tx},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Lx},(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:kx.findDOMNode(this);t&&!Dx?(this.props.onExit(r),this.safeSetState({status:Mx},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ix},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ix},(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:kx.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Px)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=Wn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return yn.createElement(Ax.Provider,{value:null},"function"==typeof n?n(e,r):yn.cloneElement(yn.Children.only(n),r))},t}(yn.Component);function Ox(){}qx.contextType=Ax,qx.propTypes={},qx.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ox,onEntering:Ox,onEntered:Ox,onExit:Ox,onExiting:Ox,onExited:Ox},qx.UNMOUNTED=Px,qx.EXITED=Ix,qx.ENTERING=Tx,qx.ENTERED=Lx,qx.EXITING=Mx;var _x=qx;function Nx(e,t){var n=Object.create(null);return e&&bn.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&bn.isValidElement(e)?t(e):e}(e)})),n}function Fx(e,t,n){return null!=n[t]?n[t]:e.props[t]}function zx(e,t,n){var r=Nx(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(bn.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=bn.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&bn.isValidElement(u)&&(o[i]=bn.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Fx(a,"exit",e),enter:Fx(a,"enter",e)})):o[i]=bn.cloneElement(a,{in:!1}):o[i]=bn.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Fx(a,"exit",e),enter:Fx(a,"enter",e)})}})),o}var jx=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Hx=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Cs(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}ws(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,Nx(n.children,(function(e){return bn.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Fx(e,"appear",n),enter:Fx(e,"enter",n),exit:Fx(e,"exit",n)})}))):zx(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Nx(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ct({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Wn(e,["component","childFactory"]),o=this.state.contextValue,i=jx(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?yn.createElement(Ax.Provider,{value:o},i):yn.createElement(Ax.Provider,{value:o},yn.createElement(t,r,i))},t}(yn.Component);Hx.propTypes={},Hx.defaultProps={component:"div",childFactory:function(e){return e}};var Bx=Hx;const $x=e=>e.scrollTop;function Vx(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Wx(e){return Bn("MuiPaper",e)}$n("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 Ux=["className","component","elevation","square","variant"],Gx=ls("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 Ct({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&&Ct({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${vl("#fff",cs(t.elevation))}, ${vl("#fff",cs(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var Yx=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Wn(n,Ux),u=Ct({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Fn({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Wx,o)})(u);return Ka.jsx(Gx,Ct({as:o,ownerState:u,className:Xs(c.root,r),ref:t},s))}));var Kx=$n("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Xx=["center","classes","className"];let Zx,Jx,Qx,eS,tS=e=>e;const nS=qi(Zx||(Zx=tS`
51
+ */function wx(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ux:switch(e=e.type){case dx:case fx:case px:case bx:case yx:return e;default:switch(e=e&&e.$$typeof){case gx:case hx:case vx:case xx:case Sx:case mx:return e;default:return t}}case cx:return t}}}lx=Symbol.for("react.module.reference"),sx.ContextConsumer=hx,sx.ContextProvider=mx,sx.Element=ux,sx.ForwardRef=vx,sx.Fragment=dx,sx.Lazy=xx,sx.Memo=Sx,sx.Portal=cx,sx.Profiler=fx,sx.StrictMode=px,sx.Suspense=bx,sx.SuspenseList=yx,sx.isAsyncMode=function(){return!1},sx.isConcurrentMode=function(){return!1},sx.isContextConsumer=function(e){return wx(e)===hx},sx.isContextProvider=function(e){return wx(e)===mx},sx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ux},sx.isForwardRef=function(e){return wx(e)===vx},sx.isFragment=function(e){return wx(e)===dx},sx.isLazy=function(e){return wx(e)===xx},sx.isMemo=function(e){return wx(e)===Sx},sx.isPortal=function(e){return wx(e)===cx},sx.isProfiler=function(e){return wx(e)===fx},sx.isStrictMode=function(e){return wx(e)===px},sx.isSuspense=function(e){return wx(e)===bx},sx.isSuspenseList=function(e){return wx(e)===yx},sx.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===dx||e===fx||e===px||e===bx||e===yx||e===Ex||"object"==typeof e&&null!==e&&(e.$$typeof===xx||e.$$typeof===Sx||e.$$typeof===mx||e.$$typeof===hx||e.$$typeof===vx||e.$$typeof===lx||void 0!==e.getModuleId)},sx.typeOf=wx;var Cx=!1,Rx=W.createContext(null),kx="unmounted",Px="exited",Dx="entering",Ax="entered",Ix="exiting",Tx=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=Px,r.appearStatus=Dx):o=Ax:o=t.unmountOnExit||t.mountOnEnter?kx:Px,r.state={status:o},r.nextCallback=null,r}DS(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===kx?{status:Px}: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!==Dx&&n!==Ax&&(t=Dx):n!==Dx&&n!==Ax||(t=Ix)}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===Dx){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:od.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Px&&this.setState({status:kx})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[od.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Cx?this.safeSetState({status:Ax},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Dx},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Ax},(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:od.findDOMNode(this);t&&!Cx?(this.props.onExit(r),this.safeSetState({status:Ix},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Px},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Px},(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:od.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===kx)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=Hm(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(Rx.Provider,{value:null},"function"==typeof n?n(e,r):W.cloneElement(W.Children.only(n),r))},t}(W.Component);function Lx(){}Tx.contextType=Rx,Tx.propTypes={},Tx.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lx,onEntering:Lx,onEntered:Lx,onExit:Lx,onExiting:Lx,onExited:Lx},Tx.UNMOUNTED=kx,Tx.EXITED=Px,Tx.ENTERING=Dx,Tx.ENTERED=Ax,Tx.EXITING=Ix;var Mx=Tx;function Ox(e,t){var n=Object.create(null);return e&&$.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&$.isValidElement(e)?t(e):e}(e)})),n}function qx(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Nx(e,t,n){var r=Ox(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if($.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=$.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&$.isValidElement(u)&&(o[i]=$.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:qx(a,"exit",e),enter:qx(a,"enter",e)})):o[i]=$.cloneElement(a,{in:!1}):o[i]=$.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:qx(a,"exit",e),enter:qx(a,"enter",e)})}})),o}var _x=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Fx=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(AS(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}DS(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,Ox(n.children,(function(e){return $.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:qx(e,"appear",n),enter:qx(e,"enter",n),exit:qx(e,"exit",n)})}))):Nx(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Ox(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=tm({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Hm(e,["component","childFactory"]),o=this.state.contextValue,i=_x(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?W.createElement(Rx.Provider,{value:o},i):W.createElement(Rx.Provider,{value:o},W.createElement(t,r,i))},t}(W.Component);Fx.propTypes={},Fx.defaultProps={component:"div",childFactory:function(e){return e}};var zx=Fx;const jx=e=>e.scrollTop;function Hx(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Bx(e){return Fm("MuiPaper",e)}zm("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 $x=["className","component","elevation","square","variant"],Wx=iS("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 tm({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&&tm({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${hy("#fff",sS(t.elevation))}, ${hy("#fff",sS(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var Vx=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Hm(n,$x),u=tm({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Om({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Bx,o)})(u);return Wb.jsx(Wx,tm({as:o,ownerState:u,className:tx(c.root,r),ref:t},s))}));var Ux=zm("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Gx=["center","classes","className"];let Yx,Kx,Zx,Xx,Jx=e=>e;const Qx=Av(Yx||(Yx=Jx`
52
52
  0% {
53
53
  transform: scale(0);
54
54
  opacity: 0.1;
@@ -58,7 +58,7 @@ function Fi(e,t){let n;return n=t?Oi(e).withConfig({displayName:t.label,shouldFo
58
58
  transform: scale(1);
59
59
  opacity: 0.3;
60
60
  }
61
- `)),rS=qi(Jx||(Jx=tS`
61
+ `)),eE=Av(Kx||(Kx=Jx`
62
62
  0% {
63
63
  opacity: 1;
64
64
  }
@@ -66,7 +66,7 @@ function Fi(e,t){let n;return n=t?Oi(e).withConfig({displayName:t.label,shouldFo
66
66
  100% {
67
67
  opacity: 0;
68
68
  }
69
- `)),oS=qi(Qx||(Qx=tS`
69
+ `)),tE=Av(Zx||(Zx=Jx`
70
70
  0% {
71
71
  transform: scale(1);
72
72
  }
@@ -78,7 +78,7 @@ function Fi(e,t){let n;return n=t?Oi(e).withConfig({displayName:t.label,shouldFo
78
78
  100% {
79
79
  transform: scale(1);
80
80
  }
81
- `)),iS=ls("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),aS=ls((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=bn.useState(!1),p=Xs(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Xs(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),bn.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Ka.jsx("span",{className:p,style:f,children:Ka.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(eS||(eS=tS`
81
+ `)),nE=iS("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),rE=iS((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=$.useState(!1),p=tx(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=tx(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),$.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Wb.jsx("span",{className:p,style:f,children:Wb.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Xx||(Xx=Jx`
82
82
  opacity: 0;
83
83
  position: absolute;
84
84
 
@@ -121,4 +121,4 @@ function Fi(e,t){let n;return n=t?Oi(e).withConfig({displayName:t.label,shouldFo
121
121
  animation-iteration-count: infinite;
122
122
  animation-delay: 200ms;
123
123
  }
124
- `),Kx.rippleVisible,nS,550,(({theme:e})=>e.transitions.easing.easeInOut),Kx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Kx.child,Kx.childLeaving,rS,550,(({theme:e})=>e.transitions.easing.easeInOut),Kx.childPulsate,oS,(({theme:e})=>e.transitions.easing.easeInOut)),lS=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Wn(n,Xx),[l,s]=bn.useState([]),u=bn.useRef(0),c=bn.useRef(null);bn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=bn.useRef(!1),p=bn.useRef(0),f=bn.useRef(null),m=bn.useRef(null);bn.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=bn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Ka.jsx(aS,{classes:{ripple:Xs(o.ripple,Kx.ripple),rippleVisible:Xs(o.rippleVisible,Kx.rippleVisible),ripplePulsate:Xs(o.ripplePulsate,Kx.ripplePulsate),child:Xs(o.child,Kx.child),childLeaving:Xs(o.childLeaving,Kx.childLeaving),childPulsate:Xs(o.childPulsate,Kx.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=bn.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=bn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=bn.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((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return bn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Ka.jsx(iS,Ct({className:Xs(Kx.root,o.root,i),ref:m},a,{children:Ka.jsx(Bx,{component:null,exit:!0,children:l})}))}));var sS=lS;function uS(e){return Bn("MuiButtonBase",e)}var cS=$n("MuiButtonBase",["root","disabled","focusVisible"]);const dS=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],pS=ls("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"},[`&.${cS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fS=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:D=0,TouchRippleProps:A,touchRippleRef:P,type:I}=n,T=Wn(n,dS),L=bn.useRef(null),M=bn.useRef(null),q=kn(M,P),{isFocusVisibleRef:O,onFocus:_,onBlur:N,ref:F}=On(),[z,j]=bn.useState(!1);s&&z&&j(!1),bn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),L.current.focus()}})),[]);const[H,B]=bn.useState(!1);bn.useEffect((()=>{B(!0)}),[]);const $=H&&!u&&!s;function V(e,t,n=c){return Rn((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}bn.useEffect((()=>{z&&d&&!u&&H&&M.current.pulsate()}),[u,d,z,H]);const W=V("start",S),U=V("stop",h),G=V("stop",g),Y=V("stop",w),K=V("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=V("start",k),Z=V("stop",C),J=V("stop",R),Q=V("stop",(e=>{N(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=Rn((e=>{L.current||(L.current=e.currentTarget),_(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=L.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=bn.useRef(!1),re=Rn((e=>{d&&!ne.current&&z&&M.current&&" "===e.key&&(ne.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=Rn((e=>{d&&" "===e.key&&M.current&&z&&!e.defaultPrevented&&(ne.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(T.href||T.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===I?"button":I,ae.disabled=s):(T.href||T.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=kn(t,F,L),se=Ct({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Fn({root:["root",t&&"disabled",n&&"focusVisible"]},uS,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Ka.jsxs(pS,Ct({as:ie,className:Xs(ue.root,a),ownerState:se,onBlur:Q,onClick:m,onContextMenu:U,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:W,onMouseLeave:K,onMouseUp:Y,onDragLeave:G,onTouchEnd:Z,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:D,type:I},ae,T,{children:[i,$?Ka.jsx(sS,Ct({ref:q,center:o},A)):null]}))}));var mS=fS;function hS(e){return Bn("MuiTypography",e)}$n("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gS=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vS=ls("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Mt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Ct({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),bS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xS=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiTypography"}),r=(e=>yS[e]||e)(n.color),o=Qa(Ct({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=bS}=o,f=Wn(o,gS),m=Ct({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||bS[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Fn({root:["root",i,"inherit"!==e.align&&`align${Mt(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},hS,a)})(m);return Ka.jsx(vS,Ct({as:h,ref:t,ownerState:m,className:Xs(g.root,a)},f))}));var SS=xS;function ES(e){return"string"==typeof e}function wS(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function CS(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=CS(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function RS(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=CS(e))&&(r&&(r+=" "),r+=t);return r}function kS(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const DS=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function AS(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Wn(e,DS),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=RS(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),t=Ct({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Ct({},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=wS(Ct({},o,r)),l=kS(r),s=kS(o),u=t(a),c=RS(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Ct({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Ct({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Ct({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||ES(e)?t:Ct({},t,{ownerState:Ct({},t.ownerState,n)})}(n,Ct({},s,{ref:kn(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const PS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function IS(e){const t=[],n=[];return Array.from(e.querySelectorAll(PS)).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 TS(){return!0}function LS(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=IS,isEnabled:a=TS,open:l}=e,s=bn.useRef(!1),u=bn.useRef(null),c=bn.useRef(null),d=bn.useRef(null),p=bn.useRef(null),f=bn.useRef(!1),m=bn.useRef(null),h=kn(t.ref,m),g=bn.useRef(null);bn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),bn.useEffect((()=>{if(!l||!m.current)return;const e=xn(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),bn.useEffect((()=>{if(!l||!m.current)return;const e=xn(m.current),t=t=>{const{current:n}=m;if(null!==n)if(e.hasFocus()&&!r&&a()&&!s.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!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else s.current=!1},n=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Ka.jsxs(bn.Fragment,{children:[Ka.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),bn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Ka.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const MS=bn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=bn.useState(null),l=kn(bn.isValidElement(n)?n.ref:null,t);if(wn((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),wn((()=>{if(i&&!o)return En(t,i),()=>{En(t,null)}}),[t,i,o]),o){if(bn.isValidElement(n)){const e={ref:l};return bn.cloneElement(n,e)}return Ka.jsx(bn.Fragment,{children:n})}return Ka.jsx(bn.Fragment,{children:i?Rx.createPortal(n,i):i})}));function qS(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function OS(e){return parseInt(Sn(e).getComputedStyle(e).paddingRight,10)||0}function _S(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&&qS(e,o)}))}function NS(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function FS(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=xn(e);return t.body===e?Sn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=_n(xn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${OS(r)+e}px`;const t=xn(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${OS(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=xn(r).body;else{const t=r.parentElement,n=Sn(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const zS=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&&qS(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);_S(t,e.mount,e.modalRef,r,!0);const o=NS(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=NS(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=FS(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=NS(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&&qS(e.modalRef,t),_S(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&&qS(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function jS(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=zS,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=bn.useRef({}),f=bn.useRef(null),m=bn.useRef(null),h=kn(m,d),[g,v]=bn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=Rn((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||xn(f.current).body;o.add(x(),e),m.current&&S()})),w=bn.useCallback((()=>o.isTopModal(x())),[o]),C=Rn((e=>{f.current=e,e&&(c&&w()?S():m.current&&qS(m.current,y))})),R=bn.useCallback((()=>{o.remove(x(),y)}),[y,o]);bn.useEffect((()=>()=>{R()}),[R]),bn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},D=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=wS(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Ct({},n,t);return Ct({role:"presentation"},r,{onKeyDown:k(r),ref:h})},getBackdropProps:(e={})=>Ct({"aria-hidden":!0},e,{onClick:D(e),open:c}),getTransitionProps:()=>({onEnter:qt((()=>{v(!1),a&&a()}),s.props.onEnter),onExited:qt((()=>{v(!0),l&&l(),i&&R()}),s.props.onExited)}),rootRef:h,portalRef:C,isTopModal:w,exited:g,hasTransition:b}}const HS=["onChange","maxRows","minRows","style","value"];function BS(e){return parseInt(e,10)||0}const $S={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function VS(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const WS=bn.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Wn(e,HS),{current:s}=bn.useRef(null!=a),u=bn.useRef(null),c=kn(t,u),d=bn.useRef(null),p=bn.useRef(0),[f,m]=bn.useState({outerHeightStyle:0}),h=bn.useCallback((()=>{const t=u.current,n=Sn(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=BS(n.paddingBottom)+BS(n.paddingTop),s=BS(n.borderBottomWidth)+BS(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=bn.useCallback((()=>{const e=h();VS(e)||m((t=>g(t,e)))}),[h]);bn.useEffect((()=>{const e=Ot((()=>{p.current=0,u.current&&(()=>{const e=h();VS(e)||Rx.flushSync((()=>{m((t=>g(t,e)))}))})()}));let t;const n=u.current,r=Sn(n);return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),r.removeEventListener("resize",e),t&&t.disconnect()}})),wn((()=>{v()})),bn.useEffect((()=>{p.current=0}),[a]);return Ka.jsxs(bn.Fragment,{children:[Ka.jsx("textarea",Ct({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:Ct({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Ka.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Ct({},$S,i,{paddingTop:0,paddingBottom:0})})]})}));function US({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var GS=bn.createContext(void 0);function YS(){return bn.useContext(GS)}function KS(e){return Ka.jsx(Xa,Ct({},e,{defaultTheme:ts,themeId:Vn}))}function XS(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function ZS(e,t=!1){return e&&(XS(e.value)&&""!==e.value||t&&XS(e.defaultValue)&&""!==e.defaultValue)}function JS(e){return Bn("MuiInputBase",e)}var QS=$n("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const eE=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],tE=(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${Mt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},nE=(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]},rE=ls("div",{name:"MuiInputBase",slot:"Root",overridesResolver:tE})((({theme:e,ownerState:t})=>Ct({},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",[`&.${QS.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ct({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),oE=ls("input",{name:"MuiInputBase",slot:"Input",overridesResolver:nE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Ct({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 Ct({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] + .${QS.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},[`&.${QS.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"})})),iE=Ka.jsx(KS,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),aE=bn.forwardRef((function(e,t){var n;const r=rs({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:w,onChange:C,onClick:R,onFocus:k,onKeyDown:D,onKeyUp:A,placeholder:P,readOnly:I,renderSuffix:T,rows:L,slotProps:M={},slots:q={},startAdornment:O,type:_="text",value:N}=r,F=Wn(r,eE),z=null!=v.value?v.value:N,{current:j}=bn.useRef(null!=z),H=bn.useRef(),B=bn.useCallback((e=>{}),[]),$=kn(H,b,v.ref,B),[V,W]=bn.useState(!1),U=YS(),G=US({props:r,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=U?U.focused:V,bn.useEffect((()=>{!U&&d&&V&&(W(!1),w&&w())}),[U,d,V,w]);const Y=U&&U.onFilled,K=U&&U.onEmpty,X=bn.useCallback((e=>{ZS(e)?Y&&Y():K&&K()}),[Y,K]);wn((()=>{j&&X({value:z})}),[z,X,j]);bn.useEffect((()=>{X(H.current)}),[]);let Z=g,J=v;S&&"input"===Z&&(J=Ct(L?{type:void 0,minRows:L,maxRows:L}:{type:void 0,maxRows:y,minRows:x},J),Z=WS);bn.useEffect((()=>{U&&U.setAdornedStart(Boolean(O))}),[U,O]);const Q=Ct({},r,{color:G.color||"primary",disabled:G.disabled,endAdornment:f,error:G.error,focused:G.focused,formControl:U,fullWidth:m,hiddenLabel:G.hiddenLabel,multiline:S,size:G.size,startAdornment:O,type:_}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Fn({root:["root",`color${Mt(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl","small"===p&&"sizeSmall",c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},JS,t)})(Q),te=q.root||s.Root||rE,ne=M.root||u.root||{},re=q.input||s.Input||oE;return J=Ct({},J,null!=(n=M.input)?n:u.input),Ka.jsxs(bn.Fragment,{children:[!p&&iE,Ka.jsxs(te,Ct({},ne,!ES(te)&&{ownerState:Ct({},Q,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),R&&R(e)}},F,{className:Xs(ee.root,ne.className,l,I&&"MuiInputBase-readOnly"),children:[O,Ka.jsx(GS.Provider,{value:null,children:Ka.jsx(re,Ct({ownerState:Q,"aria-invalid":G.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:G.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:E,placeholder:P,readOnly:I,required:G.required,rows:L,value:z,onKeyDown:D,onKeyUp:A,type:_},J,!ES(re)&&{as:Z,ownerState:Ct({},Q,J.ownerState)},{ref:$,className:Xs(ee.input,J.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),U&&U.onBlur?U.onBlur(e):W(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||H.current;if(null==t)throw new Error(Lt(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),U&&U.onFocus?U.onFocus(e):W(!0))}}))}),f,T?T(Ct({},G,{startAdornment:O})):null]}))]})}));var lE=aE;function sE(e){return Bn("MuiInput",e)}var uE=Ct({},QS,$n("MuiInput",["root","underline","input"]));function cE(e){return Bn("MuiOutlinedInput",e)}var dE=Ct({},QS,$n("MuiOutlinedInput",["root","notchedOutline","input"]));function pE(e){return Bn("MuiFilledInput",e)}var fE=Ct({},QS,$n("MuiFilledInput",["root","underline","input"])),mE=function(e,t){function n(n,r){return Ka.jsx(tu,Ct({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=tu.muiName,bn.memo(bn.forwardRef(n))}(Ka.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const hE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],gE={entering:{opacity:1},entered:{opacity:1}},vE=bn.forwardRef((function(e,t){const n=ns(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=_x}=e,b=Wn(e,hE),y=bn.useRef(null),x=kn(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),w=S(((e,t)=>{$x(e);const r=Vx({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),C=S(c),R=S(m),k=S((e=>{const t=Vx({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),D=S(f);return Ka.jsx(v,Ct({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:C,onEntering:E,onExit:k,onExited:D,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>bn.cloneElement(a,Ct({style:Ct({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},gE[e],h,a.props.style),ref:x},t))}))}));var bE=vE;function yE(e){return Bn("MuiBackdrop",e)}$n("MuiBackdrop",["root","invisible"]);const xE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],SE=ls("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Ct({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"}))),EE=bn.forwardRef((function(e,t){var n,r,o;const i=rs({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=bE,transitionDuration:g}=i,v=Wn(i,xE),b=Ct({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Fn({root:["root",n&&"invisible"]},yE,t)})(b),x=null!=(n=f.root)?n:c.root;return Ka.jsx(h,Ct({in:p,timeout:g},v,{children:Ka.jsx(SE,Ct({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Xs(y.root,l,null==x?void 0:x.className),ownerState:Ct({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var wE=EE;const CE=es(),RE=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Fi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(qa);return bn.forwardRef((function(e,a){const l=za(n),s=Qa(e),{className:u,component:c="div"}=s,d=Wn(s,nl);return Ka.jsx(i,Ct({as:c,ref:a,className:tl(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Vn,defaultTheme:CE,defaultClassName:"MuiBox-root",generateClassName:jn.generate});var kE=RE;function DE(e){return Bn("MuiButton",e)}var AE=$n("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var PE=bn.createContext({});const IE=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],TE=e=>Ct({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),LE=ls(mS,{shouldForwardProp:e=>os(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Mt(n.color)}`],t[`size${Mt(n.size)}`],t[`${n.variant}Size${Mt(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Ct({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ct({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:vl(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vl(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vl(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Ct({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${AE.focusVisible}`]:Ct({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${AE.disabled}`]:Ct({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${vl(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${AE.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${AE.disabled}`]:{boxShadow:"none"}})),ME=ls("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Mt(n.size)}`]]}})((({ownerState:e})=>Ct({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},TE(e)))),qE=ls("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Mt(n.size)}`]]}})((({ownerState:e})=>Ct({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},TE(e)))),OE=bn.forwardRef((function(e,t){const n=bn.useContext(PE),r=rs({props:Nn(n,e),name:"MuiButton"}),{children:o,color:i="primary",component:a="button",className:l,disabled:s=!1,disableElevation:u=!1,disableFocusRipple:c=!1,endIcon:d,focusVisibleClassName:p,fullWidth:f=!1,size:m="medium",startIcon:h,type:g,variant:v="text"}=r,b=Wn(r,IE),y=Ct({},r,{color:i,component:a,disabled:s,disableElevation:u,disableFocusRipple:c,fullWidth:f,size:m,type:g,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Ct({},a,Fn({root:["root",i,`${i}${Mt(t)}`,`size${Mt(o)}`,`${i}Size${Mt(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Mt(o)}`],endIcon:["endIcon",`iconSize${Mt(o)}`]},DE,a))})(y),S=h&&Ka.jsx(ME,{className:x.startIcon,ownerState:y,children:h}),E=d&&Ka.jsx(qE,{className:x.endIcon,ownerState:y,children:d});return Ka.jsxs(LE,Ct({ownerState:y,className:Xs(n.className,x.root,l),component:a,disabled:s,focusRipple:!c,focusVisibleClassName:Xs(x.focusVisible,p),ref:t,type:g},b,{classes:x,children:[S,o,E]}))}));var _E=OE;function NE(e){return Bn("MuiModal",e)}$n("MuiModal",["root","hidden","backdrop"]);const FE=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],zE=ls("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})=>Ct({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),jE=ls(wE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),HE=bn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=rs({name:"MuiModal",props:e}),{BackdropComponent:u=jE,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:k,open:D,slotProps:A,slots:P}=s,I=Wn(s,FE),T=Ct({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:C,keepMounted:R}),{getRootProps:L,getBackdropProps:M,getTransitionProps:q,portalRef:O,isTopModal:_,exited:N,hasTransition:F}=jS(Ct({},T,{rootRef:t})),z=Ct({},T,{exited:N}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Fn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},NE,r)})(z),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),F){const{onEnter:e,onExited:t}=q();H.onEnter=e,H.onExited=t}const B=null!=(n=null!=(r=null==P?void 0:P.root)?r:g.Root)?n:zE,$=null!=(o=null!=(i=null==P?void 0:P.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==A?void 0:A.root)?a:v.root,W=null!=(l=null==A?void 0:A.backdrop)?l:v.backdrop,U=AS({elementType:B,externalSlotProps:V,externalForwardedProps:I,getSlotProps:L,additionalProps:{ref:t,as:h},ownerState:z,className:Xs(d,null==V?void 0:V.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),G=AS({elementType:$,externalSlotProps:W,additionalProps:c,getSlotProps:e=>M(Ct({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Xs(null==W?void 0:W.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||D||F&&!N?Ka.jsx(MS,{ref:O,container:m,disablePortal:S,children:Ka.jsxs(B,Ct({},U,{children:[!C&&u?Ka.jsx($,Ct({},G)):null,Ka.jsx(LS,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:_,open:D,children:bn.cloneElement(f,H)})]}))}):null}));var BE=HE;function $E(e){return Bn("MuiDivider",e)}var VE=$n("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const WE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],UE=ls("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Ct({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:vl(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Ct({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Ct({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Ct({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Ct({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),GE=ls("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Ct({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),YE=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Wn(n,WE),m=Ct({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Fn({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},$E,r)})(m);return Ka.jsx(UE,Ct({as:a,className:Xs(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Ka.jsx(GE,{className:h.wrapper,ownerState:m,children:o}):null}))}));YE.muiSkipListHighlight=!0;var KE=YE;const XE=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ZE=ls(rE,{shouldForwardProp:e=>os(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...tE(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Ct({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}},[`&.${fE.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${fE.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${fE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fE.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${fE.disabled}, .${fE.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${fE.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Ct({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),JE=ls(oE,{name:"MuiFilledInput",slot:"Input",overridesResolver:nE})((({theme:e,ownerState:t})=>Ct({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}))),QE=bn.forwardRef((function(e,t){var n,r,o,i;const a=rs({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Wn(a,XE),g=Ct({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return Ct({},t,Fn({root:["root",!n&&"underline"],input:["input"]},pE,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Dt(null!=p?p:s,b):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:ZE,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:JE;return Ka.jsx(lE,Ct({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));QE.muiName="Input";var ew=QE;const tw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nw(e){return`scale(${e}, ${e**2})`}const rw={entering:{opacity:1,transform:nw(1)},entered:{opacity:1,transform:"none"}},ow="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),iw=bn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=_x}=e,g=Wn(e,tw),v=bn.useRef(),b=bn.useRef(),y=ns(),x=bn.useRef(null),S=kn(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(u),C=E(((e,t)=>{$x(e);const{duration:n,delay:r,easing:o}=Vx({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:ow?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),D=E((e=>{const{duration:t,delay:n,easing:r}=Vx({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:ow?o:.666*o,delay:ow?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=nw(.75),c&&c(e)})),A=E(d);return bn.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Ka.jsx(h,Ct({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:D,onExited:A,onExiting:k,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>bn.cloneElement(o,Ct({style:Ct({opacity:0,transform:nw(.75),visibility:"exited"!==e||a?void 0:"hidden"},rw[e],f,o.props.style),ref:S},t))}))}));iw.muiSupportAuto=!0;var aw=iw;const lw=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],sw=ls(rE,{shouldForwardProp:e=>os(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...tE(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})`),Ct({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"},[`&.${uE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${uE.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${uE.disabled}, .${uE.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${uE.disabled}:before`]:{borderBottomStyle:"dotted"}})})),uw=ls(oE,{name:"MuiInput",slot:"Input",overridesResolver:nE})({}),cw=bn.forwardRef((function(e,t){var n,r,o,i;const a=rs({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Wn(a,lw),v=(e=>{const{classes:t,disableUnderline:n}=e;return Ct({},t,Fn({root:["root",!n&&"underline"],input:["input"]},sE,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Dt(null!=f?f:u,b):b,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:sw,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:uw;return Ka.jsx(lE,Ct({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));cw.muiName="Input";var dw=cw;var pw=bn.createContext({});function fw(e){return Bn("MuiList",e)}$n("MuiList",["root","padding","dense","subheader"]);const mw=["children","className","component","dense","disablePadding","subheader"],hw=ls("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})=>Ct({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var gw=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Wn(n,mw),c=bn.useMemo((()=>({dense:a})),[a]),d=Ct({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Fn({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},fw,t)})(d);return Ka.jsx(pw.Provider,{value:c,children:Ka.jsxs(hw,Ct({as:i,className:Xs(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function vw(e){return Bn("MuiListItemIcon",e)}var bw=$n("MuiListItemIcon",["root","alignItemsFlexStart"]);const yw=["className"],xw=ls("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Ct({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Sw=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Wn(n,yw),i=Ct({},n,{alignItems:bn.useContext(pw).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Fn({root:["root","flex-start"===t&&"alignItemsFlexStart"]},vw,n)})(i);return Ka.jsx(xw,Ct({className:Xs(a.root,r),ownerState:i,ref:t},o))}));var Ew=$n("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const ww=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Cw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Rw(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function kw(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 Dw(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&kw(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Aw=bn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Wn(e,ww),p=bn.useRef(null),f=bn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});wn((()=>{r&&p.current.focus()}),[r]),bn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${_n(xn(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=kn(p,t);let h=-1;bn.Children.forEach(i,((e,t)=>{bn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=bn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),bn.cloneElement(e,t)}return e}));return Ka.jsx(gw,Ct({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=xn(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Dw(t,r,s,l,Cw);else if("ArrowUp"===n)e.preventDefault(),Dw(t,r,s,l,Rw);else if("Home"===n)e.preventDefault(),Dw(t,null,s,l,Cw);else if("End"===n)e.preventDefault(),Dw(t,null,s,l,Rw);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&kw(r,o);o.previousKeyMatched&&(s||Dw(t,r,!1,l,Cw,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Pw(e){return Bn("MuiPopover",e)}$n("MuiPopover",["root","paper"]);const Iw=["onEntering"],Tw=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"],Lw=["slotProps"];function Mw(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function qw(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Ow(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function _w(e){return"function"==typeof e?e():e}const Nw=ls(BE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fw=ls(Yx,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var zw=bn.forwardRef((function(e,t){var n,r,o;const i=rs({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=aw,transitionDuration:E="auto",TransitionProps:{onEntering:w}={}}=i,C=Wn(i.TransitionProps,Iw),R=Wn(i,Tw),k=null!=(n=null==y?void 0:y.paper)?n:v,D=bn.useRef(),A=kn(D,k.ref),P=Ct({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:C}),I=(e=>{const{classes:t}=e;return Fn({root:["root"],paper:["paper"]},Pw,t)})(P),T=bn.useCallback((()=>{if("anchorPosition"===c)return u;const e=_w(l),t=(e&&1===e.nodeType?e:xn(D.current).body).getBoundingClientRect();return{top:t.top+Mw(t,s.vertical),left:t.left+qw(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),L=bn.useCallback((e=>({vertical:Mw(e,x.vertical),horizontal:qw(e,x.horizontal)})),[x.horizontal,x.vertical]),M=bn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=L(t);if("none"===c)return{top:null,left:null,transformOrigin:Ow(n)};const r=T();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Sn(_w(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(o<h){const e=o-h;o-=e,n.vertical+=e}else if(a>d){const e=a-d;o-=e,n.vertical+=e}if(i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Ow(n)}}),[l,c,T,L,h]),[q,O]=bn.useState(g),_=bn.useCallback((()=>{const e=D.current;if(!e)return;const t=M(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,O(!0)}),[M]);bn.useEffect((()=>{g&&_()})),bn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{_()}}:null),[g,_]),bn.useEffect((()=>{if(!g)return;const e=Ot((()=>{_()})),t=Sn(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,_]);let N=E;"auto"!==E||S.muiSupportAuto||(N=void 0);const F=f||(l?xn(_w(l)).body:void 0),z=null!=(r=null==b?void 0:b.root)?r:Nw,j=null!=(o=null==b?void 0:b.paper)?o:Fw,H=AS({elementType:j,externalSlotProps:Ct({},k,{style:q?k.style:Ct({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:A},ownerState:P,className:Xs(I.paper,null==k?void 0:k.className)}),B=AS({elementType:z,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:P,className:Xs(I.root,p)}),{slotProps:$}=B,V=Wn(B,Lw);return Ka.jsx(z,Ct({},V,!ES(z)&&{slotProps:$},{children:Ka.jsx(S,Ct({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),_()},onExited:()=>{O(!1)},timeout:N},C,{children:Ka.jsx(j,Ct({},H,{children:d}))}))}))}));function jw(e){return Bn("MuiMenu",e)}$n("MuiMenu",["root","paper","list"]);const Hw=["onEntering"],Bw=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],$w={vertical:"top",horizontal:"right"},Vw={vertical:"top",horizontal:"left"},Ww=ls(zw,{shouldForwardProp:e=>os(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Uw=ls(Fw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Gw=ls(Aw,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Yw=bn.forwardRef((function(e,t){var n,r;const o=rs({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Wn(o.TransitionProps,Hw),x=Wn(o,Bw),S=ns(),E="rtl"===S.direction,w=Ct({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Fn({root:["root"],paper:["paper"],list:["list"]},jw,t)})(w),R=i&&!s&&d,k=bn.useRef(null);let D=-1;bn.Children.map(a,((e,t)=>{bn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===D)&&(D=t))}));const A=null!=(n=v.paper)?n:Uw,P=null!=(r=b.paper)?r:p,I=AS({elementType:v.root,externalSlotProps:b.root,ownerState:w,className:[C.root,l]}),T=AS({elementType:A,externalSlotProps:P,ownerState:w,className:C.paper});return Ka.jsx(Ww,Ct({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?$w:Vw,slots:{paper:A,root:v.root},slotProps:{root:I,paper:T},open:d,ref:t,transitionDuration:m,TransitionProps:Ct({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:w},x,{classes:f,children:Ka.jsx(Gw,Ct({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===D||s),autoFocusItem:R,variant:g},u,{className:Xs(C.list,u.className),children:a}))}))}));function Kw(e){return Bn("MuiMenuItem",e)}var Xw=$n("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Zw=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Jw=ls(mS,{shouldForwardProp:e=>os(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Ct({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Xw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Xw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${VE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${VE.inset}`]:{marginLeft:52},[`& .${Ew.root}`]:{marginTop:0,marginBottom:0},[`& .${Ew.inset}`]:{paddingLeft:36},[`& .${bw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ct({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${bw.root} svg`]:{fontSize:"1.25rem"}}))));var Qw=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Wn(n,Zw),f=bn.useContext(pw),m=bn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=bn.useRef(null);wn((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Ct({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Ct({},a,Fn({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Kw,a))})(n),b=kn(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Ka.jsx(pw.Provider,{value:m,children:Ka.jsx(Jw,Ct({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Xs(v.focusVisible,s),className:Xs(v.root,d)},p,{ownerState:g,classes:v}))})}));function eC(e){return Bn("MuiNativeSelect",e)}var tC=$n("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const nC=["className","disabled","error","IconComponent","inputRef","variant"],rC=({ownerState:e,theme:t})=>Ct({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Ct({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${tC.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),oC=ls("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:os,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${tC.multiple}`]:t.multiple}]}})(rC),iC=({ownerState:e,theme:t})=>Ct({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${tC.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),aC=ls("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Mt(n.variant)}`],n.open&&t.iconOpen]}})(iC);var lC,sC=bn.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Wn(e,nC),u=Ct({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Fn({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Mt(n)}`,i&&"iconOpen",r&&"disabled"]},eC,t)})(u);return Ka.jsxs(bn.Fragment,{children:[Ka.jsx(oC,Ct({ownerState:u,className:Xs(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Ka.jsx(aC,{as:i,ownerState:u,className:c.icon})]})}));const uC=["children","classes","className","label","notched"],cC=ls("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%"}),dC=ls("legend")((({ownerState:e,theme:t})=>Ct({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&&Ct({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const pC=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],fC=ls(rE,{shouldForwardProp:e=>os(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:tE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Ct({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${dE.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${dE.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${dE.focused} .${dE.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${dE.error} .${dE.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${dE.disabled} .${dE.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Ct({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),mC=ls((function(e){const{className:t,label:n,notched:r}=e,o=Wn(e,uC),i=null!=n&&""!==n,a=Ct({},e,{notched:r,withLabel:i});return Ka.jsx(cC,Ct({"aria-hidden":!0,className:t,ownerState:a},o,{children:Ka.jsx(dC,{ownerState:a,children:i?Ka.jsx("span",{children:n}):lC||(lC=Ka.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}})),hC=ls(oE,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:nE})((({theme:e,ownerState:t})=>Ct({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}))),gC=bn.forwardRef((function(e,t){var n,r,o,i,a;const l=rs({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=Wn(l,pC),v=(e=>{const{classes:t}=e;return Ct({},t,Fn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},cE,t))})(l),b=YS(),y=US({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Ct({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:fC,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:hC;return Ka.jsx(lE,Ct({slots:{root:S,input:E},renderSuffix:e=>Ka.jsx(mC,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Ka.jsxs(bn.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Ct({},v,{notchedOutline:null})}))}));gC.muiName="Input";var vC=gC;function bC(e){return Bn("MuiSelect",e)}var yC,xC=$n("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const SC=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],EC=ls("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${xC.select}`]:t.select},{[`&.${xC.select}`]:t[n.variant]},{[`&.${xC.error}`]:t.error},{[`&.${xC.multiple}`]:t.multiple}]}})(rC,{[`&.${xC.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),wC=ls("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Mt(n.variant)}`],n.open&&t.iconOpen]}})(iC),CC=ls("input",{shouldForwardProp:e=>is(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 RC(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function kC(e){return null==e||"string"==typeof e&&!e.trim()}const DC=bn.forwardRef((function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:i,children:a,className:l,defaultOpen:s,defaultValue:u,disabled:c,displayEmpty:d,error:p=!1,IconComponent:f,inputRef:m,labelId:h,MenuProps:g={},multiple:v,name:b,onBlur:y,onChange:x,onClose:S,onFocus:E,onOpen:w,open:C,readOnly:R,renderValue:k,SelectDisplayProps:D={},tabIndex:A,value:P,variant:I="standard"}=e,T=Wn(e,SC),[L,M]=Cn({controlled:P,default:u,name:"Select"}),[q,O]=Cn({controlled:C,default:s,name:"Select"}),_=bn.useRef(null),N=bn.useRef(null),[F,z]=bn.useState(null),{current:j}=bn.useRef(null!=C),[H,B]=bn.useState(),$=kn(t,m),V=bn.useCallback((e=>{N.current=e,e&&z(e)}),[]),W=null==F?void 0:F.parentNode;bn.useImperativeHandle($,(()=>({focus:()=>{N.current.focus()},node:_.current,value:L})),[L]),bn.useEffect((()=>{s&&q&&F&&!j&&(B(i?null:W.clientWidth),N.current.focus())}),[F,i]),bn.useEffect((()=>{o&&N.current.focus()}),[o]),bn.useEffect((()=>{if(!h)return;const e=xn(N.current).getElementById(h);if(e){const t=()=>{getSelection().isCollapsed&&N.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[h]);const U=(e,t)=>{e?w&&w(t):S&&S(t),j||(B(i?null:W.clientWidth),O(e))},G=bn.Children.toArray(a),Y=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(L)?L.slice():[];const t=L.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),L!==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:b}}),x(o,e)}v||U(!1,t)}},K=null!==F&&q;let X,Z;delete T["aria-invalid"];const J=[];let Q=!1;(ZS({value:L})||d)&&(k?X=k(L):Q=!0);const ee=G.map((e=>{if(!bn.isValidElement(e))return null;let t;if(v){if(!Array.isArray(L))throw new Error(Lt(2));t=L.some((t=>RC(t,e.props.value))),t&&Q&&J.push(e.props.children)}else t=RC(L,e.props.value),t&&Q&&(Z=e.props.children);return bn.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Y(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));Q&&(X=v?0===J.length?null:J.reduce(((e,t,n)=>(e.push(t),n<J.length-1&&e.push(", "),e)),[]):Z);let te,ne=H;!i&&j&&F&&(ne=W.clientWidth),te=void 0!==A?A:c?null:0;const re=D.id||(b?`mui-component-select-${b}`:void 0),oe=Ct({},e,{variant:I,value:L,open:K,error:p}),ie=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Fn({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Mt(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},bC,t)})(oe);return Ka.jsxs(bn.Fragment,{children:[Ka.jsx(EC,Ct({ref:V,tabIndex:te,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":K?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[h,re].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!R){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:c||R?null:e=>{0===e.button&&(e.preventDefault(),N.current.focus(),U(!0,e))},onBlur:e=>{!K&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:b}}),y(e))},onFocus:E},D,{ownerState:oe,className:Xs(D.className,ie.select,l),id:re,children:kC(X)?yC||(yC=Ka.jsx("span",{className:"notranslate",children:"​"})):X})),Ka.jsx(CC,Ct({"aria-invalid":p,value:Array.isArray(L)?L.join(","):L,name:b,ref:_,"aria-hidden":!0,onChange:e=>{const t=G.find((t=>t.props.value===e.target.value));void 0!==t&&(M(t.props.value),x&&x(e,t))},tabIndex:-1,disabled:c,className:ie.nativeInput,autoFocus:o,ownerState:oe},T)),Ka.jsx(wC,{as:f,className:ie.icon,ownerState:oe}),Ka.jsx(Yw,Ct({id:`menu-${b||""}`,anchorEl:W,open:K,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:Ct({"aria-labelledby":h,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:Ct({},g.PaperProps,{style:Ct({minWidth:ne},null!=g.PaperProps?g.PaperProps.style:null)}),children:ee}))]})}));var AC=DC;const PC=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],IC=["root"],TC={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>os(e)&&"variant"!==e,slot:"Root"},LC=ls(dw,TC)(""),MC=ls(vC,TC)(""),qC=ls(ew,TC)(""),OC=bn.forwardRef((function(e,t){const n=rs({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=mE,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:w="outlined"}=n,C=Wn(n,PC),R=v?sC:AC,k=US({props:n,muiFormControl:YS(),states:["variant","error"]}),D=k.variant||w,A=Ct({},n,{variant:D,classes:i}),P=(e=>{const{classes:t}=e;return t})(A),I=Wn(P,IC),T=d||{standard:Ka.jsx(LC,{ownerState:A}),outlined:Ka.jsx(MC,{label:f,ownerState:A}),filled:Ka.jsx(qC,{ownerState:A})}[D],L=kn(t,T.ref);return Ka.jsx(bn.Fragment,{children:bn.cloneElement(T,Ct({inputComponent:R,inputProps:Ct({children:o,error:k.error,IconComponent:u,variant:D,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Ct({id:c},E)},p,{classes:p?Dt(I,p.classes):I},d?d.props.inputProps:{})},g&&v&&"outlined"===D?{notched:!0}:{},{ref:L,className:Xs(T.props.className,a,P.root)},!d&&{variant:D},C))})}));OC.muiName="Select";var _C=OC;var NC=bn.createContext();function FC(e){return Bn("MuiTable",e)}$n("MuiTable",["root","stickyHeader"]);const zC=["className","component","padding","size","stickyHeader"],jC=ls("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Ct({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ct({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),HC="table",BC=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiTable"}),{className:r,component:o=HC,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=Wn(n,zC),u=Ct({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return Fn({root:["root",n&&"stickyHeader"]},FC,t)})(u),d=bn.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Ka.jsx(NC.Provider,{value:d,children:Ka.jsx(jC,Ct({as:o,role:o===HC?null:"table",ref:t,className:Xs(c.root,r),ownerState:u},s))})}));var $C=BC;var VC=bn.createContext();function WC(e){return Bn("MuiTableBody",e)}$n("MuiTableBody",["root"]);const UC=["className","component"],GC=ls("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),YC={variant:"body"},KC="tbody";var XC=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiTableBody"}),{className:r,component:o=KC}=n,i=Wn(n,UC),a=Ct({},n,{component:o}),l=(e=>{const{classes:t}=e;return Fn({root:["root"]},WC,t)})(a);return Ka.jsx(VC.Provider,{value:YC,children:Ka.jsx(GC,Ct({className:Xs(l.root,r),as:o,ref:t,role:o===KC?null:"rowgroup",ownerState:a},i))})}));function ZC(e){return Bn("MuiTableCell",e)}var JC=$n("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const QC=["align","className","component","padding","scope","size","sortDirection","variant"],eR=ls("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Mt(n.size)}`],"normal"!==n.padding&&t[`padding${Mt(n.padding)}`],"inherit"!==n.align&&t[`align${Mt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Ct({},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?yl(vl(e.palette.divider,1),.88):bl(vl(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",[`&.${JC.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}))),tR=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=Wn(n,QC),p=bn.useContext(NC),f=bn.useContext(VC),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const v=c||f&&f.variant,b=Ct({},n,{align:r,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===v&&p&&p.stickyHeader,variant:v}),y=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return Fn({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${Mt(r)}`,"normal"!==o&&`padding${Mt(o)}`,`size${Mt(i)}`]},ZC,t)})(b);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Ka.jsx(eR,Ct({as:h,ref:t,className:Xs(y.root,o),"aria-sort":x,scope:g,ownerState:b},d))}));var nR=tR;function rR(e){return Bn("MuiTableContainer",e)}$n("MuiTableContainer",["root"]);const oR=["className","component"],iR=ls("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var aR=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=Wn(n,oR),a=Ct({},n,{component:o}),l=(e=>{const{classes:t}=e;return Fn({root:["root"]},rR,t)})(a);return Ka.jsx(iR,Ct({ref:t,as:o,className:Xs(l.root,r),ownerState:a},i))}));function lR(e){return Bn("MuiTableHead",e)}$n("MuiTableHead",["root"]);const sR=["className","component"],uR=ls("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),cR={variant:"head"},dR="thead";var pR=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiTableHead"}),{className:r,component:o=dR}=n,i=Wn(n,sR),a=Ct({},n,{component:o}),l=(e=>{const{classes:t}=e;return Fn({root:["root"]},lR,t)})(a);return Ka.jsx(VC.Provider,{value:cR,children:Ka.jsx(uR,Ct({as:o,className:Xs(l.root,r),ref:t,role:o===dR?null:"rowgroup",ownerState:a},i))})}));function fR(e){return Bn("MuiTableRow",e)}var mR=$n("MuiTableRow",["root","selected","hover","head","footer"]);const hR=["className","component","hover","selected"],gR=ls("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,[`&.${mR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vl(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}))`:vl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),vR="tr",bR=bn.forwardRef((function(e,t){const n=rs({props:e,name:"MuiTableRow"}),{className:r,component:o=vR,hover:i=!1,selected:a=!1}=n,l=Wn(n,hR),s=bn.useContext(VC),u=Ct({},n,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Fn({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},fR,t)})(u);return Ka.jsx(gR,Ct({as:o,ref:t,className:Xs(c.root,r),role:o===vR?null:"row",ownerState:u},l))}));var yR=bR,xR=(e={})=>yn.createElement($s,{...e},yn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},yn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},yn.createElement("rect",{stroke:ks.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})))),SR=({className:e})=>yn.createElement($s,{fontSize:"small",className:e},yn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},yn.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5 3.5 1.793ZM8 4h5v1H8V4Zm0 3h6v1H8V7Zm0 3h7v1H8v-1Z"}))),ER=({className:e})=>yn.createElement($s,{fontSize:"small",className:e},yn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},yn.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5V2Zm12 2H8v1h7V4ZM8 7h6v1H8V7Zm5 3H8v1h5v-1Z"}))),wR=({className:e})=>yn.createElement($s,{fontSize:"small",className:e},yn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},yn.createElement("path",{fill:"currentColor",d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"})));const CR={MuiAccordion:{styleOverrides:{root:{backgroundColor:ks.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:ks.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:yn.createElement(js,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${ks.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:ks.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${ks.MISC_FOCUS_BORDER}`,borderRadius:Ts,backgroundColor:ks.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${ks.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:ks.WHITE,color:ks.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Ts},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ks.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:ks.GREYSCALE_0_15,backgroundColor:ks.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:ks.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ks.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:ks.GREEN_PALE},"&:active":{backgroundColor:ks.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ks.GREEN_PALE,boxShadow:`0 0 0 3px ${vl(ks.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:ks.BLUE_PALE},"&:active":{backgroundColor:ks.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ks.BLUE_PALE,boxShadow:`0 0 0 3px ${vl(ks.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Ts,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:ks.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ks.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:ks.GREYSCALE_0_15,backgroundColor:ks.GREYSCALE_100_60,"&:active":{backgroundColor:ks.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:ks.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ks.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:ks.PURPLE,"&.Mui-focusVisible":{borderColor:ks.PURPLE,boxShadow:`0 0 0 3px ${vl(ks.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:ks.GREEN,"&.Mui-focusVisible":{borderColor:ks.GREEN,boxShadow:`0 0 0 3px ${vl(ks.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:ks.BLUE,"&.Mui-focusVisible":{borderColor:ks.BLUE,boxShadow:`0 0 0 3px ${vl(ks.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:ks.ORANGE,"&.Mui-focusVisible":{borderColor:ks.ORANGE,boxShadow:`0 0 0 3px ${vl(ks.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:ks.RED,"&.Mui-focusVisible":{borderColor:ks.RED,boxShadow:`0 0 0 3px ${vl(ks.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:ks.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:ks.PURPLE_PALE},"&:active":{backgroundColor:ks.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:ks.PURPLE_PALE,boxShadow:`0 0 0 3px ${vl(ks.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:ks.GREEN_PALE},"&:active":{backgroundColor:ks.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ks.GREEN_PALE,boxShadow:`0 0 0 3px ${vl(ks.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:ks.BLUE_PALE},"&:active":{backgroundColor:ks.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ks.BLUE_PALE,boxShadow:`0 0 0 3px ${vl(ks.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:ks.ORANGE_PALE},"&:active":{backgroundColor:ks.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:ks.ORANGE_PALE,boxShadow:`0 0 0 3px ${vl(ks.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:ks.RED_PALE},"&:active":{backgroundColor:ks.RED_DARK},"&.Mui-focusVisible":{borderColor:ks.RED_PALE,boxShadow:`0 0 0 3px ${vl(ks.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:ks.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:ks.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ts,boxShadow:`inset 0 0 0 2px ${ks.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:yn.createElement(Bs,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ds,borderRadius:Ts,color:ks.TEXT_PRIMARY,backgroundColor:ks.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:ks.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${ks.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:ks.GREYSCALE_0_05,color:ks.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:ks.GREEN,borderColor:ks.GREEN},"&.MuiChip-outlinedInfo":{color:ks.BLUE,borderColor:ks.BLUE},"&.MuiChip-outlinedWarning":{color:ks.ORANGE,borderColor:ks.ORANGE},"&.MuiChip-outlinedError":{color:ks.RED,borderColor:ks.RED}},outlined:{border:`solid 1px ${ks.GREYSCALE_0_15}`,backgroundColor:ks.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ts,boxShadow:"none",backgroundColor:ks.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:ks.GREEN,borderColor:ks.GREEN},outlinedSecondary:{color:ks.BLUE,borderColor:ks.BLUE},label:{fontFamily:_s.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:yn.createElement(Bs,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:yn.createElement(js,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Ts},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:As,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:ks.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:ks.GREYSCALE_0_10},"&:hover":{backgroundColor:ks.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Ts,border:`solid 1px ${ks.GREYSCALE_0_15}`,color:ks.GREYSCALE_0_60,marginRight:0,width:Is,height:Is},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${ks.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ts,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:ks.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:As}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ds,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:ks.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:ks.GREYSCALE_25,fontSize:Ds,fontFamily:_s.FONT_FAMILY,fontWeight:qs,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:ks.TEXT_PRIMARY},"&.Mui-error":{color:ks.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:ks.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ms,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:ks.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ms,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:As,lineHeight:"16px",backgroundColor:ks.WHITE,borderRadius:Ts,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ks.GREYSCALE_0_05}`,borderColor:ks.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ks.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${ks.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${ks.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ks.RED}`,boxShadow:`0px 0px 0px 1px ${ks.RED}, inset 0 2px 0 0 ${ks.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ks.GREYSCALE_0_10}`,borderColor:ks.GREYSCALE_0_10,backgroundColor:ks.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:ks.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:ks.GREYSCALE_0_15,borderRadius:Ts,boxShadow:`inset 0 2px 0 0 ${ks.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>yn.createElement(js,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:ks.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:ks.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:ks.GREYSCALE_0_03},"&:active":{backgroundColor:ks.GREYSCALE_0_10},"&:focus":{backgroundColor:ks.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${ks.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${ks.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:ks.GREYSCALE_0_30,"&:hover":{backgroundColor:ks.GREYSCALE_0_0,borderColor:ks.GREYSCALE_0_15},"& ~svg":{color:ks.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${ks.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ts}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:ks.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${ks.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:ks.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:As,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ds,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ds,fontWeight:qs,color:ks.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:qs}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${ks.GREYSCALE_0_15}, 0px 0px 0px 1px ${ks.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:yn.createElement(Us,null),checkedIcon:yn.createElement(Gs,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:ks.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${ks.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:ks.GREEN_PALE,boxShadow:`0 0 0 3px ${vl(ks.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:ks.BLUE_PALE,boxShadow:`0 0 0 3px ${vl(ks.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:ks.GREYSCALE_0_20}},"&.Mui-disabled":{fill:ks.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:yn.createElement(xR,null),checkedIcon:yn.createElement(Vs,null),indeterminateIcon:yn.createElement(Ws,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ts,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:ks.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:ks.GREYSCALE_0_55,color:ks.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:ks.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:ks.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:ks.GREYSCALE_0_55,"&:hover":{color:ks.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDataGrid:{defaultProps:{className:"sprout-data-grid-pro",slots:{columnSortedAscendingIcon:SR,columnSortedDescendingIcon:ER,columnMenuSortAscendingIcon:SR,columnMenuSortDescendingIcon:ER,quickFilterIcon:({className:e})=>yn.createElement(wR,{className:`sprout-data-grid-pro-filter-search-icon ${e}`})},slotProps:{toolbar:{className:"sprout-data-grid-pro-toolbar"}}},styleOverrides:{root:{borderColor:ks.GREYSCALE_85,borderRadius:0,"& .sprout-data-grid-pro-toolbar":{marginTop:0,"& .sprout-data-grid-pro-filter-search-icon":{paddingLeft:"8px",paddingRight:"4px",color:ks.GREYSCALE_55},"& > div":{"&:after":{borderBottom:`1px solid ${ks.GREYSCALE_0_15}`},"&:hover::before":{borderBottom:`1px solid ${ks.GREYSCALE_0_15}`}}}},columnHeaders:{backgroundColor:ks.GREYSCALE_98},withBorderColor:{borderColor:ks.GREYSCALE_85,"&.MuiDataGrid-cell--withRightBorder:last-of-type":{borderRightWidth:0},"&.MuiDataGrid-columnHeader--withRightBorder:last-of-type":{borderRightWidth:0}},row:{"&:hover":{backgroundColor:ks.GREYSCALE_0_03},"&.MuiDataGrid-row.Mui-selected":{backgroundColor:ks.GREYSCALE_0_05,"&:hover":{backgroundColor:ks.GREYSCALE_0_03}}},menu:{"& svg.MuiSvgIcon-root":{fontSize:Ps}},filterIcon:{fontSize:Ps},pinnedColumnHeaders:{backgroundColor:ks.GREYSCALE_98},pinnedColumns:{backgroundColor:ks.WHITE}}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:ks.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:ks.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:As,color:ks.TEXT_PRIMARY,lineHeight:"16px",fontWeight:qs},secondary:{fontSize:Ds,color:ks.GREYSCALE_45,fontWeight:Ms,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:As,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:ks.GREYSCALE_0_03},"&:active":{backgroundColor:ks.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:As,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:ks.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ds,borderBottom:`solid 1px ${ks.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:As,color:ks.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:ks.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:ks.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:ks.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:ks.RED}}},"&.Mui-focusVisible":{backgroundColor:ks.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:ks.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:ks.GREEN,height:"24px","&.Mui-disabled":{color:ks.GREYSCALE_0_15}},rail:{backgroundColor:ks.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${ks.GREYSCALE_0_05}`,borderRadius:Ts,boxShadow:`inset 0px 0px 0px 1px ${ks.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${ks.GREYSCALE_0_05}`,borderRadius:Ts},thumb:{height:"16px",width:"16px",borderRadius:Ts,backgroundColor:ks.WHITE,boxShadow:`0px 1px 2px 0px ${ks.GREYSCALE_0_15}, 0px 0px 0px 1px ${ks.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ts,boxShadow:`0 2px 4px 0 ${ks.GREYSCALE_0_30}, 0 0 0 1px ${ks.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${ks.GREYSCALE_0_15}, 0 0 0 1px ${ks.GREYSCALE_0_06}, 0 0 0 2px ${ks.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${ks.GREYSCALE_0_15}, 0 0 0 1px ${ks.GREYSCALE_0_06}, 0 0 0 2px ${ks.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:ks.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:ks.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:ks.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:ks.GREYSCALE_0_15},markLabel:{color:ks.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:ks.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:ks.WHITE,color:ks.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:ks.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ks.GREEN_PALE,boxShadow:`0 0 0 3px ${vl(ks.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ks.BLUE_PALE,boxShadow:`0 0 0 3px ${vl(ks.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:ks.GREYSCALE_0_15,borderRadius:Ts},thumb:{height:"16px",width:"16px",borderRadius:Ts,backgroundColor:ks.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:As,fontWeight:qs,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${ks.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${ks.MISC_FOCUS_BORDER}`,backgroundColor:ks.GREYSCALE_0_03,borderRadius:Ts},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:ks.GREYSCALE_25,"&.Mui-selected":{color:ks.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:As,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${ks.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${ks.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${ks.GREYSCALE_85}`,borderRight:`1px solid ${ks.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:qs,backgroundColor:ks.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:ks.GREYSCALE_98,borderBottom:`1px solid ${ks.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${ks.GREYSCALE_85}`,borderTop:`1px solid ${ks.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:ks.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:ks.GREYSCALE_0_05,"&:hover":{backgroundColor:ks.GREYSCALE_0_03}},"&&:hover":{backgroundColor:ks.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>yn.createElement(Ys,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${ks.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:As,borderRadius:Ts,padding:"7px 16px",border:`1px solid ${ks.GREYSCALE_0_15}`,backgroundColor:ks.GREYSCALE_100_60,color:ks.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:ks.GREYSCALE_0_10,border:`1px solid ${ks.GREYSCALE_0_30}`},"&:hover":{backgroundColor:ks.GREYSCALE_0_03,border:`1px solid ${ks.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:ks.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${ks.MISC_FOCUS_BORDER}`,border:`1px solid ${ks.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:ks.GREYSCALE_25,backgroundColor:ks.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:ks.GREYSCALE_0_10,border:`1px solid ${ks.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ds,height:24,width:24,padding:7},sizeLarge:{fontSize:Ps,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:As,borderRadius:Ts}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:ks.GREYSCALE_20},tooltip:{backgroundColor:ks.GREYSCALE_20,fontSize:Ds,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var RR=e=>CR;const kR={mode:"light",primary:{light:ks.GREEN_PALE,main:ks.GREEN,dark:ks.GREEN_DARK,contrastText:ks.WHITE},secondary:{light:ks.BLUE_PALE,main:ks.BLUE,dark:ks.BLUE_DARK,contrastText:ks.WHITE},error:{light:ks.RED_PALE,main:ks.RED,dark:ks.RED_DARK,contrastText:ks.WHITE},warning:{light:ks.ORANGE_PALE,main:ks.ORANGE,dark:ks.ORANGE_DARK,contrastText:ks.WHITE},success:{light:ks.GREEN_PALE,main:ks.GREEN,dark:ks.GREEN_DARK,contrastText:ks.WHITE},info:{light:ks.BLUE_PALE,main:ks.BLUE,dark:ks.BLUE_DARK,contrastText:ks.WHITE},text:{primary:ks.TEXT_PRIMARY,secondary:ks.TEXT_SECONDARY,disabled:ks.GREYSCALE_0_30},action:{hover:ks.GREYSCALE_0_03,hoverOpacity:.05,selected:ks.GREYSCALE_0_05},amethyst:{main:ks.PURPLE,light:ks.PURPLE_PALE,dark:ks.PURPLE_DARK,contrastText:ks.WHITE},background:{paper:ks.WHITE,default:ks.GREYSCALE_95},divider:ks.GREYSCALE_0_15},DR=e=>({components:RR(),palette:kR,breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:As,fontWeightLight:Ls,fontWeightRegular:Ms,fontWeightMedium:qs,fontWeightBold:Os,htmlFontSize:As,fontFamily:_s.FONT_FAMILY,button:{fontWeight:qs,fontSize:As,textTransform:"none"},body1:{fontSize:Ps,lineHeight:"24px"},body2:{fontSize:As,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Is,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ps,fontWeight:qs,lineHeight:"16px"},h6:{fontSize:As,fontWeight:qs,lineHeight:"16px"},caption:{color:ks.TEXT_SECONDARY},subtitle1:{fontSize:As,color:ks.TEXT_SECONDARY},subtitle2:{fontSize:Ds,color:ks.TEXT_SECONDARY}},shape:{borderRadius:Ts}}),AR={...Rs,MISC_FOCUS_BORDER:ks.MISC_FOCUS_BORDER},PR=(e="light")=>DR();var IR=PR().palette,TR={TEXT:IR.text.primary,DISABLED:IR.text.disabled,HOVER:IR.action.hover,WHITE:AR.GREYSCALE_100,BORDER_LIGHT:AR.GREYSCALE_90,BORDER_MEDIUM:AR.GREYSCALE_85,BORDER_HEAVY:AR.GREYSCALE_50,DARK_MODE_TEXT:AR.GREYSCALE_95,DARK_MODE_BORDER:AR.GREYSCALE_95,DARK_MODE_DISABLED:AR.GREYSCALE_70,DARK_MODE_BACKGROUND:AR.GREYSCALE_20},LR={SELECTED:{color:AR.GREYSCALE_100,background:IR.primary.light,selectedCellClass:f.SELECTED},POSSIBLE:{color:IR.text.primary,background:AR.GREYSCALE_100},EXCLUDED_BACKGROUND:"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"},MR=4/3,qR="12px",OR={height:"auto",fontSize:qR,lineHeight:"unset",padding:"".concat(4,"px"),borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},_R=25e4;function NR(e,t,n){var r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){var i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function FR(e,t,n){var r=bn.useMemo((function(){var r=document.createElement("canvas").getContext("2d");r.font="".concat(n?"600":""," ").concat(e||""," ").concat(t);var o=Ve(r.measureText.bind(r)),i=function(e){return+o(e).width.toFixed(2)},a=Ve((function(e){var t=e.text,n=e.maxWidth,r=e.isNumeric;if(void 0!==r&&r)return 1;var o=0,a=t;do{o+=1,a=NR(a,n,i)}while(null!==a&&o<3);return o}),(function(e){var t=e.text,n=e.maxWidth,r=e.isNumeric;return"".concat(t,"-").concat(n,"-").concat(r)}));return{measureText:function(e){return o(e).width},estimateWidth:function(e){return o("N").width*e},estimateLineCount:a}}),[e,t,n]);return{estimateWidth:r.estimateWidth,measureText:r.measureText,estimateLineCount:r.estimateLineCount}}var zR=function(e,t,n){if(!(null==e?void 0:e.length))return[];var r=[],o=[],i=t;if(e.forEach((function(e,a){if(e.columnWidth){var l=e.columnWidth,s=l.type,u=l.pixels,c=l.percentage,d=e.label,p=e.qApprMaxGlyphCount,f=e.totalInfo,m=0,h=function(){r[a]=Math.min(7680,Math.max(x,m)),i-=r[a]};switch(s){case b.PIXELS:m=u||200,h();break;case b.PERCENTAGE:m=(c||20)/100*t,h();break;case b.FIT_TO_CONTENT:m=n(d,f,p,e.isLocked),h();break;case b.AUTO:o.push(a);break;default:throw new Error("".concat(s," is not a valid column width type"))}}else o.push(a)})),o.length){var a=i/o.length;o.forEach((function(e){r[e]=Math.max(x,a)}))}return r},jR=function(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]]},HR=function(e){return e.querySelector("td[tabindex='0'], th[tabindex='0']")},BR=function(e){var t,n,r=e.nextElementSibling;return r?"HR"===r.tagName?BR(r):r:null===(n=null===(t=e.parentElement)||void 0===t?void 0:t.children)||void 0===n?void 0:n[0]},$R=function(e){var t,n,r,o,i=e.previousElementSibling;if(!i){var a=null===(n=null===(t=e.parentElement)||void 0===t?void 0:t.children)||void 0===n?void 0:n.length;return null===(o=null===(r=e.parentElement)||void 0===r?void 0:r.children)||void 0===o?void 0:o[a-1]}return"HR"===i.tagName?$R(i):i},VR=function(e){return!e.enabled||e.active},WR=function(e){var t,n=e.target;n.setAttribute("tabIndex","-1");var r=null===(t=null==n?void 0:n.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(".sn-table-head-menu-button");null==r||r.focus()},UR=function(e){var t=e.focusType,n=e.cell;if(n)switch(t){case g.FOCUS:n.focus(),n.setAttribute("tabIndex","0");break;case g.FOCUS_BUTTON:n.querySelector(".sn-table-head-label").focus();break;case g.BLUR:n.blur(),n.setAttribute("tabIndex","-1");break;case g.ADD_TAB:n.setAttribute("tabIndex","0");break;case g.REMOVE_TAB:n.setAttribute("tabIndex","-1")}},GR=function(e,t,n,r,o,i){var a=function(e,t,n,r){void 0===r&&(r={top:0,bottom:0});var o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length,a=n[0],l=n[1];switch(e.key){case h.DOWN:a<o-1-r.bottom&&a++;break;case h.UP:a>r.top&&a--;break;case h.RIGHT:if(r.top>0)break;l<i-1?l++:a<o-1&&(a++,l=0);break;case h.LEFT:if(r.top>0)break;l>0?l--:a>0&&(a--,l=i-1)}return[a,l]}(e,t,n,i),l=jR(t,a);return UR({focusType:o,cell:l}),r(a),l},YR=function(e,t){var n=HR(e),r=n?function(e,t){for(var n=e.getElementsByClassName("sn-table-head-cell").length,r=e.getElementsByClassName("sn-table-cell"),o=0,i=0;i<r.length;i++)if(r[i]===t){o=i;break}return[Math.ceil(o/n),o%n]}(e,n):w;n=n||jR(e,w),UR({cell:n,focusType:g.FOCUS}),t(r)},KR=function(e,t,n,r){var o;UR({focusType:g.REMOVE_TAB,cell:HR(t)}),n(e),r.enabled&&!r.active?null===(o=r.focus)||void 0===o||o.call(r):UR({focusType:g.ADD_TAB,cell:jR(t,e)})},XR=function(e,t,n){var r,o,i,a,l,s=null!==(i=null===(o=null===(r=e.closest(".qv-object-wrapper"))||void 0===r?void 0:r.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==i?i:null===(a=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===a?void 0:a.parentElement;s?s.focus():null===(l=t.focusSelection)||void 0===l||l.call(t,n)},ZR=function(e){e.stopPropagation(),e.preventDefault()},JR=function(e){return e.ctrlKey||e.metaKey},QR=function(e){return e.shiftKey&&JR(e)},ek=function(e){return[h.LEFT,h.RIGHT,h.UP,h.DOWN].includes(e)},tk=function(e){return e.shiftKey&&ek(e.key)},nk=function(e,t){return void 0===t&&(t=!1),e.key===h.ESC&&!t||(e.key===h.LEFT||e.key===h.RIGHT)&&QR(e)},rk=function(e,t){var n=t.key===h.UP&&1===e[0],r=t.key===h.LEFT&&1===e[0]&&0===e[1];return n||r?g.FOCUS_BUTTON:g.FOCUS},ok=function(e){var t=e.evt,n=e.rootElement,r=e.cell,o=e.selectionDispatch,i=e.isSelectionsEnabled,a=e.setFocusedCellCoord,l=e.announce,s=e.totalsPosition,u=e.isSelectionMode,c=s.atTop?2:1,d=[r.pageRowIdx+c,r.pageColIdx],p={top:u?c:0,bottom:u&&s.atBottom?1:0},f=rk(d,t);f===g.FOCUS&&UR({focusType:g.REMOVE_TAB,cell:t.target});var v=GR(t,n,d,a,f,p);t.key!==h.UP&&t.key!==h.DOWN||(t.key===h.UP&&function(e,t){var n,r=t.getElementsByClassName("sn-table-container")[0];if(null==r?void 0:r.scrollTo){var o=e[0],i=e[1];if(o<2)r.scrollTo({top:0,behavior:"auto"});else{var a=t.getElementsByClassName("sn-table-head-cell")[0],l=null===(n=t.getElementsByClassName("sn-table-row")[o])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[i];if(!l)return;if(l.offsetTop-a.offsetHeight<r.scrollTop){var s=r.scrollTop-l.offsetHeight-a.offsetHeight;r.scrollTo({top:Math.max(0,s),behavior:"auto"})}}}}([r.pageRowIdx,r.pageColIdx],n),function(e,t,n){return t.shiftKey&&(t.key===h.UP&&0!==n.pageRowIdx||t.key===h.DOWN&&!n.isLastRow)&&e&&n.isSelectable}(i,t,r)?o({type:m.SELECT_MULTI_ADD,payload:{cell:r,evt:t,announce:l}}):function(e,t,n){void 0===n&&(n=!1),n&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})}(l,v,u))},ik=function(e){var t=e.evt,n=e.rootElement,r=e.setFocusedCellCoord,o=e.keyboard,i=e.isSelectionMode,a=e.paginationNeeded;if((null==o?void 0:o.enabled)&&i&&(t.shiftKey||!t.shiftKey&&!a))ZR(t),XR(t.target,o,t.shiftKey);else if(t.shiftKey){r([0,n.querySelectorAll(".sn-table-head-cell").length-1])}},ak=function(e,t){var n=t.colIdx,r=t.rows,o=t.api,i=f.INACTIVE;return(null==o?void 0:o.isModal())&&(i=n!==e.selectionColIdx?f.EXCLUDED:void 0!==r[e.qElemNumber]?f.SELECTED:f.POSSIBLE),i},lk=function(e,t,n){var r=Object.keys(n).length,o=r>=Object.keys(t).length;r?e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]}):e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},sk=function(e,n){var r=e.api,o=e.rows,i=e.colIdx,a=n.cell,l=n.announce,s=n.evt,u={};if(-1===i)null==r||r.begin(["/qHyperCubeDef"]);else{if(i!==a.selectionColIdx)return e;u=t({},o)}return u=function(e,n,r){var o,i=n.qElemNumber,a=n.rowIdx;return r.ctrlKey||r.metaKey?((o={})[i]=a,o):(void 0!==e[i]?delete e[i]:e[i]=a,t({},e))}(u,a,s),lk(l,o,u),Object.keys(u).length?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(u),[a.selectionColIdx]]}),t(t({},e),{rows:u,colIdx:a.selectionColIdx})):(null==r||r.cancel(),t(t({},e),{rows:u,colIdx:-1}))},uk=function(e,n){var r,o=e.api,i=e.rows,a=e.colIdx,l=e.pageRows,s=e.firstCell,u=n.cell,c=n.announce,d=n.evt,p={};return s||"key"in d&&tk(d)?(-1===a?null==o||o.begin(["/qHyperCubeDef"]):p=t({},i),p=function(e,n,r,o,i){var a=t({},n);if("key"in o&&tk(o)){a[r.qElemNumber]=r.rowIdx;var l=o.key===h.DOWN?1:-1;return a[e[r.pageRowIdx+l]["col-".concat(r.pageColIdx)].qElemNumber]=r.rowIdx+l,a}if(!i)return n;for(var s=Math.min(i.pageRowIdx,r.pageRowIdx),u=Math.max(i.pageRowIdx,r.pageRowIdx),c=s;c<=u;c++){var d=e[c]["col-".concat(i.pageColIdx)];a[d.qElemNumber]=d.rowIdx}return a}(l,p,u,d,s),lk(c,i,p),t(t({},e),{rows:p,colIdx:null!==(r=null==s?void 0:s.selectionColIdx)&&void 0!==r?r:u.selectionColIdx,isSelectMultiValues:!0})):e},ck=function(e){var n=e.api,r=e.rows,o=e.colIdx,i=e.isSelectMultiValues,a=e.mouseupOutsideCallback;return a&&document.removeEventListener("mouseup",a),i&&(null==n||n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(r),[o]]})),t(t({},e),{isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0})},dk=function(e,n){var r;switch(n.type){case m.SELECT:return sk(e,n.payload);case m.SELECT_MOUSE_DOWN:return function(e,n){var r=n.cell,o=n.mouseupOutsideCallback;return!o||-1!==e.colIdx&&e.colIdx!==r.selectionColIdx?e:(document.addEventListener("mouseup",o),t(t({},e),{firstCell:r,mouseupOutsideCallback:o}))}(e,n.payload);case m.SELECT_MOUSE_UP:return function(e,t){return ck(e.isSelectMultiValues||e.firstCell!==t.cell?e:sk(e,t))}(e,n.payload);case m.SELECT_MULTI_ADD:return uk(e,n.payload);case m.SELECT_MULTI_END:return ck(e);case m.RESET:return(null===(r=e.api)||void 0===r?void 0:r.isModal())?e:t(t({},e),{rows:{},colIdx:-1});case m.CLEAR:return Object.keys(e.rows).length?t(t({},e),{rows:{}}):e;case m.UPDATE_PAGE_ROWS:return t(t({},e),{pageRows:n.payload.pageRows});default:throw new Error("reducer called with invalid action type")}},pk=4/3,fk=function(e){return parseInt(e,10)*pk+8+1},mk=function(e){return!!e&&(null!==e.color||e.index>-1)};function hk(e,t,n){void 0===n&&(n={});var r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}var gk=function(e){return dt(e)?TR.WHITE:TR.TEXT},vk=function(e){var t;return null===(t=e.components)||void 0===t?void 0:t.find((function(e){return"theme"===e.key}))},bk=function(e,n,r,o){void 0===o&&(o=!1);var i=n.getStyle("object","straightTableV2.".concat(e),"fontFamily"),a=n.getStyle("object","straightTableV2.".concat(e),"color"),l=n.getStyle("object","straightTableV2.".concat(e),"fontSize"),s=t({fontFamily:i,color:mk(null==r?void 0:r.fontColor)?hk(TR.TEXT,n,null==r?void 0:r.fontColor):a||TR.TEXT,fontSize:(null==r?void 0:r.fontSize)&&"".concat(r.fontSize,"px")||l,padding:r&&"padding"in r?null==r?void 0:r.padding:void 0},function(e,t){return e?{borderBottomColor:TR.DARK_MODE_BORDER,borderRightColor:TR.DARK_MODE_BORDER,borderLeftColor:TR.DARK_MODE_BORDER,borderTopColor:TR.DARK_MODE_BORDER}:{borderLeftColor:TR.BORDER_MEDIUM,borderRightColor:TR.BORDER_MEDIUM,borderTopColor:TR.BORDER_HEAVY,borderBottomColor:t?TR.BORDER_HEAVY:TR.BORDER_LIGHT}}(n.background.isDark,o));return Object.keys(s).forEach((function(e){var t=e;null==s[t]&&delete s[t]})),s};function yk(e,t,n){var r,o,i=null===(r=vk(e))||void 0===r?void 0:r.header,a=bk("header",t,i,n);return a.background=t.background.isTransparent?TR.WHITE:function(e){if(void 0!==e){var t=ct(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(".concat(n[1],",").concat(n[2],",").concat(n[3],")")}return e}(t.background.color),a.color=null!==(o=a.color)&&void 0!==o?o:dt(a.background)?TR.DARK_MODE_TEXT:TR.TEXT,a}function xk(e,n,r,o){var i,a=null===(i=vk(e))||void 0===i?void 0:i.content,l=bk("content",n,a);l.background=n.background.color;var s,u=function(e,t,n){return e&&t&&n&&fk(e)*(t+2)<n.clientHeight-40?"1px":"0px"}(null==l?void 0:l.fontSize,r,o),c=null==a?void 0:a.hoverColor,d=null==a?void 0:a.hoverFontColor,p=n.getStyle("object","","straightTableV2.content.hover.backgroundColor"),f=n.getStyle("object","","straightTableV2.content.hover.color"),m=mk(d)||!!f,h=mk(c)||!!p,g=m||h;s=mk(c)?hk(TR.HOVER,n,c):p||(m?"":TR.HOVER);var v=g?hk(gk(s),n,mk(d)?d:f):"";return t(t({},l),{lastRowBottomBorder:u,hoverColors:{background:s,color:v}})}var Sk=function(e){return e.isDark?{background:e.color,borderColor:TR.DARK_MODE_BORDER,color:TR.DARK_MODE_TEXT,disabledColor:TR.DARK_MODE_DISABLED,iconColor:TR.DARK_MODE_TEXT}:{background:e.color,borderColor:TR.BORDER_MEDIUM,color:TR.TEXT,disabledColor:TR.DISABLED}};function Ek(e,n,r){var o,i={};return null===(o=null==n?void 0:n.qValues)||void 0===o||o.forEach((function(e,t){var n=e.qText&&ct(e.qText);n&&"none"!==n&&(i[r[t]]=n)})),i.cellBackgroundColor&&!i.cellForegroundColor&&(i.cellForegroundColor=gk(i.cellBackgroundColor)),t(t({},e),{color:i.cellForegroundColor||e.color,background:i.cellBackgroundColor||e.background})}var wk=function(e,n,r,o){var i=bn.useMemo((function(){var i=r.totalsPosition.atTop,a=xk(e,n,r.rows.length,o),l=yk(e,n,!i),s=function(e,n,r){var o,i=null===(o=vk(e))||void 0===o?void 0:o.content,a=bk("content",n,i),l=yk(e,n,r),s=l.borderBottomColor,u=l.borderTopColor,c=l.background;return t(t({},a),{borderBottomColor:s,background:c,borderTopColor:u})}(e,n,i);return{body:a,head:l,totals:s}}),[e,n.name(),r,o]);return i},Ck=new Map;var Rk,kk,Dk=bn.createContext({}),Ak=(Rk=Dk,kk=bn.createContext([function(){},new Set]),Ck.set(Rk,kk),function(e){var t=e.children,n=e.value,r=bn.useRef(n),o=bn.useRef(new Set);bn.useEffect((function(){r.current=n,o.current.forEach((function(e){e(n)}))}),[n]);var i=bn.useCallback((function(){return r.current}),[r]),a=bn.useMemo((function(){return[i,o.current]}),[i]);return yn.createElement(Rk.Provider,{value:n},yn.createElement(kk.Provider,{value:a},t))}),Pk={rows:[],columns:[],totalsPosition:{}},Ik=function(e){var t=e.app,n=e.children,r=e.tableData,o=void 0===r?Pk:r,i=e.selectionsAPI,a=e.cellCoordMock,l=e.layout,s=e.model,u=e.translator,c=e.interactions,d=e.theme,p=e.keyboard,f=e.rootElement,m=e.embed,h=e.changeSortOrder,g=e.applyColumnWidths,v=e.setPage,b=e.pageInfo,y=e.initialDataPages,x=e.rect,S=e.viewService,w=bn.useState(0),C=w[0],R=w[1],k=bn.useState(a||E),D=k[0],A=k[1],P=function(e,t){var n=bn.useReducer(dk,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n[0],n[1]]}(o.rows,i),I=P[0],T=P[1],L=bn.useState(-1),M=L[0],q=L[1],O=wk(l,d,o,f),_=function(e,t,n,r){var o=r.head,i=r.body,a=t.atBottom||t.atTop,l=FR(o.fontSize,o.fontFamily,!0).measureText,s=FR(i.fontSize,i.fontFamily,!0).measureText,u=FR(i.fontSize,i.fontFamily).estimateWidth,c=bn.useMemo((function(){return function(e,t,n,r){var o=r?99:71;return Math.max(l(e)+o,a?s(t)+24+1:0,u(n))}}),[u,l,s,a]),d=bn.useState(0),p=d[0],f=d[1],m=bn.useState((function(){return zR(e,n,c)})),h=m[0],g=m[1];ys((function(){g(zR(e,n-p,c))}),[e,n,p,c]);var v=bn.useMemo((function(){return function(e,t,n){return!!(e&&e.length>0)&&e.reduce((function(e,t){return e+t}))+t<n}(h,p,n)}),[h,p,n]);return[h,g,f,v]}(o.columns,o.totalsPosition,x.width,O),N=_[0],F=_[1],z=_[2],j=_[3],H=bn.useMemo((function(){return{app:t,selectionsAPI:i,layout:l,model:s,translator:u,interactions:c,theme:d,keyboard:p,rootElement:f,embed:m,changeSortOrder:h,applyColumnWidths:g,styling:O,rect:x,viewService:S}}),[t,i,l,s,u,c,d.name(),p.active,f,m,h,g,O,x,S]);return yn.createElement(Ak,{value:{headRowHeight:C,setHeadRowHeight:R,focusedCellCoord:D,setFocusedCellCoord:A,selectionState:I,selectionDispatch:T,hoverIndex:M,setHoverIndex:q,columnWidths:N,setColumnWidths:F,baseProps:H,tableData:o,setYScrollbarWidth:z,setPage:v,pageInfo:b,initialDataPages:y,showRightBorder:j}},n)};function Tk(e,t){var n=function(e){return Ck.get(e)}(e),r=bn.useContext(n),o=r[0],i=r[1],a=bn.useReducer((function(e){return e+1}),0)[1],l=bn.useRef(t),s=bn.useRef(),u=o();if(void 0===u)throw new Error("You must call useContextSelector inside a valid context.");var c=bn.useMemo((function(){return t(u)}),[u,t]);return bn.useEffect((function(){l.current=t,s.current=c}),[u,c,t]),bn.useEffect((function(){var e=function(e){(l.current&&l.current(e))!==s.current&&a()};return i.add(e),function(){i.delete(e)}}),[i]),c}function Lk(e){var n,r,o=PR();return(null===(r=null===(n=null==o?void 0:o.components)||void 0===n?void 0:n.MuiTable)||void 0===r?void 0:r.styleOverrides)&&(o.components.MuiTable.styleOverrides.root={}),es(t(t({},o),{direction:e}))}var Mk=ls(kE,{shouldForwardProp:function(e){return"footerStyle"!==e}})((function(e){var t=e.footerStyle;return{height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:e.theme.spacing(0,1,0,1),color:t.color,background:t.background,borderTop:"1px solid ".concat(t.borderColor)}})),qk=ls(_C,{shouldForwardProp:function(e){return"footerStyle"!==e}})((function(e){var t=e.footerStyle;return{background:"inherit",marginRight:e.theme.spacing(1),color:t.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:t.iconColor}}})),Ok=ls(_E,{shouldForwardProp:function(e){return"disabledCondition"!==e&&"footerStyle"!==e}})((function(e){var t=e.disabledCondition,n=e.footerStyle,r=e.theme;return{color:t?n.disabledColor:n.color,cursor:t?"default":"pointer",marginLeft:r.spacing(1)}})),_k=ls(SS)((function(e){return{color:"inherit",margin:e.theme.spacing(0,1,0,1)}}));function Nk(e){var t=e.children,n=e.footerContainer,r=e.paginationNeeded,o=void 0===r||r,i=Tk(Dk,(function(e){return e.baseProps})).theme,a=bn.useMemo((function(){return Sk(i.background)}),[i]),l=o?yn.createElement(Mk,{footerStyle:a},t):null;return n?kx.createPortal(t,n):l}function Fk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zk=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Fk(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),jk=bn.forwardRef(zk);function Hk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bk=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Hk(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8l6-6ZM4 2v12H2V2h2Z"})),$k=bn.forwardRef(Bk);function Vk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wk=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vk(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})),Uk=bn.forwardRef(Wk);function Gk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yk=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Gk(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5 3.5 2ZM14 2v12h-2V2h2Z"})),Kk=bn.forwardRef(Yk);var Xk=function(e){var t,n=e.key,r=e.target,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===h.DOWN||n===h.UP){var i=function(e){return n===h.DOWN?BR(e):$R(e)};ZR(e);for(var a=i(o);a;){if("true"!==a.ariaDisabled){a.focus();break}a=i(a)}}},Zk=function(e){var t,n=e.evt,r=e.rootElement,o=e.cellCoord,i=e.setFocusedCellCoord;if(e.isInteractionEnabled){if(!nk(n)){var a=!(null===(t=n.target.closest(".sn-table-cell"))||void 0===t?void 0:t.nextSibling);switch(n.key){case h.LEFT:case h.RIGHT:ZR(n),n.key===h.RIGHT&&a?YR(r,i):GR(n,r,o,i,g.FOCUS_BUTTON);break;case h.DOWN:ZR(n),UR({focusType:g.REMOVE_TAB,cell:HR(r)}),GR(n,r,o,i,g.FOCUS);break;case h.TAB:!function(e,t,n,r,o){var i=e.target.classList.contains("sn-table-head-label");i&&e.shiftKey&&n[1]>0?r([n[0],n[1]-1]):i||e.shiftKey||(o?(ZR(e),YR(t,r)):r([n[0],n[1]+1]))}(n,r,o,i,a);break;case h.C:ZR(n),JR(n)&&it(n)}}}else ZR(n)},Jk=1e3,Qk="…",eD=function(e){var t=e.totalPages,n=e.page,r=Math.min(t,Jk),o=r<t&&n>500,i=o?Math.min(500+n,t):r,a=o?Math.max(0,i-Jk):0,l=Array.from(Array(r).keys()).map((function(e){var t=e+a;return yn.createElement("option",{key:t,value:t},t+1)}));return a>0&&l.unshift(yn.createElement("option",{key:"startMoreOptions",value:Qk,disabled:!0},Qk)),i<t-1&&l.push(yn.createElement("option",{key:"endMoreOptions",value:Qk,disabled:!0},Qk)),yn.createElement(yn.Fragment,null,l)},tD={FirstPage:$k,PreviousPage:jk,NextPage:Uk,LastPage:Kk,FirstPageRTL:Kk,PreviousPageRTL:Uk,NextPageRTL:jk,LastPageRTL:$k},nD=function(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}},rD=function(e){var n=e.direction,r=e.pageInfo,o=e.setPageInfo,i=e.footerContainer,a=e.isSelectionMode,l=e.handleChangePage,s=e.announce,u=Tk(Dk,(function(e){return e.tableData})),c=u.totalRowCount,d=u.totalColumnCount,p=u.totalPages,f=r.page,m=r.rowsPerPage,g=r.rowsPerPageOptions,v=Tk(Dk,(function(e){return e.baseProps})),b=v.keyboard,y=v.translator,x=v.theme,S=v.interactions,E=v.rect,w=v.layout,C=bn.useMemo((function(){return Sk(x.background)}),[x]),R=0===f,k=f>=p-1,D=VR(b)?0:-1,A=i?i.getBoundingClientRect().width:E.width,P=nD("firstLast",A),I=!!r.rowsPerPageOptions.length&&!a&&nD("rppOptions",A)&&d<=100,T=y.get("SNTable.Pagination.DisplayedRowsLabel",["".concat(f*m+1," - ").concat(Math.min((f+1)*m,c)),c.toString()]),L=w.qInfo.qId,M=b.enabled?function(e){return function(e,t,n){void 0===n&&(n=!1),n&&e.key===h.TAB&&!e.shiftKey&&(ZR(e),XR(e.target,t,!1))}(e,b,a)}:null,q=function(e,t,r,o){var i="".concat(r).concat("rtl"===n?"RTL":""),a=tD[i];return yn.createElement(Ok,{footerStyle:C,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button",onClick:e?null:function(){return l(t)},"aria-disabled":e,"aria-label":y.get("SNTable.Pagination.".concat(r)),title:S.passive?y.get("SNTable.Pagination.".concat(r)):void 0,tabIndex:D,onKeyDown:o},yn.createElement(a,{height:qR}))},O=function(e,t,n,r){var o=y.get("SNTable.Pagination.".concat(e)),i="".concat(e,"-dropdown"),a="".concat(i,"-label-").concat(L),l="".concat(i,"-").concat(L),s={tabIndex:D,id:l,"data-testid":i,"aria-labelledby":a};return yn.createElement(yn.Fragment,null,yn.createElement(_k,{variant:"caption",id:a},o,":"),yn.createElement(qk,{footerStyle:C,size:"small",native:!0,value:t,onChange:r,inputProps:s},n))},_=yn.createElement(yn.Fragment,null,g.map((function(e){return yn.createElement("option",{key:e,value:e},e)}))),N=yn.createElement(eD,{totalPages:p,page:f});return yn.createElement(yn.Fragment,null,I&&O("RowsPerPage",m,_,(function(e){o(t(t({},r),{page:0,rowsPerPage:+e.target.value})),s({keys:[["SNTable.Pagination.RowsPerPageChange",e.target.value.toString()]],politeness:"assertive"})})),nD("selectPage",A)&&O("SelectPage",f,N,(function(e){return l(+e.target.value)})),nD("displayedRows",A)&&yn.createElement(_k,{variant:"caption"},T),P&&q(R,0,"FirstPage",null),q(R,f-1,"PreviousPage",null),q(k,f+1,"NextPage",P?null:M),P&&q(k,p-1,"LastPage",M))},oD=bn.memo(rD),iD=ls(kE,{shouldForwardProp:function(e){return"background"!==e}})((function(e){return{height:"100%",background:e.background.tableColorFromTheme}})),aD=ls(kE,{shouldForwardProp:function(e){return"lines"!==e&&"wordBreak"!==e}})((function(e){var n=e.lines,r=e.wordBreak;return t({lineHeight:"calc(4/3)",fontSize:"inherit"},(r||1===n)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",display:"-webkit-box",WebkitLineClamp:n,WebkitBoxOrient:"vertical"})})),lD=ls(kE)({overflow:"hidden",textOverflow:"ellipsis"});function sD(e,t){var n=bn.useRef(!1);bn.useEffect((function(){n.current?e():n.current=!0}),t)}var uD=function(e,t,n){bn.useEffect((function(){var r=e.current;if(r){var o=function(e){return function(e,t,n){if(0!==e.deltaX){e.stopPropagation();var r=n.scrollWidth-n.offsetWidth,o=n.scrollLeft,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))}}(e,"rtl"===t,r)},i=function(e){var t;n.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),function(){r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}}}),[e,t,n])},cD=function(e){var t=Tk(Dk,(function(e){return e.baseProps})),n=t.layout,r=t.rect,o=t.theme.name(),i=bn.useState(0),a=i[0],l=i[1],s=bn.useState(0),u=s[0],c=s[1];return bn.useLayoutEffect((function(){var t;if(e.current){var n=null!==(t=e.current)&&void 0!==t?t:{},r=n.offsetWidth,o=void 0===r?0:r,i=n.offsetHeight,a=void 0===i?0:i,s=n.clientWidth,u=void 0===s?0:s,d=n.clientHeight,p=a-(void 0===d?0:d);c(o-u),l(p)}}),[e,n,r,o]),{xScrollbarWidth:a,yScrollbarWidth:u}},dD=ls("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),pD=ls(aR,{shouldForwardProp:function(e){return"fullHeight"!==e&&"interactions"!==e}})((function(e){var t=e.fullHeight,n=e.interactions;return{height:t?"100%":"calc(100% - ".concat(41,"px)"),overflow:n.active?"auto":"hidden",border:"none"}})),fD=ls($C,{shouldForwardProp:function(e){return"showRightBorder"!==e&&"styling"!==e}})((function(e){var t=e.showRightBorder,n=e.styling;return{tableLayout:"fixed",width:"min-content",borderRight:t?"1px solid ".concat(n.body.borderRightColor):void 0}})),mD=function(){return yn.createElement(yn.Fragment,null,yn.createElement(dD,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),yn.createElement(dD,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"}))},hD=function(e){var t=e.children,n=e.fontSize,r=void 0===n?"":n,o=e.wordBreak,i=void 0!==o&&o,a=e.lines,l=void 0===a?3:a,s=parseInt(r||qR,10),u=yn.createElement(aD,{component:"span",className:"sn-table-cell-text",wordBreak:i,lines:l},t);return i?u:yn.createElement(lD,{minHeight:s*MR,maxHeight:s*MR*l},u)},gD=function(e){var t=e.selectionsAPI,n=e.selectionDispatch,r=e.setShouldRefocus,o=e.keyboard,i=e.tableWrapperRef;bn.useEffect((function(){var e=function(){n({type:m.RESET})},a=function(){n({type:m.CLEAR})},l=function(){var t,n;(null===(t=i.current)||void 0===t?void 0:t.contains(document.activeElement))?r():o.enabled&&(null===(n=o.blur)||void 0===n||n.call(o,!0)),e()};return null==t||t.on("deactivated",e),null==t||t.on("canceled",e),null==t||t.on("confirmed",l),null==t||t.on("cleared",a),function(){null==t||t.removeListener("deactivated",e),null==t||t.removeListener("canceled",e),null==t||t.removeListener("confirmed",l),null==t||t.removeListener("cleared",a)}}),[t,o,n,r,i])},vD=function(e,t,n,r){return{handleMouseDown:function(r){if(null==e||e(r),t.isSelectable){n({type:m.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:function(){return n({type:m.SELECT_MULTI_END})}}})}},handleMouseOver:function(e){1===e.buttons&&n({type:m.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:function(e){0===e.button&&n({type:m.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}},bD=ls(XC,{shouldForwardProp:function(e){return"lastRowBottomBorder"!==e}})((function(e){return{"& tr:last-child":{"& td, th":{borderBottomWidth:e.lastRowBottomBorder}}}})),yD=ls(yR,{shouldForwardProp:function(e){return"hoverColors"!==e&&"hover"!==e}})((function(e){var n=e.hover,r=e.hoverColors;return t({"&&:hover":{background:"none"}},n&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":r}})})),xD=ls(nR,{shouldForwardProp:function(e){return"cellStyle"!==e}})((function(e){var n=e.cellStyle,r=e.theme;return t(t(t({},OR),n),{padding:r.spacing(.5,1.5)})})),SD=ls(nR,{shouldForwardProp:function(e){return"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e}})((function(e){var n=e.totalsStyle,r=e.atTop,o=e.headRowHeight,i=e.theme;return t(t(t({},OR),n),{fontWeight:"600",position:"sticky",padding:i.spacing(.5,1.5),borderWidth:r?"0px 1px 1px 0px":"1px 1px 1px 0px",top:r&&o,bottom:!r&&0})}));function ED(e){return function(n){var r=n.cell,o=n.styling,i=n.announce,a=n.onMouseDown,l=Tk(Dk,(function(e){return ak(r,e.selectionState)})),s=Tk(Dk,(function(e){return e.selectionDispatch})),u=vD(a,r,s,i),c=u.handleMouseDown,d=u.handleMouseOver,p=u.handleMouseUp,m=function(e,n){var r={};switch(n){case f.SELECTED:r=LR.SELECTED;break;case f.POSSIBLE:r=LR.POSSIBLE;break;case f.EXCLUDED:r={background:"".concat(LR.EXCLUDED_BACKGROUND,", ").concat(e.background),selectedCellClass:f.EXCLUDED}}return t(t({},e),r)}(o,l);return yn.createElement(e,t({},n,{styling:m,onMouseUp:p,onMouseDown:c,onMouseOver:d}))}}function wD(e,r){var o,i=(o=xD,function(e){var t=e.styling,r=t.selectedCellClass,i=n(t,["selectedCellClass"]),a=e.component,l=e.align,s=e.children,u=e.scope,c=e.tabIndex,d=e.onKeyDown,p=e.onMouseDown,f=e.onKeyUp,m=e.onMouseUp,h=e.onMouseOver,g=e.title;return yn.createElement(o,{cellStyle:i,component:a,scope:u,align:l,tabIndex:c,className:"sn-table-cell ".concat(r||""),title:g,onKeyDown:d,onMouseDown:p,onKeyUp:f,onMouseUp:m,onMouseOver:h},s)});return r&&(i=ED(i)),e&&(i=function(e){return function(n){var r=n.cell,o=n.column,i=n.styling,a=bn.useMemo((function(){return Ek(i,r.qAttrExps,o.stylingIDs)}),[i,r.qAttrExps,o.stylingIDs]);return yn.createElement(e,t({},n,{styling:a}))}}(i)),i}var CD=function(){var e=Tk(Dk,(function(e){return e.tableData})),t=e.columns,n=e.totalsPosition.atTop,r=e.rows,o=Tk(Dk,(function(e){return e.baseProps})),i=o.rootElement,a=o.selectionsAPI,l=o.keyboard,s=o.styling,u=o.interactions,c=Tk(Dk,(function(e){return e.headRowHeight})),d=Tk(Dk,(function(e){return e.setFocusedCellCoord}));return yn.createElement(yR,{className:"sn-table-row sn-table-totals-row"},t.map((function(e,t){var o=[n?1:r.length+1,t],p=n&&0===t&&!l.enabled?0:-1;return yn.createElement(SD,{totalsStyle:s.totals,headRowHeight:c,atTop:n,key:e.id,align:e.totalsTextAlign,className:"sn-table-cell",tabIndex:p,title:u.passive?e.totalInfo:void 0,onKeyDown:function(e){!function(e,t,n,r,o){if(void 0===o&&(o=!1),o)ZR(e);else if(!nk(e))switch(e.key){case h.LEFT:case h.RIGHT:case h.UP:case h.DOWN:ZR(e);var i=rk(n,e);i===g.FOCUS&&UR({focusType:g.REMOVE_TAB,cell:e.target}),GR(e,t,n,r,i);break;case h.TAB:ik({evt:e,rootElement:t,setFocusedCellCoord:r});break;case h.C:ZR(e),JR(e)&&it(e);break;case h.SPACE:e.preventDefault()}}(e,i,o,d,null==a?void 0:a.isModal())},onMouseDown:function(){KR(o,i,d,l)}},yn.createElement(hD,{fontSize:s.totals.fontSize},e.totalInfo))})))},RD=bn.memo(CD),kD=function(e){var t,r,o=e.setShouldRefocus,i=e.tableWrapperRef,a=e.announce,l=Tk(Dk,(function(e){return e.tableData})),s=l.rows,u=l.columns,c=l.paginationNeeded,d=l.totalsPosition,p=Tk(Dk,(function(e){return e.baseProps})),f=p.selectionsAPI,g=p.rootElement,v=p.keyboard,b=p.layout,y=p.viewService,x=p.interactions,S=p.styling.body,E=S.hoverColors,w=S.lastRowBottomBorder,C=n(S,["hoverColors","lastRowBottomBorder"]),R=Tk(Dk,(function(e){return e.setFocusedCellCoord})),k=Tk(Dk,(function(e){return e.selectionDispatch})),D=!!x.active&&!!x.select,A=JSON.stringify(u.map((function(e){return e.stylingIDs}))),P=bn.useMemo((function(){return JSON.parse(A).map((function(e){return wD(!!e.length,D)}))}),[A,D]),I=!!(null===(r=null===(t=vk(b))||void 0===t?void 0:t.content)||void 0===r?void 0:r.hoverEffect);return gD({keyboard:v,selectionDispatch:k,selectionsAPI:f,setShouldRefocus:o,tableWrapperRef:i}),yn.createElement(bD,{lastRowBottomBorder:w},d.atTop?yn.createElement(RD,null):void 0,s.map((function(e,t){return yn.createElement(yD,{hoverColors:E,hover:I,tabIndex:-1,key:e.id,className:"sn-table-row sn-table-data-row",rowindex:t},u.map((function(n,r){var o,i=n.id,l=e[i],s=P[r],u=0!==t||0!==r||d.atTop||v.enabled?-1:0;return s&&yn.createElement(s,{scope:0===r?"row":null,component:0===r?"th":null,cell:l,column:n,key:i,align:l.align,styling:C,tabIndex:u,announce:a,title:x.passive?l.qText:void 0,onKeyDown:function(e){!function(e){var t=e.evt,n=e.rootElement,r=e.cell,o=e.selectionDispatch,i=e.isSelectionsEnabled,a=e.setFocusedCellCoord,l=e.announce,s=e.keyboard,u=e.paginationNeeded,c=e.totalsPosition,d=e.selectionsAPI;if(t.target.classList.contains("excluded"))ZR(t);else{var p=null==d?void 0:d.isModal();if(!nk(t,p))switch(t.key){case h.UP:case h.DOWN:case h.LEFT:case h.RIGHT:ZR(t),ok({evt:t,rootElement:n,cell:r,selectionDispatch:o,isSelectionsEnabled:i,setFocusedCellCoord:a,announce:l,totalsPosition:c,isSelectionMode:p});break;case h.SPACE:ZR(t),r.isSelectable&&i&&o({type:m.SELECT,payload:{cell:r,evt:t,announce:l}});break;case h.ENTER:ZR(t),p&&(null==d||d.confirm(),l({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case h.ESC:ZR(t),null==d||d.cancel(),l({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case h.TAB:ik({evt:t,rootElement:n,setFocusedCellCoord:a,keyboard:s,isSelectionMode:p,paginationNeeded:u});break;case h.C:ZR(t),JR(t)&&it(t)}}}({evt:e,rootElement:g,selectionsAPI:f,cell:l,selectionDispatch:k,isSelectionsEnabled:D,setFocusedCellCoord:R,announce:a,keyboard:v,paginationNeeded:c,totalsPosition:d})},onKeyUp:function(e){return function(e,t){e.key===h.SHIFT&&t({type:m.SELECT_MULTI_END})}(e,k)},onMouseDown:function(){return function(e,t,n,r,o){var i=e.pageRowIdx,a=e.pageColIdx,l=o.atTop?i+2:i+1;KR([l,a],t,n,r)}(l,g,R,v,d)}},yn.createElement(hD,{fontSize:C.fontSize,lines:null===(o=y.viewState)||void 0===o?void 0:o.maxLineCount},l.qText))})))})),d.atBottom?yn.createElement(RD,null):void 0)},DD=bn.memo(kD),AD=ls(_E,{shouldForwardProp:function(e){return"isActive"!==e&&"textAlign"!==e&&"disabled"!==e}})((function(e){var t=e.isActive,n=e.textAlign,r=e.disabled;return{textAlign:n,height:"auto",maxWidth:"100%",fontSize:"inherit",fontFamily:"inherit",padding:e.theme.spacing(.5,1),color:"inherit",alignItems:"flex-end",cursor:r?"auto":"pointer",justifySelf:n,"&&:focus, &&:hover":{"& svg":{opacity:t?1:.5}},"& svg":{opacity:t?1:0,fontSize:qR},"& .Mui-disabled":{color:"inherit"},"& .MuiButton-endIcon, .MuiButton-startIcon":{marginBottom:"2px",visibility:r?"hidden":"visible"}}})),PD=ls("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),ID=ls(kE,{shouldForwardProp:function(e){return"isLocked"!==e}})((function(e){var t=e.theme,n=e.isLocked;return{width:"100%",display:"grid",flexDirection:"inherit",gridAutoFlow:"dense",gap:t.spacing(.5),fontSize:"inherit",fontFamily:"inherit","&&:hover, &&:focus-within":{"& .sn-table-head-menu-button":{opacity:1}},"& > div:last-child":{alignSelf:"flex-end"},"&.aligned-left":{gridTemplateColumns:n?"".concat(20,"px 2fr ").concat(S,"px"):"1fr ".concat(S,"px")},"&.aligned-center":{gridTemplateColumns:"".concat(S,"px 2fr ").concat(S,"px"),"& > div:first-child":{gridColumn:1},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:3}},"&.aligned-right":{gridTemplateColumns:n?"".concat(S,"px 2fr ").concat(20,"px"):"".concat(S,"px 1fr"),"& > div:first-child":{gridColumn:n?3:"unset"},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:1}}}})),TD=ls("div")({display:"flex",alignSelf:"flex-end"}),LD=ls(kE)({display:"flex",alignItems:"center",width:"".concat(20,"px"),height:"".concat(S,"px"),flexShrink:0,flexDirection:"inherit","&.aligned-right":{justifyContent:"flex-start"},"&.aligned-center, &.aligned-left":{justifyContent:"flex-end"}}),MD=ls(kE,{shouldForwardProp:function(e){return"isVisible"!==e&&"rightAligned"!==e}})((function(e){var n=e.rightAligned;return t(t({},n?{marginRight:"auto"}:{marginLeft:"auto"}),{height:"".concat(S,"px"),display:"flex"})})),qD=ls(_E,{shouldForwardProp:function(e){return"isVisible"!==e&&"rightAligned"!==e}})((function(e){return{opacity:e.isVisible?1:0,"&:focus":{opacity:1}}})),OD=ls(KE)((function(e){return{"&.MuiDivider-root":{margin:e.theme.spacing(.5)}}})),_D=ls(Qw)((function(e){var t=e.theme;return{borderRadius:"4px",margin:t.spacing(0,.5),padding:t.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}})),ND=ls("div")((function(){return{display:"flex",justifyContent:"space-between",alignItems:"center"}})),FD=ls(Sw)((function(e){return{marginRight:e.theme.spacing(1.5),lineHeight:0}}));ls("div")((function(e){return{height:"350px",boxSizing:"border-box",background:e.theme.palette.common.white}}));var zD=ls(kE,{shouldForwardProp:function(e){return"isLastColumn"!==e}})((function(e){var t=e.isLastColumn;return{display:"flex",position:"absolute",height:"100%",top:0,left:"100%",cursor:"col-resize",width:"".concat(t?4:9,"px"),justifyContent:t?"flex-end":"center",marginLeft:"-4px","&&:hover:not(:focus, :active)":{"& .sn-table-adjuster-head-border":{background:"#D9D9D9"}},"&&:focus-visible, :active":{outline:"none","& .sn-table-adjuster-head-border":{background:"#177fe6"}}}})),jD=ls(kE)({position:"absolute",height:"100%",width:"3px"}),HD=function(e){var t=e.column,n=e.isLastColumn,r=e.onColumnResize,o=t.pageColIdx,a=Tk(Dk,(function(e){return e.baseProps})),l=a.applyColumnWidths,s=a.interactions,u=Tk(Dk,(function(e){return e.columnWidths})),c=Tk(Dk,(function(e){return e.setColumnWidths})),d=bn.useRef({columnWidth:0,initX:0,initWidth:0});if(!s.active)return null;var p=function(e){null==r||r(),d.current.columnWidth=e;var t=i([],u,!0);t[o]=e,c(t)},f=function(){if(d.current.columnWidth!==d.current.initWidth){var e={type:b.PIXELS,pixels:d.current.columnWidth};l(e,t)}},m=function(e){var t=e.clientX-d.current.initX,n=Math.max(d.current.initWidth+t,x);p(n)},g=function(e){ZR(e),document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",g),f()};return yn.createElement(zD,{className:"sn-table-adjuster-hit-area",isLastColumn:n,key:"adjuster-".concat(o),onKeyDown:function(e){if(e.key===h.LEFT||e.key===h.RIGHT){ZR(e);var t=u[o],n=e.key===h.LEFT?t-5:t+5,r=Math.max(n,x);p(r)}else e.key===h.SPACE||e.key===h.ENTER?(ZR(e),WR(e),f()):e.key===h.ESC&&(ZR(e),WR(e),p(d.current.initWidth))},onMouseDown:function(e){e.stopPropagation(),d.current={initX:e.clientX,initWidth:u[o],columnWidth:u[o]},document.addEventListener("mousemove",m),document.addEventListener("mouseup",g)},onBlur:function(e){return WR(e)},onFocus:function(){d.current.initWidth=u[o]},onDoubleClick:function(){return l({type:b.FIT_TO_CONTENT},t)},"data-testid":"sn-table-column-adjuster"},yn.createElement(jD,{className:"sn-table-adjuster-head-border"}))};function BD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $D=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){BD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5 3.5 1.793ZM8 4h5v1H8V4Zm0 3h6v1H8V7Zm0 3h7v1H8v-1Z"})),VD=bn.forwardRef($D);function WD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const UD=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){WD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5V2Zm12 2H8v1h7V4ZM8 7h6v1H8V7Zm5 3H8v1h5v-1Z"})),GD=bn.forwardRef(UD);function YD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const KD=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("defs",null,yn.createElement("path",{id:"lock_svg__lock-a",d:"M13 7H8h5V4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3h10Z"})),yn.createElement("use",{xlinkHref:"#lock_svg__lock-a",fillRule:"evenodd"})),XD=bn.forwardRef(KD);function ZD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JD=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ZD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0Zm0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0ZM9.166 6.166c1.555-1.555 4.113-1.555 5.668 0 1.555 1.555 1.555 4.113 0 5.668-1.555 1.555-4.113 1.555-5.668 0-1.555-1.555-1.555-4.063 0-5.668Zm4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304 1.304-1.304Z"})),QD=bn.forwardRef(JD);function eA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tA=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){eA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707L3.915 8ZM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h14Zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2h2Z"})),nA=bn.forwardRef(tA);function rA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oA=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"M2 6.5h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Zm5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Zm5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Z"})),iA=bn.forwardRef(oA);function aA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lA=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){aA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116.509.509 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a.506.506 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0Z"})),sA=bn.forwardRef(lA);function uA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cA=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){uA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4h2Zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0h10Zm0 1H5v10h10V1Zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28l3.497-3.627Z"})),dA=bn.forwardRef(cA);function pA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fA=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0Zm14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0ZM4 4v8l8-8H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),mA=bn.forwardRef(fA);function hA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gA=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){hA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0Zm14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0ZM4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),vA=bn.forwardRef(gA);function bA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yA=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){bA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0Zm14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0ZM4 4v8h8V4H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),xA=bn.forwardRef(yA);function SA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const EA=(e,t)=>yn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){SA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),yn.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1V1.5ZM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1h1.5ZM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1v1.5Zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1v1.5ZM6 0h4v1H6V0ZM0 6h1v4H0V6Zm15 0h1v4h-1V6Zm-9 9h4v1H6v-1Z"})),wA=bn.forwardRef(EA);var CA=new Map,RA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},kA=function(e,t){return e.some((function(e){return t[e]>0}))},DA={},AA=function(e){var r,o,i=e.autoFocus,a=e.id,l=e.onClick,s=e.itemTitle,u=e.icon,c=e.enabled,d=e.subMenus,p=bn.useState(!1),f=p[0],m=p[1],h=bn.useRef(null);return yn.createElement(yn.Fragment,null,yn.createElement(_D,{ref:d?h:null,key:a,"data-testid":"menu-item-".concat(a),className:"sn-table-head-menu-item",onClick:function(e){l&&(l(e),DA={}),(null==d?void 0:d.length)&&(m(!0),DA[s]=m)},disabled:!c,autoFocus:i,onKeyDown:Xk},yn.createElement(ND,null,yn.createElement(FD,null,u),yn.createElement(SS,{variant:"body2"},s)),(null==d?void 0:d.length)?yn.createElement(Uk,null):null),(null==d?void 0:d.length)&&yn.createElement(IA,{anchorEl:h.current,open:f,onClose:function(){return m(!1)},menuGroups:(r=d,o=DA,r.map((function(e){return e.map((function(e){var r=e.onClick,i=n(e,["onClick"]);return t(t({},i),r?{onClick:function(e){Object.entries(o).map((function(e){return(0,e[1])(!1)})),r(e)}}:{})}))}))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"}}))},PA=function(e){return e.menuGroup.map((function(e){return yn.createElement(AA,t({key:e.id},e))}))},IA=function(e){var n=e.anchorEl,r=e.open,o=e.onClose,i=e.menuGroups,a=e.transformOrigin,l=e.anchorOrigin,s=e.buttonId,u=e.menuId;return i.length?yn.createElement(Yw,t({className:"sn-table-head-menu",id:u,open:r,anchorEl:n,onClose:o,"aria-labelledby":s},l?{anchorOrigin:l}:{},a?{transformOrigin:a}:{}),function(e){var t=e.itemGroups;return t.map((function(e,n){return[PA({menuGroup:e}),n<t.length-1?yn.createElement(OD,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0]}))}({itemGroups:i})):null},TA=function(e){var t=e.column,n=e.tabIndex,a=t.isDim,l=t.qLibraryId,s=t.fieldId,u=t.headTextAlign,c=t.pageColIdx,d=Tk(Dk,(function(e){return e.baseProps})),p=d.translator,f=d.embed,m=d.model,h=d.interactions,g=d.layout,v=bn.useRef(null),b=bn.useRef(null),y=bn.useState(!1),x=y[0],S=y[1],E=bn.useState(!1),w=E[0],C=E[1],R=function(e,t){var n=Tk(Dk,(function(e){return e.baseProps})),r=n.app,o=n.layout,i=bn.useState(null),a=i[0],l=i[1],s=bn.useState(RA),u=s[0],c=s[1];return bn.useEffect((function(){if(r&&r.getField&&e&&e.isDim&&t){var n=e.qLibraryId,i=e.fieldId;if(n){var a="".concat(r.id,"-").concat(n);CA.get(a)?l(CA.get(a)):r.createSessionObject(function(e,t){return void 0===t&&(t="$"),{qInfo:{qType:"tableListbox"},qListObjectDef:{qLibraryId:e,qStateName:t}}}(n,o.qStateName)).then((function(e){var t={selectAll:function(){return e.selectListObjectAll("/qListObjectDef")},clear:function(){return e.clearSelections("/qListObjectDef").then((function(e){return e}))},selectPossible:function(){return e.selectListObjectPossible("/qListObjectDef")},selectAlternative:function(){return e.selectListObjectAlternative("/qListObjectDef")},selectExcluded:function(){return e.selectListObjectExcluded("/qListObjectDef")}};l(t),CA.set(a,t)}))}else r.getField(i,o.qStateName).then(l)}}),[r,e,o.qStateName,t]),{fieldInstance:a,selectionActionsEnabledStatus:u,resetSelectionActionsEnabledStatus:bn.useCallback((function(){return c(RA)}),[]),updateSelectionActionsEnabledStatus:function(t){var n=t.qHyperCube.qDimensionInfo.find((function(t){return t.qFallbackTitle===e.label}));n&&c({canSelectAll:kA(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:kA(["qSelected"],n.qStateCounts),canSelectPossible:kA(["qOption"],n.qStateCounts),canSelectAlternative:kA(["qAlternative"],n.qStateCounts),canSelectExcluded:kA(["qAlternative","qExcluded"],n.qStateCounts)})}}}(t,x),k=R.fieldInstance,D=R.selectionActionsEnabledStatus,A=R.resetSelectionActionsEnabledStatus,P=R.updateSelectionActionsEnabledStatus,I=bn.useCallback((function(){var e=l?{qLibraryId:l,type:"dimension"}:s;f.__DO_NOT_USE__.popover(b.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},stateName:g.qStateName}),f.on("fieldPopoverClose",(function(){C(!1)}))}),[f,s,l,g.qStateName]),T=bn.useMemo((function(){return i(i([],a&&h.select?[[{id:1,itemTitle:p.get("SNTable.MenuItem.Search"),onClick:function(e){e.stopPropagation(),S(!1),C(!0),I()},icon:yn.createElement(sA,null),enabled:!0}],[{id:1,itemTitle:p.get("SNTable.MenuItem.Selections"),icon:yn.createElement(wA,null),enabled:!0,subMenus:[[{id:1,itemTitle:p.get("SNTable.MenuItem.SelectAll"),onClick:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return S(!1),[4,null==k?void 0:k.selectAll()];case 1:return e.sent(),[2]}}))}))},icon:yn.createElement(dA,null),enabled:D.canSelectAll},{id:2,itemTitle:p.get("SNTable.MenuItem.SelectPossible"),onClick:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return S(!1),[4,null==k?void 0:k.selectPossible()];case 1:return e.sent(),[2]}}))}))},icon:yn.createElement(xA,null),enabled:D.canSelectPossible},{id:3,itemTitle:p.get("SNTable.MenuItem.SelectAlternative"),onClick:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return S(!1),[4,null==k?void 0:k.selectAlternative()];case 1:return e.sent(),[2]}}))}))},icon:yn.createElement(mA,null),enabled:D.canSelectAlternative},{id:4,itemTitle:p.get("SNTable.MenuItem.SelectExcluded"),onClick:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return S(!1),[4,null==k?void 0:k.selectExcluded()];case 1:return e.sent(),[2]}}))}))},icon:yn.createElement(vA,null),enabled:D.canSelectExcluded}],[{id:1,itemTitle:p.get("SNTable.MenuItem.ClearSelections"),onClick:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return S(!1),[4,null==k?void 0:k.clear()];case 1:return e.sent(),[2]}}))}))},icon:yn.createElement(QD,null),enabled:D.canClearSelections}]]}]]:[],!0),[[{id:1,itemTitle:p.get("SNTable.MenuItem.AdjustColumnSize"),onClick:function(e){ZR(e),S(!1),function(e){setTimeout((function(){var t,n,r=null===(n=null===(t=e.current)||void 0===t?void 0:t.closest(".sn-table-cell"))||void 0===n?void 0:n.querySelector(".sn-table-adjuster-hit-area");null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)}(v)},icon:yn.createElement(nA,null),enabled:!0}]],!1)}),[a,h.select,p,D,I,k]);bn.useEffect((function(){x||A()}),[x,A]);var L=g.qInfo.qId,M="sn-table-head-menu-button-".concat(c,"-").concat(L),q="sn-table-head-menu-".concat(c,"-").concat(L);return T.length?yn.createElement(MD,{rightAligned:"right"===u},yn.createElement(qD,{isVisible:w||x,ref:v,size:"small",tabIndex:n,className:"sn-table-head-menu-button",id:M,"aria-controls":x?q:void 0,"aria-expanded":x?"true":void 0,"aria-haspopup":"true",onClick:function(){return r(void 0,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return x||!m?[3,2]:[4,m.getLayout()];case 1:e=t.sent(),P(e),t.label=2;case 2:return S(!x),[2]}}))}))},"aria-label":p.get("SNTable.Accessibility.ColumnOptions")},yn.createElement(iA,{height:qR})),yn.createElement("div",{ref:b}),yn.createElement(IA,{open:x,anchorEl:v.current,onClose:function(){return S(!1)},menuGroups:T,buttonId:M,menuId:q})):null},LA=function(e){var t=e.children,n=e.column,r=e.isActive,o=e.isInteractionEnabled,i=Tk(Dk,(function(e){return e.baseProps})),a=i.keyboard,l=i.translator,s=i.changeSortOrder,u=Tk(Dk,(function(e){return 0===e.focusedCellCoord[0]})),c=function(e){var t=e.sortDirection,n=e.isLocked,r=e.headTextAlign,o="A"===t?yn.createElement(VD,{height:qR}):yn.createElement(GD,{height:qR}),i=n?yn.createElement(LD,{className:"aligned-".concat(r)},yn.createElement(XD,{height:qR,"data-testid":"head-cell-lock-icon"})):void 0;return"right"===r?{startIcon:o,lockIcon:i}:{endIcon:o,lockIcon:i}}(n),d=c.startIcon,p=c.endIcon,f=c.lockIcon,m=o&&VR(a)?0:-1,h={A:l.get("SNTable.Accessibility.Ascending"),D:l.get("SNTable.Accessibility.Descending")};return yn.createElement(ID,{isLocked:Boolean(f),className:"aligned-".concat(n.headTextAlign)},f&&yn.createElement(TD,null,f),yn.createElement(AD,{className:"sn-table-head-label",isActive:r,textAlign:n.headTextAlign,color:"inherit",size:"small",startIcon:d,endIcon:p,onClick:function(){return o&&s(n)},tabIndex:m,disabled:!o},t,u&&yn.createElement(PD,{"data-testid":"VHL-for-col-".concat(n.pageColIdx)},"".concat(h[n.sortDirection]," ").concat(l.get("SNTable.SortLabel.PressSpaceToSort")))),o&&yn.createElement(TA,{column:n,tabIndex:m}))},MA=ls(nR,{shouldForwardProp:function(e){return"headerStyle"!==e}})((function(e){var n=e.headerStyle;return t(t(t({},OR),n),{pointer:"cursor",verticalAlign:"bottom","&:focus":{boxShadow:"none"}})})),qA=function(){var e,t=Tk(Dk,(function(e){return e.tableData})).columns,n=Tk(Dk,(function(e){return e.baseProps})),r=n.layout,o=n.styling,i=n.interactions,a=n.rootElement,l=n.keyboard,s=n.viewService,u=Tk(Dk,(function(e){return e.setHeadRowHeight})),c=Tk(Dk,(function(e){return e.columnWidths})),d=Tk(Dk,(function(e){return e.setFocusedCellCoord})),p=Tk(Dk,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=bn.useRef(null),m=!!i.active&&!p;return bn.useEffect((function(){f.current&&u(f.current.clientHeight)}),[o.head.fontSize,c,u]),(null===(e=s.viewState)||void 0===e?void 0:e.skipHeader)?null:yn.createElement(pR,null,yn.createElement(yR,{ref:f,className:"sn-table-row sn-table-head-row"},t.map((function(e,n){var s=r.qHyperCube.qEffectiveInterColumnSortOrder[0]===e.colIdx,u=s?v[e.sortDirection]:void 0,p=n===t.length-1,f=[0,e.pageColIdx],h={width:c[n]-(p?8:9),zIndex:t.length-n};return yn.createElement(MA,{headerStyle:o.head,style:h,key:e.id,align:e.headTextAlign,className:"sn-table-head-cell sn-table-cell","aria-sort":u,tabIndex:-1,title:i.passive?e.label:void 0,onKeyDown:function(e){return Zk({evt:e,rootElement:a,cellCoord:f,setFocusedCellCoord:d,isInteractionEnabled:m})},onMouseDown:function(e){return function(e){var t,n=e.evt,r=e.rootElement,o=e.cellCoord,i=e.setFocusedCellCoord,a=e.keyboard,l=e.isInteractionEnabled;n.preventDefault(),l&&(i(o),a.enabled&&!a.active?null===(t=a.focus)||void 0===t||t.call(a):UR({focusType:g.FOCUS_BUTTON,cell:jR(r,o)}))}({evt:e,rootElement:a,cellCoord:f,setFocusedCellCoord:d,keyboard:l,isInteractionEnabled:m})}},yn.createElement(LA,{column:e,isActive:s,isInteractionEnabled:m},yn.createElement(hD,{fontSize:o.head.fontSize},e.label)),yn.createElement(HD,{column:e,isLastColumn:p}))}))))},OA=bn.memo(qA),_A=function(e){var n,r,o=e.pageInfo,i=e.setPageInfo,a=e.direction,l=e.footerContainer,s=e.announce,u=o.page,c=o.rowsPerPage,d=Tk(Dk,(function(e){return e.tableData})),p=d.totalColumnCount,f=d.totalRowCount,v=d.totalPages,b=d.paginationNeeded,y=d.rows,x=d.columns,S=d.totalsPosition,E=Tk(Dk,(function(e){return e.baseProps})),C=E.rootElement,R=E.keyboard,k=E.translator,D=E.theme,A=E.interactions,P=E.styling,I=E.viewService,T=E.layout,L=Tk(Dk,(function(e){return e.focusedCellCoord})),M=Tk(Dk,(function(e){return e.setFocusedCellCoord})),q=Tk(Dk,(function(e){return e.setYScrollbarWidth})),O=Tk(Dk,(function(e){return e.showRightBorder})),_=Tk(Dk,(function(e){return e.selectionDispatch})),N=Tk(Dk,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),F=bn.useRef(!1),z=bn.useRef(null),j=bn.useRef(null),H=cD(z).yScrollbarWidth,B="".concat(k.get("SNTable.Accessibility.RowsAndColumns",[String(y.length+1),String(x.length)])," ").concat(k.get("SNTable.Accessibility.NavigationInstructions")),$=Et(T,I),V=$&&null!==(n=I.scrollLeft)&&void 0!==n?n:0,W=$&&null!==(r=I.rowPartialHeight)&&void 0!==r?r:0,U=bn.useCallback((function(){F.current=C.getElementsByTagName("table")[0].contains(document.activeElement)}),[C]),G=bn.useCallback((function(e){i(t(t({},o),{page:e})),s({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),v.toString()]],politeness:"assertive"})}),[o,i,v,s]);return function(e,t,n){bn.useEffect((function(){var r=e.current;if(r){var o=function(e){return function(e,t,n){var r,o=e.currentTarget,i=e.relatedTarget,a=o.contains(i),l=null==i?void 0:i.closest(".sn-table-head-menu");!n.enabled||a||l||t.current||(o.querySelector(".sn-table-announcer-1").innerHTML="",o.querySelector(".sn-table-announcer-2").innerHTML="",null===(r=n.blur)||void 0===r||r.call(n,!1))}(e,t,n)};return r.addEventListener("focusout",o),function(){r.removeEventListener("focusout",o)}}}),[e,t,n])}(j,F,R),uD(z,a,I),function(){var e=Tk(Dk,(function(e){return e.baseProps})),t=e.rootElement,n=e.keyboard,r=Tk(Dk,(function(e){return e.focusedCellCoord}));bn.useEffect((function(){var e=r[0]>0?g.FOCUS:g.FOCUS_BUTTON;e=n.active?e:g.BLUR;var o=n.active?jR(t,r):HR(t);UR({focusType:e,cell:o})}),[n.active,t])}(),bn.useEffect((function(){var e=z.current;e&&(e.scrollLeft=V,e.scrollTop=W)}),[o,f,V,W]),sD((function(){!function(e){var t,n=e.focusedCellCoord,r=e.rootElement,o=e.shouldRefocus,i=e.isSelectionMode,a=e.setFocusedCellCoord,l=e.keyboard,s=e.announce,u=e.totalsPosition;UR({focusType:g.REMOVE_TAB,cell:HR(r)});var c=[u.atTop?2:1,n[1]],d=i?c:w;if(VR(l)){var p=o.current?g.FOCUS:g.ADD_TAB;o.current=!1;var f=jR(r,d);if(UR({focusType:p,cell:f}),i){var m=null===(t=null==f?void 0:f.classList)||void 0===t?void 0:t.contains("selected");s({keys:["".concat(f.textContent,","),m?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}}a(d)}({focusedCellCoord:L,rootElement:C,shouldRefocus:F,setFocusedCellCoord:M,isSelectionMode:N,keyboard:R,announce:s,totalsPosition:S})}),[y.length,f,p,u]),sD((function(){q(H)}),[H]),sD((function(){_({type:m.UPDATE_PAGE_ROWS,payload:{pageRows:y}})}),[y]),yn.createElement(iD,{ref:j,background:D.background,dir:a,onKeyDown:function(e){!function(e){var t,n=e.evt,r=e.totalRowCount,o=e.page,i=e.rowsPerPage,a=e.handleChangePage,l=e.setShouldRefocus,s=e.keyboard,u=e.isSelectionMode;if(QR(n)){ZR(n);var c=Math.ceil(r/i)-1;n.key===h.RIGHT&&o<c?(l(),a(o+1)):n.key===h.LEFT&&o>0&&(l(),a(o-1))}else n.key===h.ESC&&s.enabled&&!u?(ZR(n),null===(t=s.blur)||void 0===t||t.call(s,!0)):ek(n.key)&&ZR(n)}({evt:e,totalRowCount:f,page:u,rowsPerPage:c,handleChangePage:G,setShouldRefocus:U,keyboard:R,isSelectionMode:N})},"data-testid":"sn-table"},yn.createElement(mD,null),yn.createElement(pD,{ref:z,className:"sn-table-container",fullHeight:l||!A.active||!b,interactions:A,tabIndex:-1,role:"application","data-testid":"table-container"},yn.createElement(fD,{styling:P,showRightBorder:O,stickyHeader:!0,"aria-label":B},yn.createElement(OA,null),yn.createElement(DD,t({},e,{setShouldRefocus:U,tableWrapperRef:j})))),A.active&&yn.createElement(Nk,{footerContainer:l,paginationNeeded:b},yn.createElement(oD,t({},e,{handleChangePage:G,isSelectionMode:N}))))},NA=bn.memo(_A),FA=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function zA(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||FA(r)&&FA(o)))return!1;var r,o;return!0}function jA(e,t){var n;void 0===t&&(t=zA);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var HA="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function BA(e){cancelAnimationFrame(e.id)}function $A(e,t){var n=HA();var r={id:requestAnimationFrame((function o(){HA()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var VA=-1;function WA(e){if(void 0===e&&(e=!1),-1===VA||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),VA=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return VA}var UA=null;function GA(e){if(void 0===e&&(e=!1),null===UA||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?UA="positive-descending":(t.scrollLeft=1,UA=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),UA}return UA}var YA=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function KA(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,Cs(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Cs(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=jA((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=jA((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=jA((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(GA()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&BA(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=$A(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}ws(t,e),t.getDerivedStateFromProps=function(e,t){return XA(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,v=WA();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(GA()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&BA(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?YA:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],C=this._getVerticalRangeToRender(),R=C[0],k=C[1],D=[];if(r>0&&g)for(var A=R;A<=k;A++)for(var P=E;P<=w;P++)D.push(bn.createElement(t,{columnIndex:P,data:d,isScrolling:b?x:void 0,key:f({columnIndex:P,data:d,rowIndex:A}),rowIndex:A,style:this._getItemStyle(A,P)}));var I=a(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return bn.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Ct({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},bn.createElement(u||c||"div",{children:D,ref:s,style:{height:I,pointerEvents:x?"none":void 0,width:T}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,v=h.scrollLeft,b=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(bn.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var XA=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},ZA=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},JA=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},QA=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},eP=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?tP(e,t,n,i,0,r):nP(e,t,n,Math.max(0,i),r)},tP=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=QA(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},nP=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&QA(e,t,r,n).offset<o;)r+=a,a*=2;return tP(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},rP=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=QA(e,t,n,i),u="column"===e?JA(t,i):ZA(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},oP=KA({getColumnOffset:function(e,t,n){return QA("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return eP("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=QA("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=QA("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:ZA,getEstimatedTotalWidth:JA,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return rP("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return rP("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return QA("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return eP("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=QA("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=QA("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),iP=function(e,t){return e};function aP(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,Cs(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Cs(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=jA((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=jA((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=jA((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(GA()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&BA(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=$A(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}ws(t,e),t.getDerivedStateFromProps=function(e,t){return lP(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?WA():0:s.scrollHeight>s.clientHeight?WA():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(GA()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&BA(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?iP:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],C=E[1],R=[];if(u>0)for(var k=w;k<=C;k++)R.push(bn.createElement(t,{data:c,key:p(k,c),index:k,isScrolling:v?y:void 0,style:this._getItemStyle(k)}));var D=r(this.props,this._instanceProps);return bn.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Ct({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},bn.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":D,pointerEvents:y?"none":void 0,width:x?D:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(bn.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var lP=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},sP=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},uP=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=sP(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},cP=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&sP(e,n,t).offset<r;)n+=i,i*=2;return uP(e,t,Math.min(n,o-1),Math.floor(n/2),r)},dP=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},pP=aP({getItemOffset:function(e,t,n){return sP(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:dP,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=sP(e,t,o),p=dP(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?uP(e,t,o,0,n):cP(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=sP(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=sP(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function fP(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var mP=["style"],hP=["style"];function gP(e,t){var n=e.style,r=Wn(e,mP),o=t.style,i=Wn(t,hP);return!fP(n,o)&&!fP(r,i)}var vP=function(e){var n=e.style;return yn.createElement("div",{className:"sn-table-cell",style:t(t({},n),{borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"})})},bP=yn.memo(vP,gP),yP=function(){},xP=function(e){return e.preventDefault()};var SP,EP=function(e){var r,o=e.columnIndex,i=e.rowIndex,a=e.style,l=e.data,s=l.rowsInPage,u=l.columns,c=l.bodyStyle,d=l.isHoverEnabled,p=l.maxLineCount,m=Tk(Dk,(function(e){return e.hoverIndex===i})),h=Tk(Dk,(function(e){return e.setHoverIndex})),g=Tk(Dk,(function(e){return e.baseProps})).interactions,v=Tk(Dk,(function(e){return e.showRightBorder})),b=null===(r=s[i])||void 0===r?void 0:r["col-".concat(o)],y=function(e){var t=Tk(Dk,(function(e){return e.baseProps})).interactions,n=Tk(Dk,(function(e){return e.selectionDispatch})),r="object"==typeof e,o=Tk(Dk,(function(t){return r?ak(e,t.selectionState):f.INACTIVE})),i=t.active&&t.select;if(r&&i){var a=vD(xP,e,n,yP);return{handleMouseDown:a.handleMouseDown,handleMouseOver:a.handleMouseOver,handleMouseUp:a.handleMouseUp,cellSelectionState:o}}return{cellSelectionState:o}}(b),x=y.handleMouseDown,S=y.handleMouseOver,E=y.handleMouseUp,w=y.cellSelectionState;if("object"==typeof b){var C=function(e,r,o,i,a){var l=a.hoverColors;a.lastRowBottomBorder;var s=n(a,["hoverColors","lastRowBottomBorder"]),u=r.stylingIDs.length?Ek(s,e.qAttrExps,r.stylingIDs):s;return i===f.SELECTED?t(t({},u),LR.SELECTED):i===f.EXCLUDED?t(t({},u),{color:o?null==l?void 0:l.color:u.color,background:"".concat(LR.EXCLUDED_BACKGROUND,", ").concat(o?null==l?void 0:l.background:u.background)}):o?t(t({},u),l):u}(b,u[o],d&&m,w,c),R={rowindex:i,columnindex:o};return yn.createElement("div",t({className:"sn-table-cell ".concat(w),style:t(t(t({},a),C),{display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:b.isLastRow?"0px":"".concat(1,"px"),borderRightWidth:b.isLastColumn&&!v?"0px":"".concat(1,"px"),borderStyle:"solid",justifyContent:b.align,padding:"4px ".concat(12,"px"),boxSizing:"border-box",cursor:"default"}),onMouseDown:x,onMouseUp:E,onMouseOver:S,onMouseEnter:d?function(){return h(i)}:void 0,onMouseLeave:d?function(){return h(-1)}:void 0,title:g.passive?b.qText:void 0},R),yn.createElement(hD,{wordBreak:!b.isNumeric,lines:p},b.qText))}return yn.createElement(bP,{style:t(t(t({},a),c),{borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"})})},wP=yn.memo(EP,gP),CP=function(e){var t=bn.useRef(e);return t.current=e,t},RP=function(e){var t=e.qLeft,n=e.qTop,r=e.qWidth,o=e.qHeight;return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(o)},kP=function(e,n){var i=bn.useRef(new Set),a=bn.useRef(new Set),l=bn.useRef(new Set),s=CP(e),u=CP(n),c=bn.useMemo((function(){return{enqueue:function(e){var n=RP(e);l.current.has(n)||(i.current.add(e),l.current.add(n),1===i.current.size&&setTimeout((function(){return r(void 0,void 0,void 0,(function(){var e,n,r;return o(this,(function(o){switch(o.label){case 0:if(0===(e=Array.from(i.current.values())).length)return[2];i.current.clear(),a.current.add(e),o.label=1;case 1:return o.trys.push([1,3,4,5]),n=function(e){var n=[];return e.forEach((function(e){if(n.length>0){var r=n[n.length-1];!function(e,t){return e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth}(r,e)?function(e,t){return e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight}(r,e)?r.qWidth+=e.qWidth:n.push(t({},e)):r.qHeight+=e.qHeight}else n.push(t({},e))})),n}(e),[4,s.current(n)];case 2:return r=o.sent(),a.current.has(e)&&u.current(r),[3,5];case 3:return o.sent(),e.forEach((function(e){l.current.delete(RP(e))})),[3,5];case 4:return a.current.delete(e),[7];case 5:return[2]}}))}))}),75))},clear:function(){i.current.clear(),a.current.clear(),l.current.clear()}}}),[s,u]);return c},DP=function(e,t,n,r,o){var i=e[n];if(!i)return!0;for(var a=t;a<t+r;a++){var l=i["col-".concat(a)];if((null==l?void 0:l.rowIdx)!==o)return!0}return!1},AP=function(e,t,n,r){var o=e.slice(n,r);return 0===o.length||o.some((function(e){return!(null==e?void 0:e["col-".concat(t)])}))},PP=function(e,n,r,o,i,a){e.forEach((function(e){e.qMatrix.forEach((function(l,s){var u=e.qArea.qTop-n.page*n.rowsPerPage,c=function(e,n,r,o,i,a,l,s){var u,c=o.qTop+r,d=i+r,p=null!==(u=e[d])&&void 0!==u?u:{key:"row-".concat(d)};return n.forEach((function(e,n){var r,i=n+o.qLeft,u=a[i],f=u.colIdx,m=u.isDim,h=u.isLocked,g=u.id,v=u.bodyTextAlign,b=u.selectionColIdx,y=mt(e);p[g]=t(t({},e),{align:yt(e,v),rowIdx:c,colIdx:f,isSelectable:m&&!h,pageRowIdx:d,pageColIdx:i,selectionColIdx:b,isLastRow:c===l.qcy-1,isLastColumn:i===l.qcx-1,isNumeric:y}),s(null!==(r=e.qText)&&void 0!==r?r:"",d,i,y)})),{row:p,pageRowIdx:d}}(r,l,s,e.qArea,u,o,i.qHyperCube.qSize,a),d=c.row,p=c.pageRowIdx;r[p]=d}))}))},IP=function(e){var t=e.layout,n=e.model,r=e.theme,o=e.initialDataPages,i=e.pageInfo,a=e.rowCount,l=e.visibleRowCount,s=e.visibleColumnCount,u=e.columns,c=e.setCellSize,d=e.gridState,p=bn.useRef([]),f=CP(c),m=bn.useCallback((function(e,n){var r=Array.isArray(n)?n.slice(0,a):function(e){return Array(e).fill(void 0)}(a);return PP(e,i,r,u,t,f.current),p.current=r,r}),[a,i,u,t,f]),h=bn.useState((function(){return m(null!=o?o:[])})),g=h[0],v=h[1];ys((function(){v(m(null!=o?o:[]))}),[o]);var b=kP((function(e){return n.getHyperCubeData("/qHyperCubeDef",e)}),(function(e){return v((function(t){return m(e,t)}))})),y=bn.useCallback((function(e,t,n,r){for(var o=e;o<e+n;o++)if(AP(p.current,o,t,r)){var i={qLeft:o,qTop:t,qHeight:r,qWidth:1};b.enqueue(i)}}),[p,b]),x=bn.useCallback((function(e,t,n,r){for(var o=t;o<t+r;o++){var a=Math.max(0,o-i.page*i.rowsPerPage);if(DP(p.current,e,a,n,o)){var l={qLeft:e,qTop:o,qHeight:1,qWidth:n};b.enqueue(l)}}}),[p,b,i]),S=r.name();return bn.useEffect((function(){var e=t.qHyperCube.qSize,n=e.qcx,r=e.qcy,o=d.current.overscanRowStartIndex,a=d.current.overscanColumnStartIndex,u=o+i.page*i.rowsPerPage,c=n-a,p=i.rowsPerPage-o,f=Math.min(100,c,n,s+5),m=Math.min(100,p,r,l+25);return x(a,u,f,m),function(){b.clear()}}),[t,l,s,i,b,x,d,S]),{rowsInPage:g,loadRows:x,loadColumns:y}},TP=function(e){var t,n=e.style,r=e.columnWidths,o=e.rowHeight,i=e.pageInfo,a=e.rowCount,l=e.gridRef,s=e.lineRef,u=e.columns,c=e.boldText,d=e.gridState,p=e.isSnapshot,f=e.viewService,m=e.maxNbrLines,h=void 0===m?3:m,g=bn.useRef({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),v=Tk(Dk,(function(e){return e.baseProps})),b=v.layout,y=v.rect,x=bn.useState(o||24),S=x[0],E=x[1],w=FR(n.fontSize,n.fontFamily,c),C=w.measureText,R=w.estimateLineCount,k=parseInt(null!==(t=n.fontSize)&&void 0!==t?t:OR.fontSize,10)*pk,D=8e6/a-8-1,A=Math.max(0,Math.min(h,Math.round(D/k))),P=bn.useCallback((function(e,t,n){var o=u?function(e,t){var n=e-71;return n-(t.isLocked?24:0)}(r[t],u[t]):function(e){return e-24-1}(r[t]),i=Math.min(A,R({text:e.trim(),maxWidth:o,isNumeric:n}));return Math.max(1,i)*k+8+1}),[r,k,A,u,R]),I=bn.useCallback((function(e,t,n,r,o){void 0===r&&(r=!1),void 0===o&&(o=!1);var i="".concat(t,"-").concat(n);if(!g.current.measuredCells.has(i)){g.current.measuredCells.set(i,[e,t,n,r]);var a=P(e,n,r),l=g.current.heights[t],s=a-l;s>0?(g.current.totalHeight+=s,g.current.heights[t]=a):void 0===l&&(g.current.count+=1,g.current.totalHeight+=a,g.current.heights[t]=a),o||p||E(g.current.totalHeight/g.current.count)}}),[P,p]),T=bn.useCallback((function(e){var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:S}),[g,S]),L=bn.useCallback((function(){g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),M=CP(I),q=bn.useCallback((function(){var e=new Map(g.current.measuredCells);L(),e.forEach((function(e){var t=e[0],n=e[1],r=e[2],o=e[3];M.current(t,n,r,o,!0)})),p||E(g.current.totalHeight/g.current.count)}),[L,p,M]);ys((function(){L()}),[b,i]),ys((function(){q()}),[C,y.width]);return(null==l?void 0:l.current)?l.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):(null==s?void 0:s.current)&&s.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),f.estimatedRowHeight=S,{setCellSize:I,getRowHeight:T,rowMeta:g,estimatedRowHeight:S,maxLineCount:A,resizeVisibleCells:function(e){var t;if(d){L();for(var n=d.current,r=n.overscanRowStartIndex,o=n.overscanRowStopIndex,i=Math.min(o,b.qHyperCube.qSize.qcy-1),a=function(n){var r=null!==(t=e[n])&&void 0!==t?t:{};Object.values(r).forEach((function(e){var t;"object"==typeof e&&I(null!==(t=e.qText)&&void 0!==t?t:"",n,e.pageColIdx,e.isNumeric)}))},l=r;l<=i;l++)a(l)}},resizeAllCells:q,resetRowMeta:L}};!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(SP||(SP={}));var LP={enabled:!1},MP=function(){},qP={current:null};var OP=function(e,t,n,r,o){var i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(n.height/o)),l=bn.useMemo((function(){return r.reduce((function(e,t){return e.width<n.width&&(e.width+=t,e.count+=1),e}),{count:0,width:0})}),[n,r]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},_P=function(e){var t,n=e.columnIndex,r=e.data,o=e.rowIndex,i=null===(t=r.rowsInPage[o])||void 0===t?void 0:t["col-".concat(n)];return"".concat(null==i?void 0:i.qElemNumber,"-").concat(null==i?void 0:i.qText,"-").concat(o,"-").concat(n)},NP={overflow:"hidden",willChange:"auto"},FP=bn.forwardRef((function(e,t){var n,r,o,i=e.rect,a=e.columns,l=e.innerForwardRef,s=e.pageInfo,u=e.bodyStyle,c=e.rowHeight,d=e.headerAndTotalsHeight,p=e.syncHeight,f=Tk(Dk,(function(e){return e.baseProps})),h=f.layout,g=f.model,v=f.theme,b=f.viewService,y=Tk(Dk,(function(e){return e.columnWidths})),x=Tk(Dk,(function(e){return e.initialDataPages})),S=null===(n=b.viewState)||void 0===n?void 0:n.maxLineCount,E=bn.useRef(null),w=bn.useRef({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),C=!!(null===(o=null===(r=vk(h))||void 0===r?void 0:r.content)||void 0===o?void 0:o.hoverEffect),R=function(){var e=bn.useRef(0),t=bn.useRef(0),n=bn.useRef(SP.None),r=bn.useRef(SP.None);return{scrollHandler:bn.useCallback((function(o){var i=o.scrollTop,a=o.scrollLeft;i>t.current?n.current=SP.Down:i<t.current?n.current=SP.Up:n.current=SP.None,a>e.current?r.current=SP.Right:a<e.current?r.current=SP.Left:r.current=SP.None,t.current=i,e.current=a}),[t,e,n,r]),verticalScrollDirection:n,horizontalScrollDirection:r}}(),k=R.scrollHandler,D=R.verticalScrollDirection,A=R.horizontalScrollDirection,P=OP(h,s,i,y,c),I=P.rowCount,T=P.visibleRowCount,L=P.visibleColumnCount,M=TP({pageInfo:s,style:u,rowHeight:c,columnWidths:y,gridRef:E,rowCount:I,gridState:w,isSnapshot:!!h.snapshotData,viewService:b,maxNbrLines:S}),q=M.setCellSize,O=M.getRowHeight,_=M.rowMeta,N=M.estimatedRowHeight,F=M.maxLineCount,z=M.resizeVisibleCells,j=IP({layout:h,model:g,theme:v,initialDataPages:x,pageInfo:s,rowCount:I,visibleRowCount:T,visibleColumnCount:L,columns:a,setCellSize:q,gridState:w}),H=j.rowsInPage,B=function(e){var t=e.layout,n=e.loadRows,r=e.loadColumns,o=e.verticalScrollDirection,i=e.horizontalScrollDirection,a=e.rowCount,l=e.pageInfo,s=e.gridState,u=e.viewService,c=bn.useCallback((function(e){var c=e.overscanColumnStartIndex,d=e.overscanColumnStopIndex,p=e.overscanRowStartIndex,f=e.overscanRowStopIndex,m=e.visibleColumnStartIndex,h=e.visibleColumnStopIndex,g=e.visibleRowStartIndex,v=e.visibleRowStopIndex;if(s.current.overscanColumnStartIndex=c,s.current.overscanColumnStopIndex=d,s.current.overscanRowStartIndex=p,s.current.overscanRowStopIndex=f,!(p>a)){var b=c,y=p+l.page*l.rowsPerPage,x=d-c+1,S=f-p+1;if(u.visibleLeft=m,u.visibleWidth=h-m+1,u.visibleTop=g+l.page*l.rowsPerPage,u.visibleHeight=v-g+1,u.page=l.page,u.rowsPerPage=l.rowsPerPage,o.current===SP.Down)n(b,y,x,p+(E=S+25)>a?a-p:E);else if(o.current===SP.Up){var E=S+25,w=l.page*l.rowsPerPage,C=Math.max(w,y-25);n(b,C,x,E)}if(i.current===SP.Right){var R=t.qHyperCube.qSize.qcx-b,k=x+5,D=Math.min(R,k);r(b,y,D,S)}else if(i.current===SP.Left){var A=Math.max(0,b-5);k=Math.min(t.qHyperCube.qSize.qcx,x+5),r(A,y,k,S)}}}),[s,a,l.page,l.rowsPerPage,u,o,i,n,t.qHyperCube.qSize.qcx,r]);return c}({layout:h,loadRows:j.loadRows,loadColumns:j.loadColumns,verticalScrollDirection:D,horizontalScrollDirection:A,rowCount:I,pageInfo:s,gridState:w,viewService:b}),$=bn.useMemo((function(){return{rowsInPage:H,columns:a,bodyStyle:u,isHoverEnabled:C,maxLineCount:F}}),[H,a,u,C,F]),V=function(e,t,n,r){var o=e.height;return n*r<(o-=t)&&(o=Math.min(n*r,o)),o}(i,d,I,N);return bn.useLayoutEffect((function(){var e,t;p(null!==(t=null===(e=l.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0,!0)}),[I,p,l]),bn.useLayoutEffect((function(){var e,t,n;p(null!==(t=null===(e=l.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0,!1),1===_.current.lastScrollToRatio&&(null===(n=E.current)||void 0===n||n.scrollToItem({rowIndex:I-1,align:"start"}))})),function(e){var t=Tk(Dk,(function(e){return e.baseProps})).selectionsAPI,n=Tk(Dk,(function(e){return e.selectionDispatch}));bn.useEffect((function(){n({type:m.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),gD({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:MP,keyboard:LP,tableWrapperRef:qP})}(H),ys((function(){var e;null===(e=E.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[h,s,v.name(),i.width,y]),bn.useImperativeHandle(t,(function(){return{interpolatedScrollTo:function(e,t){var n,r,o,i,a,s=(null!==(r=null===(n=l.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:V)-V,u=Math.round(s*e);_.current.lastScrollToRatio=e,1===_.current.lastScrollToRatio?(null===(o=E.current)||void 0===o||o.scrollToItem({rowIndex:I-1,align:"start"}),null===(i=E.current)||void 0===i||i.scrollTo({scrollLeft:t})):null===(a=E.current)||void 0===a||a.scrollTo({scrollTop:u,scrollLeft:t})},resizeCells:function(){var e;null===(e=E.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),z(H)}}}),[l,V,_,I,z,H]),yn.createElement(oP,{"data-key":"body",ref:E,innerRef:l,style:NP,columnCount:h.qHyperCube.qSize.qcx,columnWidth:function(e){return y[e]},height:V,rowCount:I,rowHeight:O,estimatedRowHeight:N,width:i.width,itemData:$,onItemsRendered:B,onScroll:k,itemKey:_P,className:"sn-table-body"},wP)})),zP=bn.memo(FP),jP=function(e){var t=e.width,n=e.height,r=e.children;return yn.createElement("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n}},r)},HP=function(e){var r=e.index,o=e.style,i=e.data,a=i.columns,l=n(i.headerStyle,[]),s=i.columResizeHandler,u=Tk(Dk,(function(e){return e.baseProps})),c=u.layout,d=u.interactions,p=Tk(Dk,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=Tk(Dk,(function(e){return e.showRightBorder})),m=a[r],h=a.length-1===r,g=c.qHyperCube.qEffectiveInterColumnSortOrder[0]===m.colIdx,v=!!d.active&&!p,b="right"===m.headTextAlign?"row-reverse":"row";return yn.createElement("div",{className:"sn-table-cell",title:d.passive?m.label:void 0,style:t(t(t({},o),l),{display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:h&&!f?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:m.headTextAlign,boxSizing:"border-box",cursor:"default",zIndex:a.length-r,flexDirection:b,userSelect:"none"})},yn.createElement(LA,{column:m,isActive:g,isInteractionEnabled:v},yn.createElement(hD,{wordBreak:!0,lines:3},m.label)),yn.createElement(HD,{column:m,isLastColumn:h,onColumnResize:s}))},BP=function(e,t,n,r,o){bn.useLayoutEffect((function(){var t;null===(t=null==e?void 0:e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,n,e,r,o])},$P={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},VP=function(e){var t=e.rect,n=e.forwardRef,r=e.columns,o=e.pageInfo,i=e.headerStyle,a=e.rowHeight,l=e.columResizeHandler,s=Tk(Dk,(function(e){return e.baseProps})),u=s.layout,c=s.theme,d=Tk(Dk,(function(e){return e.columnWidths}));return BP(n,u,o,d,c.name()),yn.createElement(pP,{ref:n,layout:"horizontal",style:$P,itemCount:u.qHyperCube.qSize.qcx,itemSize:function(e){return d[e]},height:a,width:t.width,itemData:{columns:r,headerStyle:i,columResizeHandler:l}},HP)},WP=bn.memo(VP),UP=yn.forwardRef((function(e,t){var n=e.children,r=e.width,o=e.height,i=e.onScroll,a=Tk(Dk,(function(e){return e.baseProps})).interactions;return yn.createElement("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i},n)})),GP=function(e){var t=e.children,n=e.rect;return yn.createElement("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:n.width,height:n.height}},t)},YP=function(e){var r=e.index,o=e.style,i=e.data,a=Tk(Dk,(function(e){return e.baseProps})),l=a.layout,s=a.interactions,u=Tk(Dk,(function(e){return e.showRightBorder})),c=i.totalsStyle;c.hoverColors;var d=n(c,["hoverColors"]),p=i.columns,f=i.totals,m=p[r].totalInfo,h=p[r].totalsTextAlign,g=l.qHyperCube.qSize.qcx-1===r;return yn.createElement("div",{className:"sn-table-cell",title:s.passive?m:void 0,style:t(t(t({},o),d),{display:"flex",alignItems:f.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:g&&!u?"0px":"1px",borderTopWidth:f.atBottom?"1px":"0px",borderBottomWidth:f.atTop?"1px":"0px",padding:"4px 12px",justifyContent:h,boxSizing:"border-box",cursor:"default",fontWeight:"600"})},yn.createElement(hD,{wordBreak:!ft(m),lines:3},m))},KP=function(e){var t=e.rect,n=e.forwardRef,r=e.pageInfo,o=e.totals,i=e.rowHeight,a=e.columns,l=Tk(Dk,(function(e){return e.baseProps})),s=l.layout,u=l.styling,c=l.theme,d=Tk(Dk,(function(e){return e.columnWidths}));return BP(n,s,r,d,c.name()),yn.createElement(pP,{ref:n,layout:"horizontal",style:$P,itemCount:s.qHyperCube.qSize.qcx,itemSize:function(e){return d[e]},height:i,width:t.width,itemData:{totalsStyle:u.totals,columns:a,totals:o}},YP)},XP=bn.memo(KP),ZP=function(e){var t=e.columns,n=e.columnWidths,r=e.pageInfo,o=e.headerRef,i=e.totalsRef,a=e.totalsPosition,l=e.isSnapshot,s=e.viewService,u=Tk(Dk,(function(e){return e.baseProps})).styling,c=TP({style:u.head,columnWidths:n,lineRef:o,rowCount:1,pageInfo:r,boldText:!0,columns:t,isSnapshot:l,viewService:s}),d=TP({style:u.totals,columnWidths:n,lineRef:i,rowCount:1,pageInfo:r,boldText:!0,isSnapshot:l,viewService:s});t.forEach((function(e,t){c.setCellSize(e.label,0,t),d.setCellSize(e.totalInfo,0,t,ft(e.totalInfo))}));var p=c.getRowHeight(0)+8,f=d.getRowHeight(0),m=l?s.estimatedRowHeight:function(e){var t=e.fontSize,n=void 0===t?OR.fontSize:t;return Math.max(24,fk(n))}(u.body);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:m,headerAndTotalsHeight:a.atTop||a.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},JP=function(e){var n,r=e.pageInfo,o=Tk(Dk,(function(e){return e.tableData})),i=o.totalsPosition,a=o.columns,l=o.paginationNeeded,s=Tk(Dk,(function(e){return e.baseProps})),u=s.layout,c=s.theme,d=s.styling,p=s.rect,f=s.viewService,m=Tk(Dk,(function(e){return e.columnWidths})),h=Tk(Dk,(function(e){return e.setYScrollbarWidth})),g=bn.useRef(null),v=bn.useRef(null),b=bn.useRef(null),y=bn.useRef(null),x=bn.useRef(),S=cD(g),E=S.xScrollbarWidth,w=S.yScrollbarWidth,C=bn.useMemo((function(){var e;return t(t({},d.body),{background:null!==(e=c.background.color)&&void 0!==e?e:"transparent"})}),[c.background.color,d]),R=ZP({columns:a,columnWidths:m,pageInfo:r,totalsPosition:i,headerRef:v,totalsRef:b,isSnapshot:!!u.snapshotData,viewService:f}),k=R.headerRowHeight,D=R.totalsRowHeight,A=R.bodyRowHeight,P=R.headerAndTotalsHeight,I=R.resizeAllHeaderCells,T=R.resizeAllTotalCells,L=bn.useMemo((function(){return function(e,t){var n=e.height-(t?41:0);return{width:e.width,height:n}}(p,l)}),[p,l]),M=bn.useMemo((function(){return function(e,t,n){return{width:e.width-n,height:e.height-t}}(L,E,w)}),[L,E,w]),q=OP(u,r,M,m,A).rowCount,O=bn.useState(q*A+P),_=O[0],N=O[1],F=m.reduce((function(e,t){return e+t}),0),z=function(e,t,n,r){return bn.useCallback((function(o){var i,a,l,s=o.currentTarget,u=s.scrollHeight,c=s.clientHeight,d=s.scrollTop,p=s.scrollLeft,f=Math.max(0,Math.min(1,d/(u-c)));r.scrollTopRatio=f,r.scrollLeft=p,null===(i=n.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(f)?0:f,p),null===(a=e.current)||void 0===a||a.scrollTo(p),null===(l=t.current)||void 0===l||l.scrollTo(p)}),[r,n,e,t])}(v,b,y,f),j=bn.useCallback((function(e,t){void 0===t&&(t=!1);var n=e+P;(_<M.height&&n>M.height||t)&&N(n)}),[_,P,M.height]),H=bn.useCallback((function(){var e;g.current&&(g.current.scrollTop=0),null===(e=y.current)||void 0===e||e.resizeCells(),I(),T()}),[g,I,T]);bn.useLayoutEffect((function(){g.current&&(g.current.scrollLeft=0,g.current.scrollTop=0)}),[a.length]);var B=c.name();bn.useLayoutEffect((function(){g.current&&(g.current.scrollTop=0)}),[r,q,B]),sD((function(){h(w)}),[w]);var $=yn.createElement(XP,{rect:M,pageInfo:r,columns:a,forwardRef:b,totals:i,rowHeight:D});return yn.createElement(UP,{ref:g,width:L.width,height:L.height,onScroll:z},yn.createElement(jP,{width:F,height:_},yn.createElement(GP,{rect:M},(null===(n=f.viewState)||void 0===n?void 0:n.skipHeader)?null:yn.createElement(WP,{headerStyle:d.head,rect:M,pageInfo:r,columns:a,forwardRef:v,rowHeight:k,columResizeHandler:H}),i.atTop?$:null,yn.createElement(zP,{ref:y,innerForwardRef:x,bodyStyle:C,rect:M,pageInfo:r,columns:a,rowHeight:A,headerAndTotalsHeight:P,syncHeight:j}),i.atBottom?$:null)))},QP=bn.memo(JP),eI=function(){var e=Tk(Dk,(function(e){return e.baseProps})).theme,t=Tk(Dk,(function(e){return e.tableData})).paginationNeeded,n=Tk(Dk,(function(e){return e.pageInfo})),r=Tk(Dk,(function(e){return e.setPage}));return yn.createElement(iD,{"data-testid":"sn-table",background:e.background,dir:"ltr"},yn.createElement(QP,{pageInfo:n}),t&&yn.createElement(Nk,null,yn.createElement(oD,{handleChangePage:function(e){return r(e)},isSelectionMode:!1,pageInfo:n,setPageInfo:function(){},announce:function(){}})))},tI=bn.memo(eI);var nI,rI={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。有关键盘导航的完整范围,请参阅文档。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。如需完整的鍵盤導覽,請參閱文件。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(nI||(nI={}));var oI,iI=function(t,n){return e.useMemo((function(){return function(e){if(e&&e.get&&e.add){var t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(rI).forEach((function(t){e.add(rI[t])}))}}(n),function(){return function(e,t,n){var r=n||null;return function(n){var o,i=n.keys,a=n.shouldBeAtomic,l=void 0===a||a,s=n.politeness,u=void 0===s?"polite":s,c=i.map((function(e){if(Array.isArray(e)){var n=e[0],r=e.slice(1);return t.get(n,r)}return t.get(e)})).join(" "),d=e.querySelector(".sn-table-announcer-1"),p=e.querySelector(".sn-table-announcer-2");r===nI.FIRST?(o=p,r=nI.SECOND):(o=d,r=nI.FIRST),o.innerHTML=o.innerHTML.endsWith(" ­")?c:"".concat(c," ­"),o.setAttribute("aria-atomic",l.toString()),o.setAttribute("aria-live",u)}}(t,n)}}),[t,n.language()])},aI={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},lI=function(i){var a=i.app,l=i.model,s=i.rootElement,u=i.layout,c=i.interactions,d=i.translator,p=i.selectionsAPI,f=i.theme,m=i.changeSortOrder,h=i.keyboard,g=i.rect,v=i.embed,b=i.reactRoot,y=i.applyColumnWidths,x=i.isFontLoaded,S=i.viewService,E=e.useOptions(),w=E.direction,C=E.footerContainer,R=Et(u,S),k=wt(u,S),D=iI(s,d),A=R?{page:S.page||aI.page,rowsPerPage:S.rowsPerPage||aI.rowsPerPage,rowsPerPageOptions:aI.rowsPerPageOptions}:aI,P=e.useState(A),I=P[0],T=P[1],L=e.usePromise((function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){return k?[2,St(l,u,I,T,S)]:[2,null]}))}))}),[u,I,l,c,k])[0];e.useEffect((function(){!!(k&&b&&l&&(u.snapshotData||a)&&u&&L&&m&&f&&p&&x&&v)&&function(e,r){var o=e.app,i=e.model,a=e.direction,l=e.selectionsAPI,s=e.layout,u=e.translator,c=e.interactions,d=e.theme,p=e.keyboard,f=e.rootElement,m=e.embed,h=e.changeSortOrder,g=e.applyColumnWidths,v=e.tableData,b=e.rect,y=e.viewService,x=n(e,["app","model","direction","selectionsAPI","layout","translator","interactions","theme","keyboard","rootElement","embed","changeSortOrder","applyColumnWidths","tableData","rect","viewService"]),S=Lk(a);null==r||r.render(yn.createElement(si,{stylisPlugins:"rtl"===a?[bs]:void 0},yn.createElement(us,{theme:S},yn.createElement(Ik,{app:o,model:i,tableData:v,selectionsAPI:l,layout:s,translator:u,interactions:c,theme:d,keyboard:p,rootElement:f,embed:m,changeSortOrder:h,applyColumnWidths:g,rect:b,viewService:y},yn.createElement(NA,t({},x,{direction:a}))))))}({app:a,model:l,rootElement:s,layout:u,tableData:L,direction:w,pageInfo:I,setPageInfo:T,interactions:c,translator:d,selectionsAPI:p,theme:f,changeSortOrder:m,keyboard:h,rect:g,footerContainer:C,announce:D,embed:v,applyColumnWidths:y,viewService:S},b)}),[a,l,b,L,c,w,f.name(),h.active,D,m,y,k,u,p,v,s,I,T,d,g,C,x])},sI=Rx;oI=sI.createRoot,sI.hydrateRoot;var uI=function(t,n){return e.useMemo((function(){return function(e,t){if(t)return function(n){return r(void 0,void 0,void 0,(function(){var r,i,a,l,s,u,c;return o(this,(function(o){switch(o.label){case 0:return r=n.isDim,i=n.colIdx,a=n.qReverseSort,l=r?i:i-e,[4,t.getEffectiveProperties()];case 1:return s=o.sent(),u=s.qHyperCubeDef.qInterColumnSortOrder,c=[],i!==u[0]?(u.splice(u.indexOf(i),1),u.unshift(i),c.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:"[".concat(u.join(","),"]")})):c.push({qPath:"/qHyperCubeDef/".concat(r?"qDimensions":"qMeasures","/").concat(l,"/qDef/qReverseSort"),qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(c,!0),[2]}}))}))}}(t.qDimensionInfo.length,n)}),[t.qDimensionInfo.length,n])};var cI=function(e,t,n){return r(void 0,void 0,void 0,(function(){var r,i;return o(this,(function(o){switch(o.label){case 0:return r=t.qHyperCube.qDataPages,0===n&&void 0!==r&&0!==r.length?[3,2]:(i=n*Math.min(_R,t.qHyperCube.qSize.qcy),[4,e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:i,qWidth:50,qHeight:100}])]);case 1:r=o.sent(),o.label=2;case 2:return[2,{initialDataPages:r,derivedFrom:{layout:t,page:n}}]}}))}))},dI=function(t){var n=t.app,i=t.layout,a=t.model,l=t.rect,s=t.theme,u=t.keyboard,c=t.translator,d=t.interactions,p=t.selectionsAPI,f=t.changeSortOrder,m=t.rootElement,h=t.embed,g=t.reactRoot,v=t.applyColumnWidths,b=t.isFontLoaded,y=t.viewService,x=!wt(i,y),S=e.useMemo((function(){return function(e,t,n){var r=vt(e,n),o=xt(e),i=e.qHyperCube.qSize.qcy,a=Math.min(_R,i),l=i>_R&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(i,d,y)}),[i,d,y]),E=function(t,n){var r=e.useState(0),o=r[0],i=r[1],a=Math.min(_R,t.qHyperCube.qSize.qcy),l=e.useMemo((function(){return{page:o,rowsPerPage:a,rowsPerPageOptions:[]}}),[a,o]);if(n){var s=Math.floor(t.qHyperCube.qSize.qcy/_R);s<o&&i(s)}return{pageInfo:l,setPage:i}}(i,x),w=E.pageInfo,C=E.setPage,R=function(t){var n=t.model,i=t.layout,a=t.shouldRender,l=t.page,s=e.usePromise((function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){return a&&n?[2,cI(n,i,l)]:[2,void 0]}))}))}),[n,i,l])[0],u=(null==s?void 0:s.derivedFrom.layout)!==i||(null==s?void 0:s.derivedFrom.page)!==l;return{initialDataPages:null==s?void 0:s.initialDataPages,isLoading:u}}({model:a,layout:i,page:w.page,shouldRender:x}),k=R.initialDataPages,D=R.isLoading;e.useEffect((function(){x&&a&&f&&k&&!D&&b&&function(e,t){var n=e.app,r=e.selectionsAPI,o=e.layout,i=e.model,a=e.translator,l=e.interactions,s=e.theme,u=e.keyboard,c=e.rect,d=e.rootElement,p=e.embed,f=e.changeSortOrder,m=e.tableData,h=e.applyColumnWidths,g=e.setPage,v=e.pageInfo,b=e.initialDataPages,y=e.viewService,x=Lk("ltr");t.render(yn.createElement(yn.StrictMode,null,yn.createElement(us,{theme:x},yn.createElement(Ik,{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:v,initialDataPages:b,viewService:y},yn.createElement(tI,null)))))}({app:n,layout:i,model:a,rect:l,theme:s,keyboard:u,translator:c,interactions:d,selectionsAPI:p,rootElement:m,embed:h,changeSortOrder:f,tableData:S,applyColumnWidths:v,setPage:C,pageInfo:w,initialDataPages:k,viewService:y},g)}),[n,i,a,l,s.name(),u.active,c,d,p,f,x,m,h,g,S,v,C,w,D,k,b])};const pI={version:JSON.stringify("2.7.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function fI(e,t){var n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};var r=(null==n?void 0:n.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:r.y+i.height+(t.atTop?l.height:0),bottom:r.y+r.height-(t.atBottom?l.height:0)},c=function(e,t){if(!e)return-1;for(var n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1}(s,u),d=function(e,t){if(!e)return-1;for(var n=e.length-1;n>-1;n--){var r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1}(s,u),p=function(e,t,n){if(!e||0===e.length||n<0)return 0;var r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)}(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}var mI=function(e,t){if(t)for(var n=0;n<t.length;n++){var r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},hI=function(e,t,n){if(!e)return!1;var r=e.y+e.height/2;return r>=t&&r<=n};var gI=function(e,t,n,r){var o;if(e<0)return 0;var i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||aI.rowsPerPage,l=(null===(o=r.viewState)||void 0===o?void 0:o.isMultiPage)?0:3;return Math.min(i,a,e-t+1+l)},vI=function(e,t,n){if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;var r=vt(e,t);if(wt(e,t)){var o=fI(n,r),i=o.visibleRowStartIndex,a=void 0===i?-1:i,l=o.visibleRowEndIndex,s=void 0===l?-1:l;return{rowPartialHeight:o.rowPartialHeight,scrollLeft:t.scrollLeft,visibleTop:t.qTop+a,visibleHeight:gI(s,a,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}}var u=function(e,t){var n=e.querySelector(".sn-table-body"),r=null==n?void 0:n.getBoundingClientRect(),o=null==n?void 0:n.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};var i=t.scrollTopRatio,a=void 0===i?0:i,l=t.visibleTop,s=void 0===l?0:l,u=t.visibleHeight,c=void 0===u?0:u,d=t.page,p=void 0===d?0:d,f=t.rowsPerPage,m=p*(void 0===f?0:f),h=s-m,g=h+c-1,v=mI(h,o),b=null==v?void 0:v.getBoundingClientRect();if(!v||!b)return{};var y=r.y;if(1-a<.001)return{visibleRowStartIndex:h+(b.y>=y-4?0:1)+m,visibleRowEndIndex:g+m};var x=r.y+r.height,S=(hI(b,y,x)?h:h+1)+m,E=g+m,w=mI(g,o),C=null==w?void 0:w.getBoundingClientRect();return w&&C&&(hI(C,y,x)||(E=g-1+m)),{visibleRowStartIndex:S,visibleRowEndIndex:E}}(n,t),c=u.visibleRowStartIndex,d=void 0===c?-1:c,p=u.visibleRowEndIndex,f=void 0===p?-1:p;return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:d,visibleHeight:gI(f,d,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}};return function(n){return{qae:{properties:{initial:pI},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]}},ext:ot(n),component:function(){var i,a=e.useElement(),l=function(t){var n=e.useMemo((function(){return oI(t)}),[t]);return e.useEffect((function(){return function(){return n.unmount()}}),[n]),n}(a),s=e.useStaleLayout(),u=e.useApp(),c=e.useModel(),d=e.useInteractionState(),p=e.useTranslator(),f=e.useSelections(),m=e.useKeyboard(),h=e.useOptions().freeResize,g=e.useRect(),v=(null===(i=null==s?void 0:s.snapshotData)||void 0===i?void 0:i.content)&&!h?t(t({},g),s.snapshotData.content.size):g,b=function(t){var n=e.useOptions().viewState;return e.useMemo((function(){return function(e,t){var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null===(n=null==t?void 0:t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(i=null===(o=null==t?void 0:t.content)||void 0===o?void 0:o.visibleTop)&&void 0!==i?i:null==e?void 0:e.visibleTop,visibleHeight:null!==(l=null===(a=null==t?void 0:t.content)||void 0===a?void 0:a.visibleHeight)&&void 0!==l?l:null==e?void 0:e.visibleHeight,scrollLeft:null!==(c=null!==(u=null===(s=null==t?void 0:t.content)||void 0===s?void 0:s.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==c?c:0,scrollTopRatio:null!==(p=null===(d=null==t?void 0:t.content)||void 0===d?void 0:d.scrollTopRatio)&&void 0!==p?p:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(m=null===(f=null==t?void 0:t.content)||void 0===f?void 0:f.rowsPerPage)&&void 0!==m?m:null==e?void 0:e.rowsPerPage,page:null!==(g=null===(h=null==t?void 0:t.content)||void 0===h?void 0:h.page)&&void 0!==g?g:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null===(v=null==t?void 0:t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}}(n,t.snapshotData)}),[n,t.snapshotData,t.usePagination])}(s),y=e.useEmbed(),x=function(n){var r=e.useTheme();return e.useMemo((function(){return t(t({},r),{background:pt(r,n)})}),[r.name(),n])}(a),S=uI(s.qHyperCube,c),E=at(s.qHyperCube,c),w=function(t,n){var i=yk(n,t,!1),a=i.fontSize,l=i.fontFamily,s=xk(n,t),u=s.fontSize,c=s.fontFamily,d=e.usePromise((function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,document.fonts.load("600 ".concat(a," ").concat(l))];case 1:return e.sent(),[4,document.fonts.load("".concat(u," ").concat(c))];case 2:return e.sent(),[2,!0]}}))}))}),[a,l,u,c]),p=d[0],f=d[1];return f?(console.warn("Failed to load font:",f),!0):!!p}(x,s);!function(){var t=this;null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu((function(e,n){n.target&&n.target.closest(".sn-table-cell")&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:function(){return r(t,void 0,void 0,(function(){return o(this,(function(e){return it(n),[2]}))}))}})}))}(),n.flags.isEnabled("PS_20907_TABLE_DOWNLOAD")&&function(t){var n=t.layout,i=t.viewService,a=t.model,l=t.rootElement,s=t.contentRect;e.onTakeSnapshot((function(e){return r(void 0,void 0,void 0,(function(){var t,r,u,c,d,p,f,m,h,g,v;return o(this,(function(o){switch(o.label){case 0:return e.snapshotData&&a&&!e.snapshotData.content?a.getHyperCubeData?(e.qHyperCube||(e.qHyperCube={}),t=vI(n,i,l),r=t.rowPartialHeight,u=t.scrollLeft,c=t.scrollTopRatio,d=t.visibleLeft,p=t.visibleWidth,f=t.visibleTop,m=t.visibleHeight,h=t.rowsPerPage,g=t.page,v=e.qHyperCube,[4,a.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=f?f:0,qWidth:n.qHyperCube.qSize.qcx,qHeight:null!=m?m:0}])]):[3,2]:[2,e];case 1:v.qDataPages=o.sent(),e.snapshotData.content={rowPartialHeight:r,scrollLeft:u,scrollTopRatio:c,visibleLeft:d,visibleWidth:p,visibleTop:f,visibleHeight:m,rowsPerPage:h,page:g,size:{width:s.width,height:s.height},estimatedRowHeight:i.estimatedRowHeight},o.label=2;case 2:return[2,e]}}))}))})),e.useImperativeHandle((function(){return{getViewState:function(){return vI(n,i,l)}}}),[n,i,l])}({layout:s,viewService:b,model:c,rootElement:a,contentRect:g}),dI({app:u,layout:s,model:c,rect:v,theme:x,keyboard:m,translator:p,interactions:d,selectionsAPI:f,changeSortOrder:S,rootElement:a,embed:y,reactRoot:l,applyColumnWidths:E,isFontLoaded:w,viewService:b}),lI({env:n,app:u,model:c,rootElement:a,layout:s,interactions:d,translator:p,selectionsAPI:f,theme:x,changeSortOrder:S,keyboard:m,rect:v,embed:y,reactRoot:l,applyColumnWidths:E,isFontLoaded:w,viewService:b})}}}}));
124
+ `),Ux.rippleVisible,Qx,550,(({theme:e})=>e.transitions.easing.easeInOut),Ux.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Ux.child,Ux.childLeaving,eE,550,(({theme:e})=>e.transitions.easing.easeInOut),Ux.childPulsate,tE,(({theme:e})=>e.transitions.easing.easeInOut)),oE=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Hm(n,Gx),[l,s]=$.useState([]),u=$.useRef(0),c=$.useRef(null);$.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=$.useRef(!1),p=$.useRef(0),f=$.useRef(null),m=$.useRef(null);$.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=$.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Wb.jsx(rE,{classes:{ripple:tx(o.ripple,Ux.ripple),rippleVisible:tx(o.rippleVisible,Ux.rippleVisible),ripplePulsate:tx(o.ripplePulsate,Ux.ripplePulsate),child:tx(o.child,Ux.child),childLeaving:tx(o.childLeaving,Ux.childLeaving),childPulsate:tx(o.childPulsate,Ux.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=$.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=$.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=$.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((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return $.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Wb.jsx(nE,tm({className:tx(Ux.root,o.root,i),ref:m},a,{children:Wb.jsx(zx,{component:null,exit:!0,children:l})}))}));var iE=oE;function aE(e){return Fm("MuiButtonBase",e)}var lE=zm("MuiButtonBase",["root","disabled","focusVisible"]);const sE=["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"],uE=iS("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"},[`&.${lE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),cE=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:S,onMouseDown:x,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:P=0,TouchRippleProps:D,touchRippleRef:A,type:I}=n,T=Hm(n,sE),L=$.useRef(null),M=$.useRef(null),O=Em(M,A),{isFocusVisibleRef:q,onFocus:N,onBlur:_,ref:F}=Tm(),[z,j]=$.useState(!1);s&&z&&j(!1),$.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),L.current.focus()}})),[]);const[H,B]=$.useState(!1);$.useEffect((()=>{B(!0)}),[]);const W=H&&!u&&!s;function V(e,t,n=c){return xm((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}$.useEffect((()=>{z&&d&&!u&&H&&M.current.pulsate()}),[u,d,z,H]);const U=V("start",x),G=V("stop",h),Y=V("stop",g),K=V("stop",w),Z=V("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=V("start",k),J=V("stop",C),Q=V("stop",R),ee=V("stop",(e=>{_(e),!1===q.current&&j(!1),f&&f(e)}),!1),te=xm((e=>{L.current||(L.current=e.currentTarget),N(e),!0===q.current&&(j(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=L.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=$.useRef(!1),oe=xm((e=>{d&&!re.current&&z&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=xm((e=>{d&&" "===e.key&&M.current&&z&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(T.href||T.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===I?"button":I,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Em(t,F,L),ue=tm({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:P,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Om({root:["root",t&&"disabled",n&&"focusVisible"]},aE,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Wb.jsxs(uE,tm({as:ae,className:tx(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:Z,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Q,onTouchStart:X,ref:se,tabIndex:s?-1:P,type:I},le,T,{children:[i,W?Wb.jsx(iE,tm({ref:O,center:o},D)):null]}))}));var dE=cE;function pE(e){return Fm("MuiTypography",e)}zm("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const fE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],mE=iS("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${cm(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>tm({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),hE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},gE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},vE=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiTypography"}),r=(e=>gE[e]||e)(n.color),o=Yb(tm({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=hE}=o,f=Hm(o,fE),m=tm({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||hE[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Om({root:["root",i,"inherit"!==e.align&&`align${cm(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},pE,a)})(m);return Wb.jsx(mE,tm({as:h,ref:t,ownerState:m,className:tx(g.root,a)},f))}));var bE=vE;function yE(e){return"string"==typeof e}function SE(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function xE(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=xE(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function EE(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=xE(e))&&(r&&(r+=" "),r+=t);return r}function wE(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const CE=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function RE(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Hm(e,CE),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=EE(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=tm({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=tm({},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=SE(tm({},o,r)),l=wE(r),s=wE(o),u=t(a),c=EE(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=tm({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=tm({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(tm({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||yE(e)?t:tm({},t,{ownerState:tm({},t.ownerState,n)})}(n,tm({},s,{ref:Em(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const kE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function PE(e){const t=[],n=[];return Array.from(e.querySelectorAll(kE)).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 DE(){return!0}function AE(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=PE,isEnabled:a=DE,open:l}=e,s=$.useRef(!1),u=$.useRef(null),c=$.useRef(null),d=$.useRef(null),p=$.useRef(null),f=$.useRef(!1),m=$.useRef(null),h=Em(t.ref,m),g=$.useRef(null);$.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),$.useEffect((()=>{if(!l||!m.current)return;const e=fm(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),$.useEffect((()=>{if(!l||!m.current)return;const e=fm(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Wb.jsxs($.Fragment,{children:[Wb.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),$.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Wb.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const IE=$.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=$.useState(null),l=Em($.isValidElement(n)?n.ref:null,t);if(gm((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),gm((()=>{if(i&&!o)return hm(t,i),()=>{hm(t,null)}}),[t,i,o]),o){if($.isValidElement(n)){const e={ref:l};return $.cloneElement(n,e)}return Wb.jsx($.Fragment,{children:n})}return Wb.jsx($.Fragment,{children:i?rd.createPortal(n,i):i})}));function TE(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function LE(e){return parseInt(mm(e).getComputedStyle(e).paddingRight,10)||0}function ME(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&&TE(e,o)}))}function OE(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function qE(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=fm(e);return t.body===e?mm(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Lm(fm(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${LE(r)+e}px`;const t=fm(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${LE(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=fm(r).body;else{const t=r.parentElement,n=mm(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const NE=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&&TE(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);ME(t,e.mount,e.modalRef,r,!0);const o=OE(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=OE(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=qE(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=OE(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&&TE(e.modalRef,t),ME(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&&TE(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function _E(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=NE,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=$.useRef({}),f=$.useRef(null),m=$.useRef(null),h=Em(m,d),[g,v]=$.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),x=()=>{o.mount(S(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=xm((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||fm(f.current).body;o.add(S(),e),m.current&&x()})),w=$.useCallback((()=>o.isTopModal(S())),[o]),C=xm((e=>{f.current=e,e&&(c&&w()?x():m.current&&TE(m.current,y))})),R=$.useCallback((()=>{o.remove(S(),y)}),[y,o]);$.useEffect((()=>()=>{R()}),[R]),$.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},P=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=SE(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=tm({},n,t);return tm({role:"presentation"},r,{onKeyDown:k(r),ref:h})},getBackdropProps:(e={})=>tm({"aria-hidden":!0},e,{onClick:P(e),open:c}),getTransitionProps:()=>({onEnter:dm((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:dm((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:C,isTopModal:w,exited:g,hasTransition:b}}const FE=["onChange","maxRows","minRows","style","value"];function zE(e){return parseInt(e,10)||0}const jE={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function HE(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const BE=$.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Hm(e,FE),{current:s}=$.useRef(null!=a),u=$.useRef(null),c=Em(t,u),d=$.useRef(null),p=$.useRef(0),[f,m]=$.useState({outerHeightStyle:0}),h=$.useCallback((()=>{const t=u.current,n=mm(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=zE(n.paddingBottom)+zE(n.paddingTop),s=zE(n.borderBottomWidth)+zE(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=$.useCallback((()=>{const e=h();HE(e)||m((t=>g(t,e)))}),[h]);gm((()=>{const e=()=>{p.current=0,(()=>{const e=h();HE(e)||rd.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=pm(e),n=u.current,r=mm(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),gm((()=>{v()})),$.useEffect((()=>{p.current=0}),[a]);return Wb.jsxs($.Fragment,{children:[Wb.jsx("textarea",tm({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:tm({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Wb.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:tm({},jE,i,{paddingTop:0,paddingBottom:0})})]})}));function $E({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var WE=$.createContext(void 0);function VE(){return $.useContext(WE)}function UE(e){return Wb.jsx(Vb,tm({},e,{defaultTheme:Qy,themeId:jm}))}function GE(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function YE(e,t=!1){return e&&(GE(e.value)&&""!==e.value||t&&GE(e.defaultValue)&&""!==e.defaultValue)}function KE(e){return Fm("MuiInputBase",e)}var ZE=zm("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const XE=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],JE=(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${cm(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},QE=(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]},ew=iS("div",{name:"MuiInputBase",slot:"Root",overridesResolver:JE})((({theme:e,ownerState:t})=>tm({},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",[`&.${ZE.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&tm({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),tw=iS("input",{name:"MuiInputBase",slot:"Input",overridesResolver:QE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=tm({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 tm({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] + .${ZE.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},[`&.${ZE.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"})})),nw=Wb.jsx(UE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),rw=$.forwardRef((function(e,t){var n;const r=tS({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:S,multiline:x=!1,name:E,onBlur:w,onChange:C,onClick:R,onFocus:k,onKeyDown:P,onKeyUp:D,placeholder:A,readOnly:I,renderSuffix:T,rows:L,slotProps:M={},slots:O={},startAdornment:q,type:N="text",value:_}=r,F=Hm(r,XE),z=null!=v.value?v.value:_,{current:j}=$.useRef(null!=z),H=$.useRef(),B=$.useCallback((e=>{}),[]),W=Em(H,b,v.ref,B),[V,U]=$.useState(!1),G=VE(),Y=$E({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,$.useEffect((()=>{!G&&d&&V&&(U(!1),w&&w())}),[G,d,V,w]);const K=G&&G.onFilled,Z=G&&G.onEmpty,X=$.useCallback((e=>{YE(e)?K&&K():Z&&Z()}),[K,Z]);gm((()=>{j&&X({value:z})}),[z,X,j]);$.useEffect((()=>{X(H.current)}),[]);let J=g,Q=v;x&&"input"===J&&(Q=tm(L?{type:void 0,minRows:L,maxRows:L}:{type:void 0,maxRows:y,minRows:S},Q),J=BE);$.useEffect((()=>{G&&G.setAdornedStart(Boolean(q))}),[G,q]);const ee=tm({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:x,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Om({root:["root",`color${cm(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${cm(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},KE,t)})(ee),ne=O.root||s.Root||ew,re=M.root||u.root||{},oe=O.input||s.Input||tw;return Q=tm({},Q,null!=(n=M.input)?n:u.input),Wb.jsxs($.Fragment,{children:[!p&&nw,Wb.jsxs(ne,tm({},re,!yE(ne)&&{ownerState:tm({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),R&&R(e)}},F,{className:tx(te.root,re.className,l,I&&"MuiInputBase-readOnly"),children:[q,Wb.jsx(WE.Provider,{value:null,children:Wb.jsx(oe,tm({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:E,placeholder:A,readOnly:I,required:Y.required,rows:L,value:z,onKeyDown:P,onKeyUp:D,type:N},Q,!yE(oe)&&{as:J,ownerState:tm({},ee,Q.ownerState)},{ref:W,className:tx(te.input,Q.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||H.current;if(null==t)throw new Error(um(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(tm({},Y,{startAdornment:q})):null]}))]})}));var ow=rw;function iw(e){return Fm("MuiInput",e)}var aw=tm({},ZE,zm("MuiInput",["root","underline","input"]));function lw(e){return Fm("MuiOutlinedInput",e)}var sw=tm({},ZE,zm("MuiOutlinedInput",["root","notchedOutline","input"]));function uw(e){return Fm("MuiFilledInput",e)}var cw=tm({},ZE,zm("MuiFilledInput",["root","underline","input"])),dw=function(e,t){function n(n,r){return Wb.jsx(ax,tm({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=ax.muiName,$.memo($.forwardRef(n))}(Wb.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const pw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],fw={entering:{opacity:1},entered:{opacity:1}},mw=$.forwardRef((function(e,t){const n=eS(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=Mx}=e,b=Hm(e,pw),y=$.useRef(null),S=Em(y,a.ref,t),x=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=x(d),w=x(((e,t)=>{jx(e);const r=Hx({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),C=x(c),R=x(m),k=x((e=>{const t=Hx({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),P=x(f);return Wb.jsx(v,tm({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:C,onEntering:E,onExit:k,onExited:P,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>$.cloneElement(a,tm({style:tm({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},fw[e],h,a.props.style),ref:S},t))}))}));var hw=mw;function gw(e){return Fm("MuiBackdrop",e)}zm("MuiBackdrop",["root","invisible"]);const vw=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bw=iS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>tm({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"}))),yw=$.forwardRef((function(e,t){var n,r,o;const i=tS({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=hw,transitionDuration:g}=i,v=Hm(i,vw),b=tm({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Om({root:["root",n&&"invisible"]},gw,t)})(b),S=null!=(n=f.root)?n:c.root;return Wb.jsx(h,tm({in:p,timeout:g},v,{children:Wb.jsx(bw,tm({"aria-hidden":!0},S,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:tx(y.root,l,null==S?void 0:S.className),ownerState:tm({},b,null==S?void 0:S.ownerState),classes:y,ref:t,children:a}))}))}));var Sw=yw;const xw=Jy(),Ew=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Mv("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ab);return $.forwardRef((function(e,a){const l=Ob(n),s=Yb(e),{className:u,component:c="div"}=s,d=Hm(s,Xb);return Wb.jsx(i,tm({as:c,ref:a,className:Zb(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:jm,defaultTheme:xw,defaultClassName:"MuiBox-root",generateClassName:Nm.generate});var ww=Ew;function Cw(e){return Fm("MuiButton",e)}var Rw=zm("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var kw=$.createContext({});var Pw=$.createContext(void 0);const Dw=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Aw=e=>tm({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Iw=iS(dE,{shouldForwardProp:e=>nS(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${cm(n.color)}`],t[`size${cm(n.size)}`],t[`${n.variant}Size${cm(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return tm({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":tm({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:hy(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:hy(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:hy(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":tm({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Rw.focusVisible}`]:tm({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Rw.disabled}`]:tm({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${hy(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Rw.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Rw.disabled}`]:{boxShadow:"none"}})),Tw=iS("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${cm(n.size)}`]]}})((({ownerState:e})=>tm({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Aw(e)))),Lw=iS("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${cm(n.size)}`]]}})((({ownerState:e})=>tm({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Aw(e)))),Mw=$.forwardRef((function(e,t){const n=$.useContext(kw),r=$.useContext(Pw),o=tS({props:Mm(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:v,variant:b="text"}=o,y=Hm(o,Dw),S=tm({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:b}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return tm({},a,Om({root:["root",i,`${i}${cm(t)}`,`size${cm(o)}`,`${i}Size${cm(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${cm(o)}`],endIcon:["endIcon",`iconSize${cm(o)}`]},Cw,a))})(S),E=g&&Wb.jsx(Tw,{className:x.startIcon,ownerState:S,children:g}),w=p&&Wb.jsx(Lw,{className:x.endIcon,ownerState:S,children:p}),C=r||"";return Wb.jsxs(Iw,tm({ownerState:S,className:tx(n.className,x.root,s,C),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:tx(x.focusVisible,f),ref:t,type:v},y,{classes:x,children:[E,i,w]}))}));var Ow=Mw;function qw(e){return Fm("MuiModal",e)}zm("MuiModal",["root","hidden","backdrop"]);const Nw=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],_w=iS("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})=>tm({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Fw=iS(Sw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),zw=$.forwardRef((function(e,t){var n,r,o,i,a,l;const s=tS({name:"MuiModal",props:e}),{BackdropComponent:u=Fw,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:x=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:k,open:P,slotProps:D,slots:A}=s,I=Hm(s,Nw),T=tm({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:x,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:C,keepMounted:R}),{getRootProps:L,getBackdropProps:M,getTransitionProps:O,portalRef:q,isTopModal:N,exited:_,hasTransition:F}=_E(tm({},T,{rootRef:t})),z=tm({},T,{exited:_}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Om({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},qw,r)})(z),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),F){const{onEnter:e,onExited:t}=O();H.onEnter=e,H.onExited=t}const B=null!=(n=null!=(r=null==A?void 0:A.root)?r:g.Root)?n:_w,W=null!=(o=null!=(i=null==A?void 0:A.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==D?void 0:D.root)?a:v.root,U=null!=(l=null==D?void 0:D.backdrop)?l:v.backdrop,G=RE({elementType:B,externalSlotProps:V,externalForwardedProps:I,getSlotProps:L,additionalProps:{ref:t,as:h},ownerState:z,className:tx(d,null==V?void 0:V.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),Y=RE({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>M(tm({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:tx(null==U?void 0:U.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||P||F&&!_?Wb.jsx(IE,{ref:q,container:m,disablePortal:x,children:Wb.jsxs(B,tm({},G,{children:[!C&&u?Wb.jsx(W,tm({},Y)):null,Wb.jsx(AE,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:P,children:$.cloneElement(f,H)})]}))}):null}));var jw=zw;function Hw(e){return Fm("MuiDivider",e)}var Bw=zm("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const $w=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ww=iS("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>tm({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:hy(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>tm({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>tm({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>tm({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>tm({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Vw=iS("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>tm({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Uw=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Hm(n,$w),m=tm({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Om({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Hw,r)})(m);return Wb.jsx(Ww,tm({as:a,className:tx(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Wb.jsx(Vw,{className:h.wrapper,ownerState:m,children:o}):null}))}));Uw.muiSkipListHighlight=!0;var Gw=Uw;const Yw=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Kw=iS(ew,{shouldForwardProp:e=>nS(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...JE(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return tm({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}},[`&.${cw.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${cw.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cw.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cw.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${cw.disabled}, .${cw.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${cw.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&tm({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),Zw=iS(tw,{name:"MuiFilledInput",slot:"Input",overridesResolver:QE})((({theme:e,ownerState:t})=>tm({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}))),Xw=$.forwardRef((function(e,t){var n,r,o,i;const a=tS({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Hm(a,Yw),g=tm({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return tm({},t,Om({root:["root",!n&&"underline"],input:["input"]},uw,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?om(null!=p?p:s,b):b,S=null!=(n=null!=(r=f.root)?r:l.Root)?n:Kw,x=null!=(o=null!=(i=f.input)?i:l.Input)?o:Zw;return Wb.jsx(ow,tm({slots:{root:S,input:x},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));Xw.muiName="Input";var Jw=Xw;const Qw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function eC(e){return`scale(${e}, ${e**2})`}const tC={entering:{opacity:1,transform:eC(1)},entered:{opacity:1,transform:"none"}},nC="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rC=$.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Mx}=e,g=Hm(e,Qw),v=$.useRef(),b=$.useRef(),y=eS(),S=$.useRef(null),x=Em(S,o.ref,t),E=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=E(u),C=E(((e,t)=>{jx(e);const{duration:n,delay:r,easing:o}=Hx({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:nC?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),P=E((e=>{const{duration:t,delay:n,easing:r}=Hx({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:nC?o:.666*o,delay:nC?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=eC(.75),c&&c(e)})),D=E(d);return $.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Wb.jsx(h,tm({appear:r,in:a,nodeRef:S,onEnter:C,onEntered:R,onEntering:w,onExit:P,onExited:D,onExiting:k,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>$.cloneElement(o,tm({style:tm({opacity:0,transform:eC(.75),visibility:"exited"!==e||a?void 0:"hidden"},tC[e],f,o.props.style),ref:x},t))}))}));rC.muiSupportAuto=!0;var oC=rC;const iC=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],aC=iS(ew,{shouldForwardProp:e=>nS(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...JE(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})`),tm({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"},[`&.${aw.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${aw.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${aw.disabled}, .${aw.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${aw.disabled}:before`]:{borderBottomStyle:"dotted"}})})),lC=iS(tw,{name:"MuiInput",slot:"Input",overridesResolver:QE})({}),sC=$.forwardRef((function(e,t){var n,r,o,i;const a=tS({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Hm(a,iC),v=(e=>{const{classes:t,disableUnderline:n}=e;return tm({},t,Om({root:["root",!n&&"underline"],input:["input"]},iw,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?om(null!=f?f:u,b):b,S=null!=(n=null!=(r=m.root)?r:s.Root)?n:aC,x=null!=(o=null!=(i=m.input)?i:s.Input)?o:lC;return Wb.jsx(ow,tm({slots:{root:S,input:x},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));sC.muiName="Input";var uC=sC;var cC=$.createContext({});function dC(e){return Fm("MuiList",e)}zm("MuiList",["root","padding","dense","subheader"]);const pC=["children","className","component","dense","disablePadding","subheader"],fC=iS("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})=>tm({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var mC=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Hm(n,pC),c=$.useMemo((()=>({dense:a})),[a]),d=tm({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Om({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},dC,t)})(d);return Wb.jsx(cC.Provider,{value:c,children:Wb.jsxs(fC,tm({as:i,className:tx(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function hC(e){return Fm("MuiListItem",e)}var gC=zm("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var vC=zm("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function bC(e){return Fm("MuiListItemSecondaryAction",e)}zm("MuiListItemSecondaryAction",["root","disableGutters"]);const yC=["className"],SC=iS("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>tm({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),xC=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Hm(n,yC),i=tm({},n,{disableGutters:$.useContext(cC).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return Om({root:["root",t&&"disableGutters"]},bC,n)})(i);return Wb.jsx(SC,tm({className:tx(a.root,r),ownerState:i,ref:t},o))}));xC.muiName="ListItemSecondaryAction";var EC=xC;const wC=["className"],CC=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],RC=iS("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>tm({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&tm({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${vC.root}`]:{paddingRight:48}},{[`&.${gC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:hy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:hy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${gC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:hy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:hy(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),kC=iS("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),PC=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:l,component:s,components:u={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:m=!1,disableGutters:h=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:S=!1,slotProps:x={},slots:E={}}=n,w=Hm(n.ContainerProps,wC),C=Hm(n,CC),R=$.useContext(cC),k=$.useMemo((()=>({dense:f||R.dense||!1,alignItems:r,disableGutters:h})),[r,R.dense,f,h]),P=$.useRef(null);gm((()=>{o&&P.current&&P.current.focus()}),[o]);const D=$.Children.toArray(a),A=D.length&&(I=D[D.length-1],T=["ListItemSecondaryAction"],$.isValidElement(I)&&-1!==T.indexOf(null!=(L=I.type.muiName)?L:null==(M=I.type)||null==(M=M._payload)||null==(M=M.value)?void 0:M.muiName));var I,T,L,M;const O=tm({},n,{alignItems:r,autoFocus:o,button:i,dense:k.dense,disabled:m,disableGutters:h,disablePadding:g,divider:v,hasSecondaryAction:A,selected:S}),q=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:u,selected:c}=e;return Om({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},hC,r)})(O),N=Em(P,t),_=E.root||u.Root||RC,F=x.root||c.root||{},z=tm({className:tx(q.root,F.className,l),disabled:m},C);let j=s||"li";return i&&(z.component=s||"div",z.focusVisibleClassName=tx(gC.focusVisible,b),j=dE),A?(j=z.component||s?j:"div","li"===d&&("li"===j?j="div":"li"===z.component&&(z.component="div")),Wb.jsx(cC.Provider,{value:k,children:Wb.jsxs(kC,tm({as:d,className:tx(q.container,p),ref:N,ownerState:O},w,{children:[Wb.jsx(_,tm({},F,!yE(_)&&{as:j,ownerState:tm({},O,F.ownerState)},z,{children:D})),D.pop()]}))})):Wb.jsx(cC.Provider,{value:k,children:Wb.jsxs(_,tm({},F,{as:j,ref:N},!yE(_)&&{ownerState:tm({},O,F.ownerState)},z,{children:[D,y&&Wb.jsx(EC,{children:y})]}))})}));var DC=PC;function AC(e){return Fm("MuiListItemIcon",e)}var IC=zm("MuiListItemIcon",["root","alignItemsFlexStart"]);const TC=["className"],LC=iS("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>tm({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var MC=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Hm(n,TC),i=tm({},n,{alignItems:$.useContext(cC).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Om({root:["root","flex-start"===t&&"alignItemsFlexStart"]},AC,n)})(i);return Wb.jsx(LC,tm({className:tx(a.root,r),ownerState:i,ref:t},o))}));var OC=zm("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const qC=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function NC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function _C(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function FC(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 zC(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&FC(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var jC=$.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Hm(e,qC),p=$.useRef(null),f=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});gm((()=>{r&&p.current.focus()}),[r]),$.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Lm(fm(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Em(p,t);let h=-1;$.Children.forEach(i,((e,t)=>{$.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=$.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),$.cloneElement(e,t)}return e}));return Wb.jsx(mC,tm({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=fm(t).activeElement;if("ArrowDown"===n)e.preventDefault(),zC(t,r,s,l,NC);else if("ArrowUp"===n)e.preventDefault(),zC(t,r,s,l,_C);else if("Home"===n)e.preventDefault(),zC(t,null,s,l,NC);else if("End"===n)e.preventDefault(),zC(t,null,s,l,_C);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&FC(r,o);o.previousKeyMatched&&(s||zC(t,r,!1,l,NC,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function HC(e){return Fm("MuiPopover",e)}zm("MuiPopover",["root","paper"]);const BC=["onEntering"],$C=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],WC=["slotProps"];function VC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function UC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function GC(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function YC(e){return"function"==typeof e?e():e}const KC=iS(jw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ZC=iS(Vx,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var XC=$.forwardRef((function(e,t){var n,r,o;const i=tS({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:x=oC,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:C=!1}=i,R=Hm(i.TransitionProps,BC),k=Hm(i,$C),P=null!=(n=null==y?void 0:y.paper)?n:v,D=$.useRef(),A=Em(D,P.ref),I=tm({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:P,transformOrigin:S,TransitionComponent:x,transitionDuration:E,TransitionProps:R}),T=(e=>{const{classes:t}=e;return Om({root:["root"],paper:["paper"]},HC,t)})(I),L=$.useCallback((()=>{if("anchorPosition"===c)return u;const e=YC(l),t=(e&&1===e.nodeType?e:fm(D.current).body).getBoundingClientRect();return{top:t.top+VC(t,s.vertical),left:t.left+UC(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),M=$.useCallback((e=>({vertical:VC(e,S.vertical),horizontal:UC(e,S.horizontal)})),[S.horizontal,S.vertical]),O=$.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===c)return{top:null,left:null,transformOrigin:GC(n)};const r=L();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=mm(YC(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:GC(n)}}),[l,c,L,M,h]),[q,N]=$.useState(g),_=$.useCallback((()=>{const e=D.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[O]);$.useEffect((()=>(C&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_))),[l,C,_]);$.useEffect((()=>{g&&_()})),$.useImperativeHandle(a,(()=>g?{updatePosition:()=>{_()}}:null),[g,_]),$.useEffect((()=>{if(!g)return;const e=pm((()=>{_()})),t=mm(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,_]);let F=E;"auto"!==E||x.muiSupportAuto||(F=void 0);const z=f||(l?fm(YC(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:KC,H=null!=(o=null==b?void 0:b.paper)?o:ZC,B=RE({elementType:H,externalSlotProps:tm({},P,{style:q?P.style:tm({},P.style,{opacity:0})}),additionalProps:{elevation:m,ref:A},ownerState:I,className:tx(T.paper,null==P?void 0:P.className)}),W=RE({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:I,className:tx(T.root,p)}),{slotProps:V}=W,U=Hm(W,WC);return Wb.jsx(j,tm({},U,!yE(j)&&{slotProps:V,disableScrollLock:C},{children:Wb.jsx(x,tm({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),_()},onExited:()=>{N(!1)},timeout:F},R,{children:Wb.jsx(H,tm({},B,{children:d}))}))}))}));function JC(e){return Fm("MuiMenu",e)}zm("MuiMenu",["root","paper","list"]);const QC=["onEntering"],eR=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],tR={vertical:"top",horizontal:"right"},nR={vertical:"top",horizontal:"left"},rR=iS(XC,{shouldForwardProp:e=>nS(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oR=iS(ZC,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),iR=iS(jC,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var aR=$.forwardRef((function(e,t){var n,r;const o=tS({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Hm(o.TransitionProps,QC),S=Hm(o,eR),x=eS(),E="rtl"===x.direction,w=tm({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Om({root:["root"],paper:["paper"],list:["list"]},JC,t)})(w),R=i&&!s&&d,k=$.useRef(null);let P=-1;$.Children.map(a,((e,t)=>{$.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))}));const D=null!=(n=v.paper)?n:oR,A=null!=(r=b.paper)?r:p,I=RE({elementType:v.root,externalSlotProps:b.root,ownerState:w,className:[C.root,l]}),T=RE({elementType:D,externalSlotProps:A,ownerState:w,className:C.paper});return Wb.jsx(rR,tm({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?tR:nR,slots:{paper:D,root:v.root},slotProps:{root:I,paper:T},open:d,ref:t,transitionDuration:m,TransitionProps:tm({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,x),h&&h(e,t)}},y),ownerState:w},S,{classes:f,children:Wb.jsx(iR,tm({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===P||s),autoFocusItem:R,variant:g},u,{className:tx(C.list,u.className),children:a}))}))}));function lR(e){return Fm("MuiMenuItem",e)}var sR=zm("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const uR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],cR=iS(dE,{shouldForwardProp:e=>nS(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>tm({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:hy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:hy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:hy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:hy(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Bw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Bw.inset}`]:{marginLeft:52},[`& .${OC.root}`]:{marginTop:0,marginBottom:0},[`& .${OC.inset}`]:{paddingLeft:36},[`& .${IC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&tm({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${IC.root} svg`]:{fontSize:"1.25rem"}}))));var dR=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Hm(n,uR),f=$.useContext(cC),m=$.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=$.useRef(null);gm((()=>{r&&h.current&&h.current.focus()}),[r]);const g=tm({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return tm({},a,Om({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},lR,a))})(n),b=Em(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Wb.jsx(cC.Provider,{value:m,children:Wb.jsx(cR,tm({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:tx(v.focusVisible,s),className:tx(v.root,d)},p,{ownerState:g,classes:v}))})}));function pR(e){return Fm("MuiNativeSelect",e)}var fR=zm("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const mR=["className","disabled","error","IconComponent","inputRef","variant"],hR=({ownerState:e,theme:t})=>tm({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":tm({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${fR.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),gR=iS("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:nS,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${fR.multiple}`]:t.multiple}]}})(hR),vR=({ownerState:e,theme:t})=>tm({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${fR.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),bR=iS("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${cm(n.variant)}`],n.open&&t.iconOpen]}})(vR);var yR,SR=$.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Hm(e,mR),u=tm({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Om({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${cm(n)}`,i&&"iconOpen",r&&"disabled"]},pR,t)})(u);return Wb.jsxs($.Fragment,{children:[Wb.jsx(gR,tm({ownerState:u,className:tx(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Wb.jsx(bR,{as:i,ownerState:u,className:c.icon})]})}));const xR=["children","classes","className","label","notched"],ER=iS("fieldset",{shouldForwardProp:nS})({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%"}),wR=iS("legend",{shouldForwardProp:nS})((({ownerState:e,theme:t})=>tm({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&&tm({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const CR=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],RR=iS(ew,{shouldForwardProp:e=>nS(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:JE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return tm({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${sw.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${sw.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${sw.focused} .${sw.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${sw.error} .${sw.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${sw.disabled} .${sw.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&tm({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),kR=iS((function(e){const{className:t,label:n,notched:r}=e,o=Hm(e,xR),i=null!=n&&""!==n,a=tm({},e,{notched:r,withLabel:i});return Wb.jsx(ER,tm({"aria-hidden":!0,className:t,ownerState:a},o,{children:Wb.jsx(wR,{ownerState:a,children:i?Wb.jsx("span",{children:n}):yR||(yR=Wb.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}})),PR=iS(tw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:QE})((({theme:e,ownerState:t})=>tm({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}))),DR=$.forwardRef((function(e,t){var n,r,o,i,a;const l=tS({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=Hm(l,CR),v=(e=>{const{classes:t}=e;return tm({},t,Om({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},lw,t))})(l),b=VE(),y=$E({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=tm({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),x=null!=(n=null!=(r=m.root)?r:s.Root)?n:RR,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:PR;return Wb.jsx(ow,tm({slots:{root:x,input:E},renderSuffix:e=>Wb.jsx(kR,{ownerState:S,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Wb.jsxs($.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:tm({},v,{notchedOutline:null})}))}));DR.muiName="Input";var AR=DR;function IR(e){return Fm("MuiSelect",e)}var TR,LR=zm("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const MR=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],OR=iS("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${LR.select}`]:t.select},{[`&.${LR.select}`]:t[n.variant]},{[`&.${LR.error}`]:t.error},{[`&.${LR.multiple}`]:t.multiple}]}})(hR,{[`&.${LR.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),qR=iS("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${cm(n.variant)}`],n.open&&t.iconOpen]}})(vR),NR=iS("input",{shouldForwardProp:e=>rS(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 _R(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function FR(e){return null==e||"string"==typeof e&&!e.trim()}const zR=$.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:S,onChange:x,onClose:E,onFocus:w,onOpen:C,open:R,readOnly:k,renderValue:P,SelectDisplayProps:D={},tabIndex:A,value:I,variant:T="standard"}=e,L=Hm(e,MR),[M,O]=Sm({controlled:I,default:c,name:"Select"}),[q,N]=Sm({controlled:R,default:u,name:"Select"}),_=$.useRef(null),F=$.useRef(null),[z,j]=$.useState(null),{current:H}=$.useRef(null!=R),[B,W]=$.useState(),V=Em(t,h),U=$.useCallback((e=>{F.current=e,e&&j(e)}),[]),G=null==z?void 0:z.parentNode;$.useImperativeHandle(V,(()=>({focus:()=>{F.current.focus()},node:_.current,value:M})),[M]),$.useEffect((()=>{u&&q&&z&&!H&&(W(a?null:G.clientWidth),F.current.focus())}),[z,a]),$.useEffect((()=>{i&&F.current.focus()}),[i]),$.useEffect((()=>{if(!g)return;const e=fm(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?C&&C(t):E&&E(t),H||(W(a?null:G.clientWidth),N(e))},K=$.Children.toArray(l),Z=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(M)?M.slice():[];const t=M.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),M!==n&&(O(n),x)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),x(o,e)}b||Y(!1,t)}},X=null!==z&&q;let J,Q;delete L["aria-invalid"];const ee=[];let te=!1;(YE({value:M})||p)&&(P?J=P(M):te=!0);const ne=K.map((e=>{if(!$.isValidElement(e))return null;let t;if(b){if(!Array.isArray(M))throw new Error(um(2));t=M.some((t=>_R(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=_R(M,e.props.value),t&&te&&(Q=e.props.children);return $.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Z(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(J=b?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=B;!a&&H&&z&&(oe=G.clientWidth),re=void 0!==A?A:d?null:0;const ie=D.id||(y?`mui-component-select-${y}`:void 0),ae=tm({},e,{variant:T,value:M,open:X,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Om({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${cm(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},IR,t)})(ae),se=tm({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),ue=ym();return Wb.jsxs($.Fragment,{children:[Wb.jsx(OR,tm({ref:U,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||k?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),Y(!0,e))},onBlur:e=>{!X&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:M,name:y}}),S(e))},onFocus:w},D,{ownerState:ae,className:tx(D.className,le.select,s),id:ie,children:FR(J)?TR||(TR=Wb.jsx("span",{className:"notranslate",children:"​"})):J})),Wb.jsx(NR,tm({"aria-invalid":f,value:Array.isArray(M)?M.join(","):M,name:y,ref:_,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(O(t.props.value),x&&x(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},L)),Wb.jsx(qR,{as:m,className:le.icon,ownerState:ae}),Wb.jsx(aR,tm({id:`menu-${y||""}`,anchorEl:G,open:X,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:tm({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:tm({},v.slotProps,{paper:tm({},se,{style:tm({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var jR=zR;const HR=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],BR=["root"],$R={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>nS(e)&&"variant"!==e,slot:"Root"},WR=iS(uC,$R)(""),VR=iS(AR,$R)(""),UR=iS(Jw,$R)(""),GR=$.forwardRef((function(e,t){const n=tS({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=dw,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:S,renderValue:x,SelectDisplayProps:E,variant:w="outlined"}=n,C=Hm(n,HR),R=v?SR:jR,k=$E({props:n,muiFormControl:VE(),states:["variant","error"]}),P=k.variant||w,D=tm({},n,{variant:P,classes:i}),A=(e=>{const{classes:t}=e;return t})(D),I=Hm(A,BR),T=d||{standard:Wb.jsx(WR,{ownerState:D}),outlined:Wb.jsx(VR,{label:f,ownerState:D}),filled:Wb.jsx(UR,{ownerState:D})}[P],L=Em(t,T.ref);return Wb.jsx($.Fragment,{children:$.cloneElement(T,tm({inputComponent:R,inputProps:tm({children:o,error:k.error,IconComponent:u,variant:P,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:S,renderValue:x,SelectDisplayProps:tm({id:c},E)},p,{classes:p?om(I,p.classes):I},d?d.props.inputProps:{})},g&&v&&"outlined"===P?{notched:!0}:{},{ref:L,className:tx(T.props.className,a,A.root)},!d&&{variant:P},C))})}));GR.muiName="Select";var YR=GR;var KR=$.createContext();function ZR(e){return Fm("MuiTable",e)}zm("MuiTable",["root","stickyHeader"]);const XR=["className","component","padding","size","stickyHeader"],JR=iS("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>tm({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":tm({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),QR="table",ek=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiTable"}),{className:r,component:o=QR,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=Hm(n,XR),u=tm({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return Om({root:["root",n&&"stickyHeader"]},ZR,t)})(u),d=$.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Wb.jsx(KR.Provider,{value:d,children:Wb.jsx(JR,tm({as:o,role:o===QR?null:"table",ref:t,className:tx(c.root,r),ownerState:u},s))})}));var tk=ek;var nk=$.createContext();function rk(e){return Fm("MuiTableBody",e)}zm("MuiTableBody",["root"]);const ok=["className","component"],ik=iS("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),ak={variant:"body"},lk="tbody";var sk=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiTableBody"}),{className:r,component:o=lk}=n,i=Hm(n,ok),a=tm({},n,{component:o}),l=(e=>{const{classes:t}=e;return Om({root:["root"]},rk,t)})(a);return Wb.jsx(nk.Provider,{value:ak,children:Wb.jsx(ik,tm({className:tx(l.root,r),as:o,ref:t,role:o===lk?null:"rowgroup",ownerState:a},i))})}));function uk(e){return Fm("MuiTableCell",e)}var ck=zm("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const dk=["align","className","component","padding","scope","size","sortDirection","variant"],pk=iS("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${cm(n.size)}`],"normal"!==n.padding&&t[`padding${cm(n.padding)}`],"inherit"!==n.align&&t[`align${cm(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>tm({},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?vy(hy(e.palette.divider,1),.88):gy(hy(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",[`&.${ck.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}))),fk=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=Hm(n,dk),p=$.useContext(KR),f=$.useContext(nk),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const v=c||f&&f.variant,b=tm({},n,{align:r,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===v&&p&&p.stickyHeader,variant:v}),y=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return Om({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${cm(r)}`,"normal"!==o&&`padding${cm(o)}`,`size${cm(i)}`]},uk,t)})(b);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Wb.jsx(pk,tm({as:h,ref:t,className:tx(y.root,o),"aria-sort":S,scope:g,ownerState:b},d))}));var mk=fk;function hk(e){return Fm("MuiTableContainer",e)}zm("MuiTableContainer",["root"]);const gk=["className","component"],vk=iS("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var bk=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=Hm(n,gk),a=tm({},n,{component:o}),l=(e=>{const{classes:t}=e;return Om({root:["root"]},hk,t)})(a);return Wb.jsx(vk,tm({ref:t,as:o,className:tx(l.root,r),ownerState:a},i))}));function yk(e){return Fm("MuiTableHead",e)}zm("MuiTableHead",["root"]);const Sk=["className","component"],xk=iS("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Ek={variant:"head"},wk="thead";var Ck=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiTableHead"}),{className:r,component:o=wk}=n,i=Hm(n,Sk),a=tm({},n,{component:o}),l=(e=>{const{classes:t}=e;return Om({root:["root"]},yk,t)})(a);return Wb.jsx(nk.Provider,{value:Ek,children:Wb.jsx(xk,tm({as:o,className:tx(l.root,r),ref:t,role:o===wk?null:"rowgroup",ownerState:a},i))})}));function Rk(e){return Fm("MuiTableRow",e)}var kk=zm("MuiTableRow",["root","selected","hover","head","footer"]);const Pk=["className","component","hover","selected"],Dk=iS("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,[`&.${kk.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${kk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:hy(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}))`:hy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Ak="tr",Ik=$.forwardRef((function(e,t){const n=tS({props:e,name:"MuiTableRow"}),{className:r,component:o=Ak,hover:i=!1,selected:a=!1}=n,l=Hm(n,Pk),s=$.useContext(nk),u=tm({},n,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Om({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},Rk,t)})(u);return Wb.jsx(Dk,tm({as:o,ref:t,className:tx(c.root,r),role:o===Ak?null:"row",ownerState:u},l))}));var Tk=Ik,Lk=(e={})=>W.createElement(YS,{...e},W.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},W.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},W.createElement("rect",{stroke:TS.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})))),Mk=({className:e})=>W.createElement(YS,{fontSize:"small",className:e},W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},W.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5 3.5 1.793ZM8 4h5v1H8V4Zm0 3h6v1H8V7Zm0 3h7v1H8v-1Z"}))),Ok=({className:e})=>W.createElement(YS,{fontSize:"small",className:e},W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},W.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5V2Zm12 2H8v1h7V4ZM8 7h6v1H8V7Zm5 3H8v1h5v-1Z"}))),qk=({className:e})=>W.createElement(YS,{fontSize:"small",className:e},W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},W.createElement("path",{fill:"currentColor",d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"})));const Nk={MuiAccordion:{styleOverrides:{root:{backgroundColor:TS.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:TS.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:W.createElement(VS,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${TS.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:TS.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${TS.MISC_FOCUS_BORDER}`,borderRadius:NS,backgroundColor:TS.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${TS.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:TS.WHITE,color:TS.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:NS},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${TS.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:TS.GREYSCALE_0_15,backgroundColor:TS.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:TS.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${TS.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:TS.GREEN_PALE},"&:active":{backgroundColor:TS.GREEN_DARK},"&.Mui-focusVisible":{borderColor:TS.GREEN_PALE,boxShadow:`0 0 0 3px ${hy(TS.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:TS.BLUE_PALE},"&:active":{backgroundColor:TS.BLUE_DARK},"&.Mui-focusVisible":{borderColor:TS.BLUE_PALE,boxShadow:`0 0 0 3px ${hy(TS.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:NS,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:TS.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${TS.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:TS.GREYSCALE_0_15,backgroundColor:TS.GREYSCALE_100_60,"&:active":{backgroundColor:TS.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:TS.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${TS.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:TS.PURPLE,"&.Mui-focusVisible":{borderColor:TS.PURPLE,boxShadow:`0 0 0 3px ${hy(TS.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:TS.GREEN,"&.Mui-focusVisible":{borderColor:TS.GREEN,boxShadow:`0 0 0 3px ${hy(TS.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:TS.BLUE,"&.Mui-focusVisible":{borderColor:TS.BLUE,boxShadow:`0 0 0 3px ${hy(TS.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:TS.ORANGE,"&.Mui-focusVisible":{borderColor:TS.ORANGE,boxShadow:`0 0 0 3px ${hy(TS.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:TS.RED,"&.Mui-focusVisible":{borderColor:TS.RED,boxShadow:`0 0 0 3px ${hy(TS.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:TS.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:TS.PURPLE_PALE},"&:active":{backgroundColor:TS.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:TS.PURPLE_PALE,boxShadow:`0 0 0 3px ${hy(TS.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:TS.GREEN_PALE},"&:active":{backgroundColor:TS.GREEN_DARK},"&.Mui-focusVisible":{borderColor:TS.GREEN_PALE,boxShadow:`0 0 0 3px ${hy(TS.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:TS.BLUE_PALE},"&:active":{backgroundColor:TS.BLUE_DARK},"&.Mui-focusVisible":{borderColor:TS.BLUE_PALE,boxShadow:`0 0 0 3px ${hy(TS.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:TS.ORANGE_PALE},"&:active":{backgroundColor:TS.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:TS.ORANGE_PALE,boxShadow:`0 0 0 3px ${hy(TS.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:TS.RED_PALE},"&:active":{backgroundColor:TS.RED_DARK},"&.Mui-focusVisible":{borderColor:TS.RED_PALE,boxShadow:`0 0 0 3px ${hy(TS.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:TS.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:TS.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:NS,boxShadow:`inset 0 0 0 2px ${TS.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:W.createElement(GS,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:LS,borderRadius:NS,color:TS.TEXT_PRIMARY,backgroundColor:TS.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:TS.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${TS.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:TS.GREYSCALE_0_05,color:TS.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:TS.GREEN,borderColor:TS.GREEN},"&.MuiChip-outlinedInfo":{color:TS.BLUE,borderColor:TS.BLUE},"&.MuiChip-outlinedWarning":{color:TS.ORANGE,borderColor:TS.ORANGE},"&.MuiChip-outlinedError":{color:TS.RED,borderColor:TS.RED}},outlined:{border:`solid 1px ${TS.GREYSCALE_0_15}`,backgroundColor:TS.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:NS,boxShadow:"none",backgroundColor:TS.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:TS.GREEN,borderColor:TS.GREEN},outlinedSecondary:{color:TS.BLUE,borderColor:TS.BLUE},label:{fontFamily:HS.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:W.createElement(GS,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:W.createElement(VS,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:NS},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:MS,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:TS.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:TS.GREYSCALE_0_10},"&:hover":{backgroundColor:TS.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:NS,border:`solid 1px ${TS.GREYSCALE_0_15}`,color:TS.GREYSCALE_0_60,marginRight:0,width:qS,height:qS},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${TS.GREYSCALE_0_15}`},clearIndicator:{borderRadius:NS,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:TS.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:MS}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:LS,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:TS.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:TS.GREYSCALE_25,fontSize:LS,fontFamily:HS.FONT_FAMILY,fontWeight:zS,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:TS.TEXT_PRIMARY},"&.Mui-error":{color:TS.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:TS.TEXT_SECONDARY,content:"'(optional)'",fontWeight:FS,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:TS.TEXT_SECONDARY,content:"'(required)'",fontWeight:FS,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:MS,lineHeight:"16px",backgroundColor:TS.WHITE,borderRadius:NS,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${TS.GREYSCALE_0_05}`,borderColor:TS.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${TS.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${TS.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${TS.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${TS.RED}`,boxShadow:`0px 0px 0px 1px ${TS.RED}, inset 0 2px 0 0 ${TS.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${TS.GREYSCALE_0_10}`,borderColor:TS.GREYSCALE_0_10,backgroundColor:TS.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:TS.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:TS.GREYSCALE_0_15,borderRadius:NS,boxShadow:`inset 0 2px 0 0 ${TS.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>W.createElement(VS,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:TS.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:TS.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:TS.GREYSCALE_0_03},"&:active":{backgroundColor:TS.GREYSCALE_0_10},"&:focus":{backgroundColor:TS.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${TS.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${TS.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:TS.GREYSCALE_0_30,"&:hover":{backgroundColor:TS.GREYSCALE_0_0,borderColor:TS.GREYSCALE_0_15},"& ~svg":{color:TS.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${TS.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:NS}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:TS.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${TS.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:TS.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:MS,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:LS,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:LS,fontWeight:zS,color:TS.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:zS}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${TS.GREYSCALE_0_15}, 0px 0px 0px 1px ${TS.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:W.createElement(XS,null),checkedIcon:W.createElement(JS,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:TS.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${TS.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:TS.GREEN_PALE,boxShadow:`0 0 0 3px ${hy(TS.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:TS.BLUE_PALE,boxShadow:`0 0 0 3px ${hy(TS.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:TS.GREYSCALE_0_20}},"&.Mui-disabled":{fill:TS.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:W.createElement(Lk,null),checkedIcon:W.createElement(KS,null),indeterminateIcon:W.createElement(ZS,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:NS,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:TS.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:TS.GREYSCALE_0_55,color:TS.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:TS.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:TS.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:TS.GREYSCALE_0_55,"&:hover":{color:TS.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDataGrid:{defaultProps:{className:"sprout-data-grid-pro",slots:{columnSortedAscendingIcon:Mk,columnSortedDescendingIcon:Ok,columnMenuSortAscendingIcon:Mk,columnMenuSortDescendingIcon:Ok,quickFilterIcon:({className:e})=>W.createElement(qk,{className:`sprout-data-grid-pro-filter-search-icon ${e}`})},slotProps:{toolbar:{className:"sprout-data-grid-pro-toolbar"}}},styleOverrides:{root:{borderColor:TS.GREYSCALE_85,borderRadius:0,"& .sprout-data-grid-pro-toolbar":{marginTop:0,"& .sprout-data-grid-pro-filter-search-icon":{paddingLeft:"8px",paddingRight:"4px",color:TS.GREYSCALE_55},"& > div":{"&:after":{borderBottom:`1px solid ${TS.GREYSCALE_0_15}`},"&:hover::before":{borderBottom:`1px solid ${TS.GREYSCALE_0_15}`}}}},columnHeaders:{backgroundColor:TS.GREYSCALE_98},withBorderColor:{borderColor:TS.GREYSCALE_85,"&.MuiDataGrid-cell--withRightBorder:last-of-type":{borderRightWidth:0},"&.MuiDataGrid-columnHeader--withRightBorder:last-of-type":{borderRightWidth:0}},row:{"&:hover":{backgroundColor:TS.GREYSCALE_0_03},"&.MuiDataGrid-row.Mui-selected":{backgroundColor:TS.GREYSCALE_0_05,"&:hover":{backgroundColor:TS.GREYSCALE_0_03}}},menu:{"& svg.MuiSvgIcon-root":{fontSize:OS}},filterIcon:{fontSize:OS},pinnedColumnHeaders:{backgroundColor:TS.GREYSCALE_98},pinnedColumns:{backgroundColor:TS.WHITE}}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:TS.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:TS.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:MS,color:TS.TEXT_PRIMARY,lineHeight:"16px",fontWeight:zS},secondary:{fontSize:LS,color:TS.GREYSCALE_45,fontWeight:FS,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:MS,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:TS.GREYSCALE_0_03},"&:active":{backgroundColor:TS.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:MS,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:TS.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:LS,borderBottom:`solid 1px ${TS.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:MS,color:TS.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:TS.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:TS.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:TS.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:TS.RED}}},"&.Mui-focusVisible":{backgroundColor:TS.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:TS.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:TS.GREEN,height:"24px","&.Mui-disabled":{color:TS.GREYSCALE_0_15}},rail:{backgroundColor:TS.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${TS.GREYSCALE_0_05}`,borderRadius:NS,boxShadow:`inset 0px 0px 0px 1px ${TS.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${TS.GREYSCALE_0_05}`,borderRadius:NS},thumb:{height:"16px",width:"16px",borderRadius:NS,backgroundColor:TS.WHITE,boxShadow:`0px 1px 2px 0px ${TS.GREYSCALE_0_15}, 0px 0px 0px 1px ${TS.GREYSCALE_0_05}`,"&:hover":{borderRadius:NS,boxShadow:`0 2px 4px 0 ${TS.GREYSCALE_0_30}, 0 0 0 1px ${TS.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${TS.GREYSCALE_0_15}, 0 0 0 1px ${TS.GREYSCALE_0_06}, 0 0 0 2px ${TS.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${TS.GREYSCALE_0_15}, 0 0 0 1px ${TS.GREYSCALE_0_06}, 0 0 0 2px ${TS.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:TS.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:TS.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:TS.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:TS.GREYSCALE_0_15},markLabel:{color:TS.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:TS.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:TS.WHITE,color:TS.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:TS.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:TS.GREEN_PALE,boxShadow:`0 0 0 3px ${hy(TS.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:TS.BLUE_PALE,boxShadow:`0 0 0 3px ${hy(TS.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:TS.GREYSCALE_0_15,borderRadius:NS},thumb:{height:"16px",width:"16px",borderRadius:NS,backgroundColor:TS.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:MS,fontWeight:zS,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${TS.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${TS.MISC_FOCUS_BORDER}`,backgroundColor:TS.GREYSCALE_0_03,borderRadius:NS},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:TS.GREYSCALE_25,"&.Mui-selected":{color:TS.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:MS,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${TS.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${TS.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${TS.GREYSCALE_85}`,borderRight:`1px solid ${TS.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:zS,backgroundColor:TS.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:TS.GREYSCALE_98,borderBottom:`1px solid ${TS.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${TS.GREYSCALE_85}`,borderTop:`1px solid ${TS.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:TS.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:TS.GREYSCALE_0_05,"&:hover":{backgroundColor:TS.GREYSCALE_0_03}},"&&:hover":{backgroundColor:TS.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>W.createElement(QS,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${TS.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:MS,borderRadius:NS,padding:"7px 16px",border:`1px solid ${TS.GREYSCALE_0_15}`,backgroundColor:TS.GREYSCALE_100_60,color:TS.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:TS.GREYSCALE_0_10,border:`1px solid ${TS.GREYSCALE_0_30}`},"&:hover":{backgroundColor:TS.GREYSCALE_0_03,border:`1px solid ${TS.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:TS.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${TS.MISC_FOCUS_BORDER}`,border:`1px solid ${TS.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:TS.GREYSCALE_25,backgroundColor:TS.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:TS.GREYSCALE_0_10,border:`1px solid ${TS.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:LS,height:24,width:24,padding:7},sizeLarge:{fontSize:OS,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:MS,borderRadius:NS}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:TS.GREYSCALE_20},tooltip:{backgroundColor:TS.GREYSCALE_20,fontSize:LS,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var _k=e=>Nk;const Fk={mode:"light",primary:{light:TS.GREEN_PALE,main:TS.GREEN,dark:TS.GREEN_DARK,contrastText:TS.WHITE},secondary:{light:TS.BLUE_PALE,main:TS.BLUE,dark:TS.BLUE_DARK,contrastText:TS.WHITE},error:{light:TS.RED_PALE,main:TS.RED,dark:TS.RED_DARK,contrastText:TS.WHITE},warning:{light:TS.ORANGE_PALE,main:TS.ORANGE,dark:TS.ORANGE_DARK,contrastText:TS.WHITE},success:{light:TS.GREEN_PALE,main:TS.GREEN,dark:TS.GREEN_DARK,contrastText:TS.WHITE},info:{light:TS.BLUE_PALE,main:TS.BLUE,dark:TS.BLUE_DARK,contrastText:TS.WHITE},text:{primary:TS.TEXT_PRIMARY,secondary:TS.TEXT_SECONDARY,disabled:TS.GREYSCALE_0_30},action:{hover:TS.GREYSCALE_0_03,hoverOpacity:.05,selected:TS.GREYSCALE_0_05},amethyst:{main:TS.PURPLE,light:TS.PURPLE_PALE,dark:TS.PURPLE_DARK,contrastText:TS.WHITE},background:{paper:TS.WHITE,default:TS.GREYSCALE_95},divider:TS.GREYSCALE_0_15},zk=e=>({components:_k(),palette:Fk,breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:MS,fontWeightLight:_S,fontWeightRegular:FS,fontWeightMedium:zS,fontWeightBold:jS,htmlFontSize:MS,fontFamily:HS.FONT_FAMILY,button:{fontWeight:zS,fontSize:MS,textTransform:"none"},body1:{fontSize:OS,lineHeight:"24px"},body2:{fontSize:MS,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:qS,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:OS,fontWeight:zS,lineHeight:"16px"},h6:{fontSize:MS,fontWeight:zS,lineHeight:"16px"},caption:{color:TS.TEXT_SECONDARY},subtitle1:{fontSize:MS,color:TS.TEXT_SECONDARY},subtitle2:{fontSize:LS,color:TS.TEXT_SECONDARY}},shape:{borderRadius:NS}}),jk={...IS,MISC_FOCUS_BORDER:TS.MISC_FOCUS_BORDER},Hk=(e="light")=>zk();var Bk=Hk().palette,$k={SELECTED:{color:jk.GREYSCALE_100,background:Bk.primary.light,selectedCellClass:gS.SELECTED},POSSIBLE:{color:Bk.text.primary,background:jk.GREYSCALE_100},EXCLUDED_BACKGROUND:"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"},Wk=4/3,Vk="12px",Uk={height:"auto",fontSize:Vk,lineHeight:"unset",padding:"".concat(4,"px"),borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},Gk=25e4,Yk=function(e,t,n){if(!(null==e?void 0:e.length))return[];var r=[],o=[],i=t;if(e.forEach((function(e,a){if(e.columnWidth){var l=e.columnWidth,s=l.type,u=l.pixels,c=l.percentage,d=e.label,p=e.qApprMaxGlyphCount,f=e.totalInfo,m=0,h=function(){r[a]=Math.min(bf.PixelsMax,Math.max(bf.PixelsMinTable,m)),i-=r[a]};switch(s){case yf.Pixels:m=u||bf.PixelsDefault,h();break;case yf.Percentage:m=(c||bf.PercentageDefault)/100*t,h();break;case yf.FitToContent:m=n(d,f,p,e.isLocked),h();break;case yf.Auto:o.push(a);break;default:throw new Error("".concat(s," is not a valid column width type"))}}else o.push(a)})),o.length){var a=i/o.length;o.forEach((function(e){r[e]=Math.max(bf.PixelsMinTable,a)}))}return r};const Kk=Hk().palette,Zk={TEXT:Kk.text.primary,DISABLED:Kk.text.disabled,HOVER:Kk.action.hover,WHITE:jk.GREYSCALE_100,BORDER_LIGHT:jk.GREYSCALE_90,BORDER_MEDIUM:jk.GREYSCALE_85,BORDER_HEAVY:jk.GREYSCALE_50,DARK_MODE_TEXT:jk.GREYSCALE_95,DARK_MODE_BORDER:jk.GREYSCALE_95,DARK_MODE_DISABLED:jk.GREYSCALE_70,DARK_MODE_BACKGROUND:jk.GREYSCALE_20},Xk=Math.PI/180,Jk=180/Math.PI,Qk=.96422,eP=1,tP=.82521,nP=4/29,rP=6/29,oP=3*rP*rP,iP=rP*rP*rP;function aP(e){if(e instanceof lP)return new lP(e.l,e.a,e.b,e.opacity);if(e instanceof fP)return mP(e);e instanceof Ad||(e=Pd(e));var t,n,r=dP(e.r),o=dP(e.g),i=dP(e.b),a=sP((.2225045*r+.7168786*o+.0606169*i)/eP);return r===o&&o===i?t=n=a:(t=sP((.4360747*r+.3850649*o+.1430804*i)/Qk),n=sP((.0139322*r+.0971045*o+.7141733*i)/tP)),new lP(116*a-16,500*(t-a),200*(a-n),e.opacity)}function lP(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function sP(e){return e>iP?Math.pow(e,1/3):e/oP+nP}function uP(e){return e>rP?e*e*e:oP*(e-nP)}function cP(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dP(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pP(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof fP)return new fP(e.h,e.c,e.l,e.opacity);if(e instanceof lP||(e=aP(e)),0===e.a&&0===e.b)return new fP(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Jk;return new fP(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new fP(e,t,n,null==r?1:r)}function fP(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function mP(e){if(isNaN(e.h))return new lP(e.l,0,0,e.opacity);var t=e.h*Xk;return new lP(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ad(lP,(function(e,t,n,r){return 1===arguments.length?aP(e):new lP(e,t,n,null==r?1:r)}),ld(sd,{brighter(e){return new lP(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new lP(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ad(cP(3.1338561*(t=Qk*uP(t))-1.6168667*(e=eP*uP(e))-.4906146*(n=tP*uP(n))),cP(-.9787684*t+1.9161415*e+.033454*n),cP(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ad(fP,pP,ld(sd,{brighter(e){return new fP(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new fP(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return mP(this).rgb()}}));const hP=(e,t)=>{const n=pP(e),r=n.l<70,o=100===n.l;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):o?Dd(`rgba(0, 0, 0, ${t.opacity})`).toString():r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},gP=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,vP=e=>{const t=gP.exec(e);if(t){const[,e,n,r,o]=t;return Dd(+n,+r,+o,+e/255)}return Dd(e)},bP=e=>{const t=vP(e);return Number.isNaN(t.r)?null:t.toString()},yP=e=>{if(void 0===e)return;const t=vP(e);return t.opacity=1,t.toString()},SP=(e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)},xP=e=>{e.stopPropagation(),e.preventDefault()};var EP=function(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]]},wP=function(e){return e.querySelector("td[tabindex='0'], th[tabindex='0']")},CP=function(e){var t,n,r=e.nextElementSibling;return r?"HR"===r.tagName?CP(r):r:null===(n=null===(t=e.parentElement)||void 0===t?void 0:t.children)||void 0===n?void 0:n[0]},RP=function(e){var t,n,r,o,i=e.previousElementSibling;if(!i){var a=null===(n=null===(t=e.parentElement)||void 0===t?void 0:t.children)||void 0===n?void 0:n.length;return null===(o=null===(r=e.parentElement)||void 0===r?void 0:r.children)||void 0===o?void 0:o[a-1]}return"HR"===i.tagName?RP(i):i},kP=function(e){return!e.enabled||e.active},PP=function(e){setTimeout((function(){var t,n,r=null===(n=null===(t=e.current)||void 0===t?void 0:t.closest(".sn-table-cell"))||void 0===n?void 0:n.querySelector(".".concat(gf));null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},DP=function(e){var t=e.focusType,n=e.cell;if(n)switch(t){case yS.FOCUS:n.focus(),n.setAttribute("tabIndex","0");break;case yS.FOCUS_BUTTON:n.querySelector(".sn-table-head-label").focus();break;case yS.BLUR:n.blur(),n.setAttribute("tabIndex","-1");break;case yS.ADD_TAB:n.setAttribute("tabIndex","0");break;case yS.REMOVE_TAB:n.setAttribute("tabIndex","-1")}},AP=function(e,t,n,r,o,i){var a=function(e,t,n,r){void 0===r&&(r={top:0,bottom:0});var o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length,a=n[0],l=n[1];switch(e.key){case bS.DOWN:a<o-1-r.bottom&&a++;break;case bS.UP:a>r.top&&a--;break;case bS.RIGHT:if(r.top>0)break;l<i-1?l++:a<o-1&&(a++,l=0);break;case bS.LEFT:if(r.top>0)break;l>0?l--:a>0&&(a--,l=i-1)}return[a,l]}(e,t,n,i),l=EP(t,a);return DP({focusType:o,cell:l}),r(a),l},IP=function(e,t){var n=wP(e),r=n?function(e,t){for(var n=e.getElementsByClassName("sn-table-head-cell").length,r=e.getElementsByClassName("sn-table-cell"),o=0,i=0;i<r.length;i++)if(r[i]===t){o=i;break}return[Math.ceil(o/n),o%n]}(e,n):CS;n=n||EP(e,CS),DP({cell:n,focusType:yS.FOCUS}),t(r)},TP=function(e,t,n,r){var o;DP({focusType:yS.REMOVE_TAB,cell:wP(t)}),n(e),r.enabled&&!r.active?null===(o=r.focus)||void 0===o||o.call(r):DP({focusType:yS.ADD_TAB,cell:EP(t,e)})},LP=function(e){return e.ctrlKey||e.metaKey},MP=function(e){return e.shiftKey&&LP(e)},OP=function(e){return[bS.LEFT,bS.RIGHT,bS.UP,bS.DOWN].includes(e)},qP=function(e){return e.shiftKey&&OP(e.key)},NP=function(e,t){return void 0===t&&(t=!1),e.key===bS.ESC&&!t||(e.key===bS.LEFT||e.key===bS.RIGHT)&&MP(e)},_P=function(e,t){var n=t.key===bS.UP&&1===e[0],r=t.key===bS.LEFT&&1===e[0]&&0===e[1];return n||r?yS.FOCUS_BUTTON:yS.FOCUS},FP=function(e){var t=e.evt,n=e.rootElement,r=e.cell,o=e.selectionDispatch,i=e.isSelectionsEnabled,a=e.setFocusedCellCoord,l=e.announce,s=e.totalsPosition,u=e.isSelectionMode,c=s.atTop?2:1,d=[r.pageRowIdx+c,r.pageColIdx],p={top:u?c:0,bottom:u&&s.atBottom?1:0},f=_P(d,t);f===yS.FOCUS&&DP({focusType:yS.REMOVE_TAB,cell:t.target});var m=AP(t,n,d,a,f,p);t.key!==bS.UP&&t.key!==bS.DOWN||(t.key===bS.UP&&function(e,t){var n,r=t.getElementsByClassName("sn-table-container")[0];if(null==r?void 0:r.scrollTo){var o=e[0],i=e[1];if(o<2)r.scrollTo({top:0,behavior:"auto"});else{var a=t.getElementsByClassName("sn-table-head-cell")[0],l=null===(n=t.getElementsByClassName("sn-table-row")[o])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[i];if(!l)return;if(l.offsetTop-a.offsetHeight<r.scrollTop){var s=r.scrollTop-l.offsetHeight-a.offsetHeight;r.scrollTo({top:Math.max(0,s),behavior:"auto"})}}}}([r.pageRowIdx,r.pageColIdx],n),function(e,t,n){return t.shiftKey&&(t.key===bS.UP&&0!==n.pageRowIdx||t.key===bS.DOWN&&!n.isLastRow)&&e&&n.isSelectable}(i,t,r)?o({type:vS.SELECT_MULTI_ADD,payload:{cell:r,evt:t,announce:l}}):function(e,t,n){void 0===n&&(n=!1),n&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})}(l,m,u))},zP=function(e){var t=e.evt,n=e.rootElement,r=e.setFocusedCellCoord,o=e.keyboard,i=e.isSelectionMode,a=e.paginationNeeded;if((null==o?void 0:o.enabled)&&i&&(t.shiftKey||!t.shiftKey&&!a))xP(t),SP(t.target,o,t.shiftKey);else if(t.shiftKey){r([0,n.querySelectorAll(".sn-table-head-cell").length-1])}},jP=function(e,t){var n=t.colIdx,r=t.rows,o=t.api,i=gS.INACTIVE;return(null==o?void 0:o.isModal())&&(i=n!==e.selectionColIdx?gS.EXCLUDED:void 0!==r[e.qElemNumber]?gS.SELECTED:gS.POSSIBLE),i},HP=function(e,t,n){var r=Object.keys(n).length,o=r>=Object.keys(t).length;r?e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]}):e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},BP=function(e,t){var r=e.api,o=e.rows,i=e.colIdx,a=t.cell,l=t.announce,s=t.evt,u={};if(-1===i)null==r||r.begin(["/qHyperCubeDef"]);else{if(i!==a.selectionColIdx)return e;u=n({},o)}return u=function(e,t,r){var o,i=t.qElemNumber,a=t.rowIdx;return r.ctrlKey||r.metaKey?((o={})[i]=a,o):(void 0!==e[i]?delete e[i]:e[i]=a,n({},e))}(u,a,s),HP(l,o,u),Object.keys(u).length?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(u),[a.selectionColIdx]]}),n(n({},e),{rows:u,colIdx:a.selectionColIdx})):(null==r||r.cancel(),n(n({},e),{rows:u,colIdx:-1}))},$P=function(e,t){var r,o=e.api,i=e.rows,a=e.colIdx,l=e.pageRows,s=e.firstCell,u=t.cell,c=t.announce,d=t.evt,p={};return s||"key"in d&&qP(d)?(-1===a?null==o||o.begin(["/qHyperCubeDef"]):p=n({},i),p=function(e,t,r,o,i){var a=n({},t);if("key"in o&&qP(o)){a[r.qElemNumber]=r.rowIdx;var l=o.key===bS.DOWN?1:-1;return a[e[r.pageRowIdx+l]["col-".concat(r.pageColIdx)].qElemNumber]=r.rowIdx+l,a}if(!i)return t;for(var s=Math.min(i.pageRowIdx,r.pageRowIdx),u=Math.max(i.pageRowIdx,r.pageRowIdx),c=s;c<=u;c++){var d=e[c]["col-".concat(i.pageColIdx)];a[d.qElemNumber]=d.rowIdx}return a}(l,p,u,d,s),HP(c,i,p),n(n({},e),{rows:p,colIdx:null!==(r=null==s?void 0:s.selectionColIdx)&&void 0!==r?r:u.selectionColIdx,isSelectMultiValues:!0})):e},WP=function(e){var t=e.api,r=e.rows,o=e.colIdx,i=e.isSelectMultiValues,a=e.mouseupOutsideCallback;return a&&document.removeEventListener("mouseup",a),i&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(r),[o]]})),n(n({},e),{isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0})},VP=function(e,t){var r;switch(t.type){case vS.SELECT:return BP(e,t.payload);case vS.SELECT_MOUSE_DOWN:return function(e,t){var r=t.cell,o=t.mouseupOutsideCallback;return!o||-1!==e.colIdx&&e.colIdx!==r.selectionColIdx?e:(document.addEventListener("mouseup",o),n(n({},e),{firstCell:r,mouseupOutsideCallback:o}))}(e,t.payload);case vS.SELECT_MOUSE_UP:return function(e,t){return WP(e.isSelectMultiValues||e.firstCell!==t.cell?e:BP(e,t))}(e,t.payload);case vS.SELECT_MULTI_ADD:return $P(e,t.payload);case vS.SELECT_MULTI_END:return WP(e);case vS.RESET:return(null===(r=e.api)||void 0===r?void 0:r.isModal())?e:n(n({},e),{rows:{},colIdx:-1});case vS.CLEAR:return Object.keys(e.rows).length?n(n({},e),{rows:{}}):e;case vS.UPDATE_PAGE_ROWS:return n(n({},e),{pageRows:t.payload.pageRows});default:throw new Error("reducer called with invalid action type")}},UP=4/3,GP={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},YP=function(e){return parseInt(e,10)*UP+8+1},KP=function(e){return!!e&&(null!==e.color||e.index>-1)};function ZP(e,t,n){void 0===n&&(n={});var r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}var XP=function(e){return Hd(e)?Zk.WHITE:Zk.TEXT},JP=function(e){var t;return null===(t=e.components)||void 0===t?void 0:t.find((function(e){return"theme"===e.key}))},QP=function(e,t,r,o){void 0===o&&(o=!1);var i=t.getStyle("object","straightTableV2.".concat(e),"fontFamily"),a=t.getStyle("object","straightTableV2.".concat(e),"color"),l=t.getStyle("object","straightTableV2.".concat(e),"fontSize"),s=n({fontFamily:i,color:KP(null==r?void 0:r.fontColor)?ZP(Zk.TEXT,t,null==r?void 0:r.fontColor):a||Zk.TEXT,fontSize:(null==r?void 0:r.fontSize)&&"".concat(r.fontSize,"px")||l,padding:r&&"padding"in r?null==r?void 0:r.padding:void 0},function(e,t){return e?{borderBottomColor:Zk.DARK_MODE_BORDER,borderRightColor:Zk.DARK_MODE_BORDER,borderLeftColor:Zk.DARK_MODE_BORDER,borderTopColor:Zk.DARK_MODE_BORDER}:{borderLeftColor:Zk.BORDER_MEDIUM,borderRightColor:Zk.BORDER_MEDIUM,borderTopColor:Zk.BORDER_HEAVY,borderBottomColor:t?Zk.BORDER_HEAVY:Zk.BORDER_LIGHT}}(t.background.isDark,o));return Object.keys(s).forEach((function(e){var t=e;null==s[t]&&delete s[t]})),s};function eD(e,t,n,r){var o,i,a,l,s=null===(o=JP(e))||void 0===o?void 0:o.header,u=QP("header",t,s,n);return u.background=t.background.isTransparent?Zk.WHITE:yP(t.background.color),(null==r?void 0:r.isNewHeadCellMenuEnabled)&&(u.hoverBackground=hP(null!==(i=u.background)&&void 0!==i?i:Zk.WHITE,GP.hover),u.activeBackground=hP(null!==(a=u.background)&&void 0!==a?a:Zk.WHITE,GP.active)),u.color=null!==(l=u.color)&&void 0!==l?l:Hd(u.background)?Zk.DARK_MODE_TEXT:Zk.TEXT,u}function tD(e,t,r,o){var i,a=null===(i=JP(e))||void 0===i?void 0:i.content,l=QP("content",t,a);l.background=t.background.color;var s,u=function(e,t,n){return e&&t&&n&&YP(e)*(t+2)<n.clientHeight-40?"1px":"0px"}(null==l?void 0:l.fontSize,r,o),c=null==a?void 0:a.hoverColor,d=null==a?void 0:a.hoverFontColor,p=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),f=t.getStyle("object","","straightTableV2.content.hover.color"),m=KP(d)||!!f,h=KP(c)||!!p,g=m||h;s=KP(c)?ZP(Zk.HOVER,t,c):p||(m?"":Zk.HOVER);var v=g?ZP(XP(s),t,KP(d)?d:f):"";return n(n({},l),{lastRowBottomBorder:u,hoverColors:{background:s,color:v}})}function nD(e,t,r){var o,i={};return null===(o=null==t?void 0:t.qValues)||void 0===o||o.forEach((function(e,t){var n=e.qText&&bP(e.qText);n&&"none"!==n&&(i[r[t]]=n)})),i.cellBackgroundColor&&!i.cellForegroundColor&&(i.cellForegroundColor=XP(i.cellBackgroundColor)),n(n({},e),{color:i.cellForegroundColor||e.color,background:i.cellBackgroundColor||e.background})}var rD=function(e,t,r,o,i){var a=$.useMemo((function(){var a=r.totalsPosition.atTop,l=tD(e,t,r.rows.length,o),s=eD(e,t,!a,i),u=function(e,t,r){var o,i=null===(o=JP(e))||void 0===o?void 0:o.content,a=QP("content",t,i),l=eD(e,t,r),s=l.borderBottomColor,u=l.borderTopColor,c=l.background;return n(n({},a),{borderBottomColor:s,background:c,borderTopColor:u})}(e,t,a);return{body:l,head:s,totals:u}}),[e,t.name(),r,o]);return a},oD=new Map;var iD,aD,lD=$.createContext({}),sD=(iD=lD,aD=$.createContext([function(){},new Set]),oD.set(iD,aD),function(e){var t=e.children,n=e.value,r=$.useRef(n),o=$.useRef(new Set);$.useEffect((function(){r.current=n,o.current.forEach((function(e){e(n)}))}),[n]);var i=$.useCallback((function(){return r.current}),[r]),a=$.useMemo((function(){return[i,o.current]}),[i]);return W.createElement(iD.Provider,{value:n},W.createElement(aD.Provider,{value:a},t))}),uD={rows:[],columns:[],totalsPosition:{}},cD=function(e){var t=e.app,r=e.children,o=e.tableData,i=void 0===o?uD:o,a=e.selectionsAPI,l=e.cellCoordMock,s=e.layout,u=e.model,c=e.translator,d=e.interactions,p=e.theme,f=e.keyboard,m=e.rootElement,h=e.embed,g=e.changeSortOrder,v=e.applyColumnWidths,b=e.setPage,y=e.pageInfo,S=e.initialDataPages,x=e.rect,E=e.viewService,w={isNewHeadCellMenuEnabled:e.isNewHeadCellMenuEnabled},C=$.useState(0),R=C[0],k=C[1],P=$.useState(l||wS),D=P[0],A=P[1],I=function(e,t){var n=$.useReducer(VP,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n[0],n[1]]}(i.rows,a),T=I[0],L=I[1],M=$.useState(-1),O=M[0],q=M[1],N=rD(s,p,i,m,w),_=function(e,t,r,o){var i=o.head,a=o.body,l=t.atBottom||t.atTop,s=of(n(n({},i),{bold:!0,maxNbrLinesOfText:3})).measureText,u=of(n(n({},a),{bold:!0,maxNbrLinesOfText:3})).measureText,c=of(n(n({},i),{bold:!1,maxNbrLinesOfText:3})).estimateWidth,d=$.useMemo((function(){return function(e,t,n,r){var o=r?99:71;return Math.max(s(e)+o,l?u(t)+24+1:0,c(n))}}),[c,s,u,l]),p=$.useState(0),f=p[0],m=p[1],h=$.useState((function(){return Yk(e,r,d)})),g=h[0],v=h[1];U((function(){v(Yk(e,r-f,d))}),[e,r,f,d]);var b=$.useMemo((function(){return function(e,t,n){return!!(e&&e.length>0)&&e.reduce((function(e,t){return e+t}))+t<n}(g,f,r)}),[g,f,r]);return[g,v,m,b]}(i.columns,i.totalsPosition,x.width,N),F=_[0],z=_[1],j=_[2],H=_[3],B=$.useMemo((function(){return{app:t,selectionsAPI:a,layout:s,model:u,translator:c,interactions:d,theme:p,keyboard:f,rootElement:m,embed:h,changeSortOrder:g,applyColumnWidths:v,styling:N,rect:x,viewService:E}}),[t,a,s,u,c,d,p.name(),f.active,m,h,g,v,N,x,E]);return W.createElement(sD,{value:{headRowHeight:R,setHeadRowHeight:k,focusedCellCoord:D,setFocusedCellCoord:A,selectionState:T,selectionDispatch:L,hoverIndex:O,setHoverIndex:q,columnWidths:F,setColumnWidths:z,baseProps:B,tableData:i,setYScrollbarWidth:j,setPage:b,pageInfo:y,initialDataPages:S,showRightBorder:H,featureFlags:w}},r)};function dD(e,t){var n=function(e){return oD.get(e)}(e),r=$.useContext(n),o=r[0],i=r[1],a=$.useReducer((function(e){return e+1}),0)[1],l=$.useRef(t),s=$.useRef(),u=o();if(void 0===u)throw new Error("You must call useContextSelector inside a valid context.");var c=$.useMemo((function(){return t(u)}),[u,t]);return $.useEffect((function(){l.current=t,s.current=c}),[u,c,t]),$.useEffect((function(){var e=function(e){(l.current&&l.current(e))!==s.current&&a()};return i.add(e),function(){i.delete(e)}}),[i]),c}function pD(e){var t,r,o=Hk();return(null===(r=null===(t=null==o?void 0:o.components)||void 0===t?void 0:t.MuiTable)||void 0===r?void 0:r.styleOverrides)&&(o.components.MuiTable.styleOverrides.root={}),Jy(n(n({},o),{direction:e}))}function fD(){return fD=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},fD.apply(this,arguments)}function mD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){hD(e,t,n[t])}))}return e}function hD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gD(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function vD(e){return"large"===e?"20px":"small"===e?"12px":"inherit"===e?"null":"16px"}var bD=function(e){var t=e.d,n=e.size,r=e.style,o=gD(e,["d","size","style"]);return W.createElement("i",fD({style:mD({fontSize:vD(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r)},o),W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},W.createElement("path",{d:t})))};function yD(e){return W.createElement(bD,Object.assign({d:"M15,4 L1,4 L1,2 L15,2 L15,4 Z M15,14 L1,14 L1,12 L15,12 L15,14 Z M15,9 L1,9 L1,7 L15,7 L15,9 Z"},e))}const SD={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},xD=(e,t)=>e.some((e=>t[e]>0)),ED=iS(ww,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),wD=iS(yD,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),CD=iS(aR)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),RD=iS(Gw)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),kD=iS(DC)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:e.spacing(.25,2),marginBottom:e.spacing(.5)}))),PD=iS(dR,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative",overflow:"hidden",boxSizing:"border-box",background:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),DD=iS("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),AD=iS("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),ID=iS(bE)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),TD=iS(MC)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function LD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const MD=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){LD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})),OD=$.forwardRef(MD);let qD={};const ND=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=$.useState(!1),p=$.useRef(null),f=$.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return W.createElement(W.Fragment,null,W.createElement(PD,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{n&&(await n(e),qD={}),null!=a&&a.length&&(d(!0),qD[r]=d)},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&W.createElement(DD,null),W.createElement(AD,null,W.createElement(TD,null,W.createElement(o,null)),W.createElement(ID,{variant:"body2"},r)),null!=a&&a.length?W.createElement(OD,null):null),(null==a?void 0:a.length)&&W.createElement(FD,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=qD,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},_D=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&W.createElement(kD,null,e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>W.createElement(ND,{key:e.id,...e,isSubMenu:t,handleHeadCellMenuKeyDown:n})))].filter(Boolean)]})),FD=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?W.createElement(CD,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,"aria-labelledby":r,...a?{anchorOrigin:a}:{},...i?{transformOrigin:i}:{}},(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[_D({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?W.createElement(RD,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null;function zD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jD=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5V2Zm12 2H8v1h7V4ZM8 7h6v1H8V7Zm5 3H8v1h5v-1Z"})),HD=$.forwardRef(jD);function BD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $D=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){BD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5 3.5 1.793ZM8 4h5v1H8V4Zm0 3h6v1H8V7Zm0 3h7v1H8v-1Z"})),WD=$.forwardRef($D);function VD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const UD=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){VD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116.509.509 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a.506.506 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0Z"})),GD=$.forwardRef(UD);function YD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const KD=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1V1.5ZM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1h1.5ZM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1v1.5Zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1v1.5ZM6 0h4v1H6V0ZM0 6h1v4H0V6Zm15 0h1v4h-1V6Zm-9 9h4v1H6v-1Z"})),ZD=$.forwardRef(KD);function XD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JD=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4h2Zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0h10Zm0 1H5v10h10V1Zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28l3.497-3.627Z"})),QD=$.forwardRef(JD);function eA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tA=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){eA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0Zm0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0ZM9.166 6.166c1.555-1.555 4.113-1.555 5.668 0 1.555 1.555 1.555 4.113 0 5.668-1.555 1.555-4.113 1.555-5.668 0-1.555-1.555-1.555-4.063 0-5.668Zm4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304 1.304-1.304Z"})),nA=$.forwardRef(tA);function rA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oA=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0Zm14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0ZM4 4v8h8V4H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),iA=$.forwardRef(oA);function aA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lA=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){aA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0Zm14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0ZM4 4v8l8-8H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),sA=$.forwardRef(lA);function uA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cA=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){uA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0Zm14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0ZM4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),dA=$.forwardRef(cA);function pA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fA=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707L3.915 8ZM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h14Zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2h2Z"})),mA=$.forwardRef(fA);var hA;!function(e){e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize"}(hA||(hA={}));const gA=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnClosetHeaderAdjuster:d})=>{const p=[];if(n[hA.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),r(!1),await(null==i?void 0:i(e))},icon:WD,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),r(!1),await(null==i?void 0:i(e))},icon:HD,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[hA.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:GD,enabled:!0}]}]),n[hA.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:ZD,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAll())},icon:QD,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectPossible())},icon:iA,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAlternative())},icon:sA,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectExcluded())},icon:dA,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clear())},icon:nA,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[hA.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(c)},icon:mA,enabled:!0}]}]),p},vA=({open:e,setOpen:t,tabIndex:n,anchorRef:r,headerData:o,translator:i,interactions:a,handleHeadCellMenuKeyDown:l,menuAvailabilityFlags:s,shouldShowMenuIcon:u=!0,sortRelatedArgs:c,searchRelatedArgs:d,selectionRelatedArgs:p,adjustHeaderSizeRelatedArgs:f})=>{var m;const h=Y({translator:i}),{headTextAlign:g,qLibraryId:v,fieldId:b}=o,{fieldInstance:y,selectionActionsEnabledStatus:S,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:E}=(({headerData:e,app:t})=>{const[n,r]=$.useState(null),[o,i]=$.useState(SD);return $.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:$.useCallback((()=>i(SD)),[]),updateSelectionActionsEnabledStatus:$.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:xD(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:xD(["qSelected"],n.qStateCounts),canSelectPossible:xD(["qOption"],n.qStateCounts),canSelectAlternative:xD(["qAlternative"],n.qStateCounts),canSelectExcluded:xD(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:o,app:null==p?void 0:p.app}),w=$.useCallback((()=>{const e=v?{qLibraryId:v,type:"dimension"}:b;if(null!=d&&d.embed&&d.listboxRef){const{embed:t,listboxRef:n}=d;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[d,b,v]);$.useEffect((()=>{e||(x(),null!=p&&p.model&&p.model.getLayout().then((e=>{E(e)})).catch((e=>console.error(e))))}),[e,x,E,null==p?void 0:p.model]);const C=$.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return a.active?W.createElement(ED,{tabIndex:n,rightAligned:"right"===g,shouldShowMenuIcon:u},u&&W.createElement(wD,{size:"small",className:mf,"data-testid":mf,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(m=a.active)&&void 0!==m&&m},W.createElement(yD,null)),W.createElement(FD,{open:e,anchorEl:r.current,onClose:C,menuGroups:gA({headerData:o,translator:h,menuAvailabilityFlags:s,setOpen:t,...c,embedListbox:w,interactions:a,fieldInstance:y,selectionActionsEnabledStatus:S,anchorRef:r,setFocusOnClosetHeaderAdjuster:null==f?void 0:f.setFocusOnClosetHeaderAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:l})):null},bA=iS(ww,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),yA=iS(YR,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),SA=iS(Ow,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),xA=iS(bE)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),EA=e=>e.isDark?{background:e.color,borderColor:Zk.DARK_MODE_BORDER,color:Zk.DARK_MODE_TEXT,disabledColor:Zk.DARK_MODE_DISABLED,iconColor:Zk.DARK_MODE_TEXT}:{background:e.color,borderColor:Zk.BORDER_MEDIUM,color:Zk.TEXT,disabledColor:Zk.DISABLED},wA=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=$.useMemo((()=>EA(r.background)),[r]);if(!n.active)return null;const a=o?W.createElement(bA,{footerStyle:i},e):null;return t?od.createPortal(e,t):a},CA={},RA=$.createContext(CA),kA=()=>$.useContext(RA),PA=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,v=$.useMemo((()=>EA(p.background)),[p]),b=o?o.getBoundingClientRect().width:m.width,y=Y({translator:d}),S=$.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:v,tabIndex:g,width:b})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,v,g,b]);return W.createElement(RA.Provider,{value:S},e)};var DA,AA;!function(e){e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage"}(DA||(DA={})),function(e){e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage"}(AA||(AA={}));const IA=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=kA(),{page:o,rowsPerPage:i}=n;if(t<=AA.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return W.createElement(xA,{variant:"caption"},a)},TA=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=kA(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return W.createElement(W.Fragment,null,W.createElement(xA,{variant:"caption",id:d},u,":"),W.createElement(yA,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},LA=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=kA();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>AA.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=W.createElement(W.Fragment,null,t.rowsPerPageOptions.map((e=>W.createElement("option",{key:e,value:e},e))));return W.createElement(TA,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},MA=1e3,OA="…",qA=({totalPages:e,page:t})=>{const n=Math.min(e,MA),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-MA):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return W.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(W.createElement("option",{key:"startMoreOptions",value:OA,disabled:!0},OA)),o<e-1&&a.push(W.createElement("option",{key:"endMoreOptions",value:OA,disabled:!0},OA)),W.createElement(W.Fragment,null,a)},NA=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=kA(),{page:o}=e;if(t<=AA.SelectPage)return null;const i=W.createElement(qA,{totalPages:n,page:o});return W.createElement(TA,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};function _A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const FA=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_A(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),zA=$.forwardRef(FA);function jA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const HA=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8l6-6ZM4 2v12H2V2h2Z"})),BA=$.forwardRef(HA);function $A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const WA=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$A(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5 3.5 2ZM14 2v12h-2V2h2Z"})),VA=$.forwardRef(WA),UA={FirstPage:BA,PreviousPage:zA,NextPage:OD,LastPage:VA,FirstPageRTL:VA,PreviousPageRTL:OD,NextPageRTL:zA,LastPageRTL:BA},GA=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=kA(),u=UA[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},YA=()=>{const{pageInfo:e,width:t}=kA(),n=0===e.page,{IconComponent:r,styledProps:o}=GA({type:DA.FirstPage,disabledCondition:n,pageNumber:0});return t<=AA.FirstPage?null:W.createElement(SA,{...o},W.createElement(r,{height:ff}))},KA=()=>{const{pageInfo:e}=kA(),t=0===e.page,{IconComponent:n,styledProps:r}=GA({type:DA.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return W.createElement(SA,{...r},W.createElement(n,{height:ff}))},ZA=(e,t,n=!1)=>{n&&e.key===hf.TAB&&!e.shiftKey&&(xP(e),SP(e.target,t,!1))},XA=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=kA(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=GA({type:DA.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>AA.FirstPage&&o>AA.LastPage)&&t.enabled?e=>ZA(e,t,r):null;return W.createElement(SA,{...l,onKeyDown:s},W.createElement(a,{height:ff}))},JA=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=kA(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=GA({type:DA.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>ZA(e,t,r):null;return o<=AA.LastPage?null:W.createElement(SA,{...l,onKeyDown:s},W.createElement(a,{height:ff}))},QA=e=>W.createElement(PA,{...e},W.createElement(LA,null),W.createElement(NA,null),W.createElement(IA,null),W.createElement(YA,null),W.createElement(KA,null),W.createElement(XA,null),W.createElement(JA,null));var eI=$.memo(QA);const tI=e=>W.createElement(wA,{...e},W.createElement(eI,{...e})),nI=iS(ww,{shouldForwardProp:e=>"isLastColumn"!==e})((({isLastColumn:e})=>({PointerEvent:"all",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${vf}`]:{background:"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, :active":{outline:"none",[`& .${vf}`]:{background:"#177fe6"}}}))),rI=iS(ww)({position:"absolute",height:"100%",width:"3px"}),oI=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s})=>{const u=$.useMemo((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),c=r||o?bf.PixelsMin:bf.PixelsMinTable,d=n?0:1,p={left:r?u.columnWidth-d:"100%"},f=e=>{const t=Math.max(u.initWidth+e,c);u.columnWidth=t,i(t)},m=()=>{if(u.columnWidth!==u.initWidth){const e={type:yf.Pixels,pixels:u.columnWidth};a(e)}else null==s||s(!1)},h=e=>{const t=e.clientX-u.initX;f(t)},g=e=>{xP(e),document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",g),m()},v=e=>{const t=e.touches[0].clientX-u.initX;f(t)},b=e=>{e.preventDefault(),e.stopPropagation(),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",b),m()},y=!r&&l?e=>{if(e.key===hf.LEFT||e.key===hf.RIGHT){xP(e);const t=u.columnWidth-u.initWidth,n=5,r=e.key===hf.LEFT?t-n:t+n;f(r)}else e.key===hf.SPACE||e.key===hf.ENTER?(xP(e),l(e),m()):e.key===hf.ESC&&(xP(e),l(e),f(u.initWidth))}:void 0;return W.createElement(nI,{className:gf,isLastColumn:n,style:p,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",h),document.addEventListener("mouseup",g),null==s||s(!0),u.initX=e.clientX},onDoubleClick:()=>a({type:yf.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",v),document.addEventListener("touchend",b),null==s||s(!0),u.initX=e.touches[0].clientX)},onKeyDown:y,onBlur:l,"data-testid":gf},W.createElement(rI,{className:vf}))};var iI=iS(ww,{shouldForwardProp:function(e){return"background"!==e}})((function(e){return{height:"100%",background:e.background.tableColorFromTheme}})),aI=iS(ww,{shouldForwardProp:function(e){return"lines"!==e&&"wordBreak"!==e}})((function(e){var t=e.lines,r=e.wordBreak;return n({lineHeight:"calc(4/3)",fontSize:"inherit"},(r||1===t)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical"})})),lI=iS(ww)({overflow:"hidden",textOverflow:"ellipsis"});function sI(e,t){var n=$.useRef(!1);$.useEffect((function(){n.current?e():n.current=!0}),t)}var uI=function(e,t,n){$.useEffect((function(){var r=e.current;if(r){var o=function(e){return function(e,t,n){if(0!==e.deltaX){e.stopPropagation();var r=n.scrollWidth-n.offsetWidth,o=n.scrollLeft,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))}}(e,"rtl"===t,r)},i=function(e){var t;n.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),function(){r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}}}),[e,t,n])},cI=function(e){var t,n=e.key,r=e.target,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===bS.DOWN||n===bS.UP){var i=function(e){return n===bS.DOWN?CP(e):RP(e)};xP(e);for(var a=i(o);a;){if("true"!==a.ariaDisabled){a.focus();break}a=i(a)}}},dI=function(e){var t,n=e.evt,r=e.rootElement,o=e.cellCoord,i=e.setFocusedCellCoord;if(e.isInteractionEnabled){if(!NP(n)){var a=!(null===(t=n.target.closest(".sn-table-cell"))||void 0===t?void 0:t.nextSibling);switch(n.key){case bS.LEFT:case bS.RIGHT:xP(n),n.key===bS.RIGHT&&a?IP(r,i):AP(n,r,o,i,yS.FOCUS_BUTTON);break;case bS.DOWN:xP(n),DP({focusType:yS.REMOVE_TAB,cell:wP(r)}),AP(n,r,o,i,yS.FOCUS);break;case bS.TAB:!function(e,t,n,r,o){var i=e.target.classList.contains("sn-table-head-label");i&&e.shiftKey&&n[1]>0?r([n[0],n[1]-1]):i||e.shiftKey||(o?(xP(e),IP(t,r)):r([n[0],n[1]+1]))}(n,r,o,i,a);break;case bS.C:xP(n),LP(n)&&Bf(n)}}}else xP(n)},pI=function(e){var t=dD(lD,(function(e){return e.baseProps})),n=t.layout,r=t.rect,o=t.theme.name(),i=$.useState(0),a=i[0],l=i[1],s=$.useState(0),u=s[0],c=s[1];return $.useLayoutEffect((function(){var t;if(e.current){var n=null!==(t=e.current)&&void 0!==t?t:{},r=n.offsetWidth,o=void 0===r?0:r,i=n.offsetHeight,a=void 0===i?0:i,s=n.clientWidth,u=void 0===s?0:s,d=n.clientHeight,p=a-(void 0===d?0:d);c(o-u),l(p)}}),[e,n,r,o]),{xScrollbarWidth:a,yScrollbarWidth:u}},fI=iS("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),mI=iS(bk,{shouldForwardProp:function(e){return"fullHeight"!==e&&"interactions"!==e}})((function(e){var t=e.fullHeight,n=e.interactions;return{height:t?"100%":"calc(100% - ".concat(41,"px)"),overflow:n.active?"auto":"hidden",border:"none"}})),hI=iS(tk,{shouldForwardProp:function(e){return"showRightBorder"!==e&&"styling"!==e}})((function(e){var t=e.showRightBorder,n=e.styling;return{tableLayout:"fixed",width:"min-content",borderRight:t?"1px solid ".concat(n.body.borderRightColor):void 0}})),gI=function(){return W.createElement(W.Fragment,null,W.createElement(fI,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),W.createElement(fI,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"}))},vI=function(e){var t=e.children,n=e.fontSize,r=void 0===n?"":n,o=e.wordBreak,i=void 0!==o&&o,a=e.lines,l=void 0===a?3:a,s=parseInt(r||Vk,10),u=W.createElement(aI,{component:"span",className:"sn-table-cell-text",wordBreak:i,lines:l},t);return i?u:W.createElement(lI,{minHeight:s*Wk,maxHeight:s*Wk*l},u)},bI=function(e){var t=e.selectionsAPI,n=e.selectionDispatch,r=e.setShouldRefocus,o=e.keyboard,i=e.tableWrapperRef;$.useEffect((function(){var e=function(){n({type:vS.RESET})},a=function(){n({type:vS.CLEAR})},l=function(){var t,n;(null===(t=i.current)||void 0===t?void 0:t.contains(document.activeElement))?r():o.enabled&&(null===(n=o.blur)||void 0===n||n.call(o,!0)),e()};return null==t||t.on("deactivated",e),null==t||t.on("canceled",e),null==t||t.on("confirmed",l),null==t||t.on("cleared",a),function(){null==t||t.removeListener("deactivated",e),null==t||t.removeListener("canceled",e),null==t||t.removeListener("confirmed",l),null==t||t.removeListener("cleared",a)}}),[t,o,n,r,i])},yI=function(e,t,n,r){return{handleMouseDown:function(r){if(null==e||e(r),t.isSelectable){n({type:vS.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:function(){return n({type:vS.SELECT_MULTI_END})}}})}},handleMouseOver:function(e){1===e.buttons&&n({type:vS.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:function(e){0===e.button&&n({type:vS.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}},SI=iS(sk,{shouldForwardProp:function(e){return"lastRowBottomBorder"!==e}})((function(e){return{"& tr:last-child":{"& td, th":{borderBottomWidth:e.lastRowBottomBorder}}}})),xI=iS(Tk,{shouldForwardProp:function(e){return"hoverColors"!==e&&"hover"!==e}})((function(e){var t=e.hover,r=e.hoverColors;return n({"&&:hover":{background:"none"}},t&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":r}})})),EI=iS(mk,{shouldForwardProp:function(e){return"cellStyle"!==e}})((function(e){var t=e.cellStyle,r=e.theme;return n(n(n({},Uk),t),{padding:r.spacing(.5,1.5)})})),wI=iS(mk,{shouldForwardProp:function(e){return"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e}})((function(e){var t=e.totalsStyle,r=e.atTop,o=e.headRowHeight,i=e.theme;return n(n(n({},Uk),t),{fontWeight:"600",position:"sticky",padding:i.spacing(.5,1.5),borderWidth:r?"0px 1px 1px 0px":"1px 1px 1px 0px",top:r&&o,bottom:!r&&0})}));function CI(e){return function(t){var r=t.cell,o=t.styling,i=t.announce,a=t.onMouseDown,l=dD(lD,(function(e){return jP(r,e.selectionState)})),s=dD(lD,(function(e){return e.selectionDispatch})),u=yI(a,r,s,i),c=u.handleMouseDown,d=u.handleMouseOver,p=u.handleMouseUp,f=function(e,t){var r={};switch(t){case gS.SELECTED:r=$k.SELECTED;break;case gS.POSSIBLE:r=$k.POSSIBLE;break;case gS.EXCLUDED:r={background:"".concat($k.EXCLUDED_BACKGROUND,", ").concat(e.background),selectedCellClass:gS.EXCLUDED}}return n(n({},e),r)}(o,l);return W.createElement(e,n({},t,{styling:f,onMouseUp:p,onMouseDown:c,onMouseOver:d}))}}function RI(e,t){var o,i=(o=EI,function(e){var t=e.styling,n=t.selectedCellClass,i=r(t,["selectedCellClass"]),a=e.component,l=e.align,s=e.children,u=e.scope,c=e.tabIndex,d=e.onKeyDown,p=e.onMouseDown,f=e.onKeyUp,m=e.onMouseUp,h=e.onMouseOver,g=e.title;return W.createElement(o,{cellStyle:i,component:a,scope:u,align:l,tabIndex:c,className:"sn-table-cell ".concat(n||""),title:g,onKeyDown:d,onMouseDown:p,onKeyUp:f,onMouseUp:m,onMouseOver:h},s)});return t&&(i=CI(i)),e&&(i=function(e){return function(t){var r=t.cell,o=t.column,i=t.styling,a=$.useMemo((function(){return nD(i,r.qAttrExps,o.stylingIDs)}),[i,r.qAttrExps,o.stylingIDs]);return W.createElement(e,n({},t,{styling:a}))}}(i)),i}var kI=function(){var e=dD(lD,(function(e){return e.tableData})),t=e.columns,n=e.totalsPosition.atTop,r=e.rows,o=dD(lD,(function(e){return e.baseProps})),i=o.rootElement,a=o.selectionsAPI,l=o.keyboard,s=o.styling,u=o.interactions,c=dD(lD,(function(e){return e.headRowHeight})),d=dD(lD,(function(e){return e.setFocusedCellCoord}));return W.createElement(Tk,{className:"sn-table-row sn-table-totals-row"},t.map((function(e,t){var o=[n?1:r.length+1,t],p=n&&0===t&&!l.enabled?0:-1;return W.createElement(wI,{totalsStyle:s.totals,headRowHeight:c,atTop:n,key:e.id,align:e.totalsTextAlign,className:"sn-table-cell",tabIndex:p,title:u.passive?e.totalInfo:void 0,onKeyDown:function(e){!function(e,t,n,r,o){if(void 0===o&&(o=!1),o)xP(e);else if(!NP(e))switch(e.key){case bS.LEFT:case bS.RIGHT:case bS.UP:case bS.DOWN:xP(e);var i=_P(n,e);i===yS.FOCUS&&DP({focusType:yS.REMOVE_TAB,cell:e.target}),AP(e,t,n,r,i);break;case bS.TAB:zP({evt:e,rootElement:t,setFocusedCellCoord:r});break;case bS.C:xP(e),LP(e)&&Bf(e);break;case bS.SPACE:e.preventDefault()}}(e,i,o,d,null==a?void 0:a.isModal())},onMouseDown:function(){TP(o,i,d,l)}},W.createElement(vI,{fontSize:s.totals.fontSize},e.totalInfo))})))},PI=$.memo(kI),DI=function(e){var t,n,o=e.setShouldRefocus,i=e.tableWrapperRef,a=e.announce,l=dD(lD,(function(e){return e.tableData})),s=l.rows,u=l.columns,c=l.paginationNeeded,d=l.totalsPosition,p=dD(lD,(function(e){return e.baseProps})),f=p.selectionsAPI,m=p.rootElement,h=p.keyboard,g=p.layout,v=p.viewService,b=p.interactions,y=p.styling.body,S=y.hoverColors,x=y.lastRowBottomBorder,E=r(y,["hoverColors","lastRowBottomBorder"]),w=dD(lD,(function(e){return e.setFocusedCellCoord})),C=dD(lD,(function(e){return e.selectionDispatch})),R=!!b.active&&!!b.select,k=JSON.stringify(u.map((function(e){return e.stylingIDs}))),P=$.useMemo((function(){return JSON.parse(k).map((function(e){return RI(!!e.length,R)}))}),[k,R]),D=!!(null===(n=null===(t=JP(g))||void 0===t?void 0:t.content)||void 0===n?void 0:n.hoverEffect);return bI({keyboard:h,selectionDispatch:C,selectionsAPI:f,setShouldRefocus:o,tableWrapperRef:i}),W.createElement(SI,{lastRowBottomBorder:x},d.atTop?W.createElement(PI,null):void 0,s.map((function(e,t){return W.createElement(xI,{hoverColors:S,hover:D,tabIndex:-1,key:e.id,className:"sn-table-row sn-table-data-row",rowindex:t},u.map((function(n,r){var o,i=n.id,l=e[i],s=P[r],u=0!==t||0!==r||d.atTop||h.enabled?-1:0;return s&&W.createElement(s,{scope:0===r?"row":null,component:0===r?"th":null,cell:l,column:n,key:i,align:l.align,styling:E,tabIndex:u,announce:a,title:b.passive?l.qText:void 0,onKeyDown:function(e){!function(e){var t=e.evt,n=e.rootElement,r=e.cell,o=e.selectionDispatch,i=e.isSelectionsEnabled,a=e.setFocusedCellCoord,l=e.announce,s=e.keyboard,u=e.paginationNeeded,c=e.totalsPosition,d=e.selectionsAPI;if(t.target.classList.contains("excluded"))xP(t);else{var p=null==d?void 0:d.isModal();if(!NP(t,p))switch(t.key){case bS.UP:case bS.DOWN:case bS.LEFT:case bS.RIGHT:xP(t),FP({evt:t,rootElement:n,cell:r,selectionDispatch:o,isSelectionsEnabled:i,setFocusedCellCoord:a,announce:l,totalsPosition:c,isSelectionMode:p});break;case bS.SPACE:xP(t),r.isSelectable&&i&&o({type:vS.SELECT,payload:{cell:r,evt:t,announce:l}});break;case bS.ENTER:xP(t),p&&(null==d||d.confirm(),l({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case bS.ESC:xP(t),null==d||d.cancel(),l({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case bS.TAB:zP({evt:t,rootElement:n,setFocusedCellCoord:a,keyboard:s,isSelectionMode:p,paginationNeeded:u});break;case bS.C:xP(t),LP(t)&&Bf(t)}}}({evt:e,rootElement:m,selectionsAPI:f,cell:l,selectionDispatch:C,isSelectionsEnabled:R,setFocusedCellCoord:w,announce:a,keyboard:h,paginationNeeded:c,totalsPosition:d})},onKeyUp:function(e){return function(e,t){e.key===bS.SHIFT&&t({type:vS.SELECT_MULTI_END})}(e,C)},onMouseDown:function(){return function(e,t,n,r,o){var i=e.pageRowIdx,a=e.pageColIdx,l=o.atTop?i+2:i+1;TP([l,a],t,n,r)}(l,m,w,h,d)}},W.createElement(vI,{fontSize:E.fontSize,lines:null===(o=v.viewState)||void 0===o?void 0:o.maxLineCount},l.qText))})))})),d.atBottom?W.createElement(PI,null):void 0)},AI=$.memo(DI),II=function(e){var t=e.column,n=e.isLastColumn,r=e.onColumnResize,o=t.pageColIdx,i=dD(lD,(function(e){return e.baseProps})),l=i.applyColumnWidths,s=i.interactions,u=dD(lD,(function(e){return e.featureFlags})).isNewHeadCellMenuEnabled,c=dD(lD,(function(e){return e.columnWidths})),d=dD(lD,(function(e){return e.setColumnWidths}));if(!s.active)return null;return W.createElement(oI,{columnWidth:c[o],isLastColumn:n,keyValue:"adjuster-".concat(o),isNewHeadCellMenuEnabled:u,updateWidthCallback:function(e){null==r||r();var t=a([],c,!0);t[o]=e,d(t)},confirmWidthCallback:function(e){l(e,t)},handleBlur:function(e){return function(e){var t=e.target;t.setAttribute("tabIndex","-1");var n=null==t?void 0:t.closest(".sn-table-cell"),r=(null==n?void 0:n.querySelector(".sn-table-head-menu-button"))||(null==n?void 0:n.querySelector(".".concat(mf)));null==r||r.focus()}(e)}})};function TI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const LI=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"lock_svg__lock-a",d:"M13 7H8h5V4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3h10Z"})),W.createElement("use",{xlinkHref:"#lock_svg__lock-a",fillRule:"evenodd"})),MI=$.forwardRef(LI);var OI=iS("div")({position:"absolute",left:0,bottom:0}),qI=iS(Ow,{shouldForwardProp:function(e){return!["isActivelySorted","textAlign","disabled","isNewHeadCellMenuEnabled"].includes(e)}})((function(e){var t=e.isActivelySorted,r=e.textAlign,o=e.disabled,i=e.theme,a=e.isNewHeadCellMenuEnabled;return{textAlign:r,height:"auto",maxWidth:"100%",fontSize:"inherit",fontFamily:"inherit",padding:i.spacing(.5,1),color:"inherit",alignItems:"flex-end",cursor:o?"auto":"pointer",justifySelf:r,"&&:focus, &&:hover":n(n({},a&&{background:"transparent"}),{"& svg":n({},!a&&{opacity:t?1:.5})}),"& svg":{opacity:t?1:0,fontSize:Vk},"& .Mui-disabled":{color:"inherit"},"& .MuiButton-endIcon, .MuiButton-startIcon":{marginBottom:"2px",visibility:o?"hidden":"visible"}}})),NI=iS("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),_I=iS(ww,{shouldForwardProp:function(e){return"isLocked"!==e&&"isNewHeadCellMenuEnabled"!==e}})((function(e){var t=e.theme,r=e.isLocked,o=e.isNewHeadCellMenuEnabled;return n(n({width:"100%",display:"grid",flexDirection:"inherit",gridAutoFlow:"dense",gap:t.spacing(.5),fontSize:"inherit",fontFamily:"inherit"},o&&{alignItems:"end",overflow:"hidden"}),{"&&:hover, &&:focus-within":{"& .sn-table-head-menu-button":{opacity:1}},"& > div:last-child":{alignSelf:"flex-end"},"&.aligned-left":{gridTemplateColumns:r?"".concat(20,"px 2fr ").concat(ES,"px"):"1fr ".concat(ES,"px")},"&.aligned-center":{gridTemplateColumns:"".concat(ES,"px 2fr ").concat(ES,"px"),"& > div:first-child":{gridColumn:1},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:3}},"&.aligned-right":{gridTemplateColumns:r?"".concat(ES,"px 2fr ").concat(20,"px"):"".concat(ES,"px 1fr"),"& > div:first-child":{gridColumn:r?3:"unset"},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:1}}})})),FI=iS("div")({display:"flex",alignSelf:"flex-end"}),zI=iS(ww)({display:"flex",alignItems:"center",width:"".concat(20,"px"),height:"".concat(ES,"px"),flexShrink:0,flexDirection:"inherit","&.aligned-right":{justifyContent:"flex-start"},"&.aligned-center, &.aligned-left":{justifyContent:"flex-end"}}),jI=iS(ww,{shouldForwardProp:function(e){return"isVisible"!==e&&"rightAligned"!==e}})((function(e){var t=e.rightAligned;return n(n({},t?{marginRight:"auto"}:{marginLeft:"auto"}),{height:"".concat(ES,"px"),display:"flex"})})),HI=iS(Ow,{shouldForwardProp:function(e){return"isVisible"!==e&&"rightAligned"!==e}})((function(e){return{opacity:e.isVisible?1:0,"&:focus":{opacity:1}}})),BI=iS(Gw)((function(e){return{"&.MuiDivider-root":{margin:e.theme.spacing(.5)}}})),$I=iS(dR)((function(e){var t=e.theme;return{borderRadius:"4px",margin:t.spacing(0,.5),padding:t.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}})),WI=iS("div")((function(){return{display:"flex",justifyContent:"space-between",alignItems:"center"}})),VI=iS(MC)((function(e){return{marginRight:e.theme.spacing(1.5),lineHeight:0}}));iS("div")((function(e){return{height:"350px",boxSizing:"border-box",background:e.theme.palette.common.white}}));function UI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GI=(e,t)=>W.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){UI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("path",{d:"M2 6.5h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Zm5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Zm5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Z"})),YI=$.forwardRef(GI);var KI=new Map,ZI={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},XI=function(e,t){return e.some((function(e){return t[e]>0}))},JI={},QI=function(e){var t,o,i=e.autoFocus,a=e.id,l=e.onClick,s=e.itemTitle,u=e.icon,c=e.enabled,d=e.subMenus,p=$.useState(!1),f=p[0],m=p[1],h=$.useRef(null);return W.createElement(W.Fragment,null,W.createElement($I,{ref:d?h:null,key:a,"data-testid":"menu-item-".concat(a),className:"sn-table-head-menu-item",onClick:function(e){l&&(l(e),JI={}),(null==d?void 0:d.length)&&(m(!0),JI[s]=m)},disabled:!c,autoFocus:i,onKeyDown:cI},W.createElement(WI,null,W.createElement(VI,null,u),W.createElement(bE,{variant:"body2"},s)),(null==d?void 0:d.length)?W.createElement(OD,null):null),(null==d?void 0:d.length)&&W.createElement(tT,{anchorEl:h.current,open:f,onClose:function(){return m(!1)},menuGroups:(t=d,o=JI,t.map((function(e){return e.map((function(e){var t=e.onClick,i=r(e,["onClick"]);return n(n({},i),t?{onClick:function(e){Object.entries(o).map((function(e){return(0,e[1])(!1)})),t(e)}}:{})}))}))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"}}))},eT=function(e){return e.menuGroup.map((function(e){return W.createElement(QI,n({key:e.id},e))}))},tT=function(e){var t=e.anchorEl,r=e.open,o=e.onClose,i=e.menuGroups,a=e.transformOrigin,l=e.anchorOrigin,s=e.buttonId,u=e.menuId;return i.length?W.createElement(aR,n({className:"sn-table-head-menu",id:u,open:r,anchorEl:t,onClose:o,"aria-labelledby":s},l?{anchorOrigin:l}:{},a?{transformOrigin:a}:{}),function(e){var t=e.itemGroups;return t.map((function(e,n){return[eT({menuGroup:e}),n<t.length-1?W.createElement(BI,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0]}))}({itemGroups:i})):null},nT=function(e){var t=e.column,n=e.tabIndex,r=t.isDim,l=t.qLibraryId,s=t.fieldId,u=t.headTextAlign,c=t.pageColIdx,d=dD(lD,(function(e){return e.baseProps})),p=d.translator,f=d.embed,m=d.model,h=d.interactions,g=d.layout,v=$.useRef(null),b=$.useRef(null),y=$.useState(!1),S=y[0],x=y[1],E=$.useState(!1),w=E[0],C=E[1],R=function(e,t){var n=dD(lD,(function(e){return e.baseProps})),r=n.app,o=n.layout,i=$.useState(null),a=i[0],l=i[1],s=$.useState(ZI),u=s[0],c=s[1];return $.useEffect((function(){if(r&&r.getField&&e&&e.isDim&&t){var n=e.qLibraryId,i=e.fieldId;if(n){var a="".concat(r.id,"-").concat(n);KI.get(a)?l(KI.get(a)):r.createSessionObject(function(e,t){return void 0===t&&(t="$"),{qInfo:{qType:"tableListbox"},qListObjectDef:{qLibraryId:e,qStateName:t}}}(n,o.qStateName)).then((function(e){var t={selectAll:function(){return e.selectListObjectAll("/qListObjectDef")},clear:function(){return e.clearSelections("/qListObjectDef").then((function(e){return e}))},selectPossible:function(){return e.selectListObjectPossible("/qListObjectDef")},selectAlternative:function(){return e.selectListObjectAlternative("/qListObjectDef")},selectExcluded:function(){return e.selectListObjectExcluded("/qListObjectDef")}};l(t),KI.set(a,t)}))}else r.getField(i,o.qStateName).then(l)}}),[r,e,o.qStateName,t]),{fieldInstance:a,selectionActionsEnabledStatus:u,resetSelectionActionsEnabledStatus:$.useCallback((function(){return c(ZI)}),[]),updateSelectionActionsEnabledStatus:function(t){var n=t.qHyperCube.qDimensionInfo.find((function(t){return t.qFallbackTitle===e.label}));n&&c({canSelectAll:XI(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:XI(["qSelected"],n.qStateCounts),canSelectPossible:XI(["qOption"],n.qStateCounts),canSelectAlternative:XI(["qAlternative"],n.qStateCounts),canSelectExcluded:XI(["qAlternative","qExcluded"],n.qStateCounts)})}}}(t,S),k=R.fieldInstance,P=R.selectionActionsEnabledStatus,D=R.resetSelectionActionsEnabledStatus,A=R.updateSelectionActionsEnabledStatus,I=$.useCallback((function(){var e=l?{qLibraryId:l,type:"dimension"}:s;f.__DO_NOT_USE__.popover(b.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},stateName:g.qStateName}),f.on("fieldPopoverClose",(function(){C(!1)}))}),[f,s,l,g.qStateName]),T=$.useMemo((function(){return a(a([],r&&h.select?[[{id:1,itemTitle:p.get("SNTable.MenuItem.Search"),onClick:function(e){e.stopPropagation(),x(!1),C(!0),I()},icon:W.createElement(GD,null),enabled:!0}],[{id:1,itemTitle:p.get("SNTable.MenuItem.Selections"),icon:W.createElement(ZD,null),enabled:!0,subMenus:[[{id:1,itemTitle:p.get("SNTable.MenuItem.SelectAll"),onClick:function(){return o(void 0,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return x(!1),[4,null==k?void 0:k.selectAll()];case 1:return e.sent(),[2]}}))}))},icon:W.createElement(QD,null),enabled:P.canSelectAll},{id:2,itemTitle:p.get("SNTable.MenuItem.SelectPossible"),onClick:function(){return o(void 0,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return x(!1),[4,null==k?void 0:k.selectPossible()];case 1:return e.sent(),[2]}}))}))},icon:W.createElement(iA,null),enabled:P.canSelectPossible},{id:3,itemTitle:p.get("SNTable.MenuItem.SelectAlternative"),onClick:function(){return o(void 0,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return x(!1),[4,null==k?void 0:k.selectAlternative()];case 1:return e.sent(),[2]}}))}))},icon:W.createElement(sA,null),enabled:P.canSelectAlternative},{id:4,itemTitle:p.get("SNTable.MenuItem.SelectExcluded"),onClick:function(){return o(void 0,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return x(!1),[4,null==k?void 0:k.selectExcluded()];case 1:return e.sent(),[2]}}))}))},icon:W.createElement(dA,null),enabled:P.canSelectExcluded}],[{id:1,itemTitle:p.get("SNTable.MenuItem.ClearSelections"),onClick:function(){return o(void 0,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return x(!1),[4,null==k?void 0:k.clear()];case 1:return e.sent(),[2]}}))}))},icon:W.createElement(nA,null),enabled:P.canClearSelections}]]}]]:[],!0),[[{id:1,itemTitle:p.get("SNTable.MenuItem.AdjustColumnSize"),onClick:function(e){xP(e),x(!1),PP(v)},icon:W.createElement(mA,null),enabled:!0}]],!1)}),[r,h.select,p,P,I,k]);$.useEffect((function(){S||D()}),[S,D]);var L=g.qInfo.qId,M="sn-table-head-menu-button-".concat(c,"-").concat(L),O="sn-table-head-menu-".concat(c,"-").concat(L);return T.length?W.createElement(jI,{rightAligned:"right"===u},W.createElement(HI,{isVisible:w||S,ref:v,size:"small",tabIndex:n,className:"sn-table-head-menu-button",id:M,"aria-controls":S?O:void 0,"aria-expanded":S?"true":void 0,"aria-haspopup":"true",onClick:function(){return o(void 0,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return S||!m?[3,2]:[4,m.getLayout()];case 1:e=t.sent(),A(e),t.label=2;case 2:return x(!S),[2]}}))}))},"aria-label":p.get("SNTable.Accessibility.ColumnOptions")},W.createElement(YI,{height:Vk})),W.createElement("div",{ref:b}),W.createElement(tT,{open:S,anchorEl:v.current,onClose:function(){return x(!1)},menuGroups:T,buttonId:M,menuId:O})):null},rT=function(e){var t,n=e.children,r=e.column,o=e.isInteractionEnabled,i=e.open,a=e.setOpen,l=dD(lD,(function(e){return e.baseProps})),s=l.keyboard,u=l.translator,c=l.changeSortOrder,d=l.interactions,p=l.embed,f=l.app,m=l.model,h=dD(lD,(function(e){return 0===e.focusedCellCoord[0]})),g=dD(lD,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),v=$.useRef(null),b=$.useRef(null),y=function(e){var t=e.sortDirection,n=e.isLocked,r=e.headTextAlign,o="A"===t?W.createElement(WD,{height:Vk}):W.createElement(HD,{height:Vk}),i=n?W.createElement(zI,{className:"aligned-".concat(r)},W.createElement(MI,{height:Vk,"data-testid":"head-cell-lock-icon"})):void 0;return"right"===r?{startIcon:o,lockIcon:i}:{endIcon:o,lockIcon:i}}(r),S=y.startIcon,x=y.endIcon,E=y.lockIcon,w=o&&kP(s)?0:-1,C={A:u.get("SNTable.Accessibility.Ascending"),D:u.get("SNTable.Accessibility.Descending")};return W.createElement(_I,{isLocked:Boolean(E),className:"aligned-".concat(r.headTextAlign),isNewHeadCellMenuEnabled:g},E&&W.createElement(FI,null,E),W.createElement(qI,{className:"sn-table-head-label",isActivelySorted:r.isActivelySorted,textAlign:r.headTextAlign,color:"inherit",size:"small",startIcon:S,endIcon:x,tabIndex:w,disabled:!o,onClick:g?function(){}:function(){return o&&c(r)},isNewHeadCellMenuEnabled:g},n,h&&W.createElement(NI,{"data-testid":"VHL-for-col-".concat(r.pageColIdx)},"".concat(C[r.sortDirection]," ").concat(u.get("SNTable.SortLabel.PressSpaceToSort")))),o&&(g?W.createElement(W.Fragment,null,W.createElement(vA,{headerData:r,translator:u,tabIndex:w,anchorRef:v,handleHeadCellMenuKeyDown:cI,menuAvailabilityFlags:(t={},t[hA.SORTING]=!0,t[hA.SEARCHING]=!0,t[hA.SELECTIONS]=!0,t[hA.ADJUST_HEADER_SIZE]=!0,t),open:i,setOpen:a,interactions:d,sortRelatedArgs:{sortFromMenu:function(e,t){return e.stopPropagation(),c(r,t)}},searchRelatedArgs:{embed:p,listboxRef:b},selectionRelatedArgs:{app:f,model:m},adjustHeaderSizeRelatedArgs:{setFocusOnClosetHeaderAdjuster:PP},shouldShowMenuIcon:!0}),W.createElement(OI,{ref:b}),W.createElement(OI,{ref:v})):W.createElement(nT,{column:r,tabIndex:w})))},oT=iS(mk,{shouldForwardProp:function(e){return"headerStyle"!==e&&"isNewHeadCellMenuEnabled"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e}})((function(e){var t=e.headerStyle,r=e.isNewHeadCellMenuEnabled,o=e.interactions,i=e.hoverBackground,a=e.background;return n(n(n(n({},Uk),t),r&&{cursor:"pointer",background:a}),{pointer:"cursor",verticalAlign:"bottom","&:focus":{boxShadow:"none"},"&&:hover":n({},r&&{background:o.active?i:a})})})),iT=function(e){var t=e.column,n=e.columnIndex,r=e.columnsLength,o=$.useState(!1),i=o[0],a=o[1],l=dD(lD,(function(e){return e.baseProps})),s=l.styling,u=l.interactions,c=l.rootElement,d=l.keyboard,p=l.styling.head,f=p.activeBackground,m=p.background,h=p.hoverBackground,g=dD(lD,(function(e){return e.tableData})).columns,v=dD(lD,(function(e){return e.columnWidths})),b=dD(lD,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),y=dD(lD,(function(e){return e.setFocusedCellCoord})),S=dD(lD,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),x=!!u.active&&!b,E=t.isActivelySorted?SS[t.sortDirection]:void 0,w=n===r-1,C=[0,t.pageColIdx],R={width:v[n]-(w?8:9),zIndex:g.length-n};return W.createElement(oT,{headerStyle:s.head,style:R,key:t.id,align:t.headTextAlign,className:"sn-table-head-cell sn-table-cell","aria-sort":E,tabIndex:-1,title:u.passive?t.label:void 0,onKeyDown:function(e){return dI({evt:e,rootElement:c,cellCoord:C,setFocusedCellCoord:y,isInteractionEnabled:x})},onMouseDown:function(e){return function(e){var t,n=e.evt,r=e.rootElement,o=e.cellCoord,i=e.setFocusedCellCoord,a=e.keyboard,l=e.isInteractionEnabled;n.preventDefault(),l&&(i(o),a.enabled&&!a.active?null===(t=a.focus)||void 0===t||t.call(a):DP({focusType:yS.FOCUS_BUTTON,cell:EP(r,o)}))}({evt:e,rootElement:c,cellCoord:C,setFocusedCellCoord:y,keyboard:d,isInteractionEnabled:x})},isNewHeadCellMenuEnabled:S,background:i?f:m,hoverBackground:h,interactions:u,onClick:function(){return a(!0)}},W.createElement(rT,{column:t,isInteractionEnabled:x,open:i,setOpen:a},W.createElement(vI,{fontSize:s.head.fontSize},t.label)),W.createElement(II,{column:t,isLastColumn:w}))},aT=function(){var e,t=dD(lD,(function(e){return e.tableData})).columns,n=dD(lD,(function(e){return e.baseProps})),r=n.styling,o=n.viewService,i=dD(lD,(function(e){return e.setHeadRowHeight})),a=dD(lD,(function(e){return e.columnWidths})),l=$.useRef(null);return $.useEffect((function(){l.current&&i(l.current.clientHeight)}),[r.head.fontSize,a,i]),(null===(e=o.viewState)||void 0===e?void 0:e.skipHeader)?null:W.createElement(Ck,null,W.createElement(Tk,{ref:l,className:"sn-table-row sn-table-head-row"},t.map((function(e,n){return W.createElement(iT,{column:e,columnIndex:n,columnsLength:t.length})}))))},lT=$.memo(aT),sT=function(e){var t,r,o=e.pageInfo,i=e.setPageInfo,a=e.direction,l=e.footerContainer,s=e.announce,u=o.page,c=o.rowsPerPage,d=dD(lD,(function(e){return e.tableData})),p=d.totalColumnCount,f=d.totalRowCount,m=d.totalPages,h=d.paginationNeeded,g=d.rows,v=d.columns,b=d.totalsPosition,y=dD(lD,(function(e){return e.baseProps})),S=y.rootElement,x=y.keyboard,E=y.translator,w=y.theme,C=y.interactions,R=y.styling,k=y.viewService,P=y.layout,D=y.rect,A=dD(lD,(function(e){return e.focusedCellCoord})),I=dD(lD,(function(e){return e.setFocusedCellCoord})),T=dD(lD,(function(e){return e.setYScrollbarWidth})),L=dD(lD,(function(e){return e.showRightBorder})),M=dD(lD,(function(e){return e.selectionDispatch})),O=dD(lD,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),q=$.useRef(!1),N=$.useRef(null),_=$.useRef(null),F=pI(N).yScrollbarWidth,z="".concat(E.get("SNTable.Accessibility.RowsAndColumns",[String(g.length+1),String(v.length)])," ").concat(E.get("SNTable.Accessibility.NavigationInstructions")),j=Qf(P,k),H=j&&null!==(t=k.scrollLeft)&&void 0!==t?t:0,B=j&&null!==(r=k.rowPartialHeight)&&void 0!==r?r:0,V=$.useCallback((function(){q.current=S.getElementsByTagName("table")[0].contains(document.activeElement)}),[S]),U=$.useCallback((function(e){i(n(n({},o),{page:e})),s({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),m.toString()]],politeness:"assertive"})}),[o,i,m,s]),G=$.useCallback((function(e){i(n(n({},o),{page:0,rowsPerPage:e})),s({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[s,o,i]);return function(e,t,n){$.useEffect((function(){var r=e.current;if(r){var o=function(e){return function(e,t,n){var r,o=e.currentTarget,i=e.relatedTarget,a=o.contains(i),l=null==i?void 0:i.closest(".sn-table-head-menu");!n.enabled||a||l||t.current||(o.querySelector(".sn-table-announcer-1").innerHTML="",o.querySelector(".sn-table-announcer-2").innerHTML="",null===(r=n.blur)||void 0===r||r.call(n,!1))}(e,t,n)};return r.addEventListener("focusout",o),function(){r.removeEventListener("focusout",o)}}}),[e,t,n])}(_,q,x),uI(N,a,k),function(){var e=dD(lD,(function(e){return e.baseProps})),t=e.rootElement,n=e.keyboard,r=dD(lD,(function(e){return e.focusedCellCoord}));$.useEffect((function(){var e=r[0]>0?yS.FOCUS:yS.FOCUS_BUTTON;e=n.active?e:yS.BLUR;var o=n.active?EP(t,r):wP(t);DP({focusType:e,cell:o})}),[n.active,t])}(),$.useEffect((function(){var e=N.current;e&&(e.scrollLeft=H,e.scrollTop=B)}),[o,f,H,B]),sI((function(){!function(e){var t,n=e.focusedCellCoord,r=e.rootElement,o=e.shouldRefocus,i=e.isSelectionMode,a=e.setFocusedCellCoord,l=e.keyboard,s=e.announce,u=e.totalsPosition;DP({focusType:yS.REMOVE_TAB,cell:wP(r)});var c=[u.atTop?2:1,n[1]],d=i?c:CS;if(kP(l)){var p=o.current?yS.FOCUS:yS.ADD_TAB;o.current=!1;var f=EP(r,d);if(DP({focusType:p,cell:f}),i){var m=null===(t=null==f?void 0:f.classList)||void 0===t?void 0:t.contains("selected");s({keys:["".concat(f.textContent,","),m?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}}a(d)}({focusedCellCoord:A,rootElement:S,shouldRefocus:q,setFocusedCellCoord:I,isSelectionMode:O,keyboard:x,announce:s,totalsPosition:b})}),[g.length,f,p,u]),sI((function(){T(F)}),[F]),sI((function(){M({type:vS.UPDATE_PAGE_ROWS,payload:{pageRows:g}})}),[g]),W.createElement(iI,{ref:_,background:w.background,dir:a,onKeyDown:function(e){!function(e){var t,n=e.evt,r=e.totalRowCount,o=e.page,i=e.rowsPerPage,a=e.handleChangePage,l=e.setShouldRefocus,s=e.keyboard,u=e.isSelectionMode;if(MP(n)){xP(n);var c=Math.ceil(r/i)-1;n.key===bS.RIGHT&&o<c?(l(),a(o+1)):n.key===bS.LEFT&&o>0&&(l(),a(o-1))}else n.key===bS.ESC&&s.enabled&&!u?(xP(n),null===(t=s.blur)||void 0===t||t.call(s,!0)):OP(n.key)&&xP(n)}({evt:e,totalRowCount:f,page:u,rowsPerPage:c,handleChangePage:U,setShouldRefocus:V,keyboard:x,isSelectionMode:O})},"data-testid":"sn-table"},W.createElement(gI,null),W.createElement(mI,{ref:N,className:"sn-table-container",fullHeight:l||!C.active||!h,interactions:C,tabIndex:-1,role:"application","data-testid":"table-container"},W.createElement(hI,{styling:R,showRightBorder:L,stickyHeader:!0,"aria-label":z},W.createElement(lT,null),W.createElement(AI,n({},e,{setShouldRefocus:V,tableWrapperRef:_})))),W.createElement(tI,{footerContainer:l,pageInfo:o,paginationNeeded:h,theme:w,totalRowCount:f,totalColumnCount:p,totalPages:m,keyboard:x,translator:E,interactions:C,rect:D,layout:P,handleChangePage:U,handleChangeRowsPerPage:G,isSelectionMode:O}))},uT=$.memo(sT),cT=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function dT(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||cT(r)&&cT(o)))return!1;var r,o;return!0}function pT(e,t){var n;void 0===t&&(t=dT);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var fT="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function mT(e){cancelAnimationFrame(e.id)}function hT(e,t){var n=fT();var r={id:requestAnimationFrame((function o(){fT()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var gT=-1;function vT(e){if(void 0===e&&(e=!1),-1===gT||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),gT=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return gT}var bT=null;function yT(e){if(void 0===e&&(e=!1),null===bT||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?bT="positive-descending":(t.scrollLeft=1,bT=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),bT}return bT}var ST=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function xT(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,AS(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:AS(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=pT((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=pT((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=pT((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(yT()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&mT(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=hT(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}DS(t,e),t.getDerivedStateFromProps=function(e,t){return ET(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,v=vT();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,S=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,S):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(yT()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&mT(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?ST:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,S=this.state.isScrolling,x=this._getHorizontalRangeToRender(),E=x[0],w=x[1],C=this._getVerticalRangeToRender(),R=C[0],k=C[1],P=[];if(r>0&&g)for(var D=R;D<=k;D++)for(var A=E;A<=w;A++)P.push($.createElement(t,{columnIndex:A,data:d,isScrolling:b?S:void 0,key:f({columnIndex:A,data:d,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,A)}));var I=a(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return $.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:tm({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},$.createElement(u||c||"div",{children:P,ref:s,style:{height:I,pointerEvents:S?"none":void 0,width:T}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,v=h.scrollLeft,b=h.scrollTop,y=h.scrollUpdateWasRequested,S=h.verticalScrollDirection;this._callOnScroll(v,b,g,S,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}($.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var ET=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},wT=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},CT=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},RT=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},kT=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?PT(e,t,n,i,0,r):DT(e,t,n,Math.max(0,i),r)},PT=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=RT(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},DT=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&RT(e,t,r,n).offset<o;)r+=a,a*=2;return PT(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},AT=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=RT(e,t,n,i),u="column"===e?CT(t,i):wT(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},IT=xT({getColumnOffset:function(e,t,n){return RT("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return kT("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=RT("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=RT("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:wT,getEstimatedTotalWidth:CT,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return AT("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return AT("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return RT("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return kT("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=RT("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=RT("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),TT=function(e,t){return e};function LT(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,AS(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:AS(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=pT((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=pT((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=pT((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(yT()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&mT(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=hT(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}DS(t,e),t.getDerivedStateFromProps=function(e,t){return MT(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?vT():0:s.scrollHeight>s.clientHeight?vT():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(yT()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&mT(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?TT:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,S="horizontal"===o||"horizontal"===f,x=S?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],C=E[1],R=[];if(u>0)for(var k=w;k<=C;k++)R.push($.createElement(t,{data:c,key:p(k,c),index:k,isScrolling:v?y:void 0,style:this._getItemStyle(k)}));var P=r(this.props,this._instanceProps);return $.createElement(m||h||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:tm({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},$.createElement(l||s||"div",{children:R,ref:a,style:{height:S?"100%":P,pointerEvents:y?"none":void 0,width:S?P:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}($.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var MT=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},OT=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},qT=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=OT(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},NT=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&OT(e,n,t).offset<r;)n+=i,i*=2;return qT(e,t,Math.min(n,o-1),Math.floor(n/2),r)},_T=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},FT=LT({getItemOffset:function(e,t,n){return OT(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:_T,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=OT(e,t,o),p=_T(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?qT(e,t,o,0,n):NT(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=OT(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=OT(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function zT(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var jT=["style"],HT=["style"];function BT(e,t){var n=e.style,r=Hm(e,jT),o=t.style,i=Hm(t,HT);return!zT(n,o)&&!zT(r,i)}var $T=function(e){var t=e.style;return W.createElement("div",{className:"sn-table-cell",style:n(n({},t),{borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"})})},WT=W.memo($T,BT),VT=function(){},UT=function(e){return e.preventDefault()};var GT,YT=function(e){var t,o=e.columnIndex,i=e.rowIndex,a=e.style,l=e.data,s=l.rowsInPage,u=l.columns,c=l.bodyStyle,d=l.isHoverEnabled,p=l.maxLineCount,f=dD(lD,(function(e){return e.hoverIndex===i})),m=dD(lD,(function(e){return e.setHoverIndex})),h=dD(lD,(function(e){return e.baseProps})).interactions,g=dD(lD,(function(e){return e.showRightBorder})),v=null===(t=s[i])||void 0===t?void 0:t["col-".concat(o)],b=function(e){var t=dD(lD,(function(e){return e.baseProps})).interactions,n=dD(lD,(function(e){return e.selectionDispatch})),r="object"==typeof e,o=dD(lD,(function(t){return r?jP(e,t.selectionState):gS.INACTIVE})),i=t.active&&t.select;if(r&&i){var a=yI(UT,e,n,VT);return{handleMouseDown:a.handleMouseDown,handleMouseOver:a.handleMouseOver,handleMouseUp:a.handleMouseUp,cellSelectionState:o}}return{cellSelectionState:o}}(v),y=b.handleMouseDown,S=b.handleMouseOver,x=b.handleMouseUp,E=b.cellSelectionState;if("object"==typeof v){var w=function(e,t,o,i,a){var l=a.hoverColors;a.lastRowBottomBorder;var s=r(a,["hoverColors","lastRowBottomBorder"]),u=t.stylingIDs.length?nD(s,e.qAttrExps,t.stylingIDs):s;return i===gS.SELECTED?n(n({},u),$k.SELECTED):i===gS.EXCLUDED?n(n({},u),{color:o?null==l?void 0:l.color:u.color,background:"".concat($k.EXCLUDED_BACKGROUND,", ").concat(o?null==l?void 0:l.background:u.background)}):o?n(n({},u),l):u}(v,u[o],d&&f,E,c),C={rowindex:i,columnindex:o};return W.createElement("div",n({className:"sn-table-cell ".concat(E),style:n(n(n({},a),w),{display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:v.isLastRow?"0px":"".concat(1,"px"),borderRightWidth:v.isLastColumn&&!g?"0px":"".concat(1,"px"),borderStyle:"solid",justifyContent:v.align,padding:"4px ".concat(12,"px"),boxSizing:"border-box",cursor:"default"}),onMouseDown:y,onMouseUp:x,onMouseOver:S,onMouseEnter:d?function(){return m(i)}:void 0,onMouseLeave:d?function(){return m(-1)}:void 0,title:h.passive?v.qText:void 0},C),W.createElement(vI,{wordBreak:!v.isNumeric,lines:p},v.qText))}return W.createElement(WT,{style:n(n(n({},a),c),{borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"})})},KT=W.memo(YT,BT),ZT=function(e){var t=$.useRef(e);return t.current=e,t},XT=function(e){var t=e.qLeft,n=e.qTop,r=e.qWidth,o=e.qHeight;return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(o)},JT=function(e,t){var r=$.useRef(new Set),a=$.useRef(new Set),l=$.useRef(new Set),s=ZT(e),u=ZT(t),c=$.useMemo((function(){return{enqueue:function(e){var t=XT(e);l.current.has(t)||(r.current.add(e),l.current.add(t),1===r.current.size&&setTimeout((function(){return o(void 0,void 0,void 0,(function(){var e,t,o;return i(this,(function(i){switch(i.label){case 0:if(0===(e=Array.from(r.current.values())).length)return[2];r.current.clear(),a.current.add(e),i.label=1;case 1:return i.trys.push([1,3,4,5]),t=function(e){var t=[];return e.forEach((function(e){if(t.length>0){var r=t[t.length-1];!function(e,t){return e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth}(r,e)?function(e,t){return e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight}(r,e)?r.qWidth+=e.qWidth:t.push(n({},e)):r.qHeight+=e.qHeight}else t.push(n({},e))})),t}(e),[4,s.current(t)];case 2:return o=i.sent(),a.current.has(e)&&u.current(o),[3,5];case 3:return i.sent(),e.forEach((function(e){l.current.delete(XT(e))})),[3,5];case 4:return a.current.delete(e),[7];case 5:return[2]}}))}))}),75))},clear:function(){r.current.clear(),a.current.clear(),l.current.clear()}}}),[s,u]);return c},QT=function(e,t,n,r,o){var i=e[n];if(!i)return!0;for(var a=t;a<t+r;a++){var l=i["col-".concat(a)];if((null==l?void 0:l.rowIdx)!==o)return!0}return!1},eL=function(e,t,n,r){var o=e.slice(n,r);return 0===o.length||o.some((function(e){return!(null==e?void 0:e["col-".concat(t)])}))},tL=function(e,t,r,o,i,a){e.forEach((function(e){e.qMatrix.forEach((function(l,s){var u=e.qArea.qTop-t.page*t.rowsPerPage,c=function(e,t,r,o,i,a,l,s){var u,c=o.qTop+r,d=i+r,p=null!==(u=e[d])&&void 0!==u?u:{key:"row-".concat(d)};return t.forEach((function(e,t){var r,i=t+o.qLeft,u=a[i],f=u.colIdx,m=u.isDim,h=u.isLocked,g=u.id,v=u.bodyTextAlign,b=u.selectionColIdx,y=Vf(e);p[g]=n(n({},e),{align:Zf(e,v),rowIdx:c,colIdx:f,isSelectable:m&&!h,pageRowIdx:d,pageColIdx:i,selectionColIdx:b,isLastRow:c===l.qcy-1,isLastColumn:i===l.qcx-1,isNumeric:y}),s(null!==(r=e.qText)&&void 0!==r?r:"",d,i,y)})),{row:p,pageRowIdx:d}}(r,l,s,e.qArea,u,o,i.qHyperCube.qSize,a),d=c.row,p=c.pageRowIdx;r[p]=d}))}))},nL=function(e){var t=e.layout,n=e.model,r=e.theme,o=e.initialDataPages,i=e.pageInfo,a=e.rowCount,l=e.visibleRowCount,s=e.visibleColumnCount,u=e.columns,c=e.setCellSize,d=e.gridState,p=$.useRef([]),f=ZT(c),m=$.useCallback((function(e,n){var r=Array.isArray(n)?n.slice(0,a):function(e){return Array(e).fill(void 0)}(a);return tL(e,i,r,u,t,f.current),p.current=r,r}),[a,i,u,t,f]),h=$.useState((function(){return m(null!=o?o:[])})),g=h[0],v=h[1];U((function(){v(m(null!=o?o:[]))}),[o]);var b=JT((function(e){return n.getHyperCubeData("/qHyperCubeDef",e)}),(function(e){return v((function(t){return m(e,t)}))})),y=$.useCallback((function(e,t,n,r){for(var o=e;o<e+n;o++)if(eL(p.current,o,t,r)){var i={qLeft:o,qTop:t,qHeight:r,qWidth:1};b.enqueue(i)}}),[p,b]),S=$.useCallback((function(e,t,n,r){for(var o=t;o<t+r;o++){var a=Math.max(0,o-i.page*i.rowsPerPage);if(QT(p.current,e,a,n,o)){var l={qLeft:e,qTop:o,qHeight:1,qWidth:n};b.enqueue(l)}}}),[p,b,i]),x=r.name();return $.useEffect((function(){var e=t.qHyperCube.qSize,n=e.qcx,r=e.qcy,o=d.current.overscanRowStartIndex,a=d.current.overscanColumnStartIndex,u=o+i.page*i.rowsPerPage,c=n-a,p=i.rowsPerPage-o,f=Math.min(100,c,n,s+5),m=Math.min(100,p,r,l+25);return S(a,u,f,m),function(){b.clear()}}),[t,l,s,i,b,S,d,x]),{rowsInPage:g,loadRows:S,loadColumns:y}},rL=function(e){var t,r=e.style,o=e.columnWidths,i=e.rowHeight,a=e.pageInfo,l=e.rowCount,s=e.gridRef,u=e.lineRef,c=e.columns,d=e.boldText,p=e.gridState,f=e.isSnapshot,m=e.viewService,h=e.maxNbrLines,g=void 0===h?3:h,v=$.useRef({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),b=dD(lD,(function(e){return e.baseProps})),y=b.layout,S=b.rect,x=$.useState(i||24),E=x[0],w=x[1],C=of(n(n({},r),{bold:d})),R=C.measureText,k=C.estimateLineCount,P=parseInt(null!==(t=r.fontSize)&&void 0!==t?t:Uk.fontSize,10)*UP,D=8e6/l-8-1,A=Math.max(0,Math.min(g,Math.round(D/P))),I=$.useCallback((function(e,t,n){var r=c?function(e,t){var n=e-71;return n-(t.isLocked?24:0)}(o[t],c[t]):function(e){return e-24-1}(o[t]),i=Math.min(A,k({text:e.trim(),maxWidth:r,isNumeric:n}));return Math.max(1,i)*P+8+1}),[o,P,A,c,k]),T=$.useCallback((function(e,t,n,r,o){void 0===r&&(r=!1),void 0===o&&(o=!1);var i="".concat(t,"-").concat(n);if(!v.current.measuredCells.has(i)){v.current.measuredCells.set(i,[e,t,n,r]);var a=I(e,n,r),l=v.current.heights[t],s=a-l;s>0?(v.current.totalHeight+=s,v.current.heights[t]=a):void 0===l&&(v.current.count+=1,v.current.totalHeight+=a,v.current.heights[t]=a),o||f||w(v.current.totalHeight/v.current.count)}}),[I,f]),L=$.useCallback((function(e){var t;return null!==(t=v.current.heights[e])&&void 0!==t?t:E}),[v,E]),M=$.useCallback((function(){v.current.lastScrollToRatio=0,v.current.resetAfterRowIndex=0,v.current.heights=[],v.current.totalHeight=0,v.current.count=0,v.current.measuredCells.clear()}),[v]),O=ZT(T),q=$.useCallback((function(){var e=new Map(v.current.measuredCells);M(),e.forEach((function(e){var t=e[0],n=e[1],r=e[2],o=e[3];O.current(t,n,r,o,!0)})),f||w(v.current.totalHeight/v.current.count)}),[M,f,O]);U((function(){M()}),[y,a]),U((function(){q()}),[R,S.width]);return(null==s?void 0:s.current)?s.current.resetAfterRowIndex(v.current.resetAfterRowIndex,!1):(null==u?void 0:u.current)&&u.current.resetAfterIndex(v.current.resetAfterRowIndex,!1),m.estimatedRowHeight=E,{setCellSize:T,getRowHeight:L,rowMeta:v,estimatedRowHeight:E,maxLineCount:A,resizeVisibleCells:function(e){var t;if(p){M();for(var n=p.current,r=n.overscanRowStartIndex,o=n.overscanRowStopIndex,i=Math.min(o,y.qHyperCube.qSize.qcy-1),a=function(n){var r=null!==(t=e[n])&&void 0!==t?t:{};Object.values(r).forEach((function(e){var t;"object"==typeof e&&T(null!==(t=e.qText)&&void 0!==t?t:"",n,e.pageColIdx,e.isNumeric)}))},l=r;l<=i;l++)a(l)}},resizeAllCells:q,resetRowMeta:M}};!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(GT||(GT={}));var oL={enabled:!1},iL=function(){},aL={current:null};var lL=function(e,t,n,r,o){var i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(n.height/o)),l=$.useMemo((function(){return r.reduce((function(e,t){return e.width<n.width&&(e.width+=t,e.count+=1),e}),{count:0,width:0})}),[n,r]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},sL=function(e){var t,n=e.columnIndex,r=e.data,o=e.rowIndex,i=null===(t=r.rowsInPage[o])||void 0===t?void 0:t["col-".concat(n)];return"".concat(null==i?void 0:i.qElemNumber,"-").concat(null==i?void 0:i.qText,"-").concat(o,"-").concat(n)},uL={overflow:"hidden",willChange:"auto"},cL=$.forwardRef((function(e,t){var n,r,o,i=e.rect,a=e.columns,l=e.innerForwardRef,s=e.pageInfo,u=e.bodyStyle,c=e.rowHeight,d=e.headerAndTotalsHeight,p=e.syncHeight,f=dD(lD,(function(e){return e.baseProps})),m=f.layout,h=f.model,g=f.theme,v=f.viewService,b=dD(lD,(function(e){return e.columnWidths})),y=dD(lD,(function(e){return e.initialDataPages})),S=null===(n=v.viewState)||void 0===n?void 0:n.maxLineCount,x=$.useRef(null),E=$.useRef({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),w=!!(null===(o=null===(r=JP(m))||void 0===r?void 0:r.content)||void 0===o?void 0:o.hoverEffect),C=function(){var e=$.useRef(0),t=$.useRef(0),n=$.useRef(GT.None),r=$.useRef(GT.None);return{scrollHandler:$.useCallback((function(o){var i=o.scrollTop,a=o.scrollLeft;i>t.current?n.current=GT.Down:i<t.current?n.current=GT.Up:n.current=GT.None,a>e.current?r.current=GT.Right:a<e.current?r.current=GT.Left:r.current=GT.None,t.current=i,e.current=a}),[t,e,n,r]),verticalScrollDirection:n,horizontalScrollDirection:r}}(),R=C.scrollHandler,k=C.verticalScrollDirection,P=C.horizontalScrollDirection,D=lL(m,s,i,b,c),A=D.rowCount,I=D.visibleRowCount,T=D.visibleColumnCount,L=rL({pageInfo:s,style:u,rowHeight:c,columnWidths:b,gridRef:x,rowCount:A,gridState:E,isSnapshot:!!m.snapshotData,viewService:v,maxNbrLines:S}),M=L.setCellSize,O=L.getRowHeight,q=L.rowMeta,N=L.estimatedRowHeight,_=L.maxLineCount,F=L.resizeVisibleCells,z=nL({layout:m,model:h,theme:g,initialDataPages:y,pageInfo:s,rowCount:A,visibleRowCount:I,visibleColumnCount:T,columns:a,setCellSize:M,gridState:E}),j=z.rowsInPage,H=function(e){var t=e.layout,n=e.loadRows,r=e.loadColumns,o=e.verticalScrollDirection,i=e.horizontalScrollDirection,a=e.rowCount,l=e.pageInfo,s=e.gridState,u=e.viewService,c=$.useCallback((function(e){var c=e.overscanColumnStartIndex,d=e.overscanColumnStopIndex,p=e.overscanRowStartIndex,f=e.overscanRowStopIndex,m=e.visibleColumnStartIndex,h=e.visibleColumnStopIndex,g=e.visibleRowStartIndex,v=e.visibleRowStopIndex;if(s.current.overscanColumnStartIndex=c,s.current.overscanColumnStopIndex=d,s.current.overscanRowStartIndex=p,s.current.overscanRowStopIndex=f,!(p>a)){var b=c,y=p+l.page*l.rowsPerPage,S=d-c+1,x=f-p+1;if(u.visibleLeft=m,u.visibleWidth=h-m+1,u.visibleTop=g+l.page*l.rowsPerPage,u.visibleHeight=v-g+1,u.page=l.page,u.rowsPerPage=l.rowsPerPage,o.current===GT.Down)n(b,y,S,p+(E=x+25)>a?a-p:E);else if(o.current===GT.Up){var E=x+25,w=l.page*l.rowsPerPage,C=Math.max(w,y-25);n(b,C,S,E)}if(i.current===GT.Right){var R=t.qHyperCube.qSize.qcx-b,k=S+5,P=Math.min(R,k);r(b,y,P,x)}else if(i.current===GT.Left){var D=Math.max(0,b-5);k=Math.min(t.qHyperCube.qSize.qcx,S+5),r(D,y,k,x)}}}),[s,a,l.page,l.rowsPerPage,u,o,i,n,t.qHyperCube.qSize.qcx,r]);return c}({layout:m,loadRows:z.loadRows,loadColumns:z.loadColumns,verticalScrollDirection:k,horizontalScrollDirection:P,rowCount:A,pageInfo:s,gridState:E,viewService:v}),B=$.useMemo((function(){return{rowsInPage:j,columns:a,bodyStyle:u,isHoverEnabled:w,maxLineCount:_}}),[j,a,u,w,_]),V=function(e,t,n,r){var o=e.height;return n*r<(o-=t)&&(o=Math.min(n*r,o)),o}(i,d,A,N);return $.useLayoutEffect((function(){var e,t;p(null!==(t=null===(e=l.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0,!0)}),[A,p,l]),$.useLayoutEffect((function(){var e,t,n;p(null!==(t=null===(e=l.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0,!1),1===q.current.lastScrollToRatio&&(null===(n=x.current)||void 0===n||n.scrollToItem({rowIndex:A-1,align:"start"}))})),function(e){var t=dD(lD,(function(e){return e.baseProps})).selectionsAPI,n=dD(lD,(function(e){return e.selectionDispatch}));$.useEffect((function(){n({type:vS.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),bI({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:iL,keyboard:oL,tableWrapperRef:aL})}(j),U((function(){var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[m,s,g.name(),i.width,b]),$.useImperativeHandle(t,(function(){return{interpolatedScrollTo:function(e,t){var n,r,o,i,a,s=(null!==(r=null===(n=l.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:V)-V,u=Math.round(s*e);q.current.lastScrollToRatio=e,1===q.current.lastScrollToRatio?(null===(o=x.current)||void 0===o||o.scrollToItem({rowIndex:A-1,align:"start"}),null===(i=x.current)||void 0===i||i.scrollTo({scrollLeft:t})):null===(a=x.current)||void 0===a||a.scrollTo({scrollTop:u,scrollLeft:t})},resizeCells:function(){var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),F(j)}}}),[l,V,q,A,F,j]),W.createElement(IT,{"data-key":"body",ref:x,innerRef:l,style:uL,columnCount:m.qHyperCube.qSize.qcx,columnWidth:function(e){return b[e]},height:V,rowCount:A,rowHeight:O,estimatedRowHeight:N,width:i.width,itemData:B,onItemsRendered:H,onScroll:R,itemKey:sL,className:"sn-table-body"},KT)})),dL=$.memo(cL),pL=function(e){var t=e.width,n=e.height,r=e.children;return W.createElement("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n}},r)},fL=iS("div",{shouldForwardProp:function(e){return"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"isNewHeadCellMenuEnabled"!==e}})((function(e){var t=e.isNewHeadCellMenuEnabled,r=e.interactions,o=e.hoverBackground,i=e.background,a=e.applicableStyle;return n(n(n({},a),t&&{background:i}),{"&&:hover":n({},t&&{background:r.active?o:i})})})),mL=function(e){var t=e.index,o=e.style,i=e.data,a=$.useState(!1),l=a[0],s=a[1],u=i.columns,c=r(i.headerStyle,[]),d=i.columResizeHandler,p=dD(lD,(function(e){return e.baseProps})),f=p.interactions,m=p.styling.head,h=m.activeBackground,g=m.background,v=m.hoverBackground,b=dD(lD,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),y=dD(lD,(function(e){return e.showRightBorder})),S=dD(lD,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),x=u[t],E=u.length-1===t,w=!!f.active&&!b,C="right"===x.headTextAlign?"row-reverse":"row";return W.createElement(fL,{className:"sn-table-cell",title:f.passive?x.label:void 0,onClick:function(){return s(!0)},applicableStyle:c,style:n(n(n({},o),S?{cursor:"pointer"}:{cursor:"default"}),{display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:E&&!y?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:x.headTextAlign,boxSizing:"border-box",zIndex:u.length-t,flexDirection:C,userSelect:"none"}),interactions:f,hoverBackground:v,background:l?h:g,isNewHeadCellMenuEnabled:S},W.createElement(rT,{column:x,isInteractionEnabled:w,open:l,setOpen:s},W.createElement(vI,{wordBreak:!0,lines:3},x.label)),W.createElement(II,{column:x,isLastColumn:E,onColumnResize:d}))},hL=function(e,t,n,r,o){$.useLayoutEffect((function(){var t;null===(t=null==e?void 0:e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,n,e,r,o])},gL={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},vL=function(e){var t=e.rect,n=e.forwardRef,r=e.columns,o=e.pageInfo,i=e.headerStyle,a=e.rowHeight,l=e.columResizeHandler,s=dD(lD,(function(e){return e.baseProps})),u=s.layout,c=s.theme,d=dD(lD,(function(e){return e.columnWidths}));return hL(n,u,o,d,c.name()),W.createElement(FT,{ref:n,layout:"horizontal",style:gL,itemCount:u.qHyperCube.qSize.qcx,itemSize:function(e){return d[e]},height:a,width:t.width,itemData:{columns:r,headerStyle:i,columResizeHandler:l}},mL)},bL=$.memo(vL),yL=W.forwardRef((function(e,t){var n=e.children,r=e.width,o=e.height,i=e.onScroll,a=dD(lD,(function(e){return e.baseProps})).interactions;return W.createElement("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i},n)})),SL=function(e){var t=e.children,n=e.rect;return W.createElement("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:n.width,height:n.height}},t)},xL=function(e){var t=e.index,o=e.style,i=e.data,a=dD(lD,(function(e){return e.baseProps})),l=a.layout,s=a.interactions,u=dD(lD,(function(e){return e.showRightBorder})),c=i.totalsStyle;c.hoverColors;var d=r(c,["hoverColors"]),p=i.columns,f=i.totals,m=p[t].totalInfo,h=p[t].totalsTextAlign,g=l.qHyperCube.qSize.qcx-1===t;return W.createElement("div",{className:"sn-table-cell",title:s.passive?m:void 0,style:n(n(n({},o),d),{display:"flex",alignItems:f.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:g&&!u?"0px":"1px",borderTopWidth:f.atBottom?"1px":"0px",borderBottomWidth:f.atTop?"1px":"0px",padding:"4px 12px",justifyContent:h,boxSizing:"border-box",cursor:"default",fontWeight:"600"})},W.createElement(vI,{wordBreak:!Wf(m),lines:3},m))},EL=function(e){var t=e.rect,n=e.forwardRef,r=e.pageInfo,o=e.totals,i=e.rowHeight,a=e.columns,l=dD(lD,(function(e){return e.baseProps})),s=l.layout,u=l.styling,c=l.theme,d=dD(lD,(function(e){return e.columnWidths}));return hL(n,s,r,d,c.name()),W.createElement(FT,{ref:n,layout:"horizontal",style:gL,itemCount:s.qHyperCube.qSize.qcx,itemSize:function(e){return d[e]},height:i,width:t.width,itemData:{totalsStyle:u.totals,columns:a,totals:o}},xL)},wL=$.memo(EL),CL=function(e){var t=e.columns,n=e.columnWidths,r=e.pageInfo,o=e.headerRef,i=e.totalsRef,a=e.totalsPosition,l=e.isSnapshot,s=e.viewService,u=dD(lD,(function(e){return e.baseProps})).styling,c=rL({style:u.head,columnWidths:n,lineRef:o,rowCount:1,pageInfo:r,boldText:!0,columns:t,isSnapshot:l,viewService:s}),d=rL({style:u.totals,columnWidths:n,lineRef:i,rowCount:1,pageInfo:r,boldText:!0,isSnapshot:l,viewService:s});t.forEach((function(e,t){c.setCellSize(e.label,0,t),d.setCellSize(e.totalInfo,0,t,Wf(e.totalInfo))}));var p=c.getRowHeight(0)+8,f=d.getRowHeight(0),m=l?s.estimatedRowHeight:function(e){var t=e.fontSize,n=void 0===t?Uk.fontSize:t;return Math.max(24,YP(n))}(u.body);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:m,headerAndTotalsHeight:a.atTop||a.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},RL=function(e){var t,r=e.pageInfo,o=dD(lD,(function(e){return e.tableData})),i=o.totalsPosition,a=o.columns,l=o.paginationNeeded,s=dD(lD,(function(e){return e.baseProps})),u=s.layout,c=s.theme,d=s.styling,p=s.rect,f=s.viewService,m=dD(lD,(function(e){return e.columnWidths})),h=dD(lD,(function(e){return e.setYScrollbarWidth})),g=$.useRef(null),v=$.useRef(null),b=$.useRef(null),y=$.useRef(null),S=$.useRef(),x=pI(g),E=x.xScrollbarWidth,w=x.yScrollbarWidth,C=$.useMemo((function(){var e;return n(n({},d.body),{background:null!==(e=c.background.color)&&void 0!==e?e:"transparent"})}),[c.background.color,d]),R=CL({columns:a,columnWidths:m,pageInfo:r,totalsPosition:i,headerRef:v,totalsRef:b,isSnapshot:!!u.snapshotData,viewService:f}),k=R.headerRowHeight,P=R.totalsRowHeight,D=R.bodyRowHeight,A=R.headerAndTotalsHeight,I=R.resizeAllHeaderCells,T=R.resizeAllTotalCells,L=$.useMemo((function(){return function(e,t){var n=e.height-(t?41:0);return{width:e.width,height:n}}(p,l)}),[p,l]),M=$.useMemo((function(){return function(e,t,n){return{width:e.width-n,height:e.height-t}}(L,E,w)}),[L,E,w]),O=lL(u,r,M,m,D).rowCount,q=$.useState(O*D+A),N=q[0],_=q[1],F=m.reduce((function(e,t){return e+t}),0),z=function(e,t,n,r){return $.useCallback((function(o){var i,a,l,s=o.currentTarget,u=s.scrollHeight,c=s.clientHeight,d=s.scrollTop,p=s.scrollLeft,f=Math.max(0,Math.min(1,d/(u-c)));r.scrollTopRatio=f,r.scrollLeft=p,null===(i=n.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(f)?0:f,p),null===(a=e.current)||void 0===a||a.scrollTo(p),null===(l=t.current)||void 0===l||l.scrollTo(p)}),[r,n,e,t])}(v,b,y,f),j=$.useCallback((function(e,t){void 0===t&&(t=!1);var n=e+A;(N<M.height&&n>M.height||t)&&_(n)}),[N,A,M.height]),H=$.useCallback((function(){var e;g.current&&(g.current.scrollTop=0),null===(e=y.current)||void 0===e||e.resizeCells(),I(),T()}),[g,I,T]);$.useLayoutEffect((function(){g.current&&(g.current.scrollLeft=0,g.current.scrollTop=0)}),[a.length]);var B=c.name();$.useLayoutEffect((function(){g.current&&(g.current.scrollTop=0)}),[r,O,B]),sI((function(){h(w)}),[w]);var V=W.createElement(wL,{rect:M,pageInfo:r,columns:a,forwardRef:b,totals:i,rowHeight:P});return W.createElement(yL,{ref:g,width:L.width,height:L.height,onScroll:z},W.createElement(pL,{width:F,height:N},W.createElement(SL,{rect:M},(null===(t=f.viewState)||void 0===t?void 0:t.skipHeader)?null:W.createElement(bL,{headerStyle:d.head,rect:M,pageInfo:r,columns:a,forwardRef:v,rowHeight:k,columResizeHandler:H}),i.atTop?V:null,W.createElement(dL,{ref:y,innerForwardRef:S,bodyStyle:C,rect:M,pageInfo:r,columns:a,rowHeight:D,headerAndTotalsHeight:A,syncHeight:j}),i.atBottom?V:null)))},kL=$.memo(RL),PL=function(){var e=dD(lD,(function(e){return e.baseProps})),t=e.theme,n=e.keyboard,r=e.translator,o=e.interactions,i=e.rect,a=e.layout,l=dD(lD,(function(e){return e.tableData})),s=l.paginationNeeded,u=l.totalRowCount,c=l.totalColumnCount,d=l.totalPages,p=dD(lD,(function(e){return e.pageInfo})),f=dD(lD,(function(e){return e.setPage}));return W.createElement(iI,{"data-testid":"sn-table",background:t.background,dir:"ltr"},W.createElement(kL,{pageInfo:p}),W.createElement(tI,{paginationNeeded:s,handleChangePage:function(e){return f(e)},pageInfo:p,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:n,translator:r,theme:t,interactions:o,rect:i,layout:a}))},DL=$.memo(PL);var AL,IL={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。有关键盘导航的完整范围,请参阅文档。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。如需完整的鍵盤導覽,請參閱文件。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(AL||(AL={}));var TL=function(t,n){return e.useMemo((function(){return function(e){if(e&&e.get&&e.add){var t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(IL).forEach((function(t){e.add(IL[t])}))}}(n),function(){return function(e,t,n){var r=n||null;return function(n){var o,i=n.keys,a=n.shouldBeAtomic,l=void 0===a||a,s=n.politeness,u=void 0===s?"polite":s,c=i.map((function(e){if(Array.isArray(e)){var n=e[0],r=e.slice(1);return t.get(n,r)}return t.get(e)})).join(" "),d=e.querySelector(".sn-table-announcer-1"),p=e.querySelector(".sn-table-announcer-2");r===AL.FIRST?(o=p,r=AL.SECOND):(o=d,r=AL.FIRST),o.innerHTML=o.innerHTML.endsWith(" ­")?c:"".concat(c," ­"),o.setAttribute("aria-atomic",l.toString()),o.setAttribute("aria-live",u)}}(t,n)}}),[t,n.language()])},LL={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},ML=function(t){var a=t.isNewHeadCellMenuEnabled,l=t.app,s=t.model,u=t.rootElement,c=t.layout,d=t.interactions,p=t.translator,f=t.selectionsAPI,m=t.theme,h=t.changeSortOrder,g=t.keyboard,v=t.rect,b=t.embed,y=t.reactRoot,S=t.applyColumnWidths,x=t.isFontLoaded,E=t.viewService,w=e.useOptions(),C=w.direction,R=w.footerContainer,k=Qf(c,E),P=em(c,E),D=TL(u,p),A=k?{page:E.page||LL.page,rowsPerPage:E.rowsPerPage||LL.rowsPerPage,rowsPerPageOptions:LL.rowsPerPageOptions}:LL,I=e.useState(A),T=I[0],L=I[1],M=e.usePromise((function(){return o(void 0,void 0,void 0,(function(){return i(this,(function(e){return P?[2,Jf(s,c,T,L,E)]:[2,null]}))}))}),[c,T,s,d,P])[0];e.useEffect((function(){!!(P&&y&&s&&(c.snapshotData||l)&&c&&M&&h&&m&&f&&x&&b)&&function(e,t){var o=e.app,i=e.model,a=e.direction,l=e.selectionsAPI,s=e.layout,u=e.translator,c=e.interactions,d=e.theme,p=e.keyboard,f=e.rootElement,m=e.embed,h=e.changeSortOrder,g=e.applyColumnWidths,v=e.tableData,b=e.rect,y=e.viewService,S=r(e,["app","model","direction","selectionsAPI","layout","translator","interactions","theme","keyboard","rootElement","embed","changeSortOrder","applyColumnWidths","tableData","rect","viewService"]),x=pD(a);null==t||t.render(W.createElement(rv,{stylisPlugins:"rtl"===a?[xS]:void 0},W.createElement(lS,{theme:x},W.createElement(cD,{app:o,model:i,tableData:v,selectionsAPI:l,layout:s,translator:u,interactions:c,theme:d,keyboard:p,rootElement:f,embed:m,changeSortOrder:h,applyColumnWidths:g,rect:b,viewService:y,isNewHeadCellMenuEnabled:S.isNewHeadCellMenuEnabled},W.createElement(uT,n({},S,{direction:a}))))))}({app:l,model:s,rootElement:u,layout:c,tableData:M,direction:C,pageInfo:T,setPageInfo:L,interactions:d,translator:p,selectionsAPI:f,theme:m,changeSortOrder:h,keyboard:g,rect:v,footerContainer:R,announce:D,embed:b,applyColumnWidths:S,viewService:E,isNewHeadCellMenuEnabled:a},y)}),[l,s,y,M,d,C,m.name(),g.active,D,h,S,P,c,f,b,u,T,L,p,v,R,x,a])},OL=function(t,n,r){return e.useMemo((function(){return function(e,t,n){if(t)return function(r,a){return o(void 0,void 0,void 0,(function(){var o,l,s,u,c,d,p,f,m,h;return i(this,(function(i){switch(i.label){case 0:return o=r.isDim,l=r.colIdx,s=r.qReverseSort,u=r.sortDirection,c=r.isActivelySorted,d=o?l:l-e,[4,t.getEffectiveProperties()];case 1:return p=i.sent(),f=p.qHyperCubeDef.qInterColumnSortOrder,m=[],h=a&&a!==u||!a&&c,c||(f.splice(f.indexOf(l),1),f.unshift(l),m.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:"[".concat(f.join(","),"]")})),(n&&h||!n&&c)&&m.push({qPath:"/qHyperCubeDef/".concat(o?"qDimensions":"qMeasures","/").concat(d,"/qDef/qReverseSort"),qOp:"Replace",qValue:(!s).toString()}),t.applyPatches(m,!0),[2]}}))}))}}(t.qDimensionInfo.length,n,r)}),[t.qDimensionInfo.length,n,r])};var qL=function(e,t,n){return o(void 0,void 0,void 0,(function(){var r,o;return i(this,(function(i){switch(i.label){case 0:return r=t.qHyperCube.qDataPages,0===n&&void 0!==r&&0!==r.length?[3,2]:(o=n*Math.min(Gk,t.qHyperCube.qSize.qcy),[4,e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])]);case 1:r=i.sent(),i.label=2;case 2:return[2,{initialDataPages:r,derivedFrom:{layout:t,page:n}}]}}))}))},NL=function(t){var n=t.app,r=t.layout,a=t.model,l=t.rect,s=t.theme,u=t.keyboard,c=t.translator,d=t.interactions,p=t.selectionsAPI,f=t.changeSortOrder,m=t.rootElement,h=t.embed,g=t.reactRoot,v=t.applyColumnWidths,b=t.isFontLoaded,y=t.viewService,S=t.isNewHeadCellMenuEnabled,x=!em(r,y),E=e.useMemo((function(){return function(e,t,n){var r=Yf(e,n),o=Xf(e),i=e.qHyperCube.qSize.qcy,a=Math.min(Gk,i),l=i>Gk&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(r,d,y)}),[r,d,y]),w=function(t,n){var r=e.useState(0),o=r[0],i=r[1],a=Math.min(Gk,t.qHyperCube.qSize.qcy),l=e.useMemo((function(){return{page:o,rowsPerPage:a,rowsPerPageOptions:[]}}),[a,o]);if(n){var s=Math.floor(t.qHyperCube.qSize.qcy/Gk);s<o&&i(s)}return{pageInfo:l,setPage:i}}(r,x),C=w.pageInfo,R=w.setPage,k=function(t){var n=t.model,r=t.layout,a=t.shouldRender,l=t.page,s=e.usePromise((function(){return o(void 0,void 0,void 0,(function(){return i(this,(function(e){return a&&n?[2,qL(n,r,l)]:[2,void 0]}))}))}),[n,r,l])[0],u=(null==s?void 0:s.derivedFrom.layout)!==r||(null==s?void 0:s.derivedFrom.page)!==l;return{initialDataPages:null==s?void 0:s.initialDataPages,isLoading:u}}({model:a,layout:r,page:C.page,shouldRender:x}),P=k.initialDataPages,D=k.isLoading;e.useEffect((function(){x&&a&&f&&P&&!D&&b&&function(e,t){var n=e.app,r=e.selectionsAPI,o=e.layout,i=e.model,a=e.translator,l=e.interactions,s=e.theme,u=e.keyboard,c=e.rect,d=e.rootElement,p=e.embed,f=e.changeSortOrder,m=e.tableData,h=e.applyColumnWidths,g=e.setPage,v=e.pageInfo,b=e.initialDataPages,y=e.viewService,S=e.isNewHeadCellMenuEnabled,x=pD("ltr");t.render(W.createElement(W.StrictMode,null,W.createElement(lS,{theme:x},W.createElement(cD,{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:v,initialDataPages:b,viewService:y,isNewHeadCellMenuEnabled:S},W.createElement(DL,null)))))}({app:n,layout:r,model:a,rect:l,theme:s,keyboard:u,translator:c,interactions:d,selectionsAPI:p,rootElement:m,embed:h,changeSortOrder:f,tableData:E,applyColumnWidths:v,setPage:R,pageInfo:C,initialDataPages:P,viewService:y,isNewHeadCellMenuEnabled:S},g)}),[n,r,a,l,s.name(),u.active,c,d,p,f,x,m,h,g,E,v,R,C,D,P,b,S])};var _L={properties:{initial:{version:JSON.stringify("2.9.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]}},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:zf,exportProperties:_f};function FL(e,t){var n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};var r=(null==n?void 0:n.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:r.y+i.height+(t.atTop?l.height:0),bottom:r.y+r.height-(t.atBottom?l.height:0)},c=function(e,t){if(!e)return-1;for(var n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1}(s,u),d=function(e,t){if(!e)return-1;for(var n=e.length-1;n>-1;n--){var r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1}(s,u),p=function(e,t,n){if(!e||0===e.length||n<0)return 0;var r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)}(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}var zL=function(e,t){if(t)for(var n=0;n<t.length;n++){var r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},jL=function(e,t,n){if(!e)return!1;var r=e.y+e.height/2;return r>=t&&r<=n};var HL=function(e,t,n,r){var o;if(e<0)return 0;var i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||LL.rowsPerPage,l=(null===(o=r.viewState)||void 0===o?void 0:o.isMultiPage)?0:3;return Math.min(i,a,e-t+1+l)},BL=function(e,t,n){if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;var r=Yf(e,t);if(em(e,t)){var o=FL(n,r),i=o.visibleRowStartIndex,a=void 0===i?-1:i,l=o.visibleRowEndIndex,s=void 0===l?-1:l;return{rowPartialHeight:o.rowPartialHeight,scrollLeft:t.scrollLeft,visibleTop:t.qTop+a,visibleHeight:HL(s,a,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}}var u=function(e,t){var n=e.querySelector(".sn-table-body"),r=null==n?void 0:n.getBoundingClientRect(),o=null==n?void 0:n.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};var i=t.scrollTopRatio,a=void 0===i?0:i,l=t.visibleTop,s=void 0===l?0:l,u=t.visibleHeight,c=void 0===u?0:u,d=t.page,p=void 0===d?0:d,f=t.rowsPerPage,m=p*(void 0===f?0:f),h=s-m,g=h+c-1,v=zL(h,o),b=null==v?void 0:v.getBoundingClientRect();if(!v||!b)return{};var y=r.y;if(1-a<.001)return{visibleRowStartIndex:h+(b.y>=y-4?0:1)+m,visibleRowEndIndex:g+m};var S=r.y+r.height,x=(jL(b,y,S)?h:h+1)+m,E=g+m,w=zL(g,o),C=null==w?void 0:w.getBoundingClientRect();return w&&C&&(jL(C,y,S)||(E=g-1+m)),{visibleRowStartIndex:x,visibleRowEndIndex:E}}(n,t),c=u.visibleRowStartIndex,d=void 0===c?-1:c,p=u.visibleRowEndIndex,f=void 0===p?-1:p;return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:d,visibleHeight:HL(f,d,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},$L=function(e){return e.getStyle("","","object.straightTableV2.backgroundColor")},WL=function(e){return e.getStyle("object","straightTableV2","backgroundColor")};return function(t){return{qae:_L,ext:Hf(t),component:function(){var r,a=e.useElement(),l=function(t){var n=e.useMemo((function(){return nd(t)}),[t]);return e.useEffect((function(){return function(){return n.unmount()}}),[n]),n}(a),s=e.useStaleLayout(),u=e.useApp(),c=e.useModel(),d=e.useInteractionState(),p=e.useTranslator(),f=e.useSelections(),m=e.useKeyboard(),h=e.useOptions().freeResize,g=e.useRect(),v=(null===(r=null==s?void 0:s.snapshotData)||void 0===r?void 0:r.content)&&!h?n(n({},g),s.snapshotData.content.size):g,b=function(t){var n=e.useOptions().viewState;return e.useMemo((function(){return function(e,t){var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null===(n=null==t?void 0:t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(i=null===(o=null==t?void 0:t.content)||void 0===o?void 0:o.visibleTop)&&void 0!==i?i:null==e?void 0:e.visibleTop,visibleHeight:null!==(l=null===(a=null==t?void 0:t.content)||void 0===a?void 0:a.visibleHeight)&&void 0!==l?l:null==e?void 0:e.visibleHeight,scrollLeft:null!==(c=null!==(u=null===(s=null==t?void 0:t.content)||void 0===s?void 0:s.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==c?c:0,scrollTopRatio:null!==(p=null===(d=null==t?void 0:t.content)||void 0===d?void 0:d.scrollTopRatio)&&void 0!==p?p:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(m=null===(f=null==t?void 0:t.content)||void 0===f?void 0:f.rowsPerPage)&&void 0!==m?m:null==e?void 0:e.rowsPerPage,page:null!==(g=null===(h=null==t?void 0:t.content)||void 0===h?void 0:h.page)&&void 0!==g?g:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null===(v=null==t?void 0:t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}}(n,t.snapshotData)}),[n,t.snapshotData,t.usePagination])}(s),y=e.useEmbed(),S=((t,n,r)=>{const o=e.useTheme();return e.useMemo((()=>({...o,background:Bd(o,t,n,r)})),[o.name(),t,n,r])})(a,$L,WL),x=t.flags.isEnabled("HEAD_CELL_MENU_TEST_FLAG"),E=OL(s.qHyperCube,c,x),w=$f(s.qHyperCube,c),C=function(t,n){var r=eD(n,t,!1),a=r.fontSize,l=r.fontFamily,s=tD(n,t),u=s.fontSize,c=s.fontFamily,d=e.usePromise((function(){return o(void 0,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,document.fonts.load("600 ".concat(a," ").concat(l))];case 1:return e.sent(),[4,document.fonts.load("".concat(u," ").concat(c))];case 2:return e.sent(),[2,!0]}}))}))}),[a,l,u,c]),p=d[0],f=d[1];return f?(console.warn("Failed to load font:",f),!0):!!p}(S,s);!function(){var t=this;null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu((function(e,n){n.target&&n.target.closest(".sn-table-cell")&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:function(){return o(t,void 0,void 0,(function(){return i(this,(function(e){return Bf(n),[2]}))}))}})}))}(),t.flags.isEnabled("PS_20907_TABLE_DOWNLOAD")&&function(t){var n=t.layout,r=t.viewService,a=t.model,l=t.rootElement,s=t.contentRect;e.onTakeSnapshot((function(e){return o(void 0,void 0,void 0,(function(){var t,o,u,c,d,p,f,m,h,g,v;return i(this,(function(i){switch(i.label){case 0:return e.snapshotData&&a&&!e.snapshotData.content?a.getHyperCubeData?(e.qHyperCube||(e.qHyperCube={}),t=BL(n,r,l),o=t.rowPartialHeight,u=t.scrollLeft,c=t.scrollTopRatio,d=t.visibleLeft,p=t.visibleWidth,f=t.visibleTop,m=t.visibleHeight,h=t.rowsPerPage,g=t.page,v=e.qHyperCube,[4,a.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=f?f:0,qWidth:n.qHyperCube.qSize.qcx,qHeight:null!=m?m:0}])]):[3,2]:[2,e];case 1:v.qDataPages=i.sent(),e.snapshotData.content={rowPartialHeight:o,scrollLeft:u,scrollTopRatio:c,visibleLeft:d,visibleWidth:p,visibleTop:f,visibleHeight:m,rowsPerPage:h,page:g,size:{width:s.width,height:s.height},estimatedRowHeight:r.estimatedRowHeight},i.label=2;case 2:return[2,e]}}))}))})),e.useImperativeHandle((function(){return{getViewState:function(){return BL(n,r,l)}}}),[n,r,l])}({layout:s,viewService:b,model:c,rootElement:a,contentRect:g}),NL({isNewHeadCellMenuEnabled:x,app:u,layout:s,model:c,rect:v,theme:S,keyboard:m,translator:p,interactions:d,selectionsAPI:f,changeSortOrder:E,rootElement:a,embed:y,reactRoot:l,applyColumnWidths:w,isFontLoaded:C,viewService:b}),ML({isNewHeadCellMenuEnabled:x,app:u,model:c,rootElement:a,layout:s,interactions:d,translator:p,selectionsAPI:f,theme:S,changeSortOrder:E,keyboard:m,rect:v,embed:y,reactRoot:l,applyColumnWidths:w,isFontLoaded:C,viewService:b})}}}}));