@nebula.js/stardust 5.4.2 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/esm/dev.js +36 -20
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +3 -3
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +37 -22
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +12 -12
- package/dist/stardust.js.map +1 -1
- package/package.json +9 -9
- package/types/index.d.ts +6 -5
package/dist/stardust.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v5.
|
|
2
|
+
* @nebula.js/stardust v5.5.0
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).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)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),l=new I(r||[]);return o(i,"_invoke",{value:R(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(T([])));w&&w!==n&&r.call(w,i)&&(x=w);var E=y.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,i,l){var s=d(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function R(e,n,r){var o=p;return function(a,i){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var s=L(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(null!=e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},C(k.prototype),c(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(E),c(E,s,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var c={exports:{}},u={},d=Symbol.for("react.element"),p=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),w=Symbol.iterator;var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,k={};function R(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||E}function L(){}function O(e,t,n){this.props=e,this.context=t,this.refs=k,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")},L.prototype=R.prototype;var _=O.prototype=new L;_.constructor=O,C(_,R.prototype),_.isPureReactComponent=!0;var I=Array.isArray,T=Object.prototype.hasOwnProperty,P={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!M.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),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:d,type:e,key:a,ref:i,props:o,_owner:P.current}}function q(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var A=/\/+/g;function z(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 D(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case d:case p:i=!0}}if(i)return o=o(i=e),e=""===r?"."+z(i,0):r,I(o)?(n="",null!=e&&(n=e.replace(A,"$&/")+"/"),D(o,t,n,"",(function(e){return e}))):null!=o&&(q(o)&&(o=function(e,t){return{$$typeof:d,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(A,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",I(e))for(var l=0;l<e.length;l++){var s=r+z(a=e[l],l);i+=D(a,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=w&&e[w]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(a=e.next()).done;)i+=D(a=a.value,t,n,s=r+z(a,l++),o);else if("object"===a)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 i}function j(e,t,n){if(null==e)return e;var r=[],o=0;return D(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function F(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 $={current:null},B={transition:null},W={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:B,ReactCurrentOwner:P};function H(){throw Error("act(...) is not supported in production builds of React.")}u.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!q(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},u.Component=R,u.Fragment=f,u.Profiler=m,u.PureComponent=O,u.StrictMode=h,u.Suspense=y,u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,u.act=H,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=C({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=P.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)T.call(t,s)&&!M.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 c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:d,type:e.type,key:o,ref:a,props:r,_owner:i}},u.createContext=function(e){return(e={$$typeof:v,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:g,_context:e},e.Consumer=e},u.createElement=N,u.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:b,render:e}},u.isValidElement=q,u.lazy=function(e){return{$$typeof:S,_payload:{_status:-1,_result:e},_init:F}},u.memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},u.startTransition=function(e){var t=B.transition;B.transition={};try{e()}finally{B.transition=t}},u.unstable_act=H,u.useCallback=function(e,t){return $.current.useCallback(e,t)},u.useContext=function(e){return $.current.useContext(e)},u.useDebugValue=function(){},u.useDeferredValue=function(e){return $.current.useDeferredValue(e)},u.useEffect=function(e,t){return $.current.useEffect(e,t)},u.useId=function(){return $.current.useId()},u.useImperativeHandle=function(e,t,n){return $.current.useImperativeHandle(e,t,n)},u.useInsertionEffect=function(e,t){return $.current.useInsertionEffect(e,t)},u.useLayoutEffect=function(e,t){return $.current.useLayoutEffect(e,t)},u.useMemo=function(e,t){return $.current.useMemo(e,t)},u.useReducer=function(e,t,n){return $.current.useReducer(e,t,n)},u.useRef=function(e){return $.current.useRef(e)},u.useState=function(e){return $.current.useState(e)},u.useSyncExternalStore=function(e,t,n){return $.current.useSyncExternalStore(e,t,n)},u.useTransition=function(){return $.current.useTransition()},u.version="18.3.1",c.exports=u;var U=c.exports,V=n(U),G=t({__proto__:null,default:V},[U]);const K=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let a;return a=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(a,o):a}};return o}({initial:e,fallback:t});return{translator:n}};var Z={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",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}"}},Listbox_Clear_Search:{id:"Listbox.Clear.Search",locale:{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.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çilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.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":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.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ído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.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ível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function X(e){const t=K({initial:e});return Object.keys(Z).forEach((e=>{t.translator.add(Z[e])})),{translator:t.translator}}var Q={};function J(){J.init.call(this)}Q.isObject=function(e){return"object"==typeof e&&null!==e},Q.isNumber=function(e){return"number"==typeof e},Q.isUndefined=function(e){return void 0===e},Q.isFunction=function(e){return"function"==typeof e};var Y=J;J.EventEmitter=J,J.prototype._events=void 0,J.prototype._maxListeners=void 0,J.defaultMaxListeners=10,J.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},J.prototype.setMaxListeners=function(e){if(!Q.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},J.prototype.emit=function(e){var t,n,r,o,a,i;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Q.isUndefined(n))return!1;if(Q.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];n.apply(this,o)}else if(Q.isObject(n)){for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];for(r=(i=n.slice()).length,a=0;a<r;a++)i[a].apply(this,o)}return!0},J.prototype.addListener=function(e,t){var n;if(!Q.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Q.isFunction(t.listener)?t.listener:t),this._events[e]?Q.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Q.isObject(this._events[e])&&!this._events[e].warned)&&((n=Q.isUndefined(this._maxListeners)?J.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Q.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),Q.isFunction(console.trace)&&console.trace()));return this},J.prototype.on=J.prototype.addListener,J.prototype.once=function(e,t){if(!Q.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},J.prototype.removeListener=function(e,t){var n,r,o,a;if(!Q.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Q.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Q.isObject(n)){for(a=o;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},J.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Q.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},J.prototype.listeners=function(e){return this._events&&this._events[e]?Q.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},J.listenerCount=function(e,t){return e._events&&e._events[t]?Q.isFunction(e._events[t])?1:e._events[t].length:0};var ee=n(Y);function te(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ne(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function re(){}var oe=.7,ae=1/oe,ie="\\s*([+-]?\\d+)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ce=/^#([0-9a-f]{3,8})$/,ue=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),de=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),pe=new RegExp(`^rgba\\(${ie},${ie},${ie},${le}\\)$`),fe=new RegExp(`^rgba\\(${se},${se},${se},${le}\\)$`),he=new RegExp(`^hsl\\(${le},${se},${se}\\)$`),me=new RegExp(`^hsla\\(${le},${se},${se},${le}\\)$`),ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ve(){return this.rgb().formatHex()}function be(){return this.rgb().formatRgb()}function ye(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xe(t):3===n?new Ee(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Se(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Se(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ue.exec(e))?new Ee(t[1],t[2],t[3],1):(t=de.exec(e))?new Ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=pe.exec(e))?Se(t[1],t[2],t[3],t[4]):(t=fe.exec(e))?Se(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=he.exec(e))?_e(t[1],t[2]/100,t[3]/100,1):(t=me.exec(e))?_e(t[1],t[2]/100,t[3]/100,t[4]):ge.hasOwnProperty(e)?xe(ge[e]):"transparent"===e?new Ee(NaN,NaN,NaN,0):null}function xe(e){return new Ee(e>>16&255,e>>8&255,255&e,1)}function Se(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ee(e,t,n,r)}function we(e,t,n,r){return 1===arguments.length?((o=e)instanceof re||(o=ye(o)),o?new Ee((o=o.rgb()).r,o.g,o.b,o.opacity):new Ee):new Ee(e,t,n,null==r?1:r);var o}function Ee(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ce(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function ke(){const e=Re(this.opacity);return`${1===e?"rgb(":"rgba("}${Le(this.r)}, ${Le(this.g)}, ${Le(this.b)}${1===e?")":`, ${e})`}`}function Re(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Le(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=Le(e))<16?"0":"")+e.toString(16)}function _e(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Te(e,t,n,r)}function Ie(e){if(e instanceof Te)return new Te(e.h,e.s,e.l,e.opacity);if(e instanceof re||(e=ye(e)),!e)return new Te;if(e instanceof Te)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,s=(a+o)/2;return l?(i=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=s<.5?a+o:2-a-o,i*=60):l=s>0&&s<1?0:i,new Te(i,l,s,e.opacity)}function Te(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Pe(e){return(e=(e||0)%360)<0?e+360:e}function Me(e){return Math.max(0,Math.min(1,e||0))}function Ne(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}te(re,ye,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ve,formatHex:ve,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ie(this).formatHsl()},formatRgb:be,toString:be}),te(Ee,we,ne(re,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Ee(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new Ee(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ee(Le(this.r),Le(this.g),Le(this.b),Re(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:Ce,formatHex:Ce,formatHex8:function(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ke,toString:ke})),te(Te,(function(e,t,n,r){return 1===arguments.length?Ie(e):new Te(e,t,n,null==r?1:r)}),ne(re,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new Te(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 Ee(Ne(e>=240?e-240:e+120,o,r),Ne(e,o,r),Ne(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Te(Pe(this.h),Me(this.s),Me(this.l),Re(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=Re(this.opacity);return`${1===e?"hsl(":"hsla("}${Pe(this.h)}, ${100*Me(this.s)}%, ${100*Me(this.l)}%${1===e?")":`, ${e})`}`}}));var qe=Object.prototype.hasOwnProperty,Ae=Object.prototype.toString,ze=Object.defineProperty,De=Object.getOwnPropertyDescriptor,je=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Ae.call(e)},Fe=function(e){if(!e||"[object Object]"!==Ae.call(e))return!1;var t,n=qe.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&qe.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||qe.call(e,t)},$e=function(e,t){ze&&"__proto__"===t.name?ze(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Be=function(e,t){if("__proto__"===t){if(!qe.call(e,t))return;if(De)return De(e,t).value}return e[t]},We=function e(){var t,n,r,o,a,i,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=Be(l,n),l!==(o=Be(t,n))&&(u&&o&&(Fe(o)||(a=je(o)))?(a?(a=!1,i=r&&je(r)?r:[]):i=r&&Fe(r)?r:{},$e(l,{name:n,newValue:e(u,i,o)})):void 0!==o&&$e(l,{name:n,newValue:o}));return l},He=n(We),Ue={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px"},subTitle:{color:"@B50",fontSize:"12px"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},Ve={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},Ge={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},Ke={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const Ze={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},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}},Xe=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Qe=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Je=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,Ye=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,et=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,tt=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:nt}=Math,{round:rt}=Math;class ot{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,a,i,l,s,c,u,d,p,f,h,m=0,g=0,v=0,b=1;if(this._invalid=!1,t[0]instanceof ot)m=t[0]._r,g=t[0]._g,v=t[0]._b,b=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(h=t[0],f=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10);else if(f=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10),b=parseFloat(f[4]);else if(f=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))b=parseInt(f[1],10)/255,m=parseInt(f[2],10),g=parseInt(f[3],10),v=parseInt(f[4],10);else if(f=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))m=parseInt(f[1],16),g=parseInt(f[2],16),v=parseInt(f[3],16),b=1;else if(f=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))m=parseInt(f[1]+f[1],16),g=parseInt(f[2]+f[2],16),v=parseInt(f[3]+f[3],16),b=1;else if(f=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=rt(255*m),g=rt(255*g),v=rt(255*v),b=1}else if(f=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),b=parseFloat(f[7]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=rt(255*m),g=rt(255*g),v=rt(255*v)}else if(f=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),l=parseFloat(f[5]),r%=360,o/=100,l/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,l=l<0?0:l>1?1:l,s=l*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=l-s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=rt(255*m),g=rt(255*g),v=rt(255*v),b=1}else Ze[h.toLowerCase()]?(a=h.toLowerCase(),m=Ze[a].r,g=Ze[a].g,v=Ze[a].b,b="number"==typeof Ze[a].a?Ze[a].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(b=(4278190080&t[0])>>>24,b/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],v=t[2],b=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+v+b)&&(this._invalid=!0),this._r=nt(m),this._g=nt(g),this._b=nt(v),this._a=b,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=ot.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=ot.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=ot.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=ot.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=ot.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=ot.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=ot.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=ot.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let a=parseFloat(n[5]);const i=parseFloat(n[7]);return a+=e,a=Math.max(0,Math.min(a,100)),"hsla(".concat(r,",").concat(o,",").concat(a,",").concat(i,")")}isEqual(e){return e instanceof ot||(e=new ot(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=nt(this._r+(e._r-this._r)*t),r=nt(this._g+(e._g-this._g)*t),o=nt(this._b+(e._b-this._b)*t),a=nt(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,a].join(","),")")}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new ot(r)}static toRGB(e){if(e instanceof ot)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=ot.toNumber(e));const t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")}static toRGBA(e,t){if(e instanceof ot)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=ot.toNumber(e));const n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")}static toHex(e){let t,n,r;return e instanceof ot?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=ot.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))}static toHSL(e,t){let n,r,o,a=0;"string"==typeof e&&(e=new ot(e));const i=e._r/255,l=e._g/255,s=e._b/255,c=Math.max(i,l,s),u=Math.min(i,l,s);if(r=t?.21*i+.72*l+.07*s:(c+u)/2,c===u)n=0,a=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case i:a=(l-s)/o+(l<s?6:0);break;case l:a=(s-i)/o+2;break;case s:a=(i-l)/o+4}a/=6}return"hsl(".concat(360*a,",").concat(100*n,",").concat(100*r,")")}static toHSLA(e,t){let n,r,o,a=0;"string"==typeof e&&(e=new ot(e));const i=e._r/255,l=e._g/255,s=e._b/255,c=e._a,u=Math.max(i,l,s),d=Math.min(i,l,s);if(r=t?.21*i+.72*l+.07*s:(u+d)/2,u===d)n=0,a=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case i:a=(l-s)/o+(l<s?6:0);break;case l:a=(s-i)/o+2;break;case s:a=(i-l)/o+4}a/=6}return"hsla(".concat(360*a,",").concat(100*n,",").concat(100*r,",").concat(c,")")}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new ot(e));const o=e._r/255,a=e._g/255,i=e._b/255,l=Math.max(o,a,i),s=Math.min(o,a,i),c=l;if(l===s)t=0,r=0;else{switch(n=l-s,t=0===n?0:n/c,l){case o:r=(a-i)/n+(a<i?6:0);break;case a:r=(i-o)/n+2;break;case i:r=(o-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&t[0]instanceof ot)return(t[0]._r<<16)+(t[0]._g<<8)+t[0]._b;let r,o,a=0,i=0,l=0;return 1===t.length&&"string"==typeof t[0]&&(o=t[0],(r=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(o))?(a=parseInt(r[1],10),i=parseInt(r[2],10),l=parseInt(r[3],10)):(r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(o))?(a=parseInt(r[1],16),i=parseInt(r[2],16),l=parseInt(r[3],16)):(r=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(o))&&(a=parseInt(r[1]+r[1],16),i=parseInt(r[2]+r[2],16),l=parseInt(r[3]+r[3],16))),(a<<16)+(i<<8)+l}static blend(e,t,n){const r=(16711680&(e=ot.toNumber(e)))>>16,o=(65280&e)>>8,a=255&e;return(r+(((16711680&(t=ot.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(a+((255&t)-a)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,a=e._b+(t._b-e._b)*n,i=e._a+(t._a-e._a)*n;return new ot(r,o,a,i)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(Xe.test(e)||Qe.test(e)||Je.test(e)||Ye.test(e)||et.test(e)||tt.test(e)||Ze[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ot(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class at{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=ye(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([ye(e),ye(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const r=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(r);o=o===r?o-1:o;const a=this.colorParts[t][o],i=a[0],l=a[1];if(e===this.min)return l;if(e===this.max)return i;const s=function(e,t,n){return we(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(i,l,r-o);return s}}function it(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function lt(e,t,n){const r=[],o=new at(t);r.push(e[0]),n||r.push(e[0]);let a=1;for(;a<e.length-1;a++)r.push(e[a]),r.push(e[a]);r.push(e[a]),n||r.push(e[a]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function st(e,t,n){const r=[];for(let o=0;o<t+1;o++){let a;switch(t){case 0:a=e.getColor(.5);break;default:{const r=it(1/t*o,t,n);a=e.getColor(r);break}}r.push(ye(a).formatHex())}return r}function ct(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const r=lt(e,n,!0),o=lt(st(r,t-1,t),n,!1),a=[null];for(let e=0;e<t;e++)a.push(st(o,e,t));return a}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function ut(e,t){const n=[];let r,o;if(e){let a=e.length;for(;a>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),a--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function dt(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function pt(e,t,n,r){let o;if(""===e)o=ut(null,n);else{o=ut(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=dt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function ft(e,t){const n=e.split(".");return{getStyle:(e,r)=>pt(e,r,n.concat(),t)}}function ht(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?ht(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function mt(e){const t=ye(e).rgb(),{r:n,g:r,b:o}=t,[a,i,l]=[n,r,o].map((e=>e/255)),[s,c,u]=[a,i,l].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*s+.7152*c+.0722*u).toFixed(5)}ft.resolveRawTheme=e=>{const t=He(!0,{},e);return ht(t,t._variables),t.scales&&ct(t.scales,t.dataColors&&t.dataColors.nullColor),t};const gt=1e3;function vt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(mt);return{getBestContrastColor(o){if(!t[o]){n>gt&&(t={},n=0);const a=mt(o),i=r.map((e=>{return t=a,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),l=e[i.indexOf(Math.max(...i))];t[o]=l,n++}return t[o]}}}function bt(){let e,t,n,r={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor(){return t.uiColor(...arguments)},getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(r[t]||(r[t]=ft(t,e)),r[t].getStyle(n,o)),validateColor(){const e=arguments.length<=0?void 0:arguments[0];let t;if("string"==typeof e&&(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))){const e=parseInt(t[1],10)/255,n=parseInt(t[2],10),r=parseInt(t[3],10),o=parseInt(t[4],10);return"rgba(".concat(n,",").concat(r,",").concat(o,",").concat(e,")")}const n=ye(...arguments);return n?n.toString():void 0}},a={setTheme(a,i){e=function(e,t){const n="dark"===e.type?Ge:Ve;let r=Ke;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=He(!0,{},Ue,r,n),a=He(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return a.palettes.data&&a.palettes.data.length||(a.palettes.data=o.palettes.data),a.palettes.ui&&a.palettes.ui.length||(a.palettes.ui=o.palettes.ui),a.scales&&a.scales.length||(a.scales=o.scales),t(a)}(a,ft.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){const r="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),o="string"==typeof(null==e?void 0:e.color);if(!r&&!o)return;const a=(()=>(n=!!n,(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return a;const i=new ot(a);return i.setAlpha(e.alpha),i.isInvalid()?a:i.toRGBA()}}}(e);const l=o.getStyle("","","color"),s=mt(l);n=vt([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>i}};return Object.keys(ee.prototype).forEach((e=>{o[e]=ee.prototype[e]})),ee.init(o),a.setTheme({},"light"),{externalAPI:o,internalAPI:a}}const yt=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),xt=5e3;function St(e){return"auto"!==e?e:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"}var wt={},Et={exports:{}},Ct={},kt={exports:{}},Rt={};
|
|
7
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).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)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),l=new I(r||[]);return o(i,"_invoke",{value:R(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(P([])));w&&w!==n&&r.call(w,i)&&(x=w);var E=y.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,i,l){var s=d(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function R(e,n,r){var o=p;return function(a,i){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var s=L(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function P(e){if(null!=e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},C(k.prototype),c(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(E),c(E,s,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var c={exports:{}},u={},d=Symbol.for("react.element"),p=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),w=Symbol.iterator;var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,k={};function R(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||E}function L(){}function O(e,t,n){this.props=e,this.context=t,this.refs=k,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")},L.prototype=R.prototype;var _=O.prototype=new L;_.constructor=O,C(_,R.prototype),_.isPureReactComponent=!0;var I=Array.isArray,P=Object.prototype.hasOwnProperty,T={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)P.call(t,r)&&!M.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),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:d,type:e,key:a,ref:i,props:o,_owner:T.current}}function q(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var A=/\/+/g;function z(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 D(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case d:case p:i=!0}}if(i)return o=o(i=e),e=""===r?"."+z(i,0):r,I(o)?(n="",null!=e&&(n=e.replace(A,"$&/")+"/"),D(o,t,n,"",(function(e){return e}))):null!=o&&(q(o)&&(o=function(e,t){return{$$typeof:d,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(A,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",I(e))for(var l=0;l<e.length;l++){var s=r+z(a=e[l],l);i+=D(a,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=w&&e[w]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(a=e.next()).done;)i+=D(a=a.value,t,n,s=r+z(a,l++),o);else if("object"===a)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 i}function j(e,t,n){if(null==e)return e;var r=[],o=0;return D(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function F(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 $={current:null},B={transition:null},W={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:B,ReactCurrentOwner:T};function H(){throw Error("act(...) is not supported in production builds of React.")}u.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!q(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},u.Component=R,u.Fragment=f,u.Profiler=m,u.PureComponent=O,u.StrictMode=h,u.Suspense=y,u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,u.act=H,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=C({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=T.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)P.call(t,s)&&!M.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 c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:d,type:e.type,key:o,ref:a,props:r,_owner:i}},u.createContext=function(e){return(e={$$typeof:v,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:g,_context:e},e.Consumer=e},u.createElement=N,u.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:b,render:e}},u.isValidElement=q,u.lazy=function(e){return{$$typeof:S,_payload:{_status:-1,_result:e},_init:F}},u.memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},u.startTransition=function(e){var t=B.transition;B.transition={};try{e()}finally{B.transition=t}},u.unstable_act=H,u.useCallback=function(e,t){return $.current.useCallback(e,t)},u.useContext=function(e){return $.current.useContext(e)},u.useDebugValue=function(){},u.useDeferredValue=function(e){return $.current.useDeferredValue(e)},u.useEffect=function(e,t){return $.current.useEffect(e,t)},u.useId=function(){return $.current.useId()},u.useImperativeHandle=function(e,t,n){return $.current.useImperativeHandle(e,t,n)},u.useInsertionEffect=function(e,t){return $.current.useInsertionEffect(e,t)},u.useLayoutEffect=function(e,t){return $.current.useLayoutEffect(e,t)},u.useMemo=function(e,t){return $.current.useMemo(e,t)},u.useReducer=function(e,t,n){return $.current.useReducer(e,t,n)},u.useRef=function(e){return $.current.useRef(e)},u.useState=function(e){return $.current.useState(e)},u.useSyncExternalStore=function(e,t,n){return $.current.useSyncExternalStore(e,t,n)},u.useTransition=function(){return $.current.useTransition()},u.version="18.3.1",c.exports=u;var U=c.exports,V=n(U),G=t({__proto__:null,default:V},[U]);const K=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let a;return a=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(a,o):a}};return o}({initial:e,fallback:t});return{translator:n}};var Z={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",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}"}},Listbox_Clear_Search:{id:"Listbox.Clear.Search",locale:{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.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çilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.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":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.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ído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.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ível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function X(e){const t=K({initial:e});return Object.keys(Z).forEach((e=>{t.translator.add(Z[e])})),{translator:t.translator}}var Q={};function J(){J.init.call(this)}Q.isObject=function(e){return"object"==typeof e&&null!==e},Q.isNumber=function(e){return"number"==typeof e},Q.isUndefined=function(e){return void 0===e},Q.isFunction=function(e){return"function"==typeof e};var Y=J;J.EventEmitter=J,J.prototype._events=void 0,J.prototype._maxListeners=void 0,J.defaultMaxListeners=10,J.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},J.prototype.setMaxListeners=function(e){if(!Q.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},J.prototype.emit=function(e){var t,n,r,o,a,i;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Q.isUndefined(n))return!1;if(Q.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];n.apply(this,o)}else if(Q.isObject(n)){for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];for(r=(i=n.slice()).length,a=0;a<r;a++)i[a].apply(this,o)}return!0},J.prototype.addListener=function(e,t){var n;if(!Q.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Q.isFunction(t.listener)?t.listener:t),this._events[e]?Q.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Q.isObject(this._events[e])&&!this._events[e].warned)&&((n=Q.isUndefined(this._maxListeners)?J.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Q.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),Q.isFunction(console.trace)&&console.trace()));return this},J.prototype.on=J.prototype.addListener,J.prototype.once=function(e,t){if(!Q.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},J.prototype.removeListener=function(e,t){var n,r,o,a;if(!Q.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Q.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Q.isObject(n)){for(a=o;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},J.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Q.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},J.prototype.listeners=function(e){return this._events&&this._events[e]?Q.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},J.listenerCount=function(e,t){return e._events&&e._events[t]?Q.isFunction(e._events[t])?1:e._events[t].length:0};var ee=n(Y);function te(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ne(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function re(){}var oe=.7,ae=1/oe,ie="\\s*([+-]?\\d+)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ce=/^#([0-9a-f]{3,8})$/,ue=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),de=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),pe=new RegExp(`^rgba\\(${ie},${ie},${ie},${le}\\)$`),fe=new RegExp(`^rgba\\(${se},${se},${se},${le}\\)$`),he=new RegExp(`^hsl\\(${le},${se},${se}\\)$`),me=new RegExp(`^hsla\\(${le},${se},${se},${le}\\)$`),ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ve(){return this.rgb().formatHex()}function be(){return this.rgb().formatRgb()}function ye(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xe(t):3===n?new Ee(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Se(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Se(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ue.exec(e))?new Ee(t[1],t[2],t[3],1):(t=de.exec(e))?new Ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=pe.exec(e))?Se(t[1],t[2],t[3],t[4]):(t=fe.exec(e))?Se(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=he.exec(e))?_e(t[1],t[2]/100,t[3]/100,1):(t=me.exec(e))?_e(t[1],t[2]/100,t[3]/100,t[4]):ge.hasOwnProperty(e)?xe(ge[e]):"transparent"===e?new Ee(NaN,NaN,NaN,0):null}function xe(e){return new Ee(e>>16&255,e>>8&255,255&e,1)}function Se(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ee(e,t,n,r)}function we(e,t,n,r){return 1===arguments.length?((o=e)instanceof re||(o=ye(o)),o?new Ee((o=o.rgb()).r,o.g,o.b,o.opacity):new Ee):new Ee(e,t,n,null==r?1:r);var o}function Ee(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ce(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function ke(){const e=Re(this.opacity);return`${1===e?"rgb(":"rgba("}${Le(this.r)}, ${Le(this.g)}, ${Le(this.b)}${1===e?")":`, ${e})`}`}function Re(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Le(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=Le(e))<16?"0":"")+e.toString(16)}function _e(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Pe(e,t,n,r)}function Ie(e){if(e instanceof Pe)return new Pe(e.h,e.s,e.l,e.opacity);if(e instanceof re||(e=ye(e)),!e)return new Pe;if(e instanceof Pe)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,s=(a+o)/2;return l?(i=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=s<.5?a+o:2-a-o,i*=60):l=s>0&&s<1?0:i,new Pe(i,l,s,e.opacity)}function Pe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Te(e){return(e=(e||0)%360)<0?e+360:e}function Me(e){return Math.max(0,Math.min(1,e||0))}function Ne(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}te(re,ye,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ve,formatHex:ve,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ie(this).formatHsl()},formatRgb:be,toString:be}),te(Ee,we,ne(re,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Ee(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new Ee(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ee(Le(this.r),Le(this.g),Le(this.b),Re(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:Ce,formatHex:Ce,formatHex8:function(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ke,toString:ke})),te(Pe,(function(e,t,n,r){return 1===arguments.length?Ie(e):new Pe(e,t,n,null==r?1:r)}),ne(re,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Pe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new Pe(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 Ee(Ne(e>=240?e-240:e+120,o,r),Ne(e,o,r),Ne(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Pe(Te(this.h),Me(this.s),Me(this.l),Re(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=Re(this.opacity);return`${1===e?"hsl(":"hsla("}${Te(this.h)}, ${100*Me(this.s)}%, ${100*Me(this.l)}%${1===e?")":`, ${e})`}`}}));var qe=Object.prototype.hasOwnProperty,Ae=Object.prototype.toString,ze=Object.defineProperty,De=Object.getOwnPropertyDescriptor,je=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Ae.call(e)},Fe=function(e){if(!e||"[object Object]"!==Ae.call(e))return!1;var t,n=qe.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&qe.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||qe.call(e,t)},$e=function(e,t){ze&&"__proto__"===t.name?ze(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Be=function(e,t){if("__proto__"===t){if(!qe.call(e,t))return;if(De)return De(e,t).value}return e[t]},We=function e(){var t,n,r,o,a,i,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=Be(l,n),l!==(o=Be(t,n))&&(u&&o&&(Fe(o)||(a=je(o)))?(a?(a=!1,i=r&&je(r)?r:[]):i=r&&Fe(r)?r:{},$e(l,{name:n,newValue:e(u,i,o)})):void 0!==o&&$e(l,{name:n,newValue:o}));return l},He=n(We),Ue={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px"},subTitle:{color:"@B50",fontSize:"12px"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},Ve={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},Ge={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},Ke={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const Ze={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},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}},Xe=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Qe=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Je=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,Ye=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,et=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,tt=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:nt}=Math,{round:rt}=Math;class ot{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,a,i,l,s,c,u,d,p,f,h,m=0,g=0,v=0,b=1;if(this._invalid=!1,t[0]instanceof ot)m=t[0]._r,g=t[0]._g,v=t[0]._b,b=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(h=t[0],f=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10);else if(f=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10),b=parseFloat(f[4]);else if(f=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))b=parseInt(f[1],10)/255,m=parseInt(f[2],10),g=parseInt(f[3],10),v=parseInt(f[4],10);else if(f=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))m=parseInt(f[1],16),g=parseInt(f[2],16),v=parseInt(f[3],16),b=1;else if(f=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))m=parseInt(f[1]+f[1],16),g=parseInt(f[2]+f[2],16),v=parseInt(f[3]+f[3],16),b=1;else if(f=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=rt(255*m),g=rt(255*g),v=rt(255*v),b=1}else if(f=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),b=parseFloat(f[7]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=rt(255*m),g=rt(255*g),v=rt(255*v)}else if(f=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),l=parseFloat(f[5]),r%=360,o/=100,l/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,l=l<0?0:l>1?1:l,s=l*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=l-s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=rt(255*m),g=rt(255*g),v=rt(255*v),b=1}else Ze[h.toLowerCase()]?(a=h.toLowerCase(),m=Ze[a].r,g=Ze[a].g,v=Ze[a].b,b="number"==typeof Ze[a].a?Ze[a].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(b=(4278190080&t[0])>>>24,b/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],v=t[2],b=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+v+b)&&(this._invalid=!0),this._r=nt(m),this._g=nt(g),this._b=nt(v),this._a=b,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=ot.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=ot.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=ot.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=ot.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=ot.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=ot.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=ot.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=ot.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let a=parseFloat(n[5]);const i=parseFloat(n[7]);return a+=e,a=Math.max(0,Math.min(a,100)),"hsla(".concat(r,",").concat(o,",").concat(a,",").concat(i,")")}isEqual(e){return e instanceof ot||(e=new ot(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=nt(this._r+(e._r-this._r)*t),r=nt(this._g+(e._g-this._g)*t),o=nt(this._b+(e._b-this._b)*t),a=nt(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,a].join(","),")")}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new ot(r)}static toRGB(e){if(e instanceof ot)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=ot.toNumber(e));const t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")}static toRGBA(e,t){if(e instanceof ot)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=ot.toNumber(e));const n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")}static toHex(e){let t,n,r;return e instanceof ot?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=ot.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))}static toHSL(e,t){let n,r,o,a=0;"string"==typeof e&&(e=new ot(e));const i=e._r/255,l=e._g/255,s=e._b/255,c=Math.max(i,l,s),u=Math.min(i,l,s);if(r=t?.21*i+.72*l+.07*s:(c+u)/2,c===u)n=0,a=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case i:a=(l-s)/o+(l<s?6:0);break;case l:a=(s-i)/o+2;break;case s:a=(i-l)/o+4}a/=6}return"hsl(".concat(360*a,",").concat(100*n,",").concat(100*r,")")}static toHSLA(e,t){let n,r,o,a=0;"string"==typeof e&&(e=new ot(e));const i=e._r/255,l=e._g/255,s=e._b/255,c=e._a,u=Math.max(i,l,s),d=Math.min(i,l,s);if(r=t?.21*i+.72*l+.07*s:(u+d)/2,u===d)n=0,a=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case i:a=(l-s)/o+(l<s?6:0);break;case l:a=(s-i)/o+2;break;case s:a=(i-l)/o+4}a/=6}return"hsla(".concat(360*a,",").concat(100*n,",").concat(100*r,",").concat(c,")")}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new ot(e));const o=e._r/255,a=e._g/255,i=e._b/255,l=Math.max(o,a,i),s=Math.min(o,a,i),c=l;if(l===s)t=0,r=0;else{switch(n=l-s,t=0===n?0:n/c,l){case o:r=(a-i)/n+(a<i?6:0);break;case a:r=(i-o)/n+2;break;case i:r=(o-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&t[0]instanceof ot)return(t[0]._r<<16)+(t[0]._g<<8)+t[0]._b;let r,o,a=0,i=0,l=0;return 1===t.length&&"string"==typeof t[0]&&(o=t[0],(r=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(o))?(a=parseInt(r[1],10),i=parseInt(r[2],10),l=parseInt(r[3],10)):(r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(o))?(a=parseInt(r[1],16),i=parseInt(r[2],16),l=parseInt(r[3],16)):(r=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(o))&&(a=parseInt(r[1]+r[1],16),i=parseInt(r[2]+r[2],16),l=parseInt(r[3]+r[3],16))),(a<<16)+(i<<8)+l}static blend(e,t,n){const r=(16711680&(e=ot.toNumber(e)))>>16,o=(65280&e)>>8,a=255&e;return(r+(((16711680&(t=ot.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(a+((255&t)-a)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,a=e._b+(t._b-e._b)*n,i=e._a+(t._a-e._a)*n;return new ot(r,o,a,i)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(Xe.test(e)||Qe.test(e)||Je.test(e)||Ye.test(e)||et.test(e)||tt.test(e)||Ze[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ot(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class at{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=ye(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([ye(e),ye(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const r=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(r);o=o===r?o-1:o;const a=this.colorParts[t][o],i=a[0],l=a[1];if(e===this.min)return l;if(e===this.max)return i;const s=function(e,t,n){return we(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(i,l,r-o);return s}}function it(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function lt(e,t,n){const r=[],o=new at(t);r.push(e[0]),n||r.push(e[0]);let a=1;for(;a<e.length-1;a++)r.push(e[a]),r.push(e[a]);r.push(e[a]),n||r.push(e[a]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function st(e,t,n){const r=[];for(let o=0;o<t+1;o++){let a;switch(t){case 0:a=e.getColor(.5);break;default:{const r=it(1/t*o,t,n);a=e.getColor(r);break}}r.push(ye(a).formatHex())}return r}function ct(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const r=lt(e,n,!0),o=lt(st(r,t-1,t),n,!1),a=[null];for(let e=0;e<t;e++)a.push(st(o,e,t));return a}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function ut(e,t){const n=[];let r,o;if(e){let a=e.length;for(;a>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),a--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function dt(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function pt(e,t,n,r){let o;if(""===e)o=ut(null,n);else{o=ut(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=dt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function ft(e,t){const n=e.split(".");return{getStyle:(e,r)=>pt(e,r,n.concat(),t)}}function ht(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?ht(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function mt(e){const t=ye(e).rgb(),{r:n,g:r,b:o}=t,[a,i,l]=[n,r,o].map((e=>e/255)),[s,c,u]=[a,i,l].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*s+.7152*c+.0722*u).toFixed(5)}ft.resolveRawTheme=e=>{const t=He(!0,{},e);return ht(t,t._variables),t.scales&&ct(t.scales,t.dataColors&&t.dataColors.nullColor),t};const gt=1e3;function vt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(mt);return{getBestContrastColor(o){if(!t[o]){n>gt&&(t={},n=0);const a=mt(o),i=r.map((e=>{return t=a,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),l=e[i.indexOf(Math.max(...i))];t[o]=l,n++}return t[o]}}}function bt(){let e,t,n,r={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor(){return t.uiColor(...arguments)},getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(r[t]||(r[t]=ft(t,e)),r[t].getStyle(n,o)),validateColor(){const e=arguments.length<=0?void 0:arguments[0];let t;if("string"==typeof e&&(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))){const e=parseInt(t[1],10)/255,n=parseInt(t[2],10),r=parseInt(t[3],10),o=parseInt(t[4],10);return"rgba(".concat(n,",").concat(r,",").concat(o,",").concat(e,")")}const n=ye(...arguments);return n?n.toString():void 0}},a={setTheme(a,i){e=function(e,t){const n="dark"===e.type?Ge:Ve;let r=Ke;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=He(!0,{},Ue,r,n),a=He(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return a.palettes.data&&a.palettes.data.length||(a.palettes.data=o.palettes.data),a.palettes.ui&&a.palettes.ui.length||(a.palettes.ui=o.palettes.ui),a.scales&&a.scales.length||(a.scales=o.scales),t(a)}(a,ft.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){const r="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),o="string"==typeof(null==e?void 0:e.color);if(!r&&!o)return;const a=(()=>(n=!!n,(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return a;const i=new ot(a);return i.setAlpha(e.alpha),i.isInvalid()?a:i.toRGBA()}}}(e);const l=o.getStyle("","","color"),s=mt(l);n=vt([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>i}};return Object.keys(ee.prototype).forEach((e=>{o[e]=ee.prototype[e]})),ee.init(o),a.setTheme({},"light"),{externalAPI:o,internalAPI:a}}const yt=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),xt=5e3;function St(e){return"auto"!==e?e:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"}var wt={},Et={exports:{}},Ct={},kt={exports:{}},Rt={};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* scheduler.production.min.js
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,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,a=e.length,i=a>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<a&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}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 a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],c=[],u=1,d=null,p=3,f=!1,h=!1,m=!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(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function x(e){if(m=!1,y(e),!h)if(null!==n(s))h=!0,
|
|
17
|
+
!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,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,a=e.length,i=a>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<a&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}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 a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],c=[],u=1,d=null,p=3,f=!1,h=!1,m=!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(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function x(e){if(m=!1,y(e),!h)if(null!==n(s))h=!0,T(S);else{var t=n(c);null!==t&&M(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,v(k),k=-1),f=!0;var a=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!O());){var i=d.callback;if("function"==typeof i){d.callback=null,p=d.priorityLevel;var l=i(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 u=!0;else{var g=n(c);null!==g&&M(x,g.startTime-o),u=!1}return u}finally{d=null,p=a,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,E=!1,C=null,k=-1,R=5,L=-1;function O(){return!(e.unstable_now()-L<R)}function _(){if(null!==C){var t=e.unstable_now();L=t;var n=!0;try{n=C(!0,t)}finally{n?w():(E=!1,C=null)}}else E=!1}if("function"==typeof b)w=function(){b(_)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,P=I.port2;I.port1.onmessage=_,w=function(){P.postMessage(null)}}else w=function(){g(_,0)};function T(e){C=e,E||(E=!0,w())}function M(t,n){k=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(){h||f||(h=!0,T(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"):R=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,a){var i=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,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:u++,callback:o,priorityLevel:r,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(r.sortIndex=a,t(c,r),null===n(s)&&r===n(c)&&(m?(v(k),k=-1):m=!0,M(x,a-i))):(r.sortIndex=l,t(s,r),h||f||(h=!0,T(S))),r},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(Rt),kt.exports=Rt;var Lt=kt.exports,Ot=U,_t=Lt;
|
|
18
18
|
/**
|
|
19
19
|
* @license React
|
|
20
20
|
* react-dom.production.min.js
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/function It(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 Tt=new Set,Pt={};function Mt(e,t){Nt(e,t),Nt(e+"Capture",t)}function Nt(e,t){for(Pt[e]=t,e=0;e<t.length;e++)Tt.add(t[e])}var qt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),At=Object.prototype.hasOwnProperty,zt=/^[: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]*$/,Dt={},jt={};function Ft(e,t,n,r,o,a,i){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=a,this.removeEmptyString=i}var $t={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){$t[e]=new Ft(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];$t[t]=new Ft(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){$t[e]=new Ft(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){$t[e]=new Ft(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){$t[e]=new Ft(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){$t[e]=new Ft(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){$t[e]=new Ft(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){$t[e]=new Ft(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){$t[e]=new Ft(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Bt=/[\-:]([a-z])/g;function Wt(e){return e[1].toUpperCase()}function Ht(e,t,n,r){var o=$t.hasOwnProperty(t)?$t[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!!At.call(jt,e)||!At.call(Dt,e)&&(zt.test(e)?jt[e]=!0:(Dt[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(Bt,Wt);$t[t]=new Ft(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(Bt,Wt);$t[t]=new Ft(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(Bt,Wt);$t[t]=new Ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){$t[e]=new Ft(e,1,!1,e.toLowerCase(),null,!1,!1)})),$t.xlinkHref=new Ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){$t[e]=new Ft(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Ut=Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vt=Symbol.for("react.element"),Gt=Symbol.for("react.portal"),Kt=Symbol.for("react.fragment"),Zt=Symbol.for("react.strict_mode"),Xt=Symbol.for("react.profiler"),Qt=Symbol.for("react.provider"),Jt=Symbol.for("react.context"),Yt=Symbol.for("react.forward_ref"),en=Symbol.for("react.suspense"),tn=Symbol.for("react.suspense_list"),nn=Symbol.for("react.memo"),rn=Symbol.for("react.lazy"),on=Symbol.for("react.offscreen"),an=Symbol.iterator;function ln(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=an&&e[an]||e["@@iterator"])?e:null}var sn,cn=Object.assign;function un(e){if(void 0===sn)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);sn=t&&t[1]||""}return"\n"+sn+e}var dn=!1;function pn(e,t){if(!e||dn)return"";dn=!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"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{dn=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?un(e):""}function fn(e){switch(e.tag){case 5:return un(e.type);case 16:return un("Lazy");case 13:return un("Suspense");case 19:return un("SuspenseList");case 0:case 2:case 15:return e=pn(e.type,!1);case 11:return e=pn(e.type.render,!1);case 1:return e=pn(e.type,!0);default:return""}}function hn(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 Kt:return"Fragment";case Gt:return"Portal";case Xt:return"Profiler";case Zt:return"StrictMode";case en:return"Suspense";case tn:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Jt:return(e.displayName||"Context")+".Consumer";case Qt:return(e._context.displayName||"Context")+".Provider";case Yt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case nn:return null!==(t=e.displayName||null)?t:hn(e.type)||"Memo";case rn:t=e._payload,e=e._init;try{return hn(e(t))}catch(e){}}return null}function mn(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 hn(t);case 8:return t===Zt?"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 gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function vn(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function bn(e){e._valueTracker||(e._valueTracker=function(e){var t=vn(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.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 yn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vn(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xn(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 Sn(e,t){var n=t.checked;return cn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function wn(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=gn(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 En(e,t){null!=(t=t.checked)&&Ht(e,"checked",t,!1)}function Cn(e,t){En(e,t);var n=gn(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")?Rn(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rn(e,t.type,gn(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function kn(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 Rn(e,t,n){"number"===t&&xn(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ln=Array.isArray;function On(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=""+gn(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 _n(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(It(91));return cn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function In(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(It(92));if(Ln(n)){if(1<n.length)throw Error(It(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:gn(n)}}function Tn(e,t){var n=gn(t.value),r=gn(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 Pn(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Mn(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 Nn(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Mn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var qn,An,zn=(An=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((qn=qn||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=qn.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 An(e,t)}))}:An);function Dn(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 jn={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},Fn=["Webkit","ms","Moz","O"];function $n(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||jn.hasOwnProperty(e)&&jn[e]?(""+t).trim():t+"px"}function Bn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=$n(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(jn).forEach((function(e){Fn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jn[t]=jn[e]}))}));var Wn=cn({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 Hn(e,t){if(t){if(Wn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(It(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(It(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(It(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(It(62))}}function Un(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 Vn=null;function Gn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Kn=null,Zn=null,Xn=null;function Qn(e){if(e=Ui(e)){if("function"!=typeof Kn)throw Error(It(280));var t=e.stateNode;t&&(t=Gi(t),Kn(e.stateNode,e.type,t))}}function Jn(e){Zn?Xn?Xn.push(e):Xn=[e]:Zn=e}function Yn(){if(Zn){var e=Zn,t=Xn;if(Xn=Zn=null,Qn(e),t)for(e=0;e<t.length;e++)Qn(t[e])}}function er(e,t){return e(t)}function tr(){}var nr=!1;function rr(e,t,n){if(nr)return e(t,n);nr=!0;try{return er(e,t,n)}finally{nr=!1,(null!==Zn||null!==Xn)&&(tr(),Yn())}}function or(e,t){var n=e.stateNode;if(null===n)return null;var r=Gi(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(It(231,t,typeof n));return n}var ar=!1;if(qt)try{var ir={};Object.defineProperty(ir,"passive",{get:function(){ar=!0}}),window.addEventListener("test",ir,ir),window.removeEventListener("test",ir,ir)}catch(An){ar=!1}function lr(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var sr=!1,cr=null,ur=!1,dr=null,pr={onError:function(e){sr=!0,cr=e}};function fr(e,t,n,r,o,a,i,l,s){sr=!1,cr=null,lr.apply(pr,arguments)}function hr(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 mr(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 gr(e){if(hr(e)!==e)throw Error(It(188))}function vr(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=hr(e)))throw Error(It(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return gr(o),e;if(a===r)return gr(o),t;a=a.sibling}throw Error(It(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(It(189))}}if(n.alternate!==r)throw Error(It(190))}if(3!==n.tag)throw Error(It(188));return n.stateNode.current===n?e:t}(e),null!==e?br(e):null}function br(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=br(e);if(null!==t)return t;e=e.sibling}return null}var yr=_t.unstable_scheduleCallback,xr=_t.unstable_cancelCallback,Sr=_t.unstable_shouldYield,wr=_t.unstable_requestPaint,Er=_t.unstable_now,Cr=_t.unstable_getCurrentPriorityLevel,kr=_t.unstable_ImmediatePriority,Rr=_t.unstable_UserBlockingPriority,Lr=_t.unstable_NormalPriority,Or=_t.unstable_LowPriority,_r=_t.unstable_IdlePriority,Ir=null,Tr=null;var Pr=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Mr(e)/Nr|0)|0},Mr=Math.log,Nr=Math.LN2;var qr=64,Ar=4194304;function zr(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 Dr(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=zr(l):0!==(a&=i)&&(r=zr(a))}else 0!==(i=n&~o)?r=zr(i):0!==a&&(r=zr(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))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-Pr(t)),r|=e[n],t&=~o;return r}function jr(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 Fr(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function $r(){var e=qr;return 0==(4194240&(qr<<=1))&&(qr=64),e}function Br(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wr(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Pr(t)]=n}function Hr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Pr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Ur=0;function Vr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Gr,Kr,Zr,Xr,Qr,Jr=!1,Yr=[],eo=null,to=null,no=null,ro=new Map,oo=new Map,ao=[],io="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 lo(e,t){switch(e){case"focusin":case"focusout":eo=null;break;case"dragenter":case"dragleave":to=null;break;case"mouseover":case"mouseout":no=null;break;case"pointerover":case"pointerout":ro.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":oo.delete(t.pointerId)}}function so(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=Ui(t))&&Kr(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function co(e){var t=Hi(e.target);if(null!==t){var n=hr(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=mr(n)))return e.blockedOn=t,void Qr(e.priority,(function(){Zr(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 uo(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=wo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Ui(n))&&Kr(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Vn=r,n.target.dispatchEvent(r),Vn=null,t.shift()}return!0}function po(e,t,n){uo(e)&&n.delete(t)}function fo(){Jr=!1,null!==eo&&uo(eo)&&(eo=null),null!==to&&uo(to)&&(to=null),null!==no&&uo(no)&&(no=null),ro.forEach(po),oo.forEach(po)}function ho(e,t){e.blockedOn===t&&(e.blockedOn=null,Jr||(Jr=!0,_t.unstable_scheduleCallback(_t.unstable_NormalPriority,fo)))}function mo(e){function t(t){return ho(t,e)}if(0<Yr.length){ho(Yr[0],e);for(var n=1;n<Yr.length;n++){var r=Yr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==eo&&ho(eo,e),null!==to&&ho(to,e),null!==no&&ho(no,e),ro.forEach(t),oo.forEach(t),n=0;n<ao.length;n++)(r=ao[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ao.length&&null===(n=ao[0]).blockedOn;)co(n),null===n.blockedOn&&ao.shift()}var go=Ut.ReactCurrentBatchConfig,vo=!0;function bo(e,t,n,r){var o=Ur,a=go.transition;go.transition=null;try{Ur=1,xo(e,t,n,r)}finally{Ur=o,go.transition=a}}function yo(e,t,n,r){var o=Ur,a=go.transition;go.transition=null;try{Ur=4,xo(e,t,n,r)}finally{Ur=o,go.transition=a}}function xo(e,t,n,r){if(vo){var o=wo(e,t,n,r);if(null===o)gi(e,t,r,So,n),lo(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return eo=so(eo,e,t,n,r,o),!0;case"dragenter":return to=so(to,e,t,n,r,o),!0;case"mouseover":return no=so(no,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return ro.set(a,so(ro.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,oo.set(a,so(oo.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(lo(e,r),4&t&&-1<io.indexOf(e)){for(;null!==o;){var a=Ui(o);if(null!==a&&Gr(a),null===(a=wo(e,t,n,r))&&gi(e,t,r,So,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else gi(e,t,r,null,n)}}var So=null;function wo(e,t,n,r){if(So=null,null!==(e=Hi(e=Gn(r))))if(null===(t=hr(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=mr(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 So=e,null}function Eo(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(Cr()){case kr:return 1;case Rr:return 4;case Lr:case Or:return 16;case _r:return 536870912;default:return 16}default:return 16}}var Co=null,ko=null,Ro=null;function Lo(){if(Ro)return Ro;var e,t,n=ko,r=n.length,o="value"in Co?Co.value:Co.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Ro=o.slice(e,1<t?1-t:void 0)}function Oo(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 _o(){return!0}function Io(){return!1}function To(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?_o:Io,this.isPropagationStopped=Io,this}return cn(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=_o)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=_o)},persist:function(){},isPersistent:_o}),t}var Po,Mo,No,qo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ao=To(qo),zo=cn({},qo,{view:0,detail:0}),Do=To(zo),jo=cn({},zo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qo,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!==No&&(No&&"mousemove"===e.type?(Po=e.screenX-No.screenX,Mo=e.screenY-No.screenY):Mo=Po=0,No=e),Po)},movementY:function(e){return"movementY"in e?e.movementY:Mo}}),Fo=To(jo),$o=To(cn({},jo,{dataTransfer:0})),Bo=To(cn({},zo,{relatedTarget:0})),Wo=To(cn({},qo,{animationName:0,elapsedTime:0,pseudoElement:0})),Ho=cn({},qo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uo=To(Ho),Vo=To(cn({},qo,{data:0})),Go={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ko={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"},Zo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Zo[e])&&!!t[e]}function Qo(){return Xo}var Jo=cn({},zo,{key:function(e){if(e.key){var t=Go[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Oo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Ko[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qo,charCode:function(e){return"keypress"===e.type?Oo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Oo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Yo=To(Jo),ea=To(cn({},jo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ta=To(cn({},zo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qo})),na=To(cn({},qo,{propertyName:0,elapsedTime:0,pseudoElement:0})),ra=cn({},jo,{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}),oa=To(ra),aa=[9,13,27,32],ia=qt&&"CompositionEvent"in window,la=null;qt&&"documentMode"in document&&(la=document.documentMode);var sa=qt&&"TextEvent"in window&&!la,ca=qt&&(!ia||la&&8<la&&11>=la),ua=String.fromCharCode(32),da=!1;function pa(e,t){switch(e){case"keyup":return-1!==aa.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fa(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ha=!1;var ma={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 ga(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ma[e.type]:"textarea"===t}function va(e,t,n,r){Jn(r),0<(t=bi(t,"onChange")).length&&(n=new Ao("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ba=null,ya=null;function xa(e){ui(e,0)}function Sa(e){if(yn(Vi(e)))return e}function wa(e,t){if("change"===e)return t}var Ea=!1;if(qt){var Ca;if(qt){var ka="oninput"in document;if(!ka){var Ra=document.createElement("div");Ra.setAttribute("oninput","return;"),ka="function"==typeof Ra.oninput}Ca=ka}else Ca=!1;Ea=Ca&&(!document.documentMode||9<document.documentMode)}function La(){ba&&(ba.detachEvent("onpropertychange",Oa),ya=ba=null)}function Oa(e){if("value"===e.propertyName&&Sa(ya)){var t=[];va(t,ya,e,Gn(e)),rr(xa,t)}}function _a(e,t,n){"focusin"===e?(La(),ya=n,(ba=t).attachEvent("onpropertychange",Oa)):"focusout"===e&&La()}function Ia(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Sa(ya)}function Ta(e,t){if("click"===e)return Sa(t)}function Pa(e,t){if("input"===e||"change"===e)return Sa(t)}var Ma="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Na(e,t){if(Ma(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(!At.call(t,o)||!Ma(e[o],t[o]))return!1}return!0}function qa(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Aa(e,t){var n,r=qa(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=qa(r)}}function za(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?za(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Da(){for(var e=window,t=xn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=xn((e=t.contentWindow).document)}return t}function ja(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 Fa(e){var t=Da(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&za(n.ownerDocument.documentElement,n)){if(null!==r&&ja(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,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=Aa(n,a);var i=Aa(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 $a=qt&&"documentMode"in document&&11>=document.documentMode,Ba=null,Wa=null,Ha=null,Ua=!1;function Va(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Ua||null==Ba||Ba!==xn(r)||("selectionStart"in(r=Ba)&&ja(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},Ha&&Na(Ha,r)||(Ha=r,0<(r=bi(Wa,"onSelect")).length&&(t=new Ao("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ba)))}function Ga(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ka={animationend:Ga("Animation","AnimationEnd"),animationiteration:Ga("Animation","AnimationIteration"),animationstart:Ga("Animation","AnimationStart"),transitionend:Ga("Transition","TransitionEnd")},Za={},Xa={};function Qa(e){if(Za[e])return Za[e];if(!Ka[e])return e;var t,n=Ka[e];for(t in n)if(n.hasOwnProperty(t)&&t in Xa)return Za[e]=n[t];return e}qt&&(Xa=document.createElement("div").style,"AnimationEvent"in window||(delete Ka.animationend.animation,delete Ka.animationiteration.animation,delete Ka.animationstart.animation),"TransitionEvent"in window||delete Ka.transitionend.transition);var Ja=Qa("animationend"),Ya=Qa("animationiteration"),ei=Qa("animationstart"),ti=Qa("transitionend"),ni=new Map,ri="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 oi(e,t){ni.set(e,t),Mt(t,[e])}for(var ai=0;ai<ri.length;ai++){var ii=ri[ai];oi(ii.toLowerCase(),"on"+(ii[0].toUpperCase()+ii.slice(1)))}oi(Ja,"onAnimationEnd"),oi(Ya,"onAnimationIteration"),oi(ei,"onAnimationStart"),oi("dblclick","onDoubleClick"),oi("focusin","onFocus"),oi("focusout","onBlur"),oi(ti,"onTransitionEnd"),Nt("onMouseEnter",["mouseout","mouseover"]),Nt("onMouseLeave",["mouseout","mouseover"]),Nt("onPointerEnter",["pointerout","pointerover"]),Nt("onPointerLeave",["pointerout","pointerover"]),Mt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Mt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Mt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Mt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Mt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Mt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var li="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(" "),si=new Set("cancel close invalid load scroll toggle".split(" ").concat(li));function ci(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,s){if(fr.apply(this,arguments),sr){if(!sr)throw Error(It(198));var c=cr;sr=!1,cr=null,ur||(ur=!0,dr=c)}}(r,t,void 0,e),e.currentTarget=null}function ui(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 a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;ci(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;ci(o,l,c),a=s}}}if(ur)throw e=dr,ur=!1,dr=null,e}function di(e,t){var n=t[$i];void 0===n&&(n=t[$i]=new Set);var r=e+"__bubble";n.has(r)||(mi(t,e,2,!1),n.add(r))}function pi(e,t,n){var r=0;t&&(r|=4),mi(n,e,r,t)}var fi="_reactListening"+Math.random().toString(36).slice(2);function hi(e){if(!e[fi]){e[fi]=!0,Tt.forEach((function(t){"selectionchange"!==t&&(si.has(t)||pi(t,!1,e),pi(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[fi]||(t[fi]=!0,pi("selectionchange",!1,t))}}function mi(e,t,n,r){switch(Eo(t)){case 1:var o=bo;break;case 4:o=yo;break;default:o=xo}n=o.bind(null,t,n,e),o=void 0,!ar||"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 gi(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=Hi(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}rr((function(){var r=a,o=Gn(n),i=[];e:{var l=ni.get(e);if(void 0!==l){var s=Ao,c=e;switch(e){case"keypress":if(0===Oo(n))break e;case"keydown":case"keyup":s=Yo;break;case"focusin":c="focus",s=Bo;break;case"focusout":c="blur",s=Bo;break;case"beforeblur":case"afterblur":s=Bo;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=Fo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=$o;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=ta;break;case Ja:case Ya:case ei:s=Wo;break;case ti:s=na;break;case"scroll":s=Do;break;case"wheel":s=oa;break;case"copy":case"cut":case"paste":s=Uo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=ea}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==l?l+"Capture":null:l;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=or(h,p))&&u.push(vi(h,m,f)))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),i.push({event:l,listeners:u}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Vn||!(c=n.relatedTarget||n.fromElement)||!Hi(c)&&!c[Fi])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?Hi(c):null)&&(c!==(d=hr(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=Fo,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=ea,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:Vi(s),f=null==c?l:Vi(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,Hi(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,s&&c)e:{for(p=c,h=0,f=u=s;f;f=yi(f))h++;for(f=0,m=p;m;m=yi(m))f++;for(;0<h-f;)u=yi(u),h--;for(;0<f-h;)p=yi(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=yi(u),p=yi(p)}u=null}else u=null;null!==s&&xi(i,l,s,u,!1),null!==c&&null!==d&&xi(i,d,c,u,!0)}if("select"===(s=(l=r?Vi(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=wa;else if(ga(l))if(Ea)g=Pa;else{g=Ia;var v=_a}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=Ta);switch(g&&(g=g(e,r))?va(i,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&Rn(l,"number",l.value)),v=r?Vi(r):window,e){case"focusin":(ga(v)||"true"===v.contentEditable)&&(Ba=v,Wa=r,Ha=null);break;case"focusout":Ha=Wa=Ba=null;break;case"mousedown":Ua=!0;break;case"contextmenu":case"mouseup":case"dragend":Ua=!1,Va(i,n,o);break;case"selectionchange":if($a)break;case"keydown":case"keyup":Va(i,n,o)}var b;if(ia)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 ha?pa(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(ca&&"ko"!==n.locale&&(ha||"onCompositionStart"!==y?"onCompositionEnd"===y&&ha&&(b=Lo()):(ko="value"in(Co=o)?Co.value:Co.textContent,ha=!0)),0<(v=bi(r,y)).length&&(y=new Vo(y,e,null,n,o),i.push({event:y,listeners:v}),b?y.data=b:null!==(b=fa(n))&&(y.data=b))),(b=sa?function(e,t){switch(e){case"compositionend":return fa(t);case"keypress":return 32!==t.which?null:(da=!0,ua);case"textInput":return(e=t.data)===ua&&da?null:e;default:return null}}(e,n):function(e,t){if(ha)return"compositionend"===e||!ia&&pa(e,t)?(e=Lo(),Ro=ko=Co=null,ha=!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 ca&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=bi(r,"onBeforeInput")).length&&(o=new Vo("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=b))}ui(i,t)}))}function vi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bi(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=or(e,n))&&r.unshift(vi(e,a,o)),null!=(a=or(e,t))&&r.push(vi(e,a,o))),e=e.return}return r}function yi(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function xi(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=or(n,a))&&i.unshift(vi(n,s,l)):o||null!=(s=or(n,a))&&i.push(vi(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Si=/\r\n?/g,wi=/\u0000|\uFFFD/g;function Ei(e){return("string"==typeof e?e:""+e).replace(Si,"\n").replace(wi,"")}function Ci(e,t,n){if(t=Ei(t),Ei(e)!==t&&n)throw Error(It(425))}function ki(){}var Ri=null,Li=null;function Oi(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 _i="function"==typeof setTimeout?setTimeout:void 0,Ii="function"==typeof clearTimeout?clearTimeout:void 0,Ti="function"==typeof Promise?Promise:void 0,Pi="function"==typeof queueMicrotask?queueMicrotask:void 0!==Ti?function(e){return Ti.resolve(null).then(e).catch(Mi)}:_i;function Mi(e){setTimeout((function(){throw e}))}function Ni(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 mo(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);mo(t)}function qi(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 Ai(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 zi=Math.random().toString(36).slice(2),Di="__reactFiber$"+zi,ji="__reactProps$"+zi,Fi="__reactContainer$"+zi,$i="__reactEvents$"+zi,Bi="__reactListeners$"+zi,Wi="__reactHandles$"+zi;function Hi(e){var t=e[Di];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Fi]||n[Di]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ai(e);null!==e;){if(n=e[Di])return n;e=Ai(e)}return t}n=(e=n).parentNode}return null}function Ui(e){return!(e=e[Di]||e[Fi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Vi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(It(33))}function Gi(e){return e[ji]||null}var Ki=[],Zi=-1;function Xi(e){return{current:e}}function Qi(e){0>Zi||(e.current=Ki[Zi],Ki[Zi]=null,Zi--)}function Ji(e,t){Zi++,Ki[Zi]=e.current,e.current=t}var Yi={},el=Xi(Yi),tl=Xi(!1),nl=Yi;function rl(e,t){var n=e.type.contextTypes;if(!n)return Yi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ol(e){return null!=(e=e.childContextTypes)}function al(){Qi(tl),Qi(el)}function il(e,t,n){if(el.current!==Yi)throw Error(It(168));Ji(el,t),Ji(tl,n)}function ll(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(It(108,mn(e)||"Unknown",o));return cn({},n,r)}function sl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yi,nl=el.current,Ji(el,e),Ji(tl,tl.current),!0}function cl(e,t,n){var r=e.stateNode;if(!r)throw Error(It(169));n?(e=ll(e,t,nl),r.__reactInternalMemoizedMergedChildContext=e,Qi(tl),Qi(el),Ji(el,e)):Qi(tl),Ji(tl,n)}var ul=null,dl=!1,pl=!1;function fl(e){null===ul?ul=[e]:ul.push(e)}function hl(){if(!pl&&null!==ul){pl=!0;var e=0,t=Ur;try{var n=ul;for(Ur=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}ul=null,dl=!1}catch(t){throw null!==ul&&(ul=ul.slice(e+1)),yr(kr,hl),t}finally{Ur=t,pl=!1}}return null}var ml=[],gl=0,vl=null,bl=0,yl=[],xl=0,Sl=null,wl=1,El="";function Cl(e,t){ml[gl++]=bl,ml[gl++]=vl,vl=e,bl=t}function kl(e,t,n){yl[xl++]=wl,yl[xl++]=El,yl[xl++]=Sl,Sl=e;var r=wl;e=El;var o=32-Pr(r)-1;r&=~(1<<o),n+=1;var a=32-Pr(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,wl=1<<32-Pr(t)+o|n<<o|r,El=a+e}else wl=1<<a|n<<o|r,El=e}function Rl(e){null!==e.return&&(Cl(e,1),kl(e,1,0))}function Ll(e){for(;e===vl;)vl=ml[--gl],ml[gl]=null,bl=ml[--gl],ml[gl]=null;for(;e===Sl;)Sl=yl[--xl],yl[xl]=null,El=yl[--xl],yl[xl]=null,wl=yl[--xl],yl[xl]=null}var Ol=null,_l=null,Il=!1,Tl=null;function Pl(e,t){var n=np(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 Ml(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,Ol=e,_l=qi(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Ol=e,_l=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Sl?{id:wl,overflow:El}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=np(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Ol=e,_l=null,!0);default:return!1}}function Nl(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ql(e){if(Il){var t=_l;if(t){var n=t;if(!Ml(e,t)){if(Nl(e))throw Error(It(418));t=qi(n.nextSibling);var r=Ol;t&&Ml(e,t)?Pl(r,n):(e.flags=-4097&e.flags|2,Il=!1,Ol=e)}}else{if(Nl(e))throw Error(It(418));e.flags=-4097&e.flags|2,Il=!1,Ol=e}}}function Al(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ol=e}function zl(e){if(e!==Ol)return!1;if(!Il)return Al(e),Il=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Oi(e.type,e.memoizedProps)),t&&(t=_l)){if(Nl(e))throw Dl(),Error(It(418));for(;t;)Pl(e,t),t=qi(t.nextSibling)}if(Al(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(It(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){_l=qi(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}_l=null}}else _l=Ol?qi(e.stateNode.nextSibling):null;return!0}function Dl(){for(var e=_l;e;)e=qi(e.nextSibling)}function jl(){_l=Ol=null,Il=!1}function Fl(e){null===Tl?Tl=[e]:Tl.push(e)}var $l=Ut.ReactCurrentBatchConfig;function Bl(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(It(309));var r=n.stateNode}if(!r)throw Error(It(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(It(284));if(!n._owner)throw Error(It(290,e))}return e}function Wl(e,t){throw e=Object.prototype.toString.call(t),Error(It(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hl(e){return(0,e._init)(e._payload)}function Ul(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=op(e,t)).index=0,e.sibling=null,e}function a(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 i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=sp(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var a=n.type;return a===Kt?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===rn&&Hl(a)===t.type)?((r=o(t,n.props)).ref=Bl(e,t,n),r.return=e,r):((r=ap(n.type,n.key,n.props,null,e.mode,r)).ref=Bl(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=cp(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,a){return null===t||7!==t.tag?((t=ip(n,e.mode,r,a)).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=sp(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Vt:return(n=ap(t.type,t.key,t.props,null,e.mode,n)).ref=Bl(e,null,t),n.return=e,n;case Gt:return(t=cp(t,e.mode,n)).return=e,t;case rn:return d(e,(0,t._init)(t._payload),n)}if(Ln(t)||ln(t))return(t=ip(t,e.mode,n,null)).return=e,t;Wl(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 Vt:return n.key===o?s(e,t,n,r):null;case Gt:return n.key===o?c(e,t,n,r):null;case rn:return p(e,t,(o=n._init)(n._payload),r)}if(Ln(n)||ln(n))return null!==o?null:u(e,t,n,r,null);Wl(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 Vt:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Gt:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case rn:return f(e,t,n,(0,r._init)(r._payload),o)}if(Ln(r)||ln(r))return u(t,e=e.get(n)||null,r,o,null);Wl(t,r)}return null}function h(o,i,l,s){for(var c=null,u=null,h=i,m=i=0,g=null;null!==h&&m<l.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=p(o,h,l[m],s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===l.length)return n(o,h),Il&&Cl(o,m),c;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(i=a(h,i,m),null===u?c=h:u.sibling=h,u=h);return Il&&Cl(o,m),c}for(h=r(o,h);m<l.length;m++)null!==(g=f(h,o,m,l[m],s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach((function(e){return t(o,e)})),Il&&Cl(o,m),c}function m(o,i,l,s){var c=ln(l);if("function"!=typeof c)throw Error(It(150));if(null==(l=c.call(l)))throw Error(It(151));for(var u=c=null,h=i,m=i=0,g=null,v=l.next();null!==h&&!v.done;m++,v=l.next()){h.index>m?(g=h,h=null):g=h.sibling;var b=p(o,h,v.value,s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),i=a(b,i,m),null===u?c=b:u.sibling=b,u=b,h=g}if(v.done)return n(o,h),Il&&Cl(o,m),c;if(null===h){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,s))&&(i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return Il&&Cl(o,m),c}for(h=r(o,h);!v.done;m++,v=l.next())null!==(v=f(h,o,m,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return e&&h.forEach((function(e){return t(o,e)})),Il&&Cl(o,m),c}return function e(r,a,l,s){if("object"==typeof l&&null!==l&&l.type===Kt&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case Vt:e:{for(var c=l.key,u=a;null!==u;){if(u.key===c){if((c=l.type)===Kt){if(7===u.tag){n(r,u.sibling),(a=o(u,l.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===rn&&Hl(c)===u.type){n(r,u.sibling),(a=o(u,l.props)).ref=Bl(r,u,l),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}l.type===Kt?((a=ip(l.props.children,r.mode,s,l.key)).return=r,r=a):((s=ap(l.type,l.key,l.props,null,r.mode,s)).ref=Bl(r,a,l),s.return=r,r=s)}return i(r);case Gt:e:{for(u=l.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===l.containerInfo&&a.stateNode.implementation===l.implementation){n(r,a.sibling),(a=o(a,l.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=cp(l,r.mode,s)).return=r,r=a}return i(r);case rn:return e(r,a,(u=l._init)(l._payload),s)}if(Ln(l))return h(r,a,l,s);if(ln(l))return m(r,a,l,s);Wl(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,l)).return=r,r=a):(n(r,a),(a=sp(l,r.mode,s)).return=r,r=a),i(r)):n(r,a)}}var Vl=Ul(!0),Gl=Ul(!1),Kl=Xi(null),Zl=null,Xl=null,Ql=null;function Jl(){Ql=Xl=Zl=null}function Yl(e){var t=Kl.current;Qi(Kl),e._currentValue=t}function es(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 ts(e,t){Zl=e,Ql=Xl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Hc=!0),e.firstContext=null)}function ns(e){var t=e._currentValue;if(Ql!==e)if(e={context:e,memoizedValue:t,next:null},null===Xl){if(null===Zl)throw Error(It(308));Xl=e,Zl.dependencies={lanes:0,firstContext:e}}else Xl=Xl.next=e;return t}var rs=null;function os(e){null===rs?rs=[e]:rs.push(e)}function as(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,os(t)):(n.next=o.next,o.next=n),t.interleaved=n,is(e,r)}function is(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 ls=!1;function ss(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cs(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 us(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ds(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Yu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,is(e,n)}return null===(o=r.interleaved)?(t.next=t,os(r)):(t.next=o.next,o.next=t),r.interleaved=t,is(e,n)}function ps(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,Hr(e,n)}}function fs(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hs(e,t,n,r){var o=e.updateQueue;ls=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==a){var d=o.baseState;for(i=0,u=c=s=null,l=a;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=cn({},d,p);break e;case 2:ls=!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===u?(c=u=f,s=d):u=u.next=f,i|=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===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);ld|=i,e.lanes=i,e.memoizedState=d}}function ms(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(It(191,o));o.call(r)}}}var gs={},vs=Xi(gs),bs=Xi(gs),ys=Xi(gs);function xs(e){if(e===gs)throw Error(It(174));return e}function Ss(e,t){switch(Ji(ys,t),Ji(bs,e),Ji(vs,gs),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Nn(null,"");break;default:t=Nn(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Qi(vs),Ji(vs,t)}function ws(){Qi(vs),Qi(bs),Qi(ys)}function Es(e){xs(ys.current);var t=xs(vs.current),n=Nn(t,e.type);t!==n&&(Ji(bs,e),Ji(vs,n))}function Cs(e){bs.current===e&&(Qi(vs),Qi(bs))}var ks=Xi(0);function Rs(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 Ls=[];function Os(){for(var e=0;e<Ls.length;e++)Ls[e]._workInProgressVersionPrimary=null;Ls.length=0}var _s=Ut.ReactCurrentDispatcher,Is=Ut.ReactCurrentBatchConfig,Ts=0,Ps=null,Ms=null,Ns=null,qs=!1,As=!1,zs=0,Ds=0;function js(){throw Error(It(321))}function Fs(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ma(e[n],t[n]))return!1;return!0}function $s(e,t,n,r,o,a){if(Ts=a,Ps=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_s.current=null===e||null===e.memoizedState?Cc:kc,e=n(r,o),As){a=0;do{if(As=!1,zs=0,25<=a)throw Error(It(301));a+=1,Ns=Ms=null,t.updateQueue=null,_s.current=Rc,e=n(r,o)}while(As)}if(_s.current=Ec,t=null!==Ms&&null!==Ms.next,Ts=0,Ns=Ms=Ps=null,qs=!1,t)throw Error(It(300));return e}function Bs(){var e=0!==zs;return zs=0,e}function Ws(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ns?Ps.memoizedState=Ns=e:Ns=Ns.next=e,Ns}function Hs(){if(null===Ms){var e=Ps.alternate;e=null!==e?e.memoizedState:null}else e=Ms.next;var t=null===Ns?Ps.memoizedState:Ns.next;if(null!==t)Ns=t,Ms=e;else{if(null===e)throw Error(It(310));e={memoizedState:(Ms=e).memoizedState,baseState:Ms.baseState,baseQueue:Ms.baseQueue,queue:Ms.queue,next:null},null===Ns?Ps.memoizedState=Ns=e:Ns=Ns.next=e}return Ns}function Us(e,t){return"function"==typeof t?t(e):t}function Vs(e){var t=Hs(),n=t.queue;if(null===n)throw Error(It(311));n.lastRenderedReducer=e;var r=Ms,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=i=null,s=null,c=a;do{var u=c.lane;if((Ts&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,Ps.lanes|=u,ld|=u}c=c.next}while(null!==c&&c!==a);null===s?i=r:s.next=l,Ma(r,t.memoizedState)||(Hc=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,Ps.lanes|=a,ld|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Gs(e){var t=Hs(),n=t.queue;if(null===n)throw Error(It(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Ma(a,t.memoizedState)||(Hc=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ks(){}function Zs(e,t){var n=Ps,r=Hs(),o=t(),a=!Ma(r.memoizedState,o);if(a&&(r.memoizedState=o,Hc=!0),r=r.queue,lc(Js.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==Ns&&1&Ns.memoizedState.tag){if(n.flags|=2048,nc(9,Qs.bind(null,n,r,o,t),void 0,null),null===ed)throw Error(It(349));0!=(30&Ts)||Xs(n,t,o)}return o}function Xs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Ps.updateQueue)?(t={lastEffect:null,stores:null},Ps.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Qs(e,t,n,r){t.value=n,t.getSnapshot=r,Ys(t)&&ec(e)}function Js(e,t,n){return n((function(){Ys(t)&&ec(e)}))}function Ys(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ma(e,n)}catch(e){return!0}}function ec(e){var t=is(e,1);null!==t&&Ld(t,e,1,-1)}function tc(e){var t=Ws();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Us,lastRenderedState:e},t.queue=e,e=e.dispatch=yc.bind(null,Ps,e),[t.memoizedState,e]}function nc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ps.updateQueue)?(t={lastEffect:null,stores:null},Ps.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 rc(){return Hs().memoizedState}function oc(e,t,n,r){var o=Ws();Ps.flags|=e,o.memoizedState=nc(1|t,n,void 0,void 0===r?null:r)}function ac(e,t,n,r){var o=Hs();r=void 0===r?null:r;var a=void 0;if(null!==Ms){var i=Ms.memoizedState;if(a=i.destroy,null!==r&&Fs(r,i.deps))return void(o.memoizedState=nc(t,n,a,r))}Ps.flags|=e,o.memoizedState=nc(1|t,n,a,r)}function ic(e,t){return oc(8390656,8,e,t)}function lc(e,t){return ac(2048,8,e,t)}function sc(e,t){return ac(4,2,e,t)}function cc(e,t){return ac(4,4,e,t)}function uc(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 dc(e,t,n){return n=null!=n?n.concat([e]):null,ac(4,4,uc.bind(null,t,e),n)}function pc(){}function fc(e,t){var n=Hs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Fs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function hc(e,t){var n=Hs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Fs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function mc(e,t,n){return 0==(21&Ts)?(e.baseState&&(e.baseState=!1,Hc=!0),e.memoizedState=n):(Ma(n,t)||(n=$r(),Ps.lanes|=n,ld|=n,e.baseState=!0),t)}function gc(e,t){var n=Ur;Ur=0!==n&&4>n?n:4,e(!0);var r=Is.transition;Is.transition={};try{e(!1),t()}finally{Ur=n,Is.transition=r}}function vc(){return Hs().memoizedState}function bc(e,t,n){var r=Rd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xc(e))Sc(t,n);else if(null!==(n=as(e,t,n,r))){Ld(n,e,r,kd()),wc(n,t,r)}}function yc(e,t,n){var r=Rd(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xc(e))Sc(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,Ma(l,i)){var s=t.interleaved;return null===s?(o.next=o,os(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=as(e,t,o,r))&&(Ld(n,e,r,o=kd()),wc(n,t,r))}}function xc(e){var t=e.alternate;return e===Ps||null!==t&&t===Ps}function Sc(e,t){As=qs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wc(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Hr(e,n)}}var Ec={readContext:ns,useCallback:js,useContext:js,useEffect:js,useImperativeHandle:js,useInsertionEffect:js,useLayoutEffect:js,useMemo:js,useReducer:js,useRef:js,useState:js,useDebugValue:js,useDeferredValue:js,useTransition:js,useMutableSource:js,useSyncExternalStore:js,useId:js,unstable_isNewReconciler:!1},Cc={readContext:ns,useCallback:function(e,t){return Ws().memoizedState=[e,void 0===t?null:t],e},useContext:ns,useEffect:ic,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oc(4194308,4,uc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oc(4194308,4,e,t)},useInsertionEffect:function(e,t){return oc(4,2,e,t)},useMemo:function(e,t){var n=Ws();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ws();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=bc.bind(null,Ps,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ws().memoizedState=e},useState:tc,useDebugValue:pc,useDeferredValue:function(e){return Ws().memoizedState=e},useTransition:function(){var e=tc(!1),t=e[0];return e=gc.bind(null,e[1]),Ws().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ps,o=Ws();if(Il){if(void 0===n)throw Error(It(407));n=n()}else{if(n=t(),null===ed)throw Error(It(349));0!=(30&Ts)||Xs(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,ic(Js.bind(null,r,a,e),[e]),r.flags|=2048,nc(9,Qs.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ws(),t=ed.identifierPrefix;if(Il){var n=El;t=":"+t+"R"+(n=(wl&~(1<<32-Pr(wl)-1)).toString(32)+n),0<(n=zs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ds++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kc={readContext:ns,useCallback:fc,useContext:ns,useEffect:lc,useImperativeHandle:dc,useInsertionEffect:sc,useLayoutEffect:cc,useMemo:hc,useReducer:Vs,useRef:rc,useState:function(){return Vs(Us)},useDebugValue:pc,useDeferredValue:function(e){return mc(Hs(),Ms.memoizedState,e)},useTransition:function(){return[Vs(Us)[0],Hs().memoizedState]},useMutableSource:Ks,useSyncExternalStore:Zs,useId:vc,unstable_isNewReconciler:!1},Rc={readContext:ns,useCallback:fc,useContext:ns,useEffect:lc,useImperativeHandle:dc,useInsertionEffect:sc,useLayoutEffect:cc,useMemo:hc,useReducer:Gs,useRef:rc,useState:function(){return Gs(Us)},useDebugValue:pc,useDeferredValue:function(e){var t=Hs();return null===Ms?t.memoizedState=e:mc(t,Ms.memoizedState,e)},useTransition:function(){return[Gs(Us)[0],Hs().memoizedState]},useMutableSource:Ks,useSyncExternalStore:Zs,useId:vc,unstable_isNewReconciler:!1};function Lc(e,t){if(e&&e.defaultProps){for(var n in t=cn({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Oc(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:cn({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var _c={isMounted:function(e){return!!(e=e._reactInternals)&&hr(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=kd(),o=Rd(e),a=us(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=ds(e,a,o))&&(Ld(t,e,o,r),ps(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=kd(),o=Rd(e),a=us(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=ds(e,a,o))&&(Ld(t,e,o,r),ps(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kd(),r=Rd(e),o=us(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=ds(e,o,r))&&(Ld(t,e,r,n),ps(t,e,r))}};function Ic(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!Na(n,r)||!Na(o,a))}function Tc(e,t,n){var r=!1,o=Yi,a=t.contextType;return"object"==typeof a&&null!==a?a=ns(a):(o=ol(t)?nl:el.current,a=(r=null!=(r=t.contextTypes))?rl(e,o):Yi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=_c,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Pc(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&&_c.enqueueReplaceState(t,t.state,null)}function Mc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ss(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=ns(a):(a=ol(t)?nl:el.current,o.context=rl(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Oc(e,t,a,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&&_c.enqueueReplaceState(o,o.state,null),hs(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Nc(e,t){try{var n="",r=t;do{n+=fn(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 qc(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Ac(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var zc="function"==typeof WeakMap?WeakMap:Map;function Dc(e,t,n){(n=us(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){md||(md=!0,gd=r),Ac(0,t)},n}function jc(e,t,n){(n=us(-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(){Ac(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){Ac(0,t),"function"!=typeof r&&(null===vd?vd=new Set([this]):vd.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Fc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new zc;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=Xd.bind(null,e,t,n),t.then(e,e))}function $c(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 Bc(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=us(-1,1)).tag=2,ds(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Wc=Ut.ReactCurrentOwner,Hc=!1;function Uc(e,t,n,r){t.child=null===e?Gl(t,null,n,r):Vl(t,e.child,n,r)}function Vc(e,t,n,r,o){n=n.render;var a=t.ref;return ts(t,o),r=$s(e,t,n,r,a,o),n=Bs(),null===e||Hc?(Il&&n&&Rl(t),t.flags|=1,Uc(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,mu(e,t,o))}function Gc(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||rp(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ap(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Kc(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:Na)(i,r)&&e.ref===t.ref)return mu(e,t,o)}return t.flags|=1,(e=op(a,r)).ref=t.ref,e.return=t,t.child=e}function Kc(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(Na(a,r)&&e.ref===t.ref){if(Hc=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,mu(e,t,o);0!=(131072&e.flags)&&(Hc=!0)}}return Qc(e,t,n,r,o)}function Zc(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ji(od,rd),rd|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ji(od,rd),rd|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Ji(od,rd),rd|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ji(od,rd),rd|=r;return Uc(e,t,o,n),t.child}function Xc(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Qc(e,t,n,r,o){var a=ol(n)?nl:el.current;return a=rl(t,a),ts(t,o),n=$s(e,t,n,r,a,o),r=Bs(),null===e||Hc?(Il&&r&&Rl(t),t.flags|=1,Uc(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,mu(e,t,o))}function Jc(e,t,n,r,o){if(ol(n)){var a=!0;sl(t)}else a=!1;if(ts(t,o),null===t.stateNode)hu(e,t),Tc(t,n,r),Mc(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=ns(c):c=rl(t,c=ol(n)?nl:el.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==c)&&Pc(t,i,r,c),ls=!1;var p=t.memoizedState;i.state=p,hs(t,r,i,o),s=t.memoizedState,l!==r||p!==s||tl.current||ls?("function"==typeof u&&(Oc(t,n,u,r),s=t.memoizedState),(l=ls||Ic(t,n,l,r,p,s,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=c,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,cs(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Lc(t.type,l),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=ns(s):s=rl(t,s=ol(n)?nl:el.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||p!==s)&&Pc(t,i,r,s),ls=!1,p=t.memoizedState,i.state=p,hs(t,r,i,o);var h=t.memoizedState;l!==d||p!==h||tl.current||ls?("function"==typeof f&&(Oc(t,n,f,r),h=t.memoizedState),(c=ls||Ic(t,n,c,r,p,h,s)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Yc(e,t,n,r,a,o)}function Yc(e,t,n,r,o,a){Xc(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&cl(t,n,!1),mu(e,t,a);r=t.stateNode,Wc.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Vl(t,e.child,null,a),t.child=Vl(t,null,l,a)):Uc(e,t,l,a),t.memoizedState=r.state,o&&cl(t,n,!0),t.child}function eu(e){var t=e.stateNode;t.pendingContext?il(0,t.pendingContext,t.pendingContext!==t.context):t.context&&il(0,t.context,!1),Ss(e,t.containerInfo)}function tu(e,t,n,r,o){return jl(),Fl(o),t.flags|=256,Uc(e,t,n,r),t.child}var nu,ru,ou,au,iu={dehydrated:null,treeContext:null,retryLane:0};function lu(e){return{baseLanes:e,cachePool:null,transitions:null}}function su(e,t,n){var r,o=t.pendingProps,a=ks.current,i=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ji(ks,1&a),null===e)return ql(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,i?(o=t.mode,i=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=lp(l,o,0,null),e=ip(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=lu(n),t.memoizedState=iu,e):cu(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,i){if(n)return 256&t.flags?(t.flags&=-257,uu(e,t,i,r=qc(Error(It(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=lp({mode:"visible",children:r.children},o,0,null),(a=ip(a,o,i,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Vl(t,e.child,null,i),t.child.memoizedState=lu(i),t.memoizedState=iu,a);if(0==(1&t.mode))return uu(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,uu(e,t,i,r=qc(a=Error(It(419)),r,void 0))}if(l=0!=(i&e.childLanes),Hc||l){if(null!==(r=ed)){switch(i&-i){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|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,is(e,o),Ld(r,e,o,-1))}return Fd(),uu(e,t,i,r=qc(Error(It(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Jd.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,_l=qi(o.nextSibling),Ol=t,Il=!0,Tl=null,null!==e&&(yl[xl++]=wl,yl[xl++]=El,yl[xl++]=Sl,wl=e.id,El=e.overflow,Sl=t),t=cu(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(i){i=o.fallback,l=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=op(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=op(r,i):(i=ip(i,l,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,l=null===(l=e.child.memoizedState)?lu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=iu,o}return e=(i=e.child).sibling,o=op(i,{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 cu(e,t){return(t=lp({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function uu(e,t,n,r){return null!==r&&Fl(r),Vl(t,e.child,null,n),(e=cu(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function du(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),es(e.return,t,n)}function pu(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function fu(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Uc(e,t,r.children,n),0!=(2&(r=ks.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&&du(e,n,t);else if(19===e.tag)du(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(Ji(ks,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===Rs(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),pu(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Rs(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}pu(t,!0,n,null,a);break;case"together":pu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hu(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ld|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(It(153));if(null!==t.child){for(n=op(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=op(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function gu(e,t){if(!Il)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 vu(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 bu(e,t,n){var r=t.pendingProps;switch(Ll(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vu(t),null;case 1:case 17:return ol(t.type)&&al(),vu(t),null;case 3:return r=t.stateNode,ws(),Qi(tl),Qi(el),Os(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(zl(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Tl&&(Td(Tl),Tl=null))),ru(e,t),vu(t),null;case 5:Cs(t);var o=xs(ys.current);if(n=t.type,null!==e&&null!=t.stateNode)ou(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(It(166));return vu(t),null}if(e=xs(vs.current),zl(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Di]=t,r[ji]=a,e=0!=(1&t.mode),n){case"dialog":di("cancel",r),di("close",r);break;case"iframe":case"object":case"embed":di("load",r);break;case"video":case"audio":for(o=0;o<li.length;o++)di(li[o],r);break;case"source":di("error",r);break;case"img":case"image":case"link":di("error",r),di("load",r);break;case"details":di("toggle",r);break;case"input":wn(r,a),di("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},di("invalid",r);break;case"textarea":In(r,a),di("invalid",r)}for(var i in Hn(n,a),o=null,a)if(a.hasOwnProperty(i)){var l=a[i];"children"===i?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Ci(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Ci(r.textContent,l,e),o=["children",""+l]):Pt.hasOwnProperty(i)&&null!=l&&"onScroll"===i&&di("scroll",r)}switch(n){case"input":bn(r),kn(r,a,!0);break;case"textarea":bn(r),Pn(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=ki)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=Mn(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Di]=t,e[ji]=r,nu(e,t,!1,!1),t.stateNode=e;e:{switch(i=Un(n,r),n){case"dialog":di("cancel",e),di("close",e),o=r;break;case"iframe":case"object":case"embed":di("load",e),o=r;break;case"video":case"audio":for(o=0;o<li.length;o++)di(li[o],e);o=r;break;case"source":di("error",e),o=r;break;case"img":case"image":case"link":di("error",e),di("load",e),o=r;break;case"details":di("toggle",e),o=r;break;case"input":wn(e,r),o=Sn(e,r),di("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=cn({},r,{value:void 0}),di("invalid",e);break;case"textarea":In(e,r),o=_n(e,r),di("invalid",e)}for(a in Hn(n,o),l=o)if(l.hasOwnProperty(a)){var s=l[a];"style"===a?Bn(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&zn(e,s):"children"===a?"string"==typeof s?("textarea"!==n||""!==s)&&Dn(e,s):"number"==typeof s&&Dn(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Pt.hasOwnProperty(a)?null!=s&&"onScroll"===a&&di("scroll",e):null!=s&&Ht(e,a,s,i))}switch(n){case"input":bn(e),kn(e,r,!1);break;case"textarea":bn(e),Pn(e);break;case"option":null!=r.value&&e.setAttribute("value",""+gn(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?On(e,!!r.multiple,a,!1):null!=r.defaultValue&&On(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ki)}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 vu(t),null;case 6:if(e&&null!=t.stateNode)au(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(It(166));if(n=xs(ys.current),xs(vs.current),zl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Di]=t,(a=r.nodeValue!==n)&&null!==(e=Ol))switch(e.tag){case 3:Ci(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ci(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Di]=t,t.stateNode=r}return vu(t),null;case 13:if(Qi(ks),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Il&&null!==_l&&0!=(1&t.mode)&&0==(128&t.flags))Dl(),jl(),t.flags|=98560,a=!1;else if(a=zl(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(It(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(It(317));a[Di]=t}else jl(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;vu(t),a=!1}else null!==Tl&&(Td(Tl),Tl=null),a=!0;if(!a)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&ks.current)?0===ad&&(ad=3):Fd())),null!==t.updateQueue&&(t.flags|=4),vu(t),null);case 4:return ws(),ru(e,t),null===e&&hi(t.stateNode.containerInfo),vu(t),null;case 10:return Yl(t.type._context),vu(t),null;case 19:if(Qi(ks),null===(a=t.memoizedState))return vu(t),null;if(r=0!=(128&t.flags),null===(i=a.rendering))if(r)gu(a,!1);else{if(0!==ad||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=Rs(e))){for(t.flags|=128,gu(a,!1),null!==(r=i.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ji(ks,1&ks.current|2),t.child}e=e.sibling}null!==a.tail&&Er()>fd&&(t.flags|=128,r=!0,gu(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Rs(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),gu(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!Il)return vu(t),null}else 2*Er()-a.renderingStartTime>fd&&1073741824!==n&&(t.flags|=128,r=!0,gu(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=a.last)?n.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Er(),t.sibling=null,n=ks.current,Ji(ks,r?1&n|2:1&n),t):(vu(t),null);case 22:case 23:return Ad(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&rd)&&(vu(t),6&t.subtreeFlags&&(t.flags|=8192)):vu(t),null;case 24:case 25:return null}throw Error(It(156,t.tag))}function yu(e,t){switch(Ll(t),t.tag){case 1:return ol(t.type)&&al(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ws(),Qi(tl),Qi(el),Os(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Cs(t),null;case 13:if(Qi(ks),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(It(340));jl()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Qi(ks),null;case 4:return ws(),null;case 10:return Yl(t.type._context),null;case 22:case 23:return Ad(),null;default:return null}}nu=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}},ru=function(){},ou=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,xs(vs.current);var a,i=null;switch(n){case"input":o=Sn(e,o),r=Sn(e,r),i=[];break;case"select":o=cn({},o,{value:void 0}),r=cn({},r,{value:void 0}),i=[];break;case"textarea":o=_n(e,o),r=_n(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ki)}for(c in Hn(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(Pt.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(Pt.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&di("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},au=function(e,t,n,r){n!==r&&(t.flags|=4)};var xu=!1,Su=!1,wu="function"==typeof WeakSet?WeakSet:Set,Eu=null;function Cu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Zd(e,t,n)}else n.current=null}function ku(e,t,n){try{n()}catch(n){Zd(e,t,n)}}var Ru=!1;function Lu(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 a=o.destroy;o.destroy=void 0,void 0!==a&&ku(t,n,a)}o=o.next}while(o!==r)}}function Ou(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 _u(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 Iu(e){var t=e.alternate;null!==t&&(e.alternate=null,Iu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Di],delete t[ji],delete t[$i],delete t[Bi],delete t[Wi])),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 Tu(e){return 5===e.tag||3===e.tag||4===e.tag}function Pu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Tu(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 Mu(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=ki));else if(4!==r&&null!==(e=e.child))for(Mu(e,t,n),e=e.sibling;null!==e;)Mu(e,t,n),e=e.sibling}function Nu(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(Nu(e,t,n),e=e.sibling;null!==e;)Nu(e,t,n),e=e.sibling}var qu=null,Au=!1;function zu(e,t,n){for(n=n.child;null!==n;)Du(e,t,n),n=n.sibling}function Du(e,t,n){if(Tr&&"function"==typeof Tr.onCommitFiberUnmount)try{Tr.onCommitFiberUnmount(Ir,n)}catch(e){}switch(n.tag){case 5:Su||Cu(n,t);case 6:var r=qu,o=Au;qu=null,zu(e,t,n),Au=o,null!==(qu=r)&&(Au?(e=qu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):qu.removeChild(n.stateNode));break;case 18:null!==qu&&(Au?(e=qu,n=n.stateNode,8===e.nodeType?Ni(e.parentNode,n):1===e.nodeType&&Ni(e,n),mo(e)):Ni(qu,n.stateNode));break;case 4:r=qu,o=Au,qu=n.stateNode.containerInfo,Au=!0,zu(e,t,n),qu=r,Au=o;break;case 0:case 11:case 14:case 15:if(!Su&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&ku(n,t,i),o=o.next}while(o!==r)}zu(e,t,n);break;case 1:if(!Su&&(Cu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Zd(n,t,e)}zu(e,t,n);break;case 21:zu(e,t,n);break;case 22:1&n.mode?(Su=(r=Su)||null!==n.memoizedState,zu(e,t,n),Su=r):zu(e,t,n);break;default:zu(e,t,n)}}function ju(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new wu),t.forEach((function(t){var r=Yd.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 a=e,i=t,l=i;e:for(;null!==l;){switch(l.tag){case 5:qu=l.stateNode,Au=!1;break e;case 3:case 4:qu=l.stateNode.containerInfo,Au=!0;break e}l=l.return}if(null===qu)throw Error(It(160));Du(a,i,o),qu=null,Au=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Zd(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)$u(t,e),t=t.sibling}function $u(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Fu(t,e),Bu(e),4&r){try{Lu(3,e,e.return),Ou(3,e)}catch(t){Zd(e,e.return,t)}try{Lu(5,e,e.return)}catch(t){Zd(e,e.return,t)}}break;case 1:Fu(t,e),Bu(e),512&r&&null!==n&&Cu(n,n.return);break;case 5:if(Fu(t,e),Bu(e),512&r&&null!==n&&Cu(n,n.return),32&e.flags){var o=e.stateNode;try{Dn(o,"")}catch(t){Zd(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==n?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===a.type&&null!=a.name&&En(o,a),Un(l,i);var c=Un(l,a);for(i=0;i<s.length;i+=2){var u=s[i],d=s[i+1];"style"===u?Bn(o,d):"dangerouslySetInnerHTML"===u?zn(o,d):"children"===u?Dn(o,d):Ht(o,u,d,c)}switch(l){case"input":Cn(o,a);break;case"textarea":Tn(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?On(o,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?On(o,!!a.multiple,a.defaultValue,!0):On(o,!!a.multiple,a.multiple?[]:"",!1))}o[ji]=a}catch(t){Zd(e,e.return,t)}}break;case 6:if(Fu(t,e),Bu(e),4&r){if(null===e.stateNode)throw Error(It(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Zd(e,e.return,t)}}break;case 3:if(Fu(t,e),Bu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{mo(t.containerInfo)}catch(t){Zd(e,e.return,t)}break;case 4:default:Fu(t,e),Bu(e);break;case 13:Fu(t,e),Bu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(pd=Er())),4&r&&ju(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(Su=(c=Su)||u,Fu(t,e),Su=c):Fu(t,e),Bu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(Eu=e,u=e.child;null!==u;){for(d=Eu=u;null!==Eu;){switch(f=(p=Eu).child,p.tag){case 0:case 11:case 14:case 15:Lu(4,p,p.return);break;case 1:Cu(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Zd(r,n,e)}}break;case 5:Cu(p,p.return);break;case 22:if(null!==p.memoizedState){Vu(d);continue}}null!==f?(f.return=p,Eu=f):Vu(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,i=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=$n("display",i))}catch(t){Zd(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Zd(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;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Fu(t,e),Bu(e),4&r&&ju(e);case 21:}}function Bu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Tu(n)){var r=n;break e}n=n.return}throw Error(It(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(Dn(o,""),r.flags&=-33),Nu(e,Pu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;Mu(e,Pu(e),a);break;default:throw Error(It(161))}}catch(t){Zd(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Wu(e,t,n){Eu=e,Hu(e)}function Hu(e,t,n){for(var r=0!=(1&e.mode);null!==Eu;){var o=Eu,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||xu;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Su;l=xu;var c=Su;if(xu=i,(Su=s)&&!c)for(Eu=o;null!==Eu;)s=(i=Eu).child,22===i.tag&&null!==i.memoizedState?Gu(o):null!==s?(s.return=i,Eu=s):Gu(o);for(;null!==a;)Eu=a,Hu(a),a=a.sibling;Eu=o,xu=l,Su=c}Uu(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Eu=a):Uu(e)}}function Uu(e){for(;null!==Eu;){var t=Eu;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Su||Ou(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Su)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Lc(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&ms(t,a,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}ms(t,i,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 c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&mo(d)}}}break;default:throw Error(It(163))}Su||512&t.flags&&_u(t)}catch(e){Zd(t,t.return,e)}}if(t===e){Eu=null;break}if(null!==(n=t.sibling)){n.return=t.return,Eu=n;break}Eu=t.return}}function Vu(e){for(;null!==Eu;){var t=Eu;if(t===e){Eu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Eu=n;break}Eu=t.return}}function Gu(e){for(;null!==Eu;){var t=Eu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ou(4,t)}catch(e){Zd(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Zd(t,o,e)}}var a=t.return;try{_u(t)}catch(e){Zd(t,a,e)}break;case 5:var i=t.return;try{_u(t)}catch(e){Zd(t,i,e)}}}catch(e){Zd(t,t.return,e)}if(t===e){Eu=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Eu=l;break}Eu=t.return}}var Ku,Zu=Math.ceil,Xu=Ut.ReactCurrentDispatcher,Qu=Ut.ReactCurrentOwner,Ju=Ut.ReactCurrentBatchConfig,Yu=0,ed=null,td=null,nd=0,rd=0,od=Xi(0),ad=0,id=null,ld=0,sd=0,cd=0,ud=null,dd=null,pd=0,fd=1/0,hd=null,md=!1,gd=null,vd=null,bd=!1,yd=null,xd=0,Sd=0,wd=null,Ed=-1,Cd=0;function kd(){return 0!=(6&Yu)?Er():-1!==Ed?Ed:Ed=Er()}function Rd(e){return 0==(1&e.mode)?1:0!=(2&Yu)&&0!==nd?nd&-nd:null!==$l.transition?(0===Cd&&(Cd=$r()),Cd):0!==(e=Ur)?e:e=void 0===(e=window.event)?16:Eo(e.type)}function Ld(e,t,n,r){if(50<Sd)throw Sd=0,wd=null,Error(It(185));Wr(e,n,r),0!=(2&Yu)&&e===ed||(e===ed&&(0==(2&Yu)&&(sd|=n),4===ad&&Pd(e,nd)),Od(e,r),1===n&&0===Yu&&0==(1&t.mode)&&(fd=Er()+500,dl&&hl()))}function Od(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Pr(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=jr(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=Dr(e,e===ed?nd:0);if(0===r)null!==n&&xr(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&xr(n),1===t)0===e.tag?function(e){dl=!0,fl(e)}(Md.bind(null,e)):fl(Md.bind(null,e)),Pi((function(){0==(6&Yu)&&hl()})),n=null;else{switch(Vr(r)){case 1:n=kr;break;case 4:n=Rr;break;case 16:default:n=Lr;break;case 536870912:n=_r}n=ep(n,_d.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _d(e,t){if(Ed=-1,Cd=0,0!=(6&Yu))throw Error(It(327));var n=e.callbackNode;if(Gd()&&e.callbackNode!==n)return null;var r=Dr(e,e===ed?nd:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=$d(e,r);else{t=r;var o=Yu;Yu|=2;var a=jd();for(ed===e&&nd===t||(hd=null,fd=Er()+500,zd(e,t));;)try{Wd();break}catch(t){Dd(e,t)}Jl(),Xu.current=a,Yu=o,null!==td?t=0:(ed=null,nd=0,t=ad)}if(0!==t){if(2===t&&(0!==(o=Fr(e))&&(r=o,t=Id(e,o))),1===t)throw n=id,zd(e,0),Pd(e,r),Od(e,Er()),n;if(6===t)Pd(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],a=o.getSnapshot;o=o.value;try{if(!Ma(a(),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=$d(e,r))&&(0!==(a=Fr(e))&&(r=a,t=Id(e,a))),1===t))throw n=id,zd(e,0),Pd(e,r),Od(e,Er()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(It(345));case 2:case 5:Vd(e,dd,hd);break;case 3:if(Pd(e,r),(130023424&r)===r&&10<(t=pd+500-Er())){if(0!==Dr(e,0))break;if(((o=e.suspendedLanes)&r)!==r){kd(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=_i(Vd.bind(null,e,dd,hd),t);break}Vd(e,dd,hd);break;case 4:if(Pd(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Pr(r);a=1<<i,(i=t[i])>o&&(o=i),r&=~a}if(r=o,10<(r=(120>(r=Er()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zu(r/1960))-r)){e.timeoutHandle=_i(Vd.bind(null,e,dd,hd),r);break}Vd(e,dd,hd);break;default:throw Error(It(329))}}}return Od(e,Er()),e.callbackNode===n?_d.bind(null,e):null}function Id(e,t){var n=ud;return e.current.memoizedState.isDehydrated&&(zd(e,t).flags|=256),2!==(e=$d(e,t))&&(t=dd,dd=n,null!==t&&Td(t)),e}function Td(e){null===dd?dd=e:dd.push.apply(dd,e)}function Pd(e,t){for(t&=~cd,t&=~sd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Pr(t),r=1<<n;e[n]=-1,t&=~r}}function Md(e){if(0!=(6&Yu))throw Error(It(327));Gd();var t=Dr(e,0);if(0==(1&t))return Od(e,Er()),null;var n=$d(e,t);if(0!==e.tag&&2===n){var r=Fr(e);0!==r&&(t=r,n=Id(e,r))}if(1===n)throw n=id,zd(e,0),Pd(e,t),Od(e,Er()),n;if(6===n)throw Error(It(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vd(e,dd,hd),Od(e,Er()),null}function Nd(e,t){var n=Yu;Yu|=1;try{return e(t)}finally{0===(Yu=n)&&(fd=Er()+500,dl&&hl())}}function qd(e){null!==yd&&0===yd.tag&&0==(6&Yu)&&Gd();var t=Yu;Yu|=1;var n=Ju.transition,r=Ur;try{if(Ju.transition=null,Ur=1,e)return e()}finally{Ur=r,Ju.transition=n,0==(6&(Yu=t))&&hl()}}function Ad(){rd=od.current,Qi(od)}function zd(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Ii(n)),null!==td)for(n=td.return;null!==n;){var r=n;switch(Ll(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&al();break;case 3:ws(),Qi(tl),Qi(el),Os();break;case 5:Cs(r);break;case 4:ws();break;case 13:case 19:Qi(ks);break;case 10:Yl(r.type._context);break;case 22:case 23:Ad()}n=n.return}if(ed=e,td=e=op(e.current,null),nd=rd=t,ad=0,id=null,cd=sd=ld=0,dd=ud=null,null!==rs){for(t=0;t<rs.length;t++)if(null!==(r=(n=rs[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}rs=null}return e}function Dd(e,t){for(;;){var n=td;try{if(Jl(),_s.current=Ec,qs){for(var r=Ps.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}qs=!1}if(Ts=0,Ns=Ms=Ps=null,As=!1,zs=0,Qu.current=null,null===n||null===n.return){ad=1,id=t,td=null;break}e:{var a=e,i=n.return,l=n,s=t;if(t=nd,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,u=l,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=$c(i);if(null!==f){f.flags&=-257,Bc(f,i,l,0,t),1&f.mode&&Fc(a,c,t),s=c;var h=(t=f).updateQueue;if(null===h){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}if(0==(1&t)){Fc(a,c,t),Fd();break e}s=Error(It(426))}else if(Il&&1&l.mode){var g=$c(i);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Bc(g,i,l,0,t),Fl(Nc(s,l));break e}}a=s=Nc(s,l),4!==ad&&(ad=2),null===ud?ud=[a]:ud.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,fs(a,Dc(0,s,t));break e;case 1:l=s;var v=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===vd||!vd.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,fs(a,jc(a,l,t));break e}}a=a.return}while(null!==a)}Ud(n)}catch(e){t=e,td===n&&null!==n&&(td=n=n.return);continue}break}}function jd(){var e=Xu.current;return Xu.current=Ec,null===e?Ec:e}function Fd(){0!==ad&&3!==ad&&2!==ad||(ad=4),null===ed||0==(268435455&ld)&&0==(268435455&sd)||Pd(ed,nd)}function $d(e,t){var n=Yu;Yu|=2;var r=jd();for(ed===e&&nd===t||(hd=null,zd(e,t));;)try{Bd();break}catch(t){Dd(e,t)}if(Jl(),Yu=n,Xu.current=r,null!==td)throw Error(It(261));return ed=null,nd=0,ad}function Bd(){for(;null!==td;)Hd(td)}function Wd(){for(;null!==td&&!Sr();)Hd(td)}function Hd(e){var t=Ku(e.alternate,e,rd);e.memoizedProps=e.pendingProps,null===t?Ud(e):td=t,Qu.current=null}function Ud(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=bu(n,t,rd)))return void(td=n)}else{if(null!==(n=yu(n,t)))return n.flags&=32767,void(td=n);if(null===e)return ad=6,void(td=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(td=t);td=t=e}while(null!==t);0===ad&&(ad=5)}function Vd(e,t,n){var r=Ur,o=Ju.transition;try{Ju.transition=null,Ur=1,function(e,t,n,r){do{Gd()}while(null!==yd);if(0!=(6&Yu))throw Error(It(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(It(177));e.callbackNode=null,e.callbackPriority=0;var a=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-Pr(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,a),e===ed&&(td=ed=null,nd=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||bd||(bd=!0,ep(Lr,(function(){return Gd(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Ju.transition,Ju.transition=null;var i=Ur;Ur=1;var l=Yu;Yu|=4,Qu.current=null,function(e,t){if(Ri=vo,ja(e=Da())){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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var i=0,l=-1,s=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=i+o),d!==a||0!==r&&3!==d.nodeType||(s=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++c===o&&(l=i),p===a&&++u===r&&(s=i),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(Li={focusedElem:e,selectionRange:n},vo=!1,Eu=t;null!==Eu;)if(e=(t=Eu).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Eu=e;else for(;null!==Eu;){t=Eu;try{var h=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!==h){var m=h.memoizedProps,g=h.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Lc(t.type,m),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(It(163))}}catch(e){Zd(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Eu=e;break}Eu=t.return}h=Ru,Ru=!1}(e,n),$u(n,e),Fa(Li),vo=!!Ri,Li=Ri=null,e.current=n,Wu(n),wr(),Yu=l,Ur=i,Ju.transition=a}else e.current=n;if(bd&&(bd=!1,yd=e,xd=o),a=e.pendingLanes,0===a&&(vd=null),function(e){if(Tr&&"function"==typeof Tr.onCommitFiberRoot)try{Tr.onCommitFiberRoot(Ir,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),Od(e,Er()),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(md)throw md=!1,e=gd,gd=null,e;0!=(1&xd)&&0!==e.tag&&Gd(),a=e.pendingLanes,0!=(1&a)?e===wd?Sd++:(Sd=0,wd=e):Sd=0,hl()}(e,t,n,r)}finally{Ju.transition=o,Ur=r}return null}function Gd(){if(null!==yd){var e=Vr(xd),t=Ju.transition,n=Ur;try{if(Ju.transition=null,Ur=16>e?16:e,null===yd)var r=!1;else{if(e=yd,yd=null,xd=0,0!=(6&Yu))throw Error(It(331));var o=Yu;for(Yu|=4,Eu=e.current;null!==Eu;){var a=Eu,i=a.child;if(0!=(16&Eu.flags)){var l=a.deletions;if(null!==l){for(var s=0;s<l.length;s++){var c=l[s];for(Eu=c;null!==Eu;){var u=Eu;switch(u.tag){case 0:case 11:case 15:Lu(8,u,a)}var d=u.child;if(null!==d)d.return=u,Eu=d;else for(;null!==Eu;){var p=(u=Eu).sibling,f=u.return;if(Iu(u),u===c){Eu=null;break}if(null!==p){p.return=f,Eu=p;break}Eu=f}}}var h=a.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Eu=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,Eu=i;else e:for(;null!==Eu;){if(0!=(2048&(a=Eu).flags))switch(a.tag){case 0:case 11:case 15:Lu(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Eu=v;break e}Eu=a.return}}var b=e.current;for(Eu=b;null!==Eu;){var y=(i=Eu).child;if(0!=(2064&i.subtreeFlags)&&null!==y)y.return=i,Eu=y;else e:for(i=b;null!==Eu;){if(0!=(2048&(l=Eu).flags))try{switch(l.tag){case 0:case 11:case 15:Ou(9,l)}}catch(e){Zd(l,l.return,e)}if(l===i){Eu=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Eu=x;break e}Eu=l.return}}if(Yu=o,hl(),Tr&&"function"==typeof Tr.onPostCommitFiberRoot)try{Tr.onPostCommitFiberRoot(Ir,e)}catch(e){}r=!0}return r}finally{Ur=n,Ju.transition=t}}return!1}function Kd(e,t,n){e=ds(e,t=Dc(0,t=Nc(n,t),1),1),t=kd(),null!==e&&(Wr(e,1,t),Od(e,t))}function Zd(e,t,n){if(3===e.tag)Kd(e,e,n);else for(;null!==t;){if(3===t.tag){Kd(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===vd||!vd.has(r))){t=ds(t,e=jc(t,e=Nc(n,e),1),1),e=kd(),null!==t&&(Wr(t,1,e),Od(t,e));break}}t=t.return}}function Xd(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=kd(),e.pingedLanes|=e.suspendedLanes&n,ed===e&&(nd&n)===n&&(4===ad||3===ad&&(130023424&nd)===nd&&500>Er()-pd?zd(e,0):cd|=n),Od(e,t)}function Qd(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Ar,0==(130023424&(Ar<<=1))&&(Ar=4194304)));var n=kd();null!==(e=is(e,t))&&(Wr(e,t,n),Od(e,n))}function Jd(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Qd(e,n)}function Yd(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(It(314))}null!==r&&r.delete(t),Qd(e,n)}function ep(e,t){return yr(e,t)}function tp(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 np(e,t,n,r){return new tp(e,t,n,r)}function rp(e){return!(!(e=e.prototype)||!e.isReactComponent)}function op(e,t){var n=e.alternate;return null===n?((n=np(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 ap(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)rp(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Kt:return ip(n.children,o,a,t);case Zt:i=8,o|=8;break;case Xt:return(e=np(12,n,t,2|o)).elementType=Xt,e.lanes=a,e;case en:return(e=np(13,n,t,o)).elementType=en,e.lanes=a,e;case tn:return(e=np(19,n,t,o)).elementType=tn,e.lanes=a,e;case on:return lp(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Qt:i=10;break e;case Jt:i=9;break e;case Yt:i=11;break e;case nn:i=14;break e;case rn:i=16,r=null;break e}throw Error(It(130,null==e?e:typeof e,""))}return(t=np(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function ip(e,t,n,r){return(e=np(7,e,r,t)).lanes=n,e}function lp(e,t,n,r){return(e=np(22,e,r,t)).elementType=on,e.lanes=n,e.stateNode={isHidden:!1},e}function sp(e,t,n){return(e=np(6,e,null,t)).lanes=n,e}function cp(e,t,n){return(t=np(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function up(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=Br(0),this.expirationTimes=Br(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Br(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function dp(e,t,n,r,o,a,i,l,s){return e=new up(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=np(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ss(a),e}function pp(e){if(!e)return Yi;e:{if(hr(e=e._reactInternals)!==e||1!==e.tag)throw Error(It(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ol(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(It(171))}if(1===e.tag){var n=e.type;if(ol(n))return ll(e,n,t)}return t}function fp(e,t,n,r,o,a,i,l,s){return(e=dp(n,r,!0,e,0,a,0,l,s)).context=pp(null),n=e.current,(a=us(r=kd(),o=Rd(n))).callback=null!=t?t:null,ds(n,a,o),e.current.lanes=o,Wr(e,o,r),Od(e,r),e}function hp(e,t,n,r){var o=t.current,a=kd(),i=Rd(o);return n=pp(n),null===t.context?t.context=n:t.pendingContext=n,(t=us(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ds(o,t,i))&&(Ld(e,o,i,a),ps(e,o,i)),i}function mp(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function gp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function vp(e,t){gp(e,t),(e=e.alternate)&&gp(e,t)}Ku=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||tl.current)Hc=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Hc=!1,function(e,t,n){switch(t.tag){case 3:eu(t),jl();break;case 5:Es(t);break;case 1:ol(t.type)&&sl(t);break;case 4:Ss(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ji(Kl,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ji(ks,1&ks.current),t.flags|=128,null):0!=(n&t.child.childLanes)?su(e,t,n):(Ji(ks,1&ks.current),null!==(e=mu(e,t,n))?e.sibling:null);Ji(ks,1&ks.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return fu(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ji(ks,ks.current),r)break;return null;case 22:case 23:return t.lanes=0,Zc(e,t,n)}return mu(e,t,n)}(e,t,n);Hc=0!=(131072&e.flags)}else Hc=!1,Il&&0!=(1048576&t.flags)&&kl(t,bl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hu(e,t),e=t.pendingProps;var o=rl(t,el.current);ts(t,n),o=$s(null,t,r,e,o,n);var a=Bs();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,ol(r)?(a=!0,sl(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ss(t),o.updater=_c,t.stateNode=o,o._reactInternals=t,Mc(t,r,e,n),t=Yc(null,t,r,!0,a,n)):(t.tag=0,Il&&a&&Rl(t),Uc(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hu(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return rp(e)?1:0;if(null!=e){if((e=e.$$typeof)===Yt)return 11;if(e===nn)return 14}return 2}(r),e=Lc(r,e),o){case 0:t=Qc(null,t,r,e,n);break e;case 1:t=Jc(null,t,r,e,n);break e;case 11:t=Vc(null,t,r,e,n);break e;case 14:t=Gc(null,t,r,Lc(r.type,e),n);break e}throw Error(It(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Qc(e,t,r,o=t.elementType===r?o:Lc(r,o),n);case 1:return r=t.type,o=t.pendingProps,Jc(e,t,r,o=t.elementType===r?o:Lc(r,o),n);case 3:e:{if(eu(t),null===e)throw Error(It(387));r=t.pendingProps,o=(a=t.memoizedState).element,cs(e,t),hs(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=tu(e,t,r,n,o=Nc(Error(It(423)),t));break e}if(r!==o){t=tu(e,t,r,n,o=Nc(Error(It(424)),t));break e}for(_l=qi(t.stateNode.containerInfo.firstChild),Ol=t,Il=!0,Tl=null,n=Gl(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(jl(),r===o){t=mu(e,t,n);break e}Uc(e,t,r,n)}t=t.child}return t;case 5:return Es(t),null===e&&ql(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,Oi(r,o)?i=null:null!==a&&Oi(r,a)&&(t.flags|=32),Xc(e,t),Uc(e,t,i,n),t.child;case 6:return null===e&&ql(t),null;case 13:return su(e,t,n);case 4:return Ss(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Vl(t,null,r,n):Uc(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Vc(e,t,r,o=t.elementType===r?o:Lc(r,o),n);case 7:return Uc(e,t,t.pendingProps,n),t.child;case 8:case 12:return Uc(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Ji(Kl,r._currentValue),r._currentValue=i,null!==a)if(Ma(a.value,i)){if(a.children===o.children&&!tl.current){t=mu(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){i=a.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=us(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?s.next=s:(s.next=u.next,u.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),es(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(It(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),es(i,n,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}Uc(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ts(t,n),r=r(o=ns(o)),t.flags|=1,Uc(e,t,r,n),t.child;case 14:return o=Lc(r=t.type,t.pendingProps),Gc(e,t,r,o=Lc(r.type,o),n);case 15:return Kc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lc(r,o),hu(e,t),t.tag=1,ol(r)?(e=!0,sl(t)):e=!1,ts(t,n),Tc(t,r,o),Mc(t,r,o,n),Yc(null,t,r,!0,e,n);case 19:return fu(e,t,n);case 22:return Zc(e,t,n)}throw Error(It(156,t.tag))};var bp="function"==typeof reportError?reportError:function(e){console.error(e)};function yp(e){this._internalRoot=e}function xp(e){this._internalRoot=e}function Sp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function wp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ep(){}function Cp(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=mp(i);l.call(e)}}hp(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=mp(i);a.call(e)}}var i=fp(t,r,e,0,null,!1,0,"",Ep);return e._reactRootContainer=i,e[Fi]=i.current,hi(8===e.nodeType?e.parentNode:e),qd(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=mp(s);l.call(e)}}var s=dp(e,0,!1,null,0,!1,0,"",Ep);return e._reactRootContainer=s,e[Fi]=s.current,hi(8===e.nodeType?e.parentNode:e),qd((function(){hp(t,s,n,r)})),s}(n,t,e,o,r);return mp(i)}xp.prototype.render=yp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(It(409));hp(e,t,null,null)},xp.prototype.unmount=yp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;qd((function(){hp(null,e,null,null)})),t[Fi]=null}},xp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ao.length&&0!==t&&t<ao[n].priority;n++);ao.splice(n,0,e),0===n&&co(e)}},Gr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=zr(t.pendingLanes);0!==n&&(Hr(t,1|n),Od(t,Er()),0==(6&Yu)&&(fd=Er()+500,hl()))}break;case 13:qd((function(){var t=is(e,1);if(null!==t){var n=kd();Ld(t,e,1,n)}})),vp(e,1)}},Kr=function(e){if(13===e.tag){var t=is(e,134217728);if(null!==t)Ld(t,e,134217728,kd());vp(e,134217728)}},Zr=function(e){if(13===e.tag){var t=Rd(e),n=is(e,t);if(null!==n)Ld(n,e,t,kd());vp(e,t)}},Xr=function(){return Ur},Qr=function(e,t){var n=Ur;try{return Ur=e,t()}finally{Ur=n}},Kn=function(e,t,n){switch(t){case"input":if(Cn(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=Gi(r);if(!o)throw Error(It(90));yn(r),Cn(r,o)}}}break;case"textarea":Tn(e,n);break;case"select":null!=(t=n.value)&&On(e,!!n.multiple,t,!1)}},er=Nd,tr=qd;var kp={usingClientEntryPoint:!1,Events:[Ui,Vi,Gi,Jn,Yn,Nd]},Rp={findFiberByHostInstance:Hi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Lp={bundleType:Rp.bundleType,version:Rp.version,rendererPackageName:Rp.rendererPackageName,rendererConfig:Rp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ut.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=vr(e))?null:e.stateNode},findFiberByHostInstance:Rp.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Op=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Op.isDisabled&&Op.supportsFiber)try{Ir=Op.inject(Lp),Tr=Op}catch(An){}}Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kp,Ct.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Sp(t))throw Error(It(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Gt,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},Ct.createRoot=function(e,t){if(!Sp(e))throw Error(It(299));var n=!1,r="",o=bp;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=dp(e,1,!1,null,0,n,0,r,o),e[Fi]=t.current,hi(8===e.nodeType?e.parentNode:e),new yp(t)},Ct.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(It(188));throw e=Object.keys(e).join(","),Error(It(268,e))}return e=null===(e=vr(t))?null:e.stateNode},Ct.flushSync=function(e){return qd(e)},Ct.hydrate=function(e,t,n){if(!wp(t))throw Error(It(200));return Cp(null,e,t,!0,n)},Ct.hydrateRoot=function(e,t,n){if(!Sp(e))throw Error(It(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",i=bp;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=fp(t,null,e,1,null!=n?n:null,o,0,a,i),e[Fi]=t.current,hi(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 xp(t)},Ct.render=function(e,t,n){if(!wp(t))throw Error(It(200));return Cp(null,e,t,!1,n)},Ct.unmountComponentAtNode=function(e){if(!wp(e))throw Error(It(40));return!!e._reactRootContainer&&(qd((function(){Cp(null,null,e,!1,(function(){e._reactRootContainer=null,e[Fi]=null}))})),!0)},Ct.unstable_batchedUpdates=Nd,Ct.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!wp(n))throw Error(It(200));if(null==e||void 0===e._reactInternals)throw Error(It(38));return Cp(e,t,n,!1,r)},Ct.version="18.3.1-next-f1338f8080-20240426",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)}}(),Et.exports=Ct;var _p=Et.exports,Ip=n(_p),Tp=_p;function Pp(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."}wt.createRoot=Tp.createRoot,wt.hydrateRoot=Tp.hydrateRoot;var Mp=Object.freeze({__proto__:null,default:Pp}),Np="$$material";function qp(){return qp=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},qp.apply(this,arguments)}function Ap(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function zp(){return zp=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},zp.apply(this,arguments)}function Dp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var jp=/^((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|disableRemotePlayback|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)-.*))$/,Fp=Dp((function(e){return jp.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var $p=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Bp="-ms-",Wp="-moz-",Hp="-webkit-",Up="comm",Vp="rule",Gp="decl",Kp="@keyframes",Zp=Math.abs,Xp=String.fromCharCode,Qp=Object.assign;function Jp(e,t){return 45^rf(e,0)?(((t<<2^rf(e,0))<<2^rf(e,1))<<2^rf(e,2))<<2^rf(e,3):0}function Yp(e){return e.trim()}function ef(e,t){return(e=t.exec(e))?e[0]:e}function tf(e,t,n){return e.replace(t,n)}function nf(e,t){return e.indexOf(t)}function rf(e,t){return 0|e.charCodeAt(t)}function of(e,t,n){return e.slice(t,n)}function af(e){return e.length}function lf(e){return e.length}function sf(e,t){return t.push(e),e}function cf(e,t){return e.map(t).join("")}var uf=1,df=1,pf=0,ff=0,hf=0,mf="";function gf(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:uf,column:df,length:i,return:""}}function vf(e,t){return Qp(gf("",null,null,"",null,null,0),e,{length:-e.length},t)}function bf(){return hf=ff>0?rf(mf,--ff):0,df--,10===hf&&(df=1,uf--),hf}function yf(){return hf=ff<pf?rf(mf,ff++):0,df++,10===hf&&(df=1,uf++),hf}function xf(){return rf(mf,ff)}function Sf(){return ff}function wf(e,t){return of(mf,e,t)}function Ef(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Cf(e){return uf=df=1,pf=af(mf=e),ff=0,[]}function kf(e){return mf="",e}function Rf(e){return Yp(wf(ff-1,_f(91===e?e+2:40===e?e+1:e)))}function Lf(e){for(;(hf=xf())&&hf<33;)yf();return Ef(e)>2||Ef(hf)>3?"":" "}function Of(e,t){for(;--t&&yf()&&!(hf<48||hf>102||hf>57&&hf<65||hf>70&&hf<97););return wf(e,Sf()+(t<6&&32==xf()&&32==yf()))}function _f(e){for(;yf();)switch(hf){case e:return ff;case 34:case 39:34!==e&&39!==e&&_f(hf);break;case 40:41===e&&_f(e);break;case 92:yf()}return ff}function If(e,t){for(;yf()&&e+hf!==57&&(e+hf!==84||47!==xf()););return"/*"+wf(t,ff-1)+"*"+Xp(47===e?e:yf())}function Tf(e){for(;!Ef(xf());)yf();return wf(e,ff)}function Pf(e){return kf(Mf("",null,null,null,[""],e=Cf(e),0,[0],e))}function Mf(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=a,w=r,E=y;g;)switch(h=b,b=yf()){case 40:if(108!=h&&58==rf(E,d-1)){-1!=nf(E+=tf(Rf(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=Rf(b);break;case 9:case 10:case 13:case 32:E+=Lf(h);break;case 92:E+=Of(Sf()-1,7);continue;case 47:switch(xf()){case 42:case 47:sf(qf(If(yf(),Sf()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=af(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=tf(E,/\f/g,"")),f>0&&af(E)-d&&sf(f>32?Af(E+";",r,n,d-1):Af(tf(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(sf(w=Nf(E,t,n,c,u,o,l,y,x=[],S=[],d),a),123===b)if(0===u)Mf(E,t,w,w,x,a,d,l,S);else switch(99===p&&110===rf(E,3)?100:p){case 100:case 108:case 109:case 115:Mf(e,w,w,r&&sf(Nf(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:Mf(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=v=1,y=E="",d=i;break;case 58:d=1+af(E),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==bf())continue;switch(E+=Xp(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(af(E)-1)*v,v=1;break;case 64:45===xf()&&(E+=Rf(yf())),p=xf(),u=d=af(y=E+=Tf(Sf())),b++;break;case 45:45===h&&2==af(E)&&(m=0)}}return a}function Nf(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=lf(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=of(e,d+1,d=Zp(m=i[h])),y=e;v<f;++v)(y=Yp(m>0?p[v]+" "+b:tf(b,/&\f/g,p[v])))&&(s[g++]=y);return gf(e,t,n,0===o?Vp:l,s,c,u)}function qf(e,t,n){return gf(e,t,n,Up,Xp(hf),of(e,2,-2),0)}function Af(e,t,n,r){return gf(e,t,n,Gp,of(e,0,r),of(e,r+1,-1),r)}function zf(e,t){for(var n="",r=lf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Df(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Gp:return e.return=e.return||e.value;case Up:return"";case Kp:return e.return=e.value+"{"+zf(e.children,r)+"}";case Vp:e.value=e.props.join(",")}return af(n=zf(e.children,r))?e.return=e.value+"{"+n+"}":""}function jf(e){var t=lf(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}function Ff(e){return function(t){t.root||(t=t.return)&&e(t)}}var $f="undefined"!=typeof document,Bf=function(e,t,n){for(var r=0,o=0;r=o,o=xf(),38===r&&12===o&&(t[n]=1),!Ef(o);)yf();return wf(e,ff)},Wf=function(e,t){return kf(function(e,t){var n=-1,r=44;do{switch(Ef(r)){case 0:38===r&&12===xf()&&(t[n]=1),e[n]+=Bf(ff-1,t,n);break;case 2:e[n]+=Rf(r);break;case 4:if(44===r){e[++n]=58===xf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Xp(r)}}while(r=yf());return e}(Cf(e),t))},Hf=new WeakMap,Uf=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Hf.get(n))&&!r){Hf.set(e,!0);for(var o=[],a=Wf(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},Vf=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Gf(e,t){switch(Jp(e,t)){case 5103:return Hp+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Hp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Hp+e+Wp+e+Bp+e+e;case 6828:case 4268:return Hp+e+Bp+e+e;case 6165:return Hp+e+Bp+"flex-"+e+e;case 5187:return Hp+e+tf(e,/(\w+).+(:[^]+)/,Hp+"box-$1$2"+Bp+"flex-$1$2")+e;case 5443:return Hp+e+Bp+"flex-item-"+tf(e,/flex-|-self/,"")+e;case 4675:return Hp+e+Bp+"flex-line-pack"+tf(e,/align-content|flex-|-self/,"")+e;case 5548:return Hp+e+Bp+tf(e,"shrink","negative")+e;case 5292:return Hp+e+Bp+tf(e,"basis","preferred-size")+e;case 6060:return Hp+"box-"+tf(e,"-grow","")+Hp+e+Bp+tf(e,"grow","positive")+e;case 4554:return Hp+tf(e,/([^-])(transform)/g,"$1"+Hp+"$2")+e;case 6187:return tf(tf(tf(e,/(zoom-|grab)/,Hp+"$1"),/(image-set)/,Hp+"$1"),e,"")+e;case 5495:case 3959:return tf(e,/(image-set\([^]*)/,Hp+"$1$`$1");case 4968:return tf(tf(e,/(.+:)(flex-)?(.*)/,Hp+"box-pack:$3"+Bp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Hp+e+e;case 4095:case 3583:case 4068:case 2532:return tf(e,/(.+)-inline(.+)/,Hp+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(af(e)-1-t>6)switch(rf(e,t+1)){case 109:if(45!==rf(e,t+4))break;case 102:return tf(e,/(.+:)(.+)-([^]+)/,"$1"+Hp+"$2-$3$1"+Wp+(108==rf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~nf(e,"stretch")?Gf(tf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==rf(e,t+1))break;case 6444:switch(rf(e,af(e)-3-(~nf(e,"!important")&&10))){case 107:return tf(e,":",":"+Hp)+e;case 101:return tf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Hp+(45===rf(e,14)?"inline-":"")+"box$3$1"+Hp+"$2$3$1"+Bp+"$2box$3")+e}break;case 5936:switch(rf(e,t+11)){case 114:return Hp+e+Bp+tf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Hp+e+Bp+tf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Hp+e+Bp+tf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Hp+e+Bp+e+e}return e}var Kf,Zf=$f?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return Dp((function(){var e={};return function(t){return e[t]}}))})),Xf=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Gp:e.return=Gf(e.value,e.length);break;case Kp:return zf([vf(e,{value:tf(e.value,"@","@"+Hp)})],r);case Vp:if(e.length)return cf(e.props,(function(t){switch(ef(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zf([vf(e,{props:[tf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return zf([vf(e,{props:[tf(t,/:(plac\w+)/,":"+Hp+"input-$1")]}),vf(e,{props:[tf(t,/:(plac\w+)/,":-moz-$1")]}),vf(e,{props:[tf(t,/:(plac\w+)/,Bp+"input-$1")]})],r)}return""}))}}],Qf=function(e){var t=e.key;if($f&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||Xf,i={},l=[];$f&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s=[Uf,Vf];if($f){var c,u=[Df,Ff((function(e){c.insert(e)}))],d=jf(s.concat(a,u));o=function(e,t,n,r){c=n,function(e){zf(Pf(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}else{var p=[Df],f=jf(s.concat(a,p)),h=Zf(a)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return zf(Pf(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,a=m(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),a):r?void(g.inserted[o]=a):a}}var g={key:t,sheet:new $p({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return g.sheet.hydrate(l),g},Jf={exports:{}},Yf={},eh=Symbol.for("react.element"),th=Symbol.for("react.portal"),nh=Symbol.for("react.fragment"),rh=Symbol.for("react.strict_mode"),oh=Symbol.for("react.profiler"),ah=Symbol.for("react.provider"),ih=Symbol.for("react.context"),lh=Symbol.for("react.server_context"),sh=Symbol.for("react.forward_ref"),ch=Symbol.for("react.suspense"),uh=Symbol.for("react.suspense_list"),dh=Symbol.for("react.memo"),ph=Symbol.for("react.lazy"),fh=Symbol.for("react.offscreen");function hh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case eh:switch(e=e.type){case nh:case oh:case rh:case ch:case uh:return e;default:switch(e=e&&e.$$typeof){case lh:case ih:case sh:case ph:case dh:case ah:return e;default:return t}}case th:return t}}}Kf=Symbol.for("react.module.reference"),Yf.ContextConsumer=ih,Yf.ContextProvider=ah,Yf.Element=eh,Yf.ForwardRef=sh,Yf.Fragment=nh,Yf.Lazy=ph,Yf.Memo=dh,Yf.Portal=th,Yf.Profiler=oh,Yf.StrictMode=rh,Yf.Suspense=ch,Yf.SuspenseList=uh,Yf.isAsyncMode=function(){return!1},Yf.isConcurrentMode=function(){return!1},Yf.isContextConsumer=function(e){return hh(e)===ih},Yf.isContextProvider=function(e){return hh(e)===ah},Yf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===eh},Yf.isForwardRef=function(e){return hh(e)===sh},Yf.isFragment=function(e){return hh(e)===nh},Yf.isLazy=function(e){return hh(e)===ph},Yf.isMemo=function(e){return hh(e)===dh},Yf.isPortal=function(e){return hh(e)===th},Yf.isProfiler=function(e){return hh(e)===oh},Yf.isStrictMode=function(e){return hh(e)===rh},Yf.isSuspense=function(e){return hh(e)===ch},Yf.isSuspenseList=function(e){return hh(e)===uh},Yf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===nh||e===oh||e===rh||e===ch||e===uh||e===fh||"object"==typeof e&&null!==e&&(e.$$typeof===ph||e.$$typeof===dh||e.$$typeof===ah||e.$$typeof===ih||e.$$typeof===sh||e.$$typeof===Kf||void 0!==e.getModuleId)},Yf.typeOf=hh,Jf.exports=Yf;var mh=Jf.exports,gh=mh,vh={};vh[gh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vh[gh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var bh="undefined"!=typeof document;var yh=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===bh&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},xh=function(e,t,n){yh(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);bh||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!bh&&0!==o.length)return o}};var Sh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wh=!1,Eh=/[A-Z]|^ms/g,Ch=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kh=function(e){return 45===e.charCodeAt(1)},Rh=function(e){return null!=e&&"boolean"!=typeof e},Lh=Dp((function(e){return kh(e)?e:e.replace(Eh,"-$&").toLowerCase()})),Oh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ch,(function(e,t,n){return Th={name:t,styles:n,next:Th},t}))}return 1===Sh[e]||kh(e)||"number"!=typeof t||0===t?t:t+"px"},_h="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ih(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Th={name:o.name,styles:o.styles,next:Th},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)Th={name:i.name,styles:i.styles,next:Th},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ih(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var l=i;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":Rh(l)&&(r+=Lh(a)+":"+Oh(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&wh)throw new Error(_h);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Ih(e,t,i);switch(a){case"animation":case"animationName":r+=Lh(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)Rh(i[c])&&(r+=Lh(a)+":"+Oh(a,i[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=Th,s=n(e);return Th=l,Ih(e,t,s)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Th,Ph=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function Mh(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Th=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Ih(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=Ih(n,t,e[i]),r)o+=a[i]}Ph.lastIndex=0;for(var l,s="";null!==(l=Ph.exec(o));)s+="-"+l[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:c,styles:o,next:Th}}var Nh="undefined"!=typeof document,qh=function(e){return e()},Ah=!!G.useInsertionEffect&&G.useInsertionEffect,zh=Nh&&Ah||qh,Dh=Ah||U.useLayoutEffect,jh="undefined"!=typeof document,Fh=U.createContext("undefined"!=typeof HTMLElement?Qf({key:"css"}):null),$h=Fh.Provider,Bh=function(e){return U.forwardRef((function(t,n){var r=U.useContext(Fh);return e(t,r,n)}))};jh||(Bh=function(e){return function(t){var n=U.useContext(Fh);return null===n?(n=Qf({key:"css"}),U.createElement(Fh.Provider,{value:n},e(t,n))):e(t,n)}});var Wh=U.createContext({}),Hh=Bh((function(e,t){var n=Mh([e.styles],void 0,U.useContext(Wh));if(!jh){for(var r,o=n.name,a=n.styles,i=n.next;void 0!==i;)o+=" "+i.name,a+=i.styles,i=i.next;var l=!0===t.compat,s=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:U.createElement("style",((r={})["data-emotion"]=t.key+"-global "+o,r.dangerouslySetInnerHTML={__html:s},r.nonce=t.sheet.nonce,r))}var c=U.useRef();return Dh((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),r.hydrate([a])),c.current=[r,o],function(){r.flush()}}),[t]),Dh((function(){var e=c.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&xh(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function Uh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Mh(t)}var Vh=function(){var e=Uh.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Gh=Fp,Kh=function(e){return"theme"!==e},Zh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Gh:Kh},Xh=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Qh="undefined"!=typeof document,Jh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;yh(t,n,r);var o=zh((function(){return xh(t,n,r)}));if(!Qh&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return U.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},Yh=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=Xh(t,n,a),s=l||Zh(i),c=!s("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=Bh((function(e,t,n){var r,a,u,p,f=c&&e.as||i,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=U.useContext(Wh)}"string"==typeof e.className?(r=t.registered,a=m,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==r[e]?a.push(r[e]+";"):p+=e+" "})),h=p):null!=e.className&&(h=e.className+" ");var b=Mh(d.concat(m),t.registered,g);h+=t.key+"-"+b.name,void 0!==o&&(h+=" "+o);var y=c&&void 0===l?Zh(f):s,x={};for(var S in e)c&&"as"===S||y(S)&&(x[S]=e[S]);return x.className=h,n&&(x.ref=n),U.createElement(U.Fragment,null,U.createElement(Jh,{cache:t,serialized:b,isStringTag:"string"==typeof f}),U.createElement(f,x))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,zp({},n,r,{shouldForwardProp:Xh(h,r,!0)})).apply(void 0,d)},h}}.bind();["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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Yh[e]=Yh(e)}));var em=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var tm=function(e,t,n){for(var r=0,o=0;r=o,o=xf(),38===r&&12===o&&(t[n]=1),!Ef(o);)yf();return wf(e,ff)},nm=function(e,t){return kf(function(e,t){var n=-1,r=44;do{switch(Ef(r)){case 0:38===r&&12===xf()&&(t[n]=1),e[n]+=tm(ff-1,t,n);break;case 2:e[n]+=Rf(r);break;case 4:if(44===r){e[++n]=58===xf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Xp(r)}}while(r=yf());return e}(Cf(e),t))},rm=new WeakMap,om=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||rm.get(n))&&!r){rm.set(e,!0);for(var o=[],a=nm(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},am=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function im(e,t){switch(Jp(e,t)){case 5103:return Hp+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Hp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Hp+e+Wp+e+Bp+e+e;case 6828:case 4268:return Hp+e+Bp+e+e;case 6165:return Hp+e+Bp+"flex-"+e+e;case 5187:return Hp+e+tf(e,/(\w+).+(:[^]+)/,Hp+"box-$1$2"+Bp+"flex-$1$2")+e;case 5443:return Hp+e+Bp+"flex-item-"+tf(e,/flex-|-self/,"")+e;case 4675:return Hp+e+Bp+"flex-line-pack"+tf(e,/align-content|flex-|-self/,"")+e;case 5548:return Hp+e+Bp+tf(e,"shrink","negative")+e;case 5292:return Hp+e+Bp+tf(e,"basis","preferred-size")+e;case 6060:return Hp+"box-"+tf(e,"-grow","")+Hp+e+Bp+tf(e,"grow","positive")+e;case 4554:return Hp+tf(e,/([^-])(transform)/g,"$1"+Hp+"$2")+e;case 6187:return tf(tf(tf(e,/(zoom-|grab)/,Hp+"$1"),/(image-set)/,Hp+"$1"),e,"")+e;case 5495:case 3959:return tf(e,/(image-set\([^]*)/,Hp+"$1$`$1");case 4968:return tf(tf(e,/(.+:)(flex-)?(.*)/,Hp+"box-pack:$3"+Bp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Hp+e+e;case 4095:case 3583:case 4068:case 2532:return tf(e,/(.+)-inline(.+)/,Hp+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(af(e)-1-t>6)switch(rf(e,t+1)){case 109:if(45!==rf(e,t+4))break;case 102:return tf(e,/(.+:)(.+)-([^]+)/,"$1"+Hp+"$2-$3$1"+Wp+(108==rf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~nf(e,"stretch")?im(tf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==rf(e,t+1))break;case 6444:switch(rf(e,af(e)-3-(~nf(e,"!important")&&10))){case 107:return tf(e,":",":"+Hp)+e;case 101:return tf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Hp+(45===rf(e,14)?"inline-":"")+"box$3$1"+Hp+"$2$3$1"+Bp+"$2box$3")+e}break;case 5936:switch(rf(e,t+11)){case 114:return Hp+e+Bp+tf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Hp+e+Bp+tf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Hp+e+Bp+tf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Hp+e+Bp+e+e}return e}var lm="undefined"!=typeof document,sm=lm?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(){var e={};return function(t){return e[t]}}))})),cm=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Gp:e.return=im(e.value,e.length);break;case Kp:return zf([vf(e,{value:tf(e.value,"@","@"+Hp)})],r);case Vp:if(e.length)return cf(e.props,(function(t){switch(ef(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zf([vf(e,{props:[tf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return zf([vf(e,{props:[tf(t,/:(plac\w+)/,":"+Hp+"input-$1")]}),vf(e,{props:[tf(t,/:(plac\w+)/,":-moz-$1")]}),vf(e,{props:[tf(t,/:(plac\w+)/,Bp+"input-$1")]})],r)}return""}))}}],um={exports:{}},dm={},pm=U,fm=Symbol.for("react.element"),hm=Symbol.for("react.fragment"),mm=Object.prototype.hasOwnProperty,gm=pm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vm={key:!0,ref:!0,__self:!0,__source:!0};function bm(e,t,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)mm.call(t,r)&&!vm.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:fm,type:e,key:a,ref:i,props:o,_owner:gm.current}}dm.Fragment=hm,dm.jsx=bm,dm.jsxs=bm,um.exports=dm;var ym=um.exports;let xm;function Sm(e){const{injectFirst:t,children:n}=e;return t&&xm?ym.jsx($h,{value:xm,children:n}):n}function wm(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return ym.jsx(Hh,{styles:r})}
|
|
26
|
+
*/function It(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 Pt=new Set,Tt={};function Mt(e,t){Nt(e,t),Nt(e+"Capture",t)}function Nt(e,t){for(Tt[e]=t,e=0;e<t.length;e++)Pt.add(t[e])}var qt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),At=Object.prototype.hasOwnProperty,zt=/^[: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]*$/,Dt={},jt={};function Ft(e,t,n,r,o,a,i){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=a,this.removeEmptyString=i}var $t={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){$t[e]=new Ft(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];$t[t]=new Ft(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){$t[e]=new Ft(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){$t[e]=new Ft(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){$t[e]=new Ft(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){$t[e]=new Ft(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){$t[e]=new Ft(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){$t[e]=new Ft(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){$t[e]=new Ft(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Bt=/[\-:]([a-z])/g;function Wt(e){return e[1].toUpperCase()}function Ht(e,t,n,r){var o=$t.hasOwnProperty(t)?$t[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!!At.call(jt,e)||!At.call(Dt,e)&&(zt.test(e)?jt[e]=!0:(Dt[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(Bt,Wt);$t[t]=new Ft(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(Bt,Wt);$t[t]=new Ft(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(Bt,Wt);$t[t]=new Ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){$t[e]=new Ft(e,1,!1,e.toLowerCase(),null,!1,!1)})),$t.xlinkHref=new Ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){$t[e]=new Ft(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Ut=Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vt=Symbol.for("react.element"),Gt=Symbol.for("react.portal"),Kt=Symbol.for("react.fragment"),Zt=Symbol.for("react.strict_mode"),Xt=Symbol.for("react.profiler"),Qt=Symbol.for("react.provider"),Jt=Symbol.for("react.context"),Yt=Symbol.for("react.forward_ref"),en=Symbol.for("react.suspense"),tn=Symbol.for("react.suspense_list"),nn=Symbol.for("react.memo"),rn=Symbol.for("react.lazy"),on=Symbol.for("react.offscreen"),an=Symbol.iterator;function ln(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=an&&e[an]||e["@@iterator"])?e:null}var sn,cn=Object.assign;function un(e){if(void 0===sn)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);sn=t&&t[1]||""}return"\n"+sn+e}var dn=!1;function pn(e,t){if(!e||dn)return"";dn=!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"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{dn=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?un(e):""}function fn(e){switch(e.tag){case 5:return un(e.type);case 16:return un("Lazy");case 13:return un("Suspense");case 19:return un("SuspenseList");case 0:case 2:case 15:return e=pn(e.type,!1);case 11:return e=pn(e.type.render,!1);case 1:return e=pn(e.type,!0);default:return""}}function hn(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 Kt:return"Fragment";case Gt:return"Portal";case Xt:return"Profiler";case Zt:return"StrictMode";case en:return"Suspense";case tn:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Jt:return(e.displayName||"Context")+".Consumer";case Qt:return(e._context.displayName||"Context")+".Provider";case Yt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case nn:return null!==(t=e.displayName||null)?t:hn(e.type)||"Memo";case rn:t=e._payload,e=e._init;try{return hn(e(t))}catch(e){}}return null}function mn(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 hn(t);case 8:return t===Zt?"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 gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function vn(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function bn(e){e._valueTracker||(e._valueTracker=function(e){var t=vn(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.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 yn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vn(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xn(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 Sn(e,t){var n=t.checked;return cn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function wn(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=gn(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 En(e,t){null!=(t=t.checked)&&Ht(e,"checked",t,!1)}function Cn(e,t){En(e,t);var n=gn(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")?Rn(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rn(e,t.type,gn(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function kn(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 Rn(e,t,n){"number"===t&&xn(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ln=Array.isArray;function On(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=""+gn(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 _n(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(It(91));return cn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function In(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(It(92));if(Ln(n)){if(1<n.length)throw Error(It(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:gn(n)}}function Pn(e,t){var n=gn(t.value),r=gn(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 Tn(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Mn(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 Nn(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Mn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var qn,An,zn=(An=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((qn=qn||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=qn.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 An(e,t)}))}:An);function Dn(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 jn={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},Fn=["Webkit","ms","Moz","O"];function $n(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||jn.hasOwnProperty(e)&&jn[e]?(""+t).trim():t+"px"}function Bn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=$n(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(jn).forEach((function(e){Fn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jn[t]=jn[e]}))}));var Wn=cn({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 Hn(e,t){if(t){if(Wn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(It(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(It(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(It(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(It(62))}}function Un(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 Vn=null;function Gn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Kn=null,Zn=null,Xn=null;function Qn(e){if(e=Ui(e)){if("function"!=typeof Kn)throw Error(It(280));var t=e.stateNode;t&&(t=Gi(t),Kn(e.stateNode,e.type,t))}}function Jn(e){Zn?Xn?Xn.push(e):Xn=[e]:Zn=e}function Yn(){if(Zn){var e=Zn,t=Xn;if(Xn=Zn=null,Qn(e),t)for(e=0;e<t.length;e++)Qn(t[e])}}function er(e,t){return e(t)}function tr(){}var nr=!1;function rr(e,t,n){if(nr)return e(t,n);nr=!0;try{return er(e,t,n)}finally{nr=!1,(null!==Zn||null!==Xn)&&(tr(),Yn())}}function or(e,t){var n=e.stateNode;if(null===n)return null;var r=Gi(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(It(231,t,typeof n));return n}var ar=!1;if(qt)try{var ir={};Object.defineProperty(ir,"passive",{get:function(){ar=!0}}),window.addEventListener("test",ir,ir),window.removeEventListener("test",ir,ir)}catch(An){ar=!1}function lr(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var sr=!1,cr=null,ur=!1,dr=null,pr={onError:function(e){sr=!0,cr=e}};function fr(e,t,n,r,o,a,i,l,s){sr=!1,cr=null,lr.apply(pr,arguments)}function hr(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 mr(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 gr(e){if(hr(e)!==e)throw Error(It(188))}function vr(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=hr(e)))throw Error(It(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return gr(o),e;if(a===r)return gr(o),t;a=a.sibling}throw Error(It(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(It(189))}}if(n.alternate!==r)throw Error(It(190))}if(3!==n.tag)throw Error(It(188));return n.stateNode.current===n?e:t}(e),null!==e?br(e):null}function br(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=br(e);if(null!==t)return t;e=e.sibling}return null}var yr=_t.unstable_scheduleCallback,xr=_t.unstable_cancelCallback,Sr=_t.unstable_shouldYield,wr=_t.unstable_requestPaint,Er=_t.unstable_now,Cr=_t.unstable_getCurrentPriorityLevel,kr=_t.unstable_ImmediatePriority,Rr=_t.unstable_UserBlockingPriority,Lr=_t.unstable_NormalPriority,Or=_t.unstable_LowPriority,_r=_t.unstable_IdlePriority,Ir=null,Pr=null;var Tr=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Mr(e)/Nr|0)|0},Mr=Math.log,Nr=Math.LN2;var qr=64,Ar=4194304;function zr(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 Dr(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=zr(l):0!==(a&=i)&&(r=zr(a))}else 0!==(i=n&~o)?r=zr(i):0!==a&&(r=zr(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))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-Tr(t)),r|=e[n],t&=~o;return r}function jr(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 Fr(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function $r(){var e=qr;return 0==(4194240&(qr<<=1))&&(qr=64),e}function Br(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wr(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Tr(t)]=n}function Hr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Tr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Ur=0;function Vr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Gr,Kr,Zr,Xr,Qr,Jr=!1,Yr=[],eo=null,to=null,no=null,ro=new Map,oo=new Map,ao=[],io="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 lo(e,t){switch(e){case"focusin":case"focusout":eo=null;break;case"dragenter":case"dragleave":to=null;break;case"mouseover":case"mouseout":no=null;break;case"pointerover":case"pointerout":ro.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":oo.delete(t.pointerId)}}function so(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=Ui(t))&&Kr(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function co(e){var t=Hi(e.target);if(null!==t){var n=hr(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=mr(n)))return e.blockedOn=t,void Qr(e.priority,(function(){Zr(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 uo(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=wo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Ui(n))&&Kr(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Vn=r,n.target.dispatchEvent(r),Vn=null,t.shift()}return!0}function po(e,t,n){uo(e)&&n.delete(t)}function fo(){Jr=!1,null!==eo&&uo(eo)&&(eo=null),null!==to&&uo(to)&&(to=null),null!==no&&uo(no)&&(no=null),ro.forEach(po),oo.forEach(po)}function ho(e,t){e.blockedOn===t&&(e.blockedOn=null,Jr||(Jr=!0,_t.unstable_scheduleCallback(_t.unstable_NormalPriority,fo)))}function mo(e){function t(t){return ho(t,e)}if(0<Yr.length){ho(Yr[0],e);for(var n=1;n<Yr.length;n++){var r=Yr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==eo&&ho(eo,e),null!==to&&ho(to,e),null!==no&&ho(no,e),ro.forEach(t),oo.forEach(t),n=0;n<ao.length;n++)(r=ao[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ao.length&&null===(n=ao[0]).blockedOn;)co(n),null===n.blockedOn&&ao.shift()}var go=Ut.ReactCurrentBatchConfig,vo=!0;function bo(e,t,n,r){var o=Ur,a=go.transition;go.transition=null;try{Ur=1,xo(e,t,n,r)}finally{Ur=o,go.transition=a}}function yo(e,t,n,r){var o=Ur,a=go.transition;go.transition=null;try{Ur=4,xo(e,t,n,r)}finally{Ur=o,go.transition=a}}function xo(e,t,n,r){if(vo){var o=wo(e,t,n,r);if(null===o)gi(e,t,r,So,n),lo(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return eo=so(eo,e,t,n,r,o),!0;case"dragenter":return to=so(to,e,t,n,r,o),!0;case"mouseover":return no=so(no,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return ro.set(a,so(ro.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,oo.set(a,so(oo.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(lo(e,r),4&t&&-1<io.indexOf(e)){for(;null!==o;){var a=Ui(o);if(null!==a&&Gr(a),null===(a=wo(e,t,n,r))&&gi(e,t,r,So,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else gi(e,t,r,null,n)}}var So=null;function wo(e,t,n,r){if(So=null,null!==(e=Hi(e=Gn(r))))if(null===(t=hr(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=mr(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 So=e,null}function Eo(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(Cr()){case kr:return 1;case Rr:return 4;case Lr:case Or:return 16;case _r:return 536870912;default:return 16}default:return 16}}var Co=null,ko=null,Ro=null;function Lo(){if(Ro)return Ro;var e,t,n=ko,r=n.length,o="value"in Co?Co.value:Co.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Ro=o.slice(e,1<t?1-t:void 0)}function Oo(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 _o(){return!0}function Io(){return!1}function Po(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?_o:Io,this.isPropagationStopped=Io,this}return cn(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=_o)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=_o)},persist:function(){},isPersistent:_o}),t}var To,Mo,No,qo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ao=Po(qo),zo=cn({},qo,{view:0,detail:0}),Do=Po(zo),jo=cn({},zo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qo,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!==No&&(No&&"mousemove"===e.type?(To=e.screenX-No.screenX,Mo=e.screenY-No.screenY):Mo=To=0,No=e),To)},movementY:function(e){return"movementY"in e?e.movementY:Mo}}),Fo=Po(jo),$o=Po(cn({},jo,{dataTransfer:0})),Bo=Po(cn({},zo,{relatedTarget:0})),Wo=Po(cn({},qo,{animationName:0,elapsedTime:0,pseudoElement:0})),Ho=cn({},qo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uo=Po(Ho),Vo=Po(cn({},qo,{data:0})),Go={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ko={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"},Zo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Zo[e])&&!!t[e]}function Qo(){return Xo}var Jo=cn({},zo,{key:function(e){if(e.key){var t=Go[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Oo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Ko[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qo,charCode:function(e){return"keypress"===e.type?Oo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Oo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Yo=Po(Jo),ea=Po(cn({},jo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ta=Po(cn({},zo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qo})),na=Po(cn({},qo,{propertyName:0,elapsedTime:0,pseudoElement:0})),ra=cn({},jo,{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}),oa=Po(ra),aa=[9,13,27,32],ia=qt&&"CompositionEvent"in window,la=null;qt&&"documentMode"in document&&(la=document.documentMode);var sa=qt&&"TextEvent"in window&&!la,ca=qt&&(!ia||la&&8<la&&11>=la),ua=String.fromCharCode(32),da=!1;function pa(e,t){switch(e){case"keyup":return-1!==aa.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fa(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ha=!1;var ma={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 ga(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ma[e.type]:"textarea"===t}function va(e,t,n,r){Jn(r),0<(t=bi(t,"onChange")).length&&(n=new Ao("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ba=null,ya=null;function xa(e){ui(e,0)}function Sa(e){if(yn(Vi(e)))return e}function wa(e,t){if("change"===e)return t}var Ea=!1;if(qt){var Ca;if(qt){var ka="oninput"in document;if(!ka){var Ra=document.createElement("div");Ra.setAttribute("oninput","return;"),ka="function"==typeof Ra.oninput}Ca=ka}else Ca=!1;Ea=Ca&&(!document.documentMode||9<document.documentMode)}function La(){ba&&(ba.detachEvent("onpropertychange",Oa),ya=ba=null)}function Oa(e){if("value"===e.propertyName&&Sa(ya)){var t=[];va(t,ya,e,Gn(e)),rr(xa,t)}}function _a(e,t,n){"focusin"===e?(La(),ya=n,(ba=t).attachEvent("onpropertychange",Oa)):"focusout"===e&&La()}function Ia(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Sa(ya)}function Pa(e,t){if("click"===e)return Sa(t)}function Ta(e,t){if("input"===e||"change"===e)return Sa(t)}var Ma="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Na(e,t){if(Ma(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(!At.call(t,o)||!Ma(e[o],t[o]))return!1}return!0}function qa(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Aa(e,t){var n,r=qa(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=qa(r)}}function za(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?za(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Da(){for(var e=window,t=xn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=xn((e=t.contentWindow).document)}return t}function ja(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 Fa(e){var t=Da(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&za(n.ownerDocument.documentElement,n)){if(null!==r&&ja(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,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=Aa(n,a);var i=Aa(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 $a=qt&&"documentMode"in document&&11>=document.documentMode,Ba=null,Wa=null,Ha=null,Ua=!1;function Va(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Ua||null==Ba||Ba!==xn(r)||("selectionStart"in(r=Ba)&&ja(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},Ha&&Na(Ha,r)||(Ha=r,0<(r=bi(Wa,"onSelect")).length&&(t=new Ao("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ba)))}function Ga(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ka={animationend:Ga("Animation","AnimationEnd"),animationiteration:Ga("Animation","AnimationIteration"),animationstart:Ga("Animation","AnimationStart"),transitionend:Ga("Transition","TransitionEnd")},Za={},Xa={};function Qa(e){if(Za[e])return Za[e];if(!Ka[e])return e;var t,n=Ka[e];for(t in n)if(n.hasOwnProperty(t)&&t in Xa)return Za[e]=n[t];return e}qt&&(Xa=document.createElement("div").style,"AnimationEvent"in window||(delete Ka.animationend.animation,delete Ka.animationiteration.animation,delete Ka.animationstart.animation),"TransitionEvent"in window||delete Ka.transitionend.transition);var Ja=Qa("animationend"),Ya=Qa("animationiteration"),ei=Qa("animationstart"),ti=Qa("transitionend"),ni=new Map,ri="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 oi(e,t){ni.set(e,t),Mt(t,[e])}for(var ai=0;ai<ri.length;ai++){var ii=ri[ai];oi(ii.toLowerCase(),"on"+(ii[0].toUpperCase()+ii.slice(1)))}oi(Ja,"onAnimationEnd"),oi(Ya,"onAnimationIteration"),oi(ei,"onAnimationStart"),oi("dblclick","onDoubleClick"),oi("focusin","onFocus"),oi("focusout","onBlur"),oi(ti,"onTransitionEnd"),Nt("onMouseEnter",["mouseout","mouseover"]),Nt("onMouseLeave",["mouseout","mouseover"]),Nt("onPointerEnter",["pointerout","pointerover"]),Nt("onPointerLeave",["pointerout","pointerover"]),Mt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Mt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Mt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Mt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Mt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Mt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var li="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(" "),si=new Set("cancel close invalid load scroll toggle".split(" ").concat(li));function ci(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,s){if(fr.apply(this,arguments),sr){if(!sr)throw Error(It(198));var c=cr;sr=!1,cr=null,ur||(ur=!0,dr=c)}}(r,t,void 0,e),e.currentTarget=null}function ui(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 a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;ci(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;ci(o,l,c),a=s}}}if(ur)throw e=dr,ur=!1,dr=null,e}function di(e,t){var n=t[$i];void 0===n&&(n=t[$i]=new Set);var r=e+"__bubble";n.has(r)||(mi(t,e,2,!1),n.add(r))}function pi(e,t,n){var r=0;t&&(r|=4),mi(n,e,r,t)}var fi="_reactListening"+Math.random().toString(36).slice(2);function hi(e){if(!e[fi]){e[fi]=!0,Pt.forEach((function(t){"selectionchange"!==t&&(si.has(t)||pi(t,!1,e),pi(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[fi]||(t[fi]=!0,pi("selectionchange",!1,t))}}function mi(e,t,n,r){switch(Eo(t)){case 1:var o=bo;break;case 4:o=yo;break;default:o=xo}n=o.bind(null,t,n,e),o=void 0,!ar||"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 gi(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=Hi(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}rr((function(){var r=a,o=Gn(n),i=[];e:{var l=ni.get(e);if(void 0!==l){var s=Ao,c=e;switch(e){case"keypress":if(0===Oo(n))break e;case"keydown":case"keyup":s=Yo;break;case"focusin":c="focus",s=Bo;break;case"focusout":c="blur",s=Bo;break;case"beforeblur":case"afterblur":s=Bo;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=Fo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=$o;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=ta;break;case Ja:case Ya:case ei:s=Wo;break;case ti:s=na;break;case"scroll":s=Do;break;case"wheel":s=oa;break;case"copy":case"cut":case"paste":s=Uo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=ea}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==l?l+"Capture":null:l;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=or(h,p))&&u.push(vi(h,m,f)))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),i.push({event:l,listeners:u}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Vn||!(c=n.relatedTarget||n.fromElement)||!Hi(c)&&!c[Fi])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?Hi(c):null)&&(c!==(d=hr(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=Fo,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=ea,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:Vi(s),f=null==c?l:Vi(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,Hi(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,s&&c)e:{for(p=c,h=0,f=u=s;f;f=yi(f))h++;for(f=0,m=p;m;m=yi(m))f++;for(;0<h-f;)u=yi(u),h--;for(;0<f-h;)p=yi(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=yi(u),p=yi(p)}u=null}else u=null;null!==s&&xi(i,l,s,u,!1),null!==c&&null!==d&&xi(i,d,c,u,!0)}if("select"===(s=(l=r?Vi(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=wa;else if(ga(l))if(Ea)g=Ta;else{g=Ia;var v=_a}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=Pa);switch(g&&(g=g(e,r))?va(i,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&Rn(l,"number",l.value)),v=r?Vi(r):window,e){case"focusin":(ga(v)||"true"===v.contentEditable)&&(Ba=v,Wa=r,Ha=null);break;case"focusout":Ha=Wa=Ba=null;break;case"mousedown":Ua=!0;break;case"contextmenu":case"mouseup":case"dragend":Ua=!1,Va(i,n,o);break;case"selectionchange":if($a)break;case"keydown":case"keyup":Va(i,n,o)}var b;if(ia)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 ha?pa(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(ca&&"ko"!==n.locale&&(ha||"onCompositionStart"!==y?"onCompositionEnd"===y&&ha&&(b=Lo()):(ko="value"in(Co=o)?Co.value:Co.textContent,ha=!0)),0<(v=bi(r,y)).length&&(y=new Vo(y,e,null,n,o),i.push({event:y,listeners:v}),b?y.data=b:null!==(b=fa(n))&&(y.data=b))),(b=sa?function(e,t){switch(e){case"compositionend":return fa(t);case"keypress":return 32!==t.which?null:(da=!0,ua);case"textInput":return(e=t.data)===ua&&da?null:e;default:return null}}(e,n):function(e,t){if(ha)return"compositionend"===e||!ia&&pa(e,t)?(e=Lo(),Ro=ko=Co=null,ha=!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 ca&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=bi(r,"onBeforeInput")).length&&(o=new Vo("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=b))}ui(i,t)}))}function vi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bi(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=or(e,n))&&r.unshift(vi(e,a,o)),null!=(a=or(e,t))&&r.push(vi(e,a,o))),e=e.return}return r}function yi(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function xi(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=or(n,a))&&i.unshift(vi(n,s,l)):o||null!=(s=or(n,a))&&i.push(vi(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Si=/\r\n?/g,wi=/\u0000|\uFFFD/g;function Ei(e){return("string"==typeof e?e:""+e).replace(Si,"\n").replace(wi,"")}function Ci(e,t,n){if(t=Ei(t),Ei(e)!==t&&n)throw Error(It(425))}function ki(){}var Ri=null,Li=null;function Oi(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 _i="function"==typeof setTimeout?setTimeout:void 0,Ii="function"==typeof clearTimeout?clearTimeout:void 0,Pi="function"==typeof Promise?Promise:void 0,Ti="function"==typeof queueMicrotask?queueMicrotask:void 0!==Pi?function(e){return Pi.resolve(null).then(e).catch(Mi)}:_i;function Mi(e){setTimeout((function(){throw e}))}function Ni(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 mo(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);mo(t)}function qi(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 Ai(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 zi=Math.random().toString(36).slice(2),Di="__reactFiber$"+zi,ji="__reactProps$"+zi,Fi="__reactContainer$"+zi,$i="__reactEvents$"+zi,Bi="__reactListeners$"+zi,Wi="__reactHandles$"+zi;function Hi(e){var t=e[Di];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Fi]||n[Di]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ai(e);null!==e;){if(n=e[Di])return n;e=Ai(e)}return t}n=(e=n).parentNode}return null}function Ui(e){return!(e=e[Di]||e[Fi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Vi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(It(33))}function Gi(e){return e[ji]||null}var Ki=[],Zi=-1;function Xi(e){return{current:e}}function Qi(e){0>Zi||(e.current=Ki[Zi],Ki[Zi]=null,Zi--)}function Ji(e,t){Zi++,Ki[Zi]=e.current,e.current=t}var Yi={},el=Xi(Yi),tl=Xi(!1),nl=Yi;function rl(e,t){var n=e.type.contextTypes;if(!n)return Yi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ol(e){return null!=(e=e.childContextTypes)}function al(){Qi(tl),Qi(el)}function il(e,t,n){if(el.current!==Yi)throw Error(It(168));Ji(el,t),Ji(tl,n)}function ll(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(It(108,mn(e)||"Unknown",o));return cn({},n,r)}function sl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yi,nl=el.current,Ji(el,e),Ji(tl,tl.current),!0}function cl(e,t,n){var r=e.stateNode;if(!r)throw Error(It(169));n?(e=ll(e,t,nl),r.__reactInternalMemoizedMergedChildContext=e,Qi(tl),Qi(el),Ji(el,e)):Qi(tl),Ji(tl,n)}var ul=null,dl=!1,pl=!1;function fl(e){null===ul?ul=[e]:ul.push(e)}function hl(){if(!pl&&null!==ul){pl=!0;var e=0,t=Ur;try{var n=ul;for(Ur=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}ul=null,dl=!1}catch(t){throw null!==ul&&(ul=ul.slice(e+1)),yr(kr,hl),t}finally{Ur=t,pl=!1}}return null}var ml=[],gl=0,vl=null,bl=0,yl=[],xl=0,Sl=null,wl=1,El="";function Cl(e,t){ml[gl++]=bl,ml[gl++]=vl,vl=e,bl=t}function kl(e,t,n){yl[xl++]=wl,yl[xl++]=El,yl[xl++]=Sl,Sl=e;var r=wl;e=El;var o=32-Tr(r)-1;r&=~(1<<o),n+=1;var a=32-Tr(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,wl=1<<32-Tr(t)+o|n<<o|r,El=a+e}else wl=1<<a|n<<o|r,El=e}function Rl(e){null!==e.return&&(Cl(e,1),kl(e,1,0))}function Ll(e){for(;e===vl;)vl=ml[--gl],ml[gl]=null,bl=ml[--gl],ml[gl]=null;for(;e===Sl;)Sl=yl[--xl],yl[xl]=null,El=yl[--xl],yl[xl]=null,wl=yl[--xl],yl[xl]=null}var Ol=null,_l=null,Il=!1,Pl=null;function Tl(e,t){var n=np(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 Ml(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,Ol=e,_l=qi(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Ol=e,_l=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Sl?{id:wl,overflow:El}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=np(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Ol=e,_l=null,!0);default:return!1}}function Nl(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ql(e){if(Il){var t=_l;if(t){var n=t;if(!Ml(e,t)){if(Nl(e))throw Error(It(418));t=qi(n.nextSibling);var r=Ol;t&&Ml(e,t)?Tl(r,n):(e.flags=-4097&e.flags|2,Il=!1,Ol=e)}}else{if(Nl(e))throw Error(It(418));e.flags=-4097&e.flags|2,Il=!1,Ol=e}}}function Al(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ol=e}function zl(e){if(e!==Ol)return!1;if(!Il)return Al(e),Il=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Oi(e.type,e.memoizedProps)),t&&(t=_l)){if(Nl(e))throw Dl(),Error(It(418));for(;t;)Tl(e,t),t=qi(t.nextSibling)}if(Al(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(It(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){_l=qi(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}_l=null}}else _l=Ol?qi(e.stateNode.nextSibling):null;return!0}function Dl(){for(var e=_l;e;)e=qi(e.nextSibling)}function jl(){_l=Ol=null,Il=!1}function Fl(e){null===Pl?Pl=[e]:Pl.push(e)}var $l=Ut.ReactCurrentBatchConfig;function Bl(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(It(309));var r=n.stateNode}if(!r)throw Error(It(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(It(284));if(!n._owner)throw Error(It(290,e))}return e}function Wl(e,t){throw e=Object.prototype.toString.call(t),Error(It(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hl(e){return(0,e._init)(e._payload)}function Ul(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=op(e,t)).index=0,e.sibling=null,e}function a(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 i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=sp(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var a=n.type;return a===Kt?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===rn&&Hl(a)===t.type)?((r=o(t,n.props)).ref=Bl(e,t,n),r.return=e,r):((r=ap(n.type,n.key,n.props,null,e.mode,r)).ref=Bl(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=cp(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,a){return null===t||7!==t.tag?((t=ip(n,e.mode,r,a)).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=sp(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Vt:return(n=ap(t.type,t.key,t.props,null,e.mode,n)).ref=Bl(e,null,t),n.return=e,n;case Gt:return(t=cp(t,e.mode,n)).return=e,t;case rn:return d(e,(0,t._init)(t._payload),n)}if(Ln(t)||ln(t))return(t=ip(t,e.mode,n,null)).return=e,t;Wl(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 Vt:return n.key===o?s(e,t,n,r):null;case Gt:return n.key===o?c(e,t,n,r):null;case rn:return p(e,t,(o=n._init)(n._payload),r)}if(Ln(n)||ln(n))return null!==o?null:u(e,t,n,r,null);Wl(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 Vt:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Gt:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case rn:return f(e,t,n,(0,r._init)(r._payload),o)}if(Ln(r)||ln(r))return u(t,e=e.get(n)||null,r,o,null);Wl(t,r)}return null}function h(o,i,l,s){for(var c=null,u=null,h=i,m=i=0,g=null;null!==h&&m<l.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=p(o,h,l[m],s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===l.length)return n(o,h),Il&&Cl(o,m),c;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(i=a(h,i,m),null===u?c=h:u.sibling=h,u=h);return Il&&Cl(o,m),c}for(h=r(o,h);m<l.length;m++)null!==(g=f(h,o,m,l[m],s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach((function(e){return t(o,e)})),Il&&Cl(o,m),c}function m(o,i,l,s){var c=ln(l);if("function"!=typeof c)throw Error(It(150));if(null==(l=c.call(l)))throw Error(It(151));for(var u=c=null,h=i,m=i=0,g=null,v=l.next();null!==h&&!v.done;m++,v=l.next()){h.index>m?(g=h,h=null):g=h.sibling;var b=p(o,h,v.value,s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),i=a(b,i,m),null===u?c=b:u.sibling=b,u=b,h=g}if(v.done)return n(o,h),Il&&Cl(o,m),c;if(null===h){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,s))&&(i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return Il&&Cl(o,m),c}for(h=r(o,h);!v.done;m++,v=l.next())null!==(v=f(h,o,m,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return e&&h.forEach((function(e){return t(o,e)})),Il&&Cl(o,m),c}return function e(r,a,l,s){if("object"==typeof l&&null!==l&&l.type===Kt&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case Vt:e:{for(var c=l.key,u=a;null!==u;){if(u.key===c){if((c=l.type)===Kt){if(7===u.tag){n(r,u.sibling),(a=o(u,l.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===rn&&Hl(c)===u.type){n(r,u.sibling),(a=o(u,l.props)).ref=Bl(r,u,l),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}l.type===Kt?((a=ip(l.props.children,r.mode,s,l.key)).return=r,r=a):((s=ap(l.type,l.key,l.props,null,r.mode,s)).ref=Bl(r,a,l),s.return=r,r=s)}return i(r);case Gt:e:{for(u=l.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===l.containerInfo&&a.stateNode.implementation===l.implementation){n(r,a.sibling),(a=o(a,l.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=cp(l,r.mode,s)).return=r,r=a}return i(r);case rn:return e(r,a,(u=l._init)(l._payload),s)}if(Ln(l))return h(r,a,l,s);if(ln(l))return m(r,a,l,s);Wl(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,l)).return=r,r=a):(n(r,a),(a=sp(l,r.mode,s)).return=r,r=a),i(r)):n(r,a)}}var Vl=Ul(!0),Gl=Ul(!1),Kl=Xi(null),Zl=null,Xl=null,Ql=null;function Jl(){Ql=Xl=Zl=null}function Yl(e){var t=Kl.current;Qi(Kl),e._currentValue=t}function es(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 ts(e,t){Zl=e,Ql=Xl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Hc=!0),e.firstContext=null)}function ns(e){var t=e._currentValue;if(Ql!==e)if(e={context:e,memoizedValue:t,next:null},null===Xl){if(null===Zl)throw Error(It(308));Xl=e,Zl.dependencies={lanes:0,firstContext:e}}else Xl=Xl.next=e;return t}var rs=null;function os(e){null===rs?rs=[e]:rs.push(e)}function as(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,os(t)):(n.next=o.next,o.next=n),t.interleaved=n,is(e,r)}function is(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 ls=!1;function ss(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cs(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 us(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ds(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Yu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,is(e,n)}return null===(o=r.interleaved)?(t.next=t,os(r)):(t.next=o.next,o.next=t),r.interleaved=t,is(e,n)}function ps(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,Hr(e,n)}}function fs(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hs(e,t,n,r){var o=e.updateQueue;ls=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==a){var d=o.baseState;for(i=0,u=c=s=null,l=a;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=cn({},d,p);break e;case 2:ls=!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===u?(c=u=f,s=d):u=u.next=f,i|=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===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);ld|=i,e.lanes=i,e.memoizedState=d}}function ms(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(It(191,o));o.call(r)}}}var gs={},vs=Xi(gs),bs=Xi(gs),ys=Xi(gs);function xs(e){if(e===gs)throw Error(It(174));return e}function Ss(e,t){switch(Ji(ys,t),Ji(bs,e),Ji(vs,gs),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Nn(null,"");break;default:t=Nn(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Qi(vs),Ji(vs,t)}function ws(){Qi(vs),Qi(bs),Qi(ys)}function Es(e){xs(ys.current);var t=xs(vs.current),n=Nn(t,e.type);t!==n&&(Ji(bs,e),Ji(vs,n))}function Cs(e){bs.current===e&&(Qi(vs),Qi(bs))}var ks=Xi(0);function Rs(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 Ls=[];function Os(){for(var e=0;e<Ls.length;e++)Ls[e]._workInProgressVersionPrimary=null;Ls.length=0}var _s=Ut.ReactCurrentDispatcher,Is=Ut.ReactCurrentBatchConfig,Ps=0,Ts=null,Ms=null,Ns=null,qs=!1,As=!1,zs=0,Ds=0;function js(){throw Error(It(321))}function Fs(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ma(e[n],t[n]))return!1;return!0}function $s(e,t,n,r,o,a){if(Ps=a,Ts=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_s.current=null===e||null===e.memoizedState?Cc:kc,e=n(r,o),As){a=0;do{if(As=!1,zs=0,25<=a)throw Error(It(301));a+=1,Ns=Ms=null,t.updateQueue=null,_s.current=Rc,e=n(r,o)}while(As)}if(_s.current=Ec,t=null!==Ms&&null!==Ms.next,Ps=0,Ns=Ms=Ts=null,qs=!1,t)throw Error(It(300));return e}function Bs(){var e=0!==zs;return zs=0,e}function Ws(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ns?Ts.memoizedState=Ns=e:Ns=Ns.next=e,Ns}function Hs(){if(null===Ms){var e=Ts.alternate;e=null!==e?e.memoizedState:null}else e=Ms.next;var t=null===Ns?Ts.memoizedState:Ns.next;if(null!==t)Ns=t,Ms=e;else{if(null===e)throw Error(It(310));e={memoizedState:(Ms=e).memoizedState,baseState:Ms.baseState,baseQueue:Ms.baseQueue,queue:Ms.queue,next:null},null===Ns?Ts.memoizedState=Ns=e:Ns=Ns.next=e}return Ns}function Us(e,t){return"function"==typeof t?t(e):t}function Vs(e){var t=Hs(),n=t.queue;if(null===n)throw Error(It(311));n.lastRenderedReducer=e;var r=Ms,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=i=null,s=null,c=a;do{var u=c.lane;if((Ps&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,Ts.lanes|=u,ld|=u}c=c.next}while(null!==c&&c!==a);null===s?i=r:s.next=l,Ma(r,t.memoizedState)||(Hc=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,Ts.lanes|=a,ld|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Gs(e){var t=Hs(),n=t.queue;if(null===n)throw Error(It(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Ma(a,t.memoizedState)||(Hc=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ks(){}function Zs(e,t){var n=Ts,r=Hs(),o=t(),a=!Ma(r.memoizedState,o);if(a&&(r.memoizedState=o,Hc=!0),r=r.queue,lc(Js.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==Ns&&1&Ns.memoizedState.tag){if(n.flags|=2048,nc(9,Qs.bind(null,n,r,o,t),void 0,null),null===ed)throw Error(It(349));0!=(30&Ps)||Xs(n,t,o)}return o}function Xs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Ts.updateQueue)?(t={lastEffect:null,stores:null},Ts.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Qs(e,t,n,r){t.value=n,t.getSnapshot=r,Ys(t)&&ec(e)}function Js(e,t,n){return n((function(){Ys(t)&&ec(e)}))}function Ys(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ma(e,n)}catch(e){return!0}}function ec(e){var t=is(e,1);null!==t&&Ld(t,e,1,-1)}function tc(e){var t=Ws();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Us,lastRenderedState:e},t.queue=e,e=e.dispatch=yc.bind(null,Ts,e),[t.memoizedState,e]}function nc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ts.updateQueue)?(t={lastEffect:null,stores:null},Ts.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 rc(){return Hs().memoizedState}function oc(e,t,n,r){var o=Ws();Ts.flags|=e,o.memoizedState=nc(1|t,n,void 0,void 0===r?null:r)}function ac(e,t,n,r){var o=Hs();r=void 0===r?null:r;var a=void 0;if(null!==Ms){var i=Ms.memoizedState;if(a=i.destroy,null!==r&&Fs(r,i.deps))return void(o.memoizedState=nc(t,n,a,r))}Ts.flags|=e,o.memoizedState=nc(1|t,n,a,r)}function ic(e,t){return oc(8390656,8,e,t)}function lc(e,t){return ac(2048,8,e,t)}function sc(e,t){return ac(4,2,e,t)}function cc(e,t){return ac(4,4,e,t)}function uc(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 dc(e,t,n){return n=null!=n?n.concat([e]):null,ac(4,4,uc.bind(null,t,e),n)}function pc(){}function fc(e,t){var n=Hs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Fs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function hc(e,t){var n=Hs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Fs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function mc(e,t,n){return 0==(21&Ps)?(e.baseState&&(e.baseState=!1,Hc=!0),e.memoizedState=n):(Ma(n,t)||(n=$r(),Ts.lanes|=n,ld|=n,e.baseState=!0),t)}function gc(e,t){var n=Ur;Ur=0!==n&&4>n?n:4,e(!0);var r=Is.transition;Is.transition={};try{e(!1),t()}finally{Ur=n,Is.transition=r}}function vc(){return Hs().memoizedState}function bc(e,t,n){var r=Rd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xc(e))Sc(t,n);else if(null!==(n=as(e,t,n,r))){Ld(n,e,r,kd()),wc(n,t,r)}}function yc(e,t,n){var r=Rd(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xc(e))Sc(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,Ma(l,i)){var s=t.interleaved;return null===s?(o.next=o,os(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=as(e,t,o,r))&&(Ld(n,e,r,o=kd()),wc(n,t,r))}}function xc(e){var t=e.alternate;return e===Ts||null!==t&&t===Ts}function Sc(e,t){As=qs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wc(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Hr(e,n)}}var Ec={readContext:ns,useCallback:js,useContext:js,useEffect:js,useImperativeHandle:js,useInsertionEffect:js,useLayoutEffect:js,useMemo:js,useReducer:js,useRef:js,useState:js,useDebugValue:js,useDeferredValue:js,useTransition:js,useMutableSource:js,useSyncExternalStore:js,useId:js,unstable_isNewReconciler:!1},Cc={readContext:ns,useCallback:function(e,t){return Ws().memoizedState=[e,void 0===t?null:t],e},useContext:ns,useEffect:ic,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oc(4194308,4,uc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oc(4194308,4,e,t)},useInsertionEffect:function(e,t){return oc(4,2,e,t)},useMemo:function(e,t){var n=Ws();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ws();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=bc.bind(null,Ts,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ws().memoizedState=e},useState:tc,useDebugValue:pc,useDeferredValue:function(e){return Ws().memoizedState=e},useTransition:function(){var e=tc(!1),t=e[0];return e=gc.bind(null,e[1]),Ws().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ts,o=Ws();if(Il){if(void 0===n)throw Error(It(407));n=n()}else{if(n=t(),null===ed)throw Error(It(349));0!=(30&Ps)||Xs(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,ic(Js.bind(null,r,a,e),[e]),r.flags|=2048,nc(9,Qs.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ws(),t=ed.identifierPrefix;if(Il){var n=El;t=":"+t+"R"+(n=(wl&~(1<<32-Tr(wl)-1)).toString(32)+n),0<(n=zs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ds++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kc={readContext:ns,useCallback:fc,useContext:ns,useEffect:lc,useImperativeHandle:dc,useInsertionEffect:sc,useLayoutEffect:cc,useMemo:hc,useReducer:Vs,useRef:rc,useState:function(){return Vs(Us)},useDebugValue:pc,useDeferredValue:function(e){return mc(Hs(),Ms.memoizedState,e)},useTransition:function(){return[Vs(Us)[0],Hs().memoizedState]},useMutableSource:Ks,useSyncExternalStore:Zs,useId:vc,unstable_isNewReconciler:!1},Rc={readContext:ns,useCallback:fc,useContext:ns,useEffect:lc,useImperativeHandle:dc,useInsertionEffect:sc,useLayoutEffect:cc,useMemo:hc,useReducer:Gs,useRef:rc,useState:function(){return Gs(Us)},useDebugValue:pc,useDeferredValue:function(e){var t=Hs();return null===Ms?t.memoizedState=e:mc(t,Ms.memoizedState,e)},useTransition:function(){return[Gs(Us)[0],Hs().memoizedState]},useMutableSource:Ks,useSyncExternalStore:Zs,useId:vc,unstable_isNewReconciler:!1};function Lc(e,t){if(e&&e.defaultProps){for(var n in t=cn({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Oc(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:cn({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var _c={isMounted:function(e){return!!(e=e._reactInternals)&&hr(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=kd(),o=Rd(e),a=us(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=ds(e,a,o))&&(Ld(t,e,o,r),ps(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=kd(),o=Rd(e),a=us(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=ds(e,a,o))&&(Ld(t,e,o,r),ps(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kd(),r=Rd(e),o=us(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=ds(e,o,r))&&(Ld(t,e,r,n),ps(t,e,r))}};function Ic(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!Na(n,r)||!Na(o,a))}function Pc(e,t,n){var r=!1,o=Yi,a=t.contextType;return"object"==typeof a&&null!==a?a=ns(a):(o=ol(t)?nl:el.current,a=(r=null!=(r=t.contextTypes))?rl(e,o):Yi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=_c,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Tc(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&&_c.enqueueReplaceState(t,t.state,null)}function Mc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ss(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=ns(a):(a=ol(t)?nl:el.current,o.context=rl(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Oc(e,t,a,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&&_c.enqueueReplaceState(o,o.state,null),hs(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Nc(e,t){try{var n="",r=t;do{n+=fn(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 qc(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Ac(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var zc="function"==typeof WeakMap?WeakMap:Map;function Dc(e,t,n){(n=us(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){md||(md=!0,gd=r),Ac(0,t)},n}function jc(e,t,n){(n=us(-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(){Ac(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){Ac(0,t),"function"!=typeof r&&(null===vd?vd=new Set([this]):vd.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Fc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new zc;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=Xd.bind(null,e,t,n),t.then(e,e))}function $c(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 Bc(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=us(-1,1)).tag=2,ds(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Wc=Ut.ReactCurrentOwner,Hc=!1;function Uc(e,t,n,r){t.child=null===e?Gl(t,null,n,r):Vl(t,e.child,n,r)}function Vc(e,t,n,r,o){n=n.render;var a=t.ref;return ts(t,o),r=$s(e,t,n,r,a,o),n=Bs(),null===e||Hc?(Il&&n&&Rl(t),t.flags|=1,Uc(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,mu(e,t,o))}function Gc(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||rp(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ap(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Kc(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:Na)(i,r)&&e.ref===t.ref)return mu(e,t,o)}return t.flags|=1,(e=op(a,r)).ref=t.ref,e.return=t,t.child=e}function Kc(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(Na(a,r)&&e.ref===t.ref){if(Hc=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,mu(e,t,o);0!=(131072&e.flags)&&(Hc=!0)}}return Qc(e,t,n,r,o)}function Zc(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ji(od,rd),rd|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ji(od,rd),rd|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Ji(od,rd),rd|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ji(od,rd),rd|=r;return Uc(e,t,o,n),t.child}function Xc(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Qc(e,t,n,r,o){var a=ol(n)?nl:el.current;return a=rl(t,a),ts(t,o),n=$s(e,t,n,r,a,o),r=Bs(),null===e||Hc?(Il&&r&&Rl(t),t.flags|=1,Uc(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,mu(e,t,o))}function Jc(e,t,n,r,o){if(ol(n)){var a=!0;sl(t)}else a=!1;if(ts(t,o),null===t.stateNode)hu(e,t),Pc(t,n,r),Mc(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=ns(c):c=rl(t,c=ol(n)?nl:el.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==c)&&Tc(t,i,r,c),ls=!1;var p=t.memoizedState;i.state=p,hs(t,r,i,o),s=t.memoizedState,l!==r||p!==s||tl.current||ls?("function"==typeof u&&(Oc(t,n,u,r),s=t.memoizedState),(l=ls||Ic(t,n,l,r,p,s,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=c,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,cs(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Lc(t.type,l),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=ns(s):s=rl(t,s=ol(n)?nl:el.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||p!==s)&&Tc(t,i,r,s),ls=!1,p=t.memoizedState,i.state=p,hs(t,r,i,o);var h=t.memoizedState;l!==d||p!==h||tl.current||ls?("function"==typeof f&&(Oc(t,n,f,r),h=t.memoizedState),(c=ls||Ic(t,n,c,r,p,h,s)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Yc(e,t,n,r,a,o)}function Yc(e,t,n,r,o,a){Xc(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&cl(t,n,!1),mu(e,t,a);r=t.stateNode,Wc.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Vl(t,e.child,null,a),t.child=Vl(t,null,l,a)):Uc(e,t,l,a),t.memoizedState=r.state,o&&cl(t,n,!0),t.child}function eu(e){var t=e.stateNode;t.pendingContext?il(0,t.pendingContext,t.pendingContext!==t.context):t.context&&il(0,t.context,!1),Ss(e,t.containerInfo)}function tu(e,t,n,r,o){return jl(),Fl(o),t.flags|=256,Uc(e,t,n,r),t.child}var nu,ru,ou,au,iu={dehydrated:null,treeContext:null,retryLane:0};function lu(e){return{baseLanes:e,cachePool:null,transitions:null}}function su(e,t,n){var r,o=t.pendingProps,a=ks.current,i=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ji(ks,1&a),null===e)return ql(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,i?(o=t.mode,i=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=lp(l,o,0,null),e=ip(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=lu(n),t.memoizedState=iu,e):cu(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,i){if(n)return 256&t.flags?(t.flags&=-257,uu(e,t,i,r=qc(Error(It(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=lp({mode:"visible",children:r.children},o,0,null),(a=ip(a,o,i,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Vl(t,e.child,null,i),t.child.memoizedState=lu(i),t.memoizedState=iu,a);if(0==(1&t.mode))return uu(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,uu(e,t,i,r=qc(a=Error(It(419)),r,void 0))}if(l=0!=(i&e.childLanes),Hc||l){if(null!==(r=ed)){switch(i&-i){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|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,is(e,o),Ld(r,e,o,-1))}return Fd(),uu(e,t,i,r=qc(Error(It(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Jd.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,_l=qi(o.nextSibling),Ol=t,Il=!0,Pl=null,null!==e&&(yl[xl++]=wl,yl[xl++]=El,yl[xl++]=Sl,wl=e.id,El=e.overflow,Sl=t),t=cu(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(i){i=o.fallback,l=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=op(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=op(r,i):(i=ip(i,l,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,l=null===(l=e.child.memoizedState)?lu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=iu,o}return e=(i=e.child).sibling,o=op(i,{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 cu(e,t){return(t=lp({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function uu(e,t,n,r){return null!==r&&Fl(r),Vl(t,e.child,null,n),(e=cu(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function du(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),es(e.return,t,n)}function pu(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function fu(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Uc(e,t,r.children,n),0!=(2&(r=ks.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&&du(e,n,t);else if(19===e.tag)du(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(Ji(ks,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===Rs(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),pu(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Rs(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}pu(t,!0,n,null,a);break;case"together":pu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hu(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ld|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(It(153));if(null!==t.child){for(n=op(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=op(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function gu(e,t){if(!Il)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 vu(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 bu(e,t,n){var r=t.pendingProps;switch(Ll(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vu(t),null;case 1:case 17:return ol(t.type)&&al(),vu(t),null;case 3:return r=t.stateNode,ws(),Qi(tl),Qi(el),Os(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(zl(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Pl&&(Pd(Pl),Pl=null))),ru(e,t),vu(t),null;case 5:Cs(t);var o=xs(ys.current);if(n=t.type,null!==e&&null!=t.stateNode)ou(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(It(166));return vu(t),null}if(e=xs(vs.current),zl(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Di]=t,r[ji]=a,e=0!=(1&t.mode),n){case"dialog":di("cancel",r),di("close",r);break;case"iframe":case"object":case"embed":di("load",r);break;case"video":case"audio":for(o=0;o<li.length;o++)di(li[o],r);break;case"source":di("error",r);break;case"img":case"image":case"link":di("error",r),di("load",r);break;case"details":di("toggle",r);break;case"input":wn(r,a),di("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},di("invalid",r);break;case"textarea":In(r,a),di("invalid",r)}for(var i in Hn(n,a),o=null,a)if(a.hasOwnProperty(i)){var l=a[i];"children"===i?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Ci(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Ci(r.textContent,l,e),o=["children",""+l]):Tt.hasOwnProperty(i)&&null!=l&&"onScroll"===i&&di("scroll",r)}switch(n){case"input":bn(r),kn(r,a,!0);break;case"textarea":bn(r),Tn(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=ki)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=Mn(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Di]=t,e[ji]=r,nu(e,t,!1,!1),t.stateNode=e;e:{switch(i=Un(n,r),n){case"dialog":di("cancel",e),di("close",e),o=r;break;case"iframe":case"object":case"embed":di("load",e),o=r;break;case"video":case"audio":for(o=0;o<li.length;o++)di(li[o],e);o=r;break;case"source":di("error",e),o=r;break;case"img":case"image":case"link":di("error",e),di("load",e),o=r;break;case"details":di("toggle",e),o=r;break;case"input":wn(e,r),o=Sn(e,r),di("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=cn({},r,{value:void 0}),di("invalid",e);break;case"textarea":In(e,r),o=_n(e,r),di("invalid",e)}for(a in Hn(n,o),l=o)if(l.hasOwnProperty(a)){var s=l[a];"style"===a?Bn(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&zn(e,s):"children"===a?"string"==typeof s?("textarea"!==n||""!==s)&&Dn(e,s):"number"==typeof s&&Dn(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Tt.hasOwnProperty(a)?null!=s&&"onScroll"===a&&di("scroll",e):null!=s&&Ht(e,a,s,i))}switch(n){case"input":bn(e),kn(e,r,!1);break;case"textarea":bn(e),Tn(e);break;case"option":null!=r.value&&e.setAttribute("value",""+gn(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?On(e,!!r.multiple,a,!1):null!=r.defaultValue&&On(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ki)}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 vu(t),null;case 6:if(e&&null!=t.stateNode)au(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(It(166));if(n=xs(ys.current),xs(vs.current),zl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Di]=t,(a=r.nodeValue!==n)&&null!==(e=Ol))switch(e.tag){case 3:Ci(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ci(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Di]=t,t.stateNode=r}return vu(t),null;case 13:if(Qi(ks),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Il&&null!==_l&&0!=(1&t.mode)&&0==(128&t.flags))Dl(),jl(),t.flags|=98560,a=!1;else if(a=zl(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(It(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(It(317));a[Di]=t}else jl(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;vu(t),a=!1}else null!==Pl&&(Pd(Pl),Pl=null),a=!0;if(!a)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&ks.current)?0===ad&&(ad=3):Fd())),null!==t.updateQueue&&(t.flags|=4),vu(t),null);case 4:return ws(),ru(e,t),null===e&&hi(t.stateNode.containerInfo),vu(t),null;case 10:return Yl(t.type._context),vu(t),null;case 19:if(Qi(ks),null===(a=t.memoizedState))return vu(t),null;if(r=0!=(128&t.flags),null===(i=a.rendering))if(r)gu(a,!1);else{if(0!==ad||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=Rs(e))){for(t.flags|=128,gu(a,!1),null!==(r=i.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ji(ks,1&ks.current|2),t.child}e=e.sibling}null!==a.tail&&Er()>fd&&(t.flags|=128,r=!0,gu(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Rs(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),gu(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!Il)return vu(t),null}else 2*Er()-a.renderingStartTime>fd&&1073741824!==n&&(t.flags|=128,r=!0,gu(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=a.last)?n.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Er(),t.sibling=null,n=ks.current,Ji(ks,r?1&n|2:1&n),t):(vu(t),null);case 22:case 23:return Ad(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&rd)&&(vu(t),6&t.subtreeFlags&&(t.flags|=8192)):vu(t),null;case 24:case 25:return null}throw Error(It(156,t.tag))}function yu(e,t){switch(Ll(t),t.tag){case 1:return ol(t.type)&&al(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ws(),Qi(tl),Qi(el),Os(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Cs(t),null;case 13:if(Qi(ks),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(It(340));jl()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Qi(ks),null;case 4:return ws(),null;case 10:return Yl(t.type._context),null;case 22:case 23:return Ad(),null;default:return null}}nu=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}},ru=function(){},ou=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,xs(vs.current);var a,i=null;switch(n){case"input":o=Sn(e,o),r=Sn(e,r),i=[];break;case"select":o=cn({},o,{value:void 0}),r=cn({},r,{value:void 0}),i=[];break;case"textarea":o=_n(e,o),r=_n(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ki)}for(c in Hn(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(Tt.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(Tt.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&di("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},au=function(e,t,n,r){n!==r&&(t.flags|=4)};var xu=!1,Su=!1,wu="function"==typeof WeakSet?WeakSet:Set,Eu=null;function Cu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Zd(e,t,n)}else n.current=null}function ku(e,t,n){try{n()}catch(n){Zd(e,t,n)}}var Ru=!1;function Lu(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 a=o.destroy;o.destroy=void 0,void 0!==a&&ku(t,n,a)}o=o.next}while(o!==r)}}function Ou(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 _u(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 Iu(e){var t=e.alternate;null!==t&&(e.alternate=null,Iu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Di],delete t[ji],delete t[$i],delete t[Bi],delete t[Wi])),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 Pu(e){return 5===e.tag||3===e.tag||4===e.tag}function Tu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Pu(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 Mu(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=ki));else if(4!==r&&null!==(e=e.child))for(Mu(e,t,n),e=e.sibling;null!==e;)Mu(e,t,n),e=e.sibling}function Nu(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(Nu(e,t,n),e=e.sibling;null!==e;)Nu(e,t,n),e=e.sibling}var qu=null,Au=!1;function zu(e,t,n){for(n=n.child;null!==n;)Du(e,t,n),n=n.sibling}function Du(e,t,n){if(Pr&&"function"==typeof Pr.onCommitFiberUnmount)try{Pr.onCommitFiberUnmount(Ir,n)}catch(e){}switch(n.tag){case 5:Su||Cu(n,t);case 6:var r=qu,o=Au;qu=null,zu(e,t,n),Au=o,null!==(qu=r)&&(Au?(e=qu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):qu.removeChild(n.stateNode));break;case 18:null!==qu&&(Au?(e=qu,n=n.stateNode,8===e.nodeType?Ni(e.parentNode,n):1===e.nodeType&&Ni(e,n),mo(e)):Ni(qu,n.stateNode));break;case 4:r=qu,o=Au,qu=n.stateNode.containerInfo,Au=!0,zu(e,t,n),qu=r,Au=o;break;case 0:case 11:case 14:case 15:if(!Su&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&ku(n,t,i),o=o.next}while(o!==r)}zu(e,t,n);break;case 1:if(!Su&&(Cu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Zd(n,t,e)}zu(e,t,n);break;case 21:zu(e,t,n);break;case 22:1&n.mode?(Su=(r=Su)||null!==n.memoizedState,zu(e,t,n),Su=r):zu(e,t,n);break;default:zu(e,t,n)}}function ju(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new wu),t.forEach((function(t){var r=Yd.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 a=e,i=t,l=i;e:for(;null!==l;){switch(l.tag){case 5:qu=l.stateNode,Au=!1;break e;case 3:case 4:qu=l.stateNode.containerInfo,Au=!0;break e}l=l.return}if(null===qu)throw Error(It(160));Du(a,i,o),qu=null,Au=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Zd(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)$u(t,e),t=t.sibling}function $u(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Fu(t,e),Bu(e),4&r){try{Lu(3,e,e.return),Ou(3,e)}catch(t){Zd(e,e.return,t)}try{Lu(5,e,e.return)}catch(t){Zd(e,e.return,t)}}break;case 1:Fu(t,e),Bu(e),512&r&&null!==n&&Cu(n,n.return);break;case 5:if(Fu(t,e),Bu(e),512&r&&null!==n&&Cu(n,n.return),32&e.flags){var o=e.stateNode;try{Dn(o,"")}catch(t){Zd(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==n?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===a.type&&null!=a.name&&En(o,a),Un(l,i);var c=Un(l,a);for(i=0;i<s.length;i+=2){var u=s[i],d=s[i+1];"style"===u?Bn(o,d):"dangerouslySetInnerHTML"===u?zn(o,d):"children"===u?Dn(o,d):Ht(o,u,d,c)}switch(l){case"input":Cn(o,a);break;case"textarea":Pn(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?On(o,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?On(o,!!a.multiple,a.defaultValue,!0):On(o,!!a.multiple,a.multiple?[]:"",!1))}o[ji]=a}catch(t){Zd(e,e.return,t)}}break;case 6:if(Fu(t,e),Bu(e),4&r){if(null===e.stateNode)throw Error(It(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Zd(e,e.return,t)}}break;case 3:if(Fu(t,e),Bu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{mo(t.containerInfo)}catch(t){Zd(e,e.return,t)}break;case 4:default:Fu(t,e),Bu(e);break;case 13:Fu(t,e),Bu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(pd=Er())),4&r&&ju(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(Su=(c=Su)||u,Fu(t,e),Su=c):Fu(t,e),Bu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(Eu=e,u=e.child;null!==u;){for(d=Eu=u;null!==Eu;){switch(f=(p=Eu).child,p.tag){case 0:case 11:case 14:case 15:Lu(4,p,p.return);break;case 1:Cu(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Zd(r,n,e)}}break;case 5:Cu(p,p.return);break;case 22:if(null!==p.memoizedState){Vu(d);continue}}null!==f?(f.return=p,Eu=f):Vu(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,i=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=$n("display",i))}catch(t){Zd(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Zd(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;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Fu(t,e),Bu(e),4&r&&ju(e);case 21:}}function Bu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Pu(n)){var r=n;break e}n=n.return}throw Error(It(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(Dn(o,""),r.flags&=-33),Nu(e,Tu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;Mu(e,Tu(e),a);break;default:throw Error(It(161))}}catch(t){Zd(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Wu(e,t,n){Eu=e,Hu(e)}function Hu(e,t,n){for(var r=0!=(1&e.mode);null!==Eu;){var o=Eu,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||xu;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Su;l=xu;var c=Su;if(xu=i,(Su=s)&&!c)for(Eu=o;null!==Eu;)s=(i=Eu).child,22===i.tag&&null!==i.memoizedState?Gu(o):null!==s?(s.return=i,Eu=s):Gu(o);for(;null!==a;)Eu=a,Hu(a),a=a.sibling;Eu=o,xu=l,Su=c}Uu(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Eu=a):Uu(e)}}function Uu(e){for(;null!==Eu;){var t=Eu;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Su||Ou(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Su)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Lc(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&ms(t,a,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}ms(t,i,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 c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&mo(d)}}}break;default:throw Error(It(163))}Su||512&t.flags&&_u(t)}catch(e){Zd(t,t.return,e)}}if(t===e){Eu=null;break}if(null!==(n=t.sibling)){n.return=t.return,Eu=n;break}Eu=t.return}}function Vu(e){for(;null!==Eu;){var t=Eu;if(t===e){Eu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Eu=n;break}Eu=t.return}}function Gu(e){for(;null!==Eu;){var t=Eu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ou(4,t)}catch(e){Zd(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Zd(t,o,e)}}var a=t.return;try{_u(t)}catch(e){Zd(t,a,e)}break;case 5:var i=t.return;try{_u(t)}catch(e){Zd(t,i,e)}}}catch(e){Zd(t,t.return,e)}if(t===e){Eu=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Eu=l;break}Eu=t.return}}var Ku,Zu=Math.ceil,Xu=Ut.ReactCurrentDispatcher,Qu=Ut.ReactCurrentOwner,Ju=Ut.ReactCurrentBatchConfig,Yu=0,ed=null,td=null,nd=0,rd=0,od=Xi(0),ad=0,id=null,ld=0,sd=0,cd=0,ud=null,dd=null,pd=0,fd=1/0,hd=null,md=!1,gd=null,vd=null,bd=!1,yd=null,xd=0,Sd=0,wd=null,Ed=-1,Cd=0;function kd(){return 0!=(6&Yu)?Er():-1!==Ed?Ed:Ed=Er()}function Rd(e){return 0==(1&e.mode)?1:0!=(2&Yu)&&0!==nd?nd&-nd:null!==$l.transition?(0===Cd&&(Cd=$r()),Cd):0!==(e=Ur)?e:e=void 0===(e=window.event)?16:Eo(e.type)}function Ld(e,t,n,r){if(50<Sd)throw Sd=0,wd=null,Error(It(185));Wr(e,n,r),0!=(2&Yu)&&e===ed||(e===ed&&(0==(2&Yu)&&(sd|=n),4===ad&&Td(e,nd)),Od(e,r),1===n&&0===Yu&&0==(1&t.mode)&&(fd=Er()+500,dl&&hl()))}function Od(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Tr(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=jr(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=Dr(e,e===ed?nd:0);if(0===r)null!==n&&xr(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&xr(n),1===t)0===e.tag?function(e){dl=!0,fl(e)}(Md.bind(null,e)):fl(Md.bind(null,e)),Ti((function(){0==(6&Yu)&&hl()})),n=null;else{switch(Vr(r)){case 1:n=kr;break;case 4:n=Rr;break;case 16:default:n=Lr;break;case 536870912:n=_r}n=ep(n,_d.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _d(e,t){if(Ed=-1,Cd=0,0!=(6&Yu))throw Error(It(327));var n=e.callbackNode;if(Gd()&&e.callbackNode!==n)return null;var r=Dr(e,e===ed?nd:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=$d(e,r);else{t=r;var o=Yu;Yu|=2;var a=jd();for(ed===e&&nd===t||(hd=null,fd=Er()+500,zd(e,t));;)try{Wd();break}catch(t){Dd(e,t)}Jl(),Xu.current=a,Yu=o,null!==td?t=0:(ed=null,nd=0,t=ad)}if(0!==t){if(2===t&&(0!==(o=Fr(e))&&(r=o,t=Id(e,o))),1===t)throw n=id,zd(e,0),Td(e,r),Od(e,Er()),n;if(6===t)Td(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],a=o.getSnapshot;o=o.value;try{if(!Ma(a(),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=$d(e,r))&&(0!==(a=Fr(e))&&(r=a,t=Id(e,a))),1===t))throw n=id,zd(e,0),Td(e,r),Od(e,Er()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(It(345));case 2:case 5:Vd(e,dd,hd);break;case 3:if(Td(e,r),(130023424&r)===r&&10<(t=pd+500-Er())){if(0!==Dr(e,0))break;if(((o=e.suspendedLanes)&r)!==r){kd(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=_i(Vd.bind(null,e,dd,hd),t);break}Vd(e,dd,hd);break;case 4:if(Td(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Tr(r);a=1<<i,(i=t[i])>o&&(o=i),r&=~a}if(r=o,10<(r=(120>(r=Er()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zu(r/1960))-r)){e.timeoutHandle=_i(Vd.bind(null,e,dd,hd),r);break}Vd(e,dd,hd);break;default:throw Error(It(329))}}}return Od(e,Er()),e.callbackNode===n?_d.bind(null,e):null}function Id(e,t){var n=ud;return e.current.memoizedState.isDehydrated&&(zd(e,t).flags|=256),2!==(e=$d(e,t))&&(t=dd,dd=n,null!==t&&Pd(t)),e}function Pd(e){null===dd?dd=e:dd.push.apply(dd,e)}function Td(e,t){for(t&=~cd,t&=~sd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Tr(t),r=1<<n;e[n]=-1,t&=~r}}function Md(e){if(0!=(6&Yu))throw Error(It(327));Gd();var t=Dr(e,0);if(0==(1&t))return Od(e,Er()),null;var n=$d(e,t);if(0!==e.tag&&2===n){var r=Fr(e);0!==r&&(t=r,n=Id(e,r))}if(1===n)throw n=id,zd(e,0),Td(e,t),Od(e,Er()),n;if(6===n)throw Error(It(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vd(e,dd,hd),Od(e,Er()),null}function Nd(e,t){var n=Yu;Yu|=1;try{return e(t)}finally{0===(Yu=n)&&(fd=Er()+500,dl&&hl())}}function qd(e){null!==yd&&0===yd.tag&&0==(6&Yu)&&Gd();var t=Yu;Yu|=1;var n=Ju.transition,r=Ur;try{if(Ju.transition=null,Ur=1,e)return e()}finally{Ur=r,Ju.transition=n,0==(6&(Yu=t))&&hl()}}function Ad(){rd=od.current,Qi(od)}function zd(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Ii(n)),null!==td)for(n=td.return;null!==n;){var r=n;switch(Ll(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&al();break;case 3:ws(),Qi(tl),Qi(el),Os();break;case 5:Cs(r);break;case 4:ws();break;case 13:case 19:Qi(ks);break;case 10:Yl(r.type._context);break;case 22:case 23:Ad()}n=n.return}if(ed=e,td=e=op(e.current,null),nd=rd=t,ad=0,id=null,cd=sd=ld=0,dd=ud=null,null!==rs){for(t=0;t<rs.length;t++)if(null!==(r=(n=rs[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}rs=null}return e}function Dd(e,t){for(;;){var n=td;try{if(Jl(),_s.current=Ec,qs){for(var r=Ts.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}qs=!1}if(Ps=0,Ns=Ms=Ts=null,As=!1,zs=0,Qu.current=null,null===n||null===n.return){ad=1,id=t,td=null;break}e:{var a=e,i=n.return,l=n,s=t;if(t=nd,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,u=l,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=$c(i);if(null!==f){f.flags&=-257,Bc(f,i,l,0,t),1&f.mode&&Fc(a,c,t),s=c;var h=(t=f).updateQueue;if(null===h){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}if(0==(1&t)){Fc(a,c,t),Fd();break e}s=Error(It(426))}else if(Il&&1&l.mode){var g=$c(i);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Bc(g,i,l,0,t),Fl(Nc(s,l));break e}}a=s=Nc(s,l),4!==ad&&(ad=2),null===ud?ud=[a]:ud.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,fs(a,Dc(0,s,t));break e;case 1:l=s;var v=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===vd||!vd.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,fs(a,jc(a,l,t));break e}}a=a.return}while(null!==a)}Ud(n)}catch(e){t=e,td===n&&null!==n&&(td=n=n.return);continue}break}}function jd(){var e=Xu.current;return Xu.current=Ec,null===e?Ec:e}function Fd(){0!==ad&&3!==ad&&2!==ad||(ad=4),null===ed||0==(268435455&ld)&&0==(268435455&sd)||Td(ed,nd)}function $d(e,t){var n=Yu;Yu|=2;var r=jd();for(ed===e&&nd===t||(hd=null,zd(e,t));;)try{Bd();break}catch(t){Dd(e,t)}if(Jl(),Yu=n,Xu.current=r,null!==td)throw Error(It(261));return ed=null,nd=0,ad}function Bd(){for(;null!==td;)Hd(td)}function Wd(){for(;null!==td&&!Sr();)Hd(td)}function Hd(e){var t=Ku(e.alternate,e,rd);e.memoizedProps=e.pendingProps,null===t?Ud(e):td=t,Qu.current=null}function Ud(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=bu(n,t,rd)))return void(td=n)}else{if(null!==(n=yu(n,t)))return n.flags&=32767,void(td=n);if(null===e)return ad=6,void(td=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(td=t);td=t=e}while(null!==t);0===ad&&(ad=5)}function Vd(e,t,n){var r=Ur,o=Ju.transition;try{Ju.transition=null,Ur=1,function(e,t,n,r){do{Gd()}while(null!==yd);if(0!=(6&Yu))throw Error(It(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(It(177));e.callbackNode=null,e.callbackPriority=0;var a=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-Tr(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,a),e===ed&&(td=ed=null,nd=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||bd||(bd=!0,ep(Lr,(function(){return Gd(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Ju.transition,Ju.transition=null;var i=Ur;Ur=1;var l=Yu;Yu|=4,Qu.current=null,function(e,t){if(Ri=vo,ja(e=Da())){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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var i=0,l=-1,s=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=i+o),d!==a||0!==r&&3!==d.nodeType||(s=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++c===o&&(l=i),p===a&&++u===r&&(s=i),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(Li={focusedElem:e,selectionRange:n},vo=!1,Eu=t;null!==Eu;)if(e=(t=Eu).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Eu=e;else for(;null!==Eu;){t=Eu;try{var h=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!==h){var m=h.memoizedProps,g=h.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Lc(t.type,m),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(It(163))}}catch(e){Zd(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Eu=e;break}Eu=t.return}h=Ru,Ru=!1}(e,n),$u(n,e),Fa(Li),vo=!!Ri,Li=Ri=null,e.current=n,Wu(n),wr(),Yu=l,Ur=i,Ju.transition=a}else e.current=n;if(bd&&(bd=!1,yd=e,xd=o),a=e.pendingLanes,0===a&&(vd=null),function(e){if(Pr&&"function"==typeof Pr.onCommitFiberRoot)try{Pr.onCommitFiberRoot(Ir,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),Od(e,Er()),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(md)throw md=!1,e=gd,gd=null,e;0!=(1&xd)&&0!==e.tag&&Gd(),a=e.pendingLanes,0!=(1&a)?e===wd?Sd++:(Sd=0,wd=e):Sd=0,hl()}(e,t,n,r)}finally{Ju.transition=o,Ur=r}return null}function Gd(){if(null!==yd){var e=Vr(xd),t=Ju.transition,n=Ur;try{if(Ju.transition=null,Ur=16>e?16:e,null===yd)var r=!1;else{if(e=yd,yd=null,xd=0,0!=(6&Yu))throw Error(It(331));var o=Yu;for(Yu|=4,Eu=e.current;null!==Eu;){var a=Eu,i=a.child;if(0!=(16&Eu.flags)){var l=a.deletions;if(null!==l){for(var s=0;s<l.length;s++){var c=l[s];for(Eu=c;null!==Eu;){var u=Eu;switch(u.tag){case 0:case 11:case 15:Lu(8,u,a)}var d=u.child;if(null!==d)d.return=u,Eu=d;else for(;null!==Eu;){var p=(u=Eu).sibling,f=u.return;if(Iu(u),u===c){Eu=null;break}if(null!==p){p.return=f,Eu=p;break}Eu=f}}}var h=a.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Eu=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,Eu=i;else e:for(;null!==Eu;){if(0!=(2048&(a=Eu).flags))switch(a.tag){case 0:case 11:case 15:Lu(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Eu=v;break e}Eu=a.return}}var b=e.current;for(Eu=b;null!==Eu;){var y=(i=Eu).child;if(0!=(2064&i.subtreeFlags)&&null!==y)y.return=i,Eu=y;else e:for(i=b;null!==Eu;){if(0!=(2048&(l=Eu).flags))try{switch(l.tag){case 0:case 11:case 15:Ou(9,l)}}catch(e){Zd(l,l.return,e)}if(l===i){Eu=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Eu=x;break e}Eu=l.return}}if(Yu=o,hl(),Pr&&"function"==typeof Pr.onPostCommitFiberRoot)try{Pr.onPostCommitFiberRoot(Ir,e)}catch(e){}r=!0}return r}finally{Ur=n,Ju.transition=t}}return!1}function Kd(e,t,n){e=ds(e,t=Dc(0,t=Nc(n,t),1),1),t=kd(),null!==e&&(Wr(e,1,t),Od(e,t))}function Zd(e,t,n){if(3===e.tag)Kd(e,e,n);else for(;null!==t;){if(3===t.tag){Kd(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===vd||!vd.has(r))){t=ds(t,e=jc(t,e=Nc(n,e),1),1),e=kd(),null!==t&&(Wr(t,1,e),Od(t,e));break}}t=t.return}}function Xd(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=kd(),e.pingedLanes|=e.suspendedLanes&n,ed===e&&(nd&n)===n&&(4===ad||3===ad&&(130023424&nd)===nd&&500>Er()-pd?zd(e,0):cd|=n),Od(e,t)}function Qd(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Ar,0==(130023424&(Ar<<=1))&&(Ar=4194304)));var n=kd();null!==(e=is(e,t))&&(Wr(e,t,n),Od(e,n))}function Jd(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Qd(e,n)}function Yd(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(It(314))}null!==r&&r.delete(t),Qd(e,n)}function ep(e,t){return yr(e,t)}function tp(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 np(e,t,n,r){return new tp(e,t,n,r)}function rp(e){return!(!(e=e.prototype)||!e.isReactComponent)}function op(e,t){var n=e.alternate;return null===n?((n=np(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 ap(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)rp(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Kt:return ip(n.children,o,a,t);case Zt:i=8,o|=8;break;case Xt:return(e=np(12,n,t,2|o)).elementType=Xt,e.lanes=a,e;case en:return(e=np(13,n,t,o)).elementType=en,e.lanes=a,e;case tn:return(e=np(19,n,t,o)).elementType=tn,e.lanes=a,e;case on:return lp(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Qt:i=10;break e;case Jt:i=9;break e;case Yt:i=11;break e;case nn:i=14;break e;case rn:i=16,r=null;break e}throw Error(It(130,null==e?e:typeof e,""))}return(t=np(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function ip(e,t,n,r){return(e=np(7,e,r,t)).lanes=n,e}function lp(e,t,n,r){return(e=np(22,e,r,t)).elementType=on,e.lanes=n,e.stateNode={isHidden:!1},e}function sp(e,t,n){return(e=np(6,e,null,t)).lanes=n,e}function cp(e,t,n){return(t=np(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function up(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=Br(0),this.expirationTimes=Br(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Br(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function dp(e,t,n,r,o,a,i,l,s){return e=new up(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=np(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ss(a),e}function pp(e){if(!e)return Yi;e:{if(hr(e=e._reactInternals)!==e||1!==e.tag)throw Error(It(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ol(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(It(171))}if(1===e.tag){var n=e.type;if(ol(n))return ll(e,n,t)}return t}function fp(e,t,n,r,o,a,i,l,s){return(e=dp(n,r,!0,e,0,a,0,l,s)).context=pp(null),n=e.current,(a=us(r=kd(),o=Rd(n))).callback=null!=t?t:null,ds(n,a,o),e.current.lanes=o,Wr(e,o,r),Od(e,r),e}function hp(e,t,n,r){var o=t.current,a=kd(),i=Rd(o);return n=pp(n),null===t.context?t.context=n:t.pendingContext=n,(t=us(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ds(o,t,i))&&(Ld(e,o,i,a),ps(e,o,i)),i}function mp(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function gp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function vp(e,t){gp(e,t),(e=e.alternate)&&gp(e,t)}Ku=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||tl.current)Hc=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Hc=!1,function(e,t,n){switch(t.tag){case 3:eu(t),jl();break;case 5:Es(t);break;case 1:ol(t.type)&&sl(t);break;case 4:Ss(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ji(Kl,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ji(ks,1&ks.current),t.flags|=128,null):0!=(n&t.child.childLanes)?su(e,t,n):(Ji(ks,1&ks.current),null!==(e=mu(e,t,n))?e.sibling:null);Ji(ks,1&ks.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return fu(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ji(ks,ks.current),r)break;return null;case 22:case 23:return t.lanes=0,Zc(e,t,n)}return mu(e,t,n)}(e,t,n);Hc=0!=(131072&e.flags)}else Hc=!1,Il&&0!=(1048576&t.flags)&&kl(t,bl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hu(e,t),e=t.pendingProps;var o=rl(t,el.current);ts(t,n),o=$s(null,t,r,e,o,n);var a=Bs();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,ol(r)?(a=!0,sl(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ss(t),o.updater=_c,t.stateNode=o,o._reactInternals=t,Mc(t,r,e,n),t=Yc(null,t,r,!0,a,n)):(t.tag=0,Il&&a&&Rl(t),Uc(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hu(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return rp(e)?1:0;if(null!=e){if((e=e.$$typeof)===Yt)return 11;if(e===nn)return 14}return 2}(r),e=Lc(r,e),o){case 0:t=Qc(null,t,r,e,n);break e;case 1:t=Jc(null,t,r,e,n);break e;case 11:t=Vc(null,t,r,e,n);break e;case 14:t=Gc(null,t,r,Lc(r.type,e),n);break e}throw Error(It(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Qc(e,t,r,o=t.elementType===r?o:Lc(r,o),n);case 1:return r=t.type,o=t.pendingProps,Jc(e,t,r,o=t.elementType===r?o:Lc(r,o),n);case 3:e:{if(eu(t),null===e)throw Error(It(387));r=t.pendingProps,o=(a=t.memoizedState).element,cs(e,t),hs(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=tu(e,t,r,n,o=Nc(Error(It(423)),t));break e}if(r!==o){t=tu(e,t,r,n,o=Nc(Error(It(424)),t));break e}for(_l=qi(t.stateNode.containerInfo.firstChild),Ol=t,Il=!0,Pl=null,n=Gl(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(jl(),r===o){t=mu(e,t,n);break e}Uc(e,t,r,n)}t=t.child}return t;case 5:return Es(t),null===e&&ql(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,Oi(r,o)?i=null:null!==a&&Oi(r,a)&&(t.flags|=32),Xc(e,t),Uc(e,t,i,n),t.child;case 6:return null===e&&ql(t),null;case 13:return su(e,t,n);case 4:return Ss(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Vl(t,null,r,n):Uc(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Vc(e,t,r,o=t.elementType===r?o:Lc(r,o),n);case 7:return Uc(e,t,t.pendingProps,n),t.child;case 8:case 12:return Uc(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Ji(Kl,r._currentValue),r._currentValue=i,null!==a)if(Ma(a.value,i)){if(a.children===o.children&&!tl.current){t=mu(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){i=a.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=us(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?s.next=s:(s.next=u.next,u.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),es(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(It(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),es(i,n,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}Uc(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ts(t,n),r=r(o=ns(o)),t.flags|=1,Uc(e,t,r,n),t.child;case 14:return o=Lc(r=t.type,t.pendingProps),Gc(e,t,r,o=Lc(r.type,o),n);case 15:return Kc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lc(r,o),hu(e,t),t.tag=1,ol(r)?(e=!0,sl(t)):e=!1,ts(t,n),Pc(t,r,o),Mc(t,r,o,n),Yc(null,t,r,!0,e,n);case 19:return fu(e,t,n);case 22:return Zc(e,t,n)}throw Error(It(156,t.tag))};var bp="function"==typeof reportError?reportError:function(e){console.error(e)};function yp(e){this._internalRoot=e}function xp(e){this._internalRoot=e}function Sp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function wp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ep(){}function Cp(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=mp(i);l.call(e)}}hp(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=mp(i);a.call(e)}}var i=fp(t,r,e,0,null,!1,0,"",Ep);return e._reactRootContainer=i,e[Fi]=i.current,hi(8===e.nodeType?e.parentNode:e),qd(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=mp(s);l.call(e)}}var s=dp(e,0,!1,null,0,!1,0,"",Ep);return e._reactRootContainer=s,e[Fi]=s.current,hi(8===e.nodeType?e.parentNode:e),qd((function(){hp(t,s,n,r)})),s}(n,t,e,o,r);return mp(i)}xp.prototype.render=yp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(It(409));hp(e,t,null,null)},xp.prototype.unmount=yp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;qd((function(){hp(null,e,null,null)})),t[Fi]=null}},xp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ao.length&&0!==t&&t<ao[n].priority;n++);ao.splice(n,0,e),0===n&&co(e)}},Gr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=zr(t.pendingLanes);0!==n&&(Hr(t,1|n),Od(t,Er()),0==(6&Yu)&&(fd=Er()+500,hl()))}break;case 13:qd((function(){var t=is(e,1);if(null!==t){var n=kd();Ld(t,e,1,n)}})),vp(e,1)}},Kr=function(e){if(13===e.tag){var t=is(e,134217728);if(null!==t)Ld(t,e,134217728,kd());vp(e,134217728)}},Zr=function(e){if(13===e.tag){var t=Rd(e),n=is(e,t);if(null!==n)Ld(n,e,t,kd());vp(e,t)}},Xr=function(){return Ur},Qr=function(e,t){var n=Ur;try{return Ur=e,t()}finally{Ur=n}},Kn=function(e,t,n){switch(t){case"input":if(Cn(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=Gi(r);if(!o)throw Error(It(90));yn(r),Cn(r,o)}}}break;case"textarea":Pn(e,n);break;case"select":null!=(t=n.value)&&On(e,!!n.multiple,t,!1)}},er=Nd,tr=qd;var kp={usingClientEntryPoint:!1,Events:[Ui,Vi,Gi,Jn,Yn,Nd]},Rp={findFiberByHostInstance:Hi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Lp={bundleType:Rp.bundleType,version:Rp.version,rendererPackageName:Rp.rendererPackageName,rendererConfig:Rp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ut.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=vr(e))?null:e.stateNode},findFiberByHostInstance:Rp.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Op=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Op.isDisabled&&Op.supportsFiber)try{Ir=Op.inject(Lp),Pr=Op}catch(An){}}Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kp,Ct.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Sp(t))throw Error(It(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Gt,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},Ct.createRoot=function(e,t){if(!Sp(e))throw Error(It(299));var n=!1,r="",o=bp;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=dp(e,1,!1,null,0,n,0,r,o),e[Fi]=t.current,hi(8===e.nodeType?e.parentNode:e),new yp(t)},Ct.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(It(188));throw e=Object.keys(e).join(","),Error(It(268,e))}return e=null===(e=vr(t))?null:e.stateNode},Ct.flushSync=function(e){return qd(e)},Ct.hydrate=function(e,t,n){if(!wp(t))throw Error(It(200));return Cp(null,e,t,!0,n)},Ct.hydrateRoot=function(e,t,n){if(!Sp(e))throw Error(It(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",i=bp;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=fp(t,null,e,1,null!=n?n:null,o,0,a,i),e[Fi]=t.current,hi(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 xp(t)},Ct.render=function(e,t,n){if(!wp(t))throw Error(It(200));return Cp(null,e,t,!1,n)},Ct.unmountComponentAtNode=function(e){if(!wp(e))throw Error(It(40));return!!e._reactRootContainer&&(qd((function(){Cp(null,null,e,!1,(function(){e._reactRootContainer=null,e[Fi]=null}))})),!0)},Ct.unstable_batchedUpdates=Nd,Ct.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!wp(n))throw Error(It(200));if(null==e||void 0===e._reactInternals)throw Error(It(38));return Cp(e,t,n,!1,r)},Ct.version="18.3.1-next-f1338f8080-20240426",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)}}(),Et.exports=Ct;var _p=Et.exports,Ip=n(_p),Pp=_p;function Tp(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."}wt.createRoot=Pp.createRoot,wt.hydrateRoot=Pp.hydrateRoot;var Mp=Object.freeze({__proto__:null,default:Tp}),Np="$$material";function qp(){return qp=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},qp.apply(this,arguments)}function Ap(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function zp(){return zp=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},zp.apply(this,arguments)}function Dp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var jp=/^((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|disableRemotePlayback|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)-.*))$/,Fp=Dp((function(e){return jp.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var $p=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Bp="-ms-",Wp="-moz-",Hp="-webkit-",Up="comm",Vp="rule",Gp="decl",Kp="@keyframes",Zp=Math.abs,Xp=String.fromCharCode,Qp=Object.assign;function Jp(e,t){return 45^rf(e,0)?(((t<<2^rf(e,0))<<2^rf(e,1))<<2^rf(e,2))<<2^rf(e,3):0}function Yp(e){return e.trim()}function ef(e,t){return(e=t.exec(e))?e[0]:e}function tf(e,t,n){return e.replace(t,n)}function nf(e,t){return e.indexOf(t)}function rf(e,t){return 0|e.charCodeAt(t)}function of(e,t,n){return e.slice(t,n)}function af(e){return e.length}function lf(e){return e.length}function sf(e,t){return t.push(e),e}function cf(e,t){return e.map(t).join("")}var uf=1,df=1,pf=0,ff=0,hf=0,mf="";function gf(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:uf,column:df,length:i,return:""}}function vf(e,t){return Qp(gf("",null,null,"",null,null,0),e,{length:-e.length},t)}function bf(){return hf=ff>0?rf(mf,--ff):0,df--,10===hf&&(df=1,uf--),hf}function yf(){return hf=ff<pf?rf(mf,ff++):0,df++,10===hf&&(df=1,uf++),hf}function xf(){return rf(mf,ff)}function Sf(){return ff}function wf(e,t){return of(mf,e,t)}function Ef(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Cf(e){return uf=df=1,pf=af(mf=e),ff=0,[]}function kf(e){return mf="",e}function Rf(e){return Yp(wf(ff-1,_f(91===e?e+2:40===e?e+1:e)))}function Lf(e){for(;(hf=xf())&&hf<33;)yf();return Ef(e)>2||Ef(hf)>3?"":" "}function Of(e,t){for(;--t&&yf()&&!(hf<48||hf>102||hf>57&&hf<65||hf>70&&hf<97););return wf(e,Sf()+(t<6&&32==xf()&&32==yf()))}function _f(e){for(;yf();)switch(hf){case e:return ff;case 34:case 39:34!==e&&39!==e&&_f(hf);break;case 40:41===e&&_f(e);break;case 92:yf()}return ff}function If(e,t){for(;yf()&&e+hf!==57&&(e+hf!==84||47!==xf()););return"/*"+wf(t,ff-1)+"*"+Xp(47===e?e:yf())}function Pf(e){for(;!Ef(xf());)yf();return wf(e,ff)}function Tf(e){return kf(Mf("",null,null,null,[""],e=Cf(e),0,[0],e))}function Mf(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=a,w=r,E=y;g;)switch(h=b,b=yf()){case 40:if(108!=h&&58==rf(E,d-1)){-1!=nf(E+=tf(Rf(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=Rf(b);break;case 9:case 10:case 13:case 32:E+=Lf(h);break;case 92:E+=Of(Sf()-1,7);continue;case 47:switch(xf()){case 42:case 47:sf(qf(If(yf(),Sf()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=af(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=tf(E,/\f/g,"")),f>0&&af(E)-d&&sf(f>32?Af(E+";",r,n,d-1):Af(tf(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(sf(w=Nf(E,t,n,c,u,o,l,y,x=[],S=[],d),a),123===b)if(0===u)Mf(E,t,w,w,x,a,d,l,S);else switch(99===p&&110===rf(E,3)?100:p){case 100:case 108:case 109:case 115:Mf(e,w,w,r&&sf(Nf(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:Mf(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=v=1,y=E="",d=i;break;case 58:d=1+af(E),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==bf())continue;switch(E+=Xp(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(af(E)-1)*v,v=1;break;case 64:45===xf()&&(E+=Rf(yf())),p=xf(),u=d=af(y=E+=Pf(Sf())),b++;break;case 45:45===h&&2==af(E)&&(m=0)}}return a}function Nf(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=lf(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=of(e,d+1,d=Zp(m=i[h])),y=e;v<f;++v)(y=Yp(m>0?p[v]+" "+b:tf(b,/&\f/g,p[v])))&&(s[g++]=y);return gf(e,t,n,0===o?Vp:l,s,c,u)}function qf(e,t,n){return gf(e,t,n,Up,Xp(hf),of(e,2,-2),0)}function Af(e,t,n,r){return gf(e,t,n,Gp,of(e,0,r),of(e,r+1,-1),r)}function zf(e,t){for(var n="",r=lf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Df(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Gp:return e.return=e.return||e.value;case Up:return"";case Kp:return e.return=e.value+"{"+zf(e.children,r)+"}";case Vp:e.value=e.props.join(",")}return af(n=zf(e.children,r))?e.return=e.value+"{"+n+"}":""}function jf(e){var t=lf(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}function Ff(e){return function(t){t.root||(t=t.return)&&e(t)}}var $f="undefined"!=typeof document,Bf=function(e,t,n){for(var r=0,o=0;r=o,o=xf(),38===r&&12===o&&(t[n]=1),!Ef(o);)yf();return wf(e,ff)},Wf=function(e,t){return kf(function(e,t){var n=-1,r=44;do{switch(Ef(r)){case 0:38===r&&12===xf()&&(t[n]=1),e[n]+=Bf(ff-1,t,n);break;case 2:e[n]+=Rf(r);break;case 4:if(44===r){e[++n]=58===xf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Xp(r)}}while(r=yf());return e}(Cf(e),t))},Hf=new WeakMap,Uf=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Hf.get(n))&&!r){Hf.set(e,!0);for(var o=[],a=Wf(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},Vf=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Gf(e,t){switch(Jp(e,t)){case 5103:return Hp+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Hp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Hp+e+Wp+e+Bp+e+e;case 6828:case 4268:return Hp+e+Bp+e+e;case 6165:return Hp+e+Bp+"flex-"+e+e;case 5187:return Hp+e+tf(e,/(\w+).+(:[^]+)/,Hp+"box-$1$2"+Bp+"flex-$1$2")+e;case 5443:return Hp+e+Bp+"flex-item-"+tf(e,/flex-|-self/,"")+e;case 4675:return Hp+e+Bp+"flex-line-pack"+tf(e,/align-content|flex-|-self/,"")+e;case 5548:return Hp+e+Bp+tf(e,"shrink","negative")+e;case 5292:return Hp+e+Bp+tf(e,"basis","preferred-size")+e;case 6060:return Hp+"box-"+tf(e,"-grow","")+Hp+e+Bp+tf(e,"grow","positive")+e;case 4554:return Hp+tf(e,/([^-])(transform)/g,"$1"+Hp+"$2")+e;case 6187:return tf(tf(tf(e,/(zoom-|grab)/,Hp+"$1"),/(image-set)/,Hp+"$1"),e,"")+e;case 5495:case 3959:return tf(e,/(image-set\([^]*)/,Hp+"$1$`$1");case 4968:return tf(tf(e,/(.+:)(flex-)?(.*)/,Hp+"box-pack:$3"+Bp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Hp+e+e;case 4095:case 3583:case 4068:case 2532:return tf(e,/(.+)-inline(.+)/,Hp+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(af(e)-1-t>6)switch(rf(e,t+1)){case 109:if(45!==rf(e,t+4))break;case 102:return tf(e,/(.+:)(.+)-([^]+)/,"$1"+Hp+"$2-$3$1"+Wp+(108==rf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~nf(e,"stretch")?Gf(tf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==rf(e,t+1))break;case 6444:switch(rf(e,af(e)-3-(~nf(e,"!important")&&10))){case 107:return tf(e,":",":"+Hp)+e;case 101:return tf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Hp+(45===rf(e,14)?"inline-":"")+"box$3$1"+Hp+"$2$3$1"+Bp+"$2box$3")+e}break;case 5936:switch(rf(e,t+11)){case 114:return Hp+e+Bp+tf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Hp+e+Bp+tf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Hp+e+Bp+tf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Hp+e+Bp+e+e}return e}var Kf,Zf=$f?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return Dp((function(){var e={};return function(t){return e[t]}}))})),Xf=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Gp:e.return=Gf(e.value,e.length);break;case Kp:return zf([vf(e,{value:tf(e.value,"@","@"+Hp)})],r);case Vp:if(e.length)return cf(e.props,(function(t){switch(ef(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zf([vf(e,{props:[tf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return zf([vf(e,{props:[tf(t,/:(plac\w+)/,":"+Hp+"input-$1")]}),vf(e,{props:[tf(t,/:(plac\w+)/,":-moz-$1")]}),vf(e,{props:[tf(t,/:(plac\w+)/,Bp+"input-$1")]})],r)}return""}))}}],Qf=function(e){var t=e.key;if($f&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||Xf,i={},l=[];$f&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s=[Uf,Vf];if($f){var c,u=[Df,Ff((function(e){c.insert(e)}))],d=jf(s.concat(a,u));o=function(e,t,n,r){c=n,function(e){zf(Tf(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}else{var p=[Df],f=jf(s.concat(a,p)),h=Zf(a)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return zf(Tf(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,a=m(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),a):r?void(g.inserted[o]=a):a}}var g={key:t,sheet:new $p({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return g.sheet.hydrate(l),g},Jf={exports:{}},Yf={},eh=Symbol.for("react.element"),th=Symbol.for("react.portal"),nh=Symbol.for("react.fragment"),rh=Symbol.for("react.strict_mode"),oh=Symbol.for("react.profiler"),ah=Symbol.for("react.provider"),ih=Symbol.for("react.context"),lh=Symbol.for("react.server_context"),sh=Symbol.for("react.forward_ref"),ch=Symbol.for("react.suspense"),uh=Symbol.for("react.suspense_list"),dh=Symbol.for("react.memo"),ph=Symbol.for("react.lazy"),fh=Symbol.for("react.offscreen");function hh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case eh:switch(e=e.type){case nh:case oh:case rh:case ch:case uh:return e;default:switch(e=e&&e.$$typeof){case lh:case ih:case sh:case ph:case dh:case ah:return e;default:return t}}case th:return t}}}Kf=Symbol.for("react.module.reference"),Yf.ContextConsumer=ih,Yf.ContextProvider=ah,Yf.Element=eh,Yf.ForwardRef=sh,Yf.Fragment=nh,Yf.Lazy=ph,Yf.Memo=dh,Yf.Portal=th,Yf.Profiler=oh,Yf.StrictMode=rh,Yf.Suspense=ch,Yf.SuspenseList=uh,Yf.isAsyncMode=function(){return!1},Yf.isConcurrentMode=function(){return!1},Yf.isContextConsumer=function(e){return hh(e)===ih},Yf.isContextProvider=function(e){return hh(e)===ah},Yf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===eh},Yf.isForwardRef=function(e){return hh(e)===sh},Yf.isFragment=function(e){return hh(e)===nh},Yf.isLazy=function(e){return hh(e)===ph},Yf.isMemo=function(e){return hh(e)===dh},Yf.isPortal=function(e){return hh(e)===th},Yf.isProfiler=function(e){return hh(e)===oh},Yf.isStrictMode=function(e){return hh(e)===rh},Yf.isSuspense=function(e){return hh(e)===ch},Yf.isSuspenseList=function(e){return hh(e)===uh},Yf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===nh||e===oh||e===rh||e===ch||e===uh||e===fh||"object"==typeof e&&null!==e&&(e.$$typeof===ph||e.$$typeof===dh||e.$$typeof===ah||e.$$typeof===ih||e.$$typeof===sh||e.$$typeof===Kf||void 0!==e.getModuleId)},Yf.typeOf=hh,Jf.exports=Yf;var mh=Jf.exports,gh=mh,vh={};vh[gh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vh[gh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var bh="undefined"!=typeof document;var yh=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===bh&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},xh=function(e,t,n){yh(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);bh||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!bh&&0!==o.length)return o}};var Sh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wh=!1,Eh=/[A-Z]|^ms/g,Ch=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kh=function(e){return 45===e.charCodeAt(1)},Rh=function(e){return null!=e&&"boolean"!=typeof e},Lh=Dp((function(e){return kh(e)?e:e.replace(Eh,"-$&").toLowerCase()})),Oh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ch,(function(e,t,n){return Ph={name:t,styles:n,next:Ph},t}))}return 1===Sh[e]||kh(e)||"number"!=typeof t||0===t?t:t+"px"},_h="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ih(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Ph={name:o.name,styles:o.styles,next:Ph},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)Ph={name:i.name,styles:i.styles,next:Ph},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ih(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var l=i;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":Rh(l)&&(r+=Lh(a)+":"+Oh(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&wh)throw new Error(_h);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Ih(e,t,i);switch(a){case"animation":case"animationName":r+=Lh(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)Rh(i[c])&&(r+=Lh(a)+":"+Oh(a,i[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=Ph,s=n(e);return Ph=l,Ih(e,t,s)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Ph,Th=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function Mh(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ph=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Ih(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=Ih(n,t,e[i]),r)o+=a[i]}Th.lastIndex=0;for(var l,s="";null!==(l=Th.exec(o));)s+="-"+l[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:c,styles:o,next:Ph}}var Nh="undefined"!=typeof document,qh=function(e){return e()},Ah=!!G.useInsertionEffect&&G.useInsertionEffect,zh=Nh&&Ah||qh,Dh=Ah||U.useLayoutEffect,jh="undefined"!=typeof document,Fh=U.createContext("undefined"!=typeof HTMLElement?Qf({key:"css"}):null),$h=Fh.Provider,Bh=function(e){return U.forwardRef((function(t,n){var r=U.useContext(Fh);return e(t,r,n)}))};jh||(Bh=function(e){return function(t){var n=U.useContext(Fh);return null===n?(n=Qf({key:"css"}),U.createElement(Fh.Provider,{value:n},e(t,n))):e(t,n)}});var Wh=U.createContext({}),Hh=Bh((function(e,t){var n=Mh([e.styles],void 0,U.useContext(Wh));if(!jh){for(var r,o=n.name,a=n.styles,i=n.next;void 0!==i;)o+=" "+i.name,a+=i.styles,i=i.next;var l=!0===t.compat,s=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:U.createElement("style",((r={})["data-emotion"]=t.key+"-global "+o,r.dangerouslySetInnerHTML={__html:s},r.nonce=t.sheet.nonce,r))}var c=U.useRef();return Dh((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),r.hydrate([a])),c.current=[r,o],function(){r.flush()}}),[t]),Dh((function(){var e=c.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&xh(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function Uh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Mh(t)}var Vh=function(){var e=Uh.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Gh=Fp,Kh=function(e){return"theme"!==e},Zh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Gh:Kh},Xh=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Qh="undefined"!=typeof document,Jh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;yh(t,n,r);var o=zh((function(){return xh(t,n,r)}));if(!Qh&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return U.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},Yh=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=Xh(t,n,a),s=l||Zh(i),c=!s("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=Bh((function(e,t,n){var r,a,u,p,f=c&&e.as||i,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=U.useContext(Wh)}"string"==typeof e.className?(r=t.registered,a=m,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==r[e]?a.push(r[e]+";"):p+=e+" "})),h=p):null!=e.className&&(h=e.className+" ");var b=Mh(d.concat(m),t.registered,g);h+=t.key+"-"+b.name,void 0!==o&&(h+=" "+o);var y=c&&void 0===l?Zh(f):s,x={};for(var S in e)c&&"as"===S||y(S)&&(x[S]=e[S]);return x.className=h,n&&(x.ref=n),U.createElement(U.Fragment,null,U.createElement(Jh,{cache:t,serialized:b,isStringTag:"string"==typeof f}),U.createElement(f,x))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,zp({},n,r,{shouldForwardProp:Xh(h,r,!0)})).apply(void 0,d)},h}}.bind();["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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Yh[e]=Yh(e)}));var em=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var tm=function(e,t,n){for(var r=0,o=0;r=o,o=xf(),38===r&&12===o&&(t[n]=1),!Ef(o);)yf();return wf(e,ff)},nm=function(e,t){return kf(function(e,t){var n=-1,r=44;do{switch(Ef(r)){case 0:38===r&&12===xf()&&(t[n]=1),e[n]+=tm(ff-1,t,n);break;case 2:e[n]+=Rf(r);break;case 4:if(44===r){e[++n]=58===xf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Xp(r)}}while(r=yf());return e}(Cf(e),t))},rm=new WeakMap,om=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||rm.get(n))&&!r){rm.set(e,!0);for(var o=[],a=nm(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},am=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function im(e,t){switch(Jp(e,t)){case 5103:return Hp+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Hp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Hp+e+Wp+e+Bp+e+e;case 6828:case 4268:return Hp+e+Bp+e+e;case 6165:return Hp+e+Bp+"flex-"+e+e;case 5187:return Hp+e+tf(e,/(\w+).+(:[^]+)/,Hp+"box-$1$2"+Bp+"flex-$1$2")+e;case 5443:return Hp+e+Bp+"flex-item-"+tf(e,/flex-|-self/,"")+e;case 4675:return Hp+e+Bp+"flex-line-pack"+tf(e,/align-content|flex-|-self/,"")+e;case 5548:return Hp+e+Bp+tf(e,"shrink","negative")+e;case 5292:return Hp+e+Bp+tf(e,"basis","preferred-size")+e;case 6060:return Hp+"box-"+tf(e,"-grow","")+Hp+e+Bp+tf(e,"grow","positive")+e;case 4554:return Hp+tf(e,/([^-])(transform)/g,"$1"+Hp+"$2")+e;case 6187:return tf(tf(tf(e,/(zoom-|grab)/,Hp+"$1"),/(image-set)/,Hp+"$1"),e,"")+e;case 5495:case 3959:return tf(e,/(image-set\([^]*)/,Hp+"$1$`$1");case 4968:return tf(tf(e,/(.+:)(flex-)?(.*)/,Hp+"box-pack:$3"+Bp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Hp+e+e;case 4095:case 3583:case 4068:case 2532:return tf(e,/(.+)-inline(.+)/,Hp+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(af(e)-1-t>6)switch(rf(e,t+1)){case 109:if(45!==rf(e,t+4))break;case 102:return tf(e,/(.+:)(.+)-([^]+)/,"$1"+Hp+"$2-$3$1"+Wp+(108==rf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~nf(e,"stretch")?im(tf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==rf(e,t+1))break;case 6444:switch(rf(e,af(e)-3-(~nf(e,"!important")&&10))){case 107:return tf(e,":",":"+Hp)+e;case 101:return tf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Hp+(45===rf(e,14)?"inline-":"")+"box$3$1"+Hp+"$2$3$1"+Bp+"$2box$3")+e}break;case 5936:switch(rf(e,t+11)){case 114:return Hp+e+Bp+tf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Hp+e+Bp+tf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Hp+e+Bp+tf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Hp+e+Bp+e+e}return e}var lm="undefined"!=typeof document,sm=lm?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(){var e={};return function(t){return e[t]}}))})),cm=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Gp:e.return=im(e.value,e.length);break;case Kp:return zf([vf(e,{value:tf(e.value,"@","@"+Hp)})],r);case Vp:if(e.length)return cf(e.props,(function(t){switch(ef(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zf([vf(e,{props:[tf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return zf([vf(e,{props:[tf(t,/:(plac\w+)/,":"+Hp+"input-$1")]}),vf(e,{props:[tf(t,/:(plac\w+)/,":-moz-$1")]}),vf(e,{props:[tf(t,/:(plac\w+)/,Bp+"input-$1")]})],r)}return""}))}}],um={exports:{}},dm={},pm=U,fm=Symbol.for("react.element"),hm=Symbol.for("react.fragment"),mm=Object.prototype.hasOwnProperty,gm=pm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vm={key:!0,ref:!0,__self:!0,__source:!0};function bm(e,t,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)mm.call(t,r)&&!vm.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:fm,type:e,key:a,ref:i,props:o,_owner:gm.current}}dm.Fragment=hm,dm.jsx=bm,dm.jsxs=bm,um.exports=dm;var ym=um.exports;let xm;function Sm(e){const{injectFirst:t,children:n}=e;return t&&xm?ym.jsx($h,{value:xm,children:n}):n}function wm(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return ym.jsx(Hh,{styles:r})}
|
|
27
27
|
/**
|
|
28
28
|
* @mui/styled-engine v5.16.6
|
|
29
29
|
*
|
|
30
30
|
* @license MIT
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/function Em(e,t){return Yh(e,t)}"object"==typeof document&&(xm=function(e){var t=e.key;if(lm&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||cm,i={},l=[];lm&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s=[om,am];if(lm){var c,u=[Df,Ff((function(e){c.insert(e)}))],d=jf(s.concat(a,u));o=function(e,t,n,r){c=n,function(e){zf(Pf(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}else{var p=[Df],f=jf(s.concat(a,p)),h=sm(a)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return zf(Pf(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,a=m(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),a):r?void(g.inserted[o]=a):a}}var g={key:t,sheet:new em({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return g.sheet.hydrate(l),g}({key:"css",prepend:!0}));const Cm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var km=Object.freeze({__proto__:null,GlobalStyles:wm,StyledEngineProvider:Sm,ThemeContext:Wh,css:Uh,default:Em,internal_processStyles:Cm,keyframes:Vh});function Rm(){return Rm=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},Rm.apply(this,arguments)}function Lm(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Om(){return Om=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},Om.apply(this,arguments)}function _m(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Im(e){if(!_m(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Im(e[n])})),t}function Tm(e,t,n={clone:!0}){const r=n.clone?Om({},e):e;return _m(e)&&_m(t)&&Object.keys(t).forEach((o=>{_m(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&_m(e[o])?r[o]=Tm(e[o],t[o],n):n.clone?r[o]=_m(t[o])?Im(t[o]):t[o]:r[o]=t[o]})),r}var Pm=Object.freeze({__proto__:null,default:Tm,isPlainObject:_m});const Mm=["values","unit","step"],Nm=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)=>Rm({},e,{[t.key]:t.val})),{})};function qm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Lm(e,Mm),a=Nm(t),i=Object.keys(a);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 c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return Rm({keys:i,values:a,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Am={borderRadius:4};function zm(e,t){return t?Tm(e,t,{clone:!1}):e}const Dm={xs:0,sm:600,md:900,lg:1200,xl:1536},jm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Dm[e]}px)`};function Fm(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||jm;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||jm;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Dm).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function $m(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Bm(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Wm({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let a;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[a],a=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[a],a=n):t[n]=e,t)),{})}function Hm(e){if("string"!=typeof e)throw new Error(Pp(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Um=Object.freeze({__proto__:null,default:Hm});function Vm(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 Gm(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Vm(e,n)||r,t&&(o=t(o,r,e)),o}function Km(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=Vm(e.theme,r)||{};return Fm(e,a,(e=>{let r=Gm(i,o,e);return e===r&&"string"==typeof e&&(r=Gm(i,o,`${t}${"default"===e?"":Hm(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes={},a.filterProps=[t],a}const Zm={m:"margin",p:"padding"},Xm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Qm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Jm=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Qm[e])return[e];e=Qm[e]}const[t,n]=e.split(""),r=Zm[t],o=Xm[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Ym=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],eg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function tg(e,t,n,r){var o;const a=null!=(o=Vm(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function ng(e){return tg(e,"spacing",8)}function rg(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 og(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=rg(t,n),e)),{})}(Jm(n),r);return Fm(e,e[n],o)}function ag(e,t){const n=ng(e.theme);return Object.keys(e).map((r=>og(e,t,r,n))).reduce(zm,{})}function ig(e){return ag(e,Ym)}function lg(e){return ag(e,eg)}function sg(e=8){if(e.mui)return e;const t=ng({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}function cg(...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]?zm(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function ug(e){return"number"!=typeof e?e:`${e}px solid`}function dg(e,t){return Km({prop:e,themeKey:"borders",transform:t})}ig.propTypes={},ig.filterProps=Ym,lg.propTypes={},lg.filterProps=eg;const pg=dg("border",ug),fg=dg("borderTop",ug),hg=dg("borderRight",ug),mg=dg("borderBottom",ug),gg=dg("borderLeft",ug),vg=dg("borderColor"),bg=dg("borderTopColor"),yg=dg("borderRightColor"),xg=dg("borderBottomColor"),Sg=dg("borderLeftColor"),wg=dg("outline",ug),Eg=dg("outlineColor"),Cg=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=tg(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:rg(t,e)});return Fm(e,e.borderRadius,n)}return null};Cg.propTypes={},Cg.filterProps=["borderRadius"],cg(pg,fg,hg,mg,gg,vg,bg,yg,xg,Sg,Cg,wg,Eg);const kg=e=>{if(void 0!==e.gap&&null!==e.gap){const t=tg(e.theme,"spacing",8),n=e=>({gap:rg(t,e)});return Fm(e,e.gap,n)}return null};kg.propTypes={},kg.filterProps=["gap"];const Rg=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=tg(e.theme,"spacing",8),n=e=>({columnGap:rg(t,e)});return Fm(e,e.columnGap,n)}return null};Rg.propTypes={},Rg.filterProps=["columnGap"];const Lg=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=tg(e.theme,"spacing",8),n=e=>({rowGap:rg(t,e)});return Fm(e,e.rowGap,n)}return null};Lg.propTypes={},Lg.filterProps=["rowGap"];function Og(e,t){return"grey"===t?t:e}cg(kg,Rg,Lg,Km({prop:"gridColumn"}),Km({prop:"gridRow"}),Km({prop:"gridAutoFlow"}),Km({prop:"gridAutoColumns"}),Km({prop:"gridAutoRows"}),Km({prop:"gridTemplateColumns"}),Km({prop:"gridTemplateRows"}),Km({prop:"gridTemplateAreas"}),Km({prop:"gridArea"}));function _g(e){return e<=1&&0!==e?100*e+"%":e}cg(Km({prop:"color",themeKey:"palette",transform:Og}),Km({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Og}),Km({prop:"backgroundColor",themeKey:"palette",transform:Og}));const Ig=Km({prop:"width",transform:_g}),Tg=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])||Dm[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:_g(t)}};return Fm(e,e.maxWidth,t)}return null};Tg.filterProps=["maxWidth"];const Pg=Km({prop:"minWidth",transform:_g}),Mg=Km({prop:"height",transform:_g}),Ng=Km({prop:"maxHeight",transform:_g}),qg=Km({prop:"minHeight",transform:_g});Km({prop:"size",cssProperty:"width",transform:_g}),Km({prop:"size",cssProperty:"height",transform:_g});cg(Ig,Tg,Pg,Mg,Ng,qg,Km({prop:"boxSizing"}));const Ag={border:{themeKey:"borders",transform:ug},borderTop:{themeKey:"borders",transform:ug},borderRight:{themeKey:"borders",transform:ug},borderBottom:{themeKey:"borders",transform:ug},borderLeft:{themeKey:"borders",transform:ug},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ug},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cg},color:{themeKey:"palette",transform:Og},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Og},backgroundColor:{themeKey:"palette",transform:Og},p:{style:lg},pt:{style:lg},pr:{style:lg},pb:{style:lg},pl:{style:lg},px:{style:lg},py:{style:lg},padding:{style:lg},paddingTop:{style:lg},paddingRight:{style:lg},paddingBottom:{style:lg},paddingLeft:{style:lg},paddingX:{style:lg},paddingY:{style:lg},paddingInline:{style:lg},paddingInlineStart:{style:lg},paddingInlineEnd:{style:lg},paddingBlock:{style:lg},paddingBlockStart:{style:lg},paddingBlockEnd:{style:lg},m:{style:ig},mt:{style:ig},mr:{style:ig},mb:{style:ig},ml:{style:ig},mx:{style:ig},my:{style:ig},margin:{style:ig},marginTop:{style:ig},marginRight:{style:ig},marginBottom:{style:ig},marginLeft:{style:ig},marginX:{style:ig},marginY:{style:ig},marginInline:{style:ig},marginInlineStart:{style:ig},marginInlineEnd:{style:ig},marginBlock:{style:ig},marginBlockStart:{style:ig},marginBlockEnd:{style:ig},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:kg},rowGap:{style:Lg},columnGap:{style:Rg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_g},maxWidth:{style:Tg},minWidth:{transform:_g},height:{transform:_g},maxHeight:{transform:_g},minHeight:{transform:_g},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function zg(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=Vm(n,l)||{};if(c)return c(o);return Fm(o,t,(t=>{let n=Gm(u,s,t);return t===n&&"string"==typeof t&&(n=Gm(u,s,`${e}${"default"===t?"":Hm(t)}`,t)),!1===i?n:{[i]:n}}))}return function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=null!=(r=a.unstable_sxConfig)?r:Ag;function l(n){let r=n;if("function"==typeof n)r=n(a);else if("object"!=typeof n)return n;if(!r)return null;const o=$m(a.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],c=a,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(i[n])s=zm(s,e(n,o,a,i));else{const e=Fm({theme:a},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=zm(s,e):s[n]=t({sx:o,theme:a})}else s=zm(s,e(n,o,a,i))})),Bm(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Dg=zg();function jg(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}Dg.filterProps=["sx"];const Fg=["breakpoints","palette","spacing","shape"];function $g(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Lm(e,Fg),l=qm(n),s=sg(o);let c=Tm({breakpoints:l,direction:"ltr",components:{},palette:Rm({mode:"light"},r),spacing:s,shape:Rm({},Am,a)},i);return c.applyStyles=jg,c=t.reduce(((e,t)=>Tm(e,t)),c),c.unstable_sxConfig=Rm({},Ag,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Dg({sx:e,theme:this})},c}var Bg=Object.freeze({__proto__:null,default:$g,private_createBreakpoints:qm,unstable_applyStyles:jg});function Wg(e=null){const t=U.useContext(Wh);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Hg=$g();function Ug(e=Hg){return Wg(e)}function Vg({styles:e,themeId:t,defaultTheme:n={}}){const r=Ug(n),o="function"==typeof e?e(t&&r[t]||r):e;return ym.jsx(wm,{styles:o})}const Gg=["sx"],Kg=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Ag;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Zg(e){const{sx:t}=e,n=Lm(e,Gg),{systemProps:r,otherProps:o}=Kg(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return _m(n)?Rm({},r,n):r}:Rm({},r,t),Rm({},o,{sx:a})}var Xg=Object.freeze({__proto__:null,default:Dg,extendSxProp:Zg,unstable_createStyleFunctionSx:zg,unstable_defaultSxConfig:Ag});const Qg=e=>e,Jg=(()=>{let e=Qg;return{configure(t){e=t},generate:t=>e(t),reset(){e=Qg}}})();function Yg(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Yg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ev(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Yg(e))&&(r&&(r+=" "),r+=t);return r}const tv=["className","component"];const nv={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 rv(e,t,n="Mui"){const r=nv[t];return r?`${n}-${r}`:`${Jg.generate(e)}-${t}`}function ov(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=rv(e,t,n)})),r}const av=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function iv(e){const t=`${e}`.match(av);return t&&t[1]||""}function lv(e,t=""){return e.displayName||e.name||iv(e)||t}function sv(e,t,n){const r=lv(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var cv=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return lv(e,"Component");if("object"==typeof e)switch(e.$$typeof){case mh.ForwardRef:return sv(e,e.render,"ForwardRef");case mh.Memo:return sv(e,e.type,"memo");default:return}}},getFunctionName:iv});const uv=["ownerState"],dv=["variants"],pv=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function fv(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const hv=$g(),mv=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function gv({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function vv(e){return e?(t,n)=>n[e]:null}function bv(e,t){let{ownerState:n}=t,r=Lm(t,uv);const o="function"==typeof e?e(Rm({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>bv(e,Rm({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Lm(o,dv);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Rm({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Rm({ownerState:n},r,n)):e.style))})),t}return o}const yv=function(e={}){const{themeId:t,defaultTheme:n=hv,rootShouldForwardProp:r=fv,slotShouldForwardProp:o=fv}=e,a=e=>Dg(Rm({},e,{theme:gv(Rm({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{Cm(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=vv(mv(s))}=i,p=Lm(i,pv),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=fv;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=Em(e,Rm({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||_m(e)?r=>bv(e,Rm({},r,{theme:gv({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let i=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=gv(Rm({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=bv(n,Rm({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=gv(Rm({},e,{defaultTheme:n,themeId:t}));return bv({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Rm({},e,{theme:o}))})),h||s.push(a);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=g(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}}();function xv(e,t){const n=Om({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Om({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[r]=Om({},a),Object.keys(o).forEach((e=>{n[r][e]=xv(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Sv({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ug(n);r&&(o=o[r]||o);const a=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?xv(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return a}const wv="undefined"!=typeof window?U.useLayoutEffect:U.useEffect;var Ev=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function Cv(){return Cv=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},Cv.apply(this,arguments)}function kv(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Rv(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Lv(e,t){var n,r;return U.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}function Ov(e){return e&&e.ownerDocument||document}function _v(e){return Ov(e).defaultView||window}function Iv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Tv=0;const Pv=G["useId".toString()];function Mv(e){if(void 0!==Pv){const t=Pv();return null!=e?e:t}return function(e){const[t,n]=U.useState(e),r=e||t;return U.useEffect((()=>{null==t&&(Tv+=1,n(`mui-${Tv}`))}),[t]),r}(e)}function Nv({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=U.useRef(void 0!==e),[a,i]=U.useState(t);return[o?e:a,U.useCallback((e=>{o||i(e)}),[])]}function qv(e){const t=U.useRef(e);return wv((()=>{t.current=e})),U.useRef(((...e)=>(0,t.current)(...e))).current}function Av(...e){return U.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Iv(e,t)}))}),e)}const zv={};const Dv=[];class jv{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new jv}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Fv(){const e=function(e,t){const n=U.useRef(zv);return n.current===zv&&(n.current=e(t)),n}(jv.create).current;var t;return t=e.disposeEffect,U.useEffect(t,Dv),e}let $v=!0,Bv=!1;const Wv=new jv,Hv={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 Uv(e){e.metaKey||e.altKey||e.ctrlKey||($v=!0)}function Vv(){$v=!1}function Gv(){"hidden"===this.visibilityState&&Bv&&($v=!0)}function Kv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return $v||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Hv[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Zv(){const e=U.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Uv,!0),t.addEventListener("mousedown",Vv,!0),t.addEventListener("pointerdown",Vv,!0),t.addEventListener("touchstart",Vv,!0),t.addEventListener("visibilitychange",Gv,!0))}),[]),t=U.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Kv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Bv=!0,Wv.start(100,(()=>{Bv=!1})),t.current=!1,!0)},ref:e}}function Xv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Qv=e=>{const t=U.useRef({});return U.useEffect((()=>{t.current=e})),t.current};function Jv(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}function Yv(e){return"string"==typeof e}function eb(e,t,n){return void 0===e||Yv(e)?t:Om({},t,{ownerState:Om({},t.ownerState,n)})}function tb(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=tb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nb(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=tb(e))&&(r&&(r+=" "),r+=t);return r}function rb(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 ob(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 ab=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ib(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ab),l=a?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=nb(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=Om({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=Om({},n,o,r);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=rb(Om({},o,r)),l=ob(r),s=ob(o),c=t(i),u=nb(null==c?void 0:c.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=Om({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Om({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(Om({},i,{externalSlotProps:l}));return eb(n,Om({},s,{ref:Av(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const lb=U.createContext(null);function sb(){return U.useContext(lb)}var cb="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ub(e){const{children:t,theme:n}=e,r=sb(),o=U.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Cv({},e,t)}(r,n);return null!=e&&(e[cb]=null!==r),e}),[n,r]);return ym.jsx(lb.Provider,{value:o,children:t})}const db=["value"],pb=U.createContext();function fb(e){let{value:t}=e,n=Lm(e,db);return ym.jsx(pb.Provider,Rm({value:null==t||t},n))}const hb=U.createContext(void 0);function mb({value:e,children:t}){return ym.jsx(hb.Provider,{value:e,children:t})}function gb({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?xv(o.defaultProps,r):o.styleOverrides||o.variants?r:xv(o,r)}({props:e,name:t,theme:{components:U.useContext(hb)}})}const vb={};function bb(e,t,n,r=!1){return U.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?Rm({},t,{[e]:a}):a;return r?()=>i:i}return Rm({},t,e?{[e]:n}:n)}),[e,t,n,r])}function yb(e){const{children:t,theme:n,themeId:r}=e,o=Wg(vb),a=sb()||vb,i=bb(r,o,n),l=bb(r,a,n,!0),s="rtl"===i.direction;return ym.jsx(ub,{theme:l,children:ym.jsx(Wh.Provider,{value:i,children:ym.jsx(fb,{value:s,children:ym.jsx(mb,{value:null==i?void 0:i.components,children:t})})})})}const xb=["component","direction","spacing","divider","children","className","useFlexGap"],Sb=$g(),wb=yv("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Eb(e){return Sv({props:e,name:"MuiStack",defaultTheme:Sb})}function Cb(e,t){const n=U.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(U.cloneElement(t,{key:`separator-${o}`})),e)),[])}const kb=({ownerState:e,theme:t})=>{let n=Rm({display:"flex",flexDirection:"column"},Fm({theme:t},Wm({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=ng(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),a=Wm({values:e.direction,base:o}),i=Wm({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach(((e,t,n)=>{if(!a[e]){const r=t>0?a[n[t-1]]:"column";a[e]=r}}));n=Tm(n,Fm({theme:t},i,((t,n)=>{return e.useFlexGap?{gap:rg(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?a[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:rg(r,t)}};var o})))}return n=function(e,...t){const n=$m(e),r=[n,...t].reduce(((e,t)=>Tm(e,t)),{});return Bm(Object.keys(n),r)}(t.breakpoints,n),n};const Rb=["defaultProps","mixins","overrides","palette","props","styleOverrides"],Lb=["type","mode"];var Ob={},_b={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(_b);var Ib=_b.exports,Tb=r(Mp),Pb=r(Ev),Mb=Ib;Object.defineProperty(Ob,"__esModule",{value:!0});var Nb=Ob.alpha=Gb;Ob.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=Bb(e),i=Bb(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Hb({type:"rgb",values:l})},Ob.colorChannel=void 0;var qb=Ob.darken=Kb;Ob.decomposeColor=Bb,Ob.emphasize=Xb;var Ab=Ob.getContrastRatio=function(e,t){const n=Vb(e),r=Vb(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Ob.getLuminance=Vb,Ob.hexToRgb=$b,Ob.hslToRgb=Ub;var zb=Ob.lighten=Zb;Ob.private_safeAlpha=function(e,t,n){try{return Gb(e,t)}catch(t){return e}},Ob.private_safeColorChannel=void 0,Ob.private_safeDarken=function(e,t,n){try{return Kb(e,t)}catch(t){return e}},Ob.private_safeEmphasize=function(e,t,n){try{return Xb(e,t)}catch(t){return e}},Ob.private_safeLighten=function(e,t,n){try{return Zb(e,t)}catch(t){return e}},Ob.recomposeColor=Hb,Ob.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Bb(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Db=Mb(Tb),jb=Mb(Pb);function Fb(e,t=0,n=1){return(0,jb.default)(e,t,n)}function $b(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Bb(e){if(e.type)return e;if("#"===e.charAt(0))return Bb($b(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Db.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,Db.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Wb=e=>{const t=Bb(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Ob.colorChannel=Wb;function Hb(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 Ub(e){e=Bb(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Hb({type:l,values:s})}function Vb(e){let t="hsl"===(e=Bb(e)).type||"hsla"===e.type?Bb(Ub(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 Gb(e,t){return e=Bb(e),t=Fb(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Hb(e)}function Kb(e,t){if(e=Bb(e),t=Fb(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 Hb(e)}function Zb(e,t){if(e=Bb(e),t=Fb(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 Hb(e)}function Xb(e,t=.15){return Vb(e)>.5?Kb(e,t):Zb(e,t)}Ob.private_safeColorChannel=(e,t)=>{try{return Wb(e)}catch(t){return e}};const Qb={black:"#000",white:"#fff"},Jb={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"},Yb={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"},ey={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"},ty={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"},ny={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"},ry={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"},oy={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"},ay=["mode","contrastThreshold","tonalOffset"],iy={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:Qb.white,default:Qb.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}},ly={text:{primary:Qb.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:Qb.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 sy(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=zb(e.main,o):"dark"===t&&(e.dark=qb(e.main,a)))}function cy(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ap(e,ay),a=e.primary||function(e="light"){return"dark"===e?{main:ny[200],light:ny[50],dark:ny[400]}:{main:ny[700],light:ny[400],dark:ny[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:Yb[200],light:Yb[50],dark:Yb[400]}:{main:Yb[500],light:Yb[300],dark:Yb[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:ey[500],light:ey[300],dark:ey[700]}:{main:ey[700],light:ey[400],dark:ey[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ry[400],light:ry[300],dark:ry[700]}:{main:ry[700],light:ry[500],dark:ry[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:oy[400],light:oy[300],dark:oy[700]}:{main:oy[800],light:oy[500],dark:oy[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:ty[400],light:ty[300],dark:ty[700]}:{main:"#ed6c02",light:ty[500],dark:ty[900]}}(t);function d(e){return Ab(e,ly.text.primary)>=n?ly.text.primary:iy.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=qp({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Pp(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Pp(12,t?` (${t})`:"",JSON.stringify(e.main)));return sy(e,"light",o,r),sy(e,"dark",a,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:ly,light:iy};return Tm(qp({common:qp({},Qb),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:Jb,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const uy=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const dy={textTransform:"uppercase"},py='"Roboto", "Helvetica", "Arial", sans-serif';function fy(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=py,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Ap(n,uy),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,a)=>{return qp({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===py?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},a,u);var i},g={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(l,14,1.75,.4,dy),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,dy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Tm(qp({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function hy(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const my=["none",hy(0,2,1,-1,0,1,1,0,0,1,3,0),hy(0,3,1,-2,0,2,2,0,0,1,5,0),hy(0,3,3,-2,0,3,4,0,0,1,8,0),hy(0,2,4,-1,0,4,5,0,0,1,10,0),hy(0,3,5,-1,0,5,8,0,0,1,14,0),hy(0,3,5,-1,0,6,10,0,0,1,18,0),hy(0,4,5,-2,0,7,10,1,0,2,16,1),hy(0,5,5,-3,0,8,10,1,0,3,14,2),hy(0,5,6,-3,0,9,12,1,0,3,16,2),hy(0,6,6,-3,0,10,14,1,0,4,18,3),hy(0,6,7,-4,0,11,15,1,0,4,20,3),hy(0,7,8,-4,0,12,17,2,0,5,22,4),hy(0,7,8,-4,0,13,19,2,0,5,24,4),hy(0,7,9,-4,0,14,21,2,0,5,26,4),hy(0,8,9,-5,0,15,22,2,0,6,28,5),hy(0,8,10,-5,0,16,24,2,0,6,30,5),hy(0,8,11,-5,0,17,26,2,0,6,32,5),hy(0,9,11,-5,0,18,28,2,0,7,34,6),hy(0,9,12,-6,0,19,29,2,0,7,36,6),hy(0,10,13,-6,0,20,31,3,0,8,38,7),hy(0,10,13,-6,0,21,33,3,0,8,40,7),hy(0,10,14,-6,0,22,35,3,0,8,42,7),hy(0,11,14,-7,0,23,36,3,0,9,44,8),hy(0,11,15,-7,0,24,38,3,0,9,46,8)],gy=["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)"},by={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yy(e){return`${Math.round(e)}ms`}function xy(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Sy(e){const t=qp({},vy,e.easing),n=qp({},by,e.duration);return qp({getAutoHeightDuration:xy,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0}=r;return Ap(r,gy),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:yy(o)} ${a} ${"string"==typeof i?i:yy(i)}`)).join(",")}},e,{easing:t,duration:n})}const wy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ey=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Cy(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Ap(e,Ey);if(e.vars)throw new Error(Pp(18));const l=cy(r),s=$g(e);let c=Tm(s,{mixins:(u=s.breakpoints,d=n,qp({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:my.slice(),typography:fy(l,a),transitions:Sy(o),zIndex:qp({},wy)});var u,d;return c=Tm(c,i),c=t.reduce(((e,t)=>Tm(e,t)),c),c.unstable_sxConfig=qp({},Ag,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Dg({sx:e,theme:this})},c}const ky=Cy();function Ry(){const e=Ug(ky);return e[Np]||e}var Ly,Oy={},_y={exports:{}};var Iy,Ty={exports:{}};var Py=r(km),My=r(Pm),Ny=r(Um),qy=r(cv),Ay=r(Bg),zy=r(Xg),Dy=Ib;Object.defineProperty(Oy,"__esModule",{value:!0});var jy=Oy.default=function(e={}){const{themeId:t,defaultTheme:n=Qy,rootShouldForwardProp:r=Xy,slotShouldForwardProp:o=Xy}=e,a=e=>(0,Uy.default)((0,Fy.default)({},e,{theme:Yy((0,Fy.default)({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{(0,By.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=ex(Jy(s))}=i,p=(0,$y.default)(i,Ky),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=Xy;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,By.default)(e,(0,Fy.default)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Wy.isPlainObject)(e)?r=>tx(e,(0,Fy.default)({},r,{theme:Yy({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let i=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=Yy((0,Fy.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=tx(n,(0,Fy.default)({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=Yy((0,Fy.default)({},e,{defaultTheme:n,themeId:t}));return tx({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,Fy.default)({},e,{theme:o}))})),h||s.push(a);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=g(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}};Oy.shouldForwardProp=Xy,Oy.systemDefaultTheme=void 0;var Fy=Dy((Ly||(Ly=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(_y)),_y.exports)),$y=Dy((Iy||(Iy=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(Ty)),Ty.exports)),By=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Zy(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(Py),Wy=My;Dy(Ny),Dy(qy);var Hy=Dy(Ay),Uy=Dy(zy);const Vy=["ownerState"],Gy=["variants"],Ky=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Zy(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Zy=function(e){return e?n:t})(e)}function Xy(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Qy=Oy.systemDefaultTheme=(0,Hy.default)(),Jy=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Yy({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function ex(e){return e?(t,n)=>n[e]:null}function tx(e,t){let{ownerState:n}=t,r=(0,$y.default)(t,Vy);const o="function"==typeof e?e((0,Fy.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>tx(e,(0,Fy.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,$y.default)(o,Gy);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Fy.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Fy.default)({ownerState:n},r,n)):e.style))})),t}return o}const nx=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,rx=jy({themeId:Np,defaultTheme:ky,rootShouldForwardProp:nx}),ox=["theme"];function ax(e){let{theme:t}=e,n=Ap(e,ox);const r=t[Np];return ym.jsx(yb,qp({},n,{themeId:r?Np:void 0,theme:r||t}))}const ix=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function lx(e){return gb(e)}function sx(){return sx=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},sx.apply(this,arguments)}function cx(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function ux(e,t){return ux=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ux(e,t)}function dx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ux(e,t)}var px=!1,fx=V.createContext(null),hx="unmounted",mx="exited",gx="entering",vx="entered",bx="exiting",yx=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=mx,r.appearStatus=gx):o=vx:o=t.unmountOnExit||t.mountOnEnter?hx:mx,r.state={status:o},r.nextCallback=null,r}dx(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===hx?{status:mx}: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!==gx&&n!==vx&&(t=gx):n!==gx&&n!==vx||(t=bx)}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===gx){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ip.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mx&&this.setState({status:hx})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Ip.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||px?this.safeSetState({status:vx},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:gx},(function(){t.props.onEntering(a,i),t.onTransitionEnd(s,(function(){t.safeSetState({status:vx},(function(){t.props.onEntered(a,i)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ip.findDOMNode(this);t&&!px?(this.props.onExit(r),this.safeSetState({status:bx},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:mx},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:mx},(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:Ip.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],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===hx)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=cx(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(fx.Provider,{value:null},"function"==typeof n?n(e,r):V.cloneElement(V.Children.only(n),r))},t}(V.Component);function xx(){}function Sx(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wx(e,t){var n=Object.create(null);return e&&U.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&U.isValidElement(e)?t(e):e}(e)})),n}function Ex(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Cx(e,t,n){var r=wx(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),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<a.length;r++)l[a[r]]=n(a[r]);return l}(t,r);return Object.keys(o).forEach((function(a){var i=o[a];if(U.isValidElement(i)){var l=a in t,s=a in r,c=t[a],u=U.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&U.isValidElement(c)&&(o[a]=U.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:Ex(i,"exit",e),enter:Ex(i,"enter",e)})):o[a]=U.cloneElement(i,{in:!1}):o[a]=U.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Ex(i,"exit",e),enter:Ex(i,"enter",e)})}})),o}yx.contextType=fx,yx.propTypes={},yx.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xx,onEntering:xx,onEntered:xx,onExit:xx,onExiting:xx,onExited:xx},yx.UNMOUNTED=hx,yx.EXITED=mx,yx.ENTERING=gx,yx.ENTERED=vx,yx.EXITING=bx;var kx=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Rx=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Sx(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}dx(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,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,wx(n.children,(function(e){return U.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Ex(e,"appear",n),enter:Ex(e,"enter",n),exit:Ex(e,"exit",n)})}))):Cx(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=wx(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=sx({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=cx(e,["component","childFactory"]),o=this.state.contextValue,a=kx(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?V.createElement(fx.Provider,{value:o},a):V.createElement(fx.Provider,{value:o},V.createElement(t,r,a))},t}(V.Component);Rx.propTypes={},Rx.defaultProps={component:"div",childFactory:function(e){return e}};const Lx=ov("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ox=["center","classes","className"];let _x,Ix,Tx,Px,Mx=e=>e;const Nx=Vh(_x||(_x=Mx`
|
|
33
|
+
*/function Em(e,t){return Yh(e,t)}"object"==typeof document&&(xm=function(e){var t=e.key;if(lm&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||cm,i={},l=[];lm&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s=[om,am];if(lm){var c,u=[Df,Ff((function(e){c.insert(e)}))],d=jf(s.concat(a,u));o=function(e,t,n,r){c=n,function(e){zf(Tf(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}else{var p=[Df],f=jf(s.concat(a,p)),h=sm(a)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return zf(Tf(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,a=m(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),a):r?void(g.inserted[o]=a):a}}var g={key:t,sheet:new em({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return g.sheet.hydrate(l),g}({key:"css",prepend:!0}));const Cm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var km=Object.freeze({__proto__:null,GlobalStyles:wm,StyledEngineProvider:Sm,ThemeContext:Wh,css:Uh,default:Em,internal_processStyles:Cm,keyframes:Vh});function Rm(){return Rm=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},Rm.apply(this,arguments)}function Lm(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Om(){return Om=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},Om.apply(this,arguments)}function _m(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Im(e){if(!_m(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Im(e[n])})),t}function Pm(e,t,n={clone:!0}){const r=n.clone?Om({},e):e;return _m(e)&&_m(t)&&Object.keys(t).forEach((o=>{_m(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&_m(e[o])?r[o]=Pm(e[o],t[o],n):n.clone?r[o]=_m(t[o])?Im(t[o]):t[o]:r[o]=t[o]})),r}var Tm=Object.freeze({__proto__:null,default:Pm,isPlainObject:_m});const Mm=["values","unit","step"],Nm=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)=>Rm({},e,{[t.key]:t.val})),{})};function qm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Lm(e,Mm),a=Nm(t),i=Object.keys(a);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 c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return Rm({keys:i,values:a,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Am={borderRadius:4};function zm(e,t){return t?Pm(e,t,{clone:!1}):e}const Dm={xs:0,sm:600,md:900,lg:1200,xl:1536},jm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Dm[e]}px)`};function Fm(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||jm;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||jm;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Dm).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function $m(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Bm(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Wm({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let a;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[a],a=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[a],a=n):t[n]=e,t)),{})}function Hm(e){if("string"!=typeof e)throw new Error(Tp(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Um=Object.freeze({__proto__:null,default:Hm});function Vm(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 Gm(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Vm(e,n)||r,t&&(o=t(o,r,e)),o}function Km(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=Vm(e.theme,r)||{};return Fm(e,a,(e=>{let r=Gm(i,o,e);return e===r&&"string"==typeof e&&(r=Gm(i,o,`${t}${"default"===e?"":Hm(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes={},a.filterProps=[t],a}const Zm={m:"margin",p:"padding"},Xm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Qm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Jm=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Qm[e])return[e];e=Qm[e]}const[t,n]=e.split(""),r=Zm[t],o=Xm[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Ym=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],eg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function tg(e,t,n,r){var o;const a=null!=(o=Vm(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function ng(e){return tg(e,"spacing",8)}function rg(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 og(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=rg(t,n),e)),{})}(Jm(n),r);return Fm(e,e[n],o)}function ag(e,t){const n=ng(e.theme);return Object.keys(e).map((r=>og(e,t,r,n))).reduce(zm,{})}function ig(e){return ag(e,Ym)}function lg(e){return ag(e,eg)}function sg(e=8){if(e.mui)return e;const t=ng({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}function cg(...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]?zm(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function ug(e){return"number"!=typeof e?e:`${e}px solid`}function dg(e,t){return Km({prop:e,themeKey:"borders",transform:t})}ig.propTypes={},ig.filterProps=Ym,lg.propTypes={},lg.filterProps=eg;const pg=dg("border",ug),fg=dg("borderTop",ug),hg=dg("borderRight",ug),mg=dg("borderBottom",ug),gg=dg("borderLeft",ug),vg=dg("borderColor"),bg=dg("borderTopColor"),yg=dg("borderRightColor"),xg=dg("borderBottomColor"),Sg=dg("borderLeftColor"),wg=dg("outline",ug),Eg=dg("outlineColor"),Cg=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=tg(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:rg(t,e)});return Fm(e,e.borderRadius,n)}return null};Cg.propTypes={},Cg.filterProps=["borderRadius"],cg(pg,fg,hg,mg,gg,vg,bg,yg,xg,Sg,Cg,wg,Eg);const kg=e=>{if(void 0!==e.gap&&null!==e.gap){const t=tg(e.theme,"spacing",8),n=e=>({gap:rg(t,e)});return Fm(e,e.gap,n)}return null};kg.propTypes={},kg.filterProps=["gap"];const Rg=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=tg(e.theme,"spacing",8),n=e=>({columnGap:rg(t,e)});return Fm(e,e.columnGap,n)}return null};Rg.propTypes={},Rg.filterProps=["columnGap"];const Lg=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=tg(e.theme,"spacing",8),n=e=>({rowGap:rg(t,e)});return Fm(e,e.rowGap,n)}return null};Lg.propTypes={},Lg.filterProps=["rowGap"];function Og(e,t){return"grey"===t?t:e}cg(kg,Rg,Lg,Km({prop:"gridColumn"}),Km({prop:"gridRow"}),Km({prop:"gridAutoFlow"}),Km({prop:"gridAutoColumns"}),Km({prop:"gridAutoRows"}),Km({prop:"gridTemplateColumns"}),Km({prop:"gridTemplateRows"}),Km({prop:"gridTemplateAreas"}),Km({prop:"gridArea"}));function _g(e){return e<=1&&0!==e?100*e+"%":e}cg(Km({prop:"color",themeKey:"palette",transform:Og}),Km({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Og}),Km({prop:"backgroundColor",themeKey:"palette",transform:Og}));const Ig=Km({prop:"width",transform:_g}),Pg=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])||Dm[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:_g(t)}};return Fm(e,e.maxWidth,t)}return null};Pg.filterProps=["maxWidth"];const Tg=Km({prop:"minWidth",transform:_g}),Mg=Km({prop:"height",transform:_g}),Ng=Km({prop:"maxHeight",transform:_g}),qg=Km({prop:"minHeight",transform:_g});Km({prop:"size",cssProperty:"width",transform:_g}),Km({prop:"size",cssProperty:"height",transform:_g});cg(Ig,Pg,Tg,Mg,Ng,qg,Km({prop:"boxSizing"}));const Ag={border:{themeKey:"borders",transform:ug},borderTop:{themeKey:"borders",transform:ug},borderRight:{themeKey:"borders",transform:ug},borderBottom:{themeKey:"borders",transform:ug},borderLeft:{themeKey:"borders",transform:ug},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ug},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cg},color:{themeKey:"palette",transform:Og},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Og},backgroundColor:{themeKey:"palette",transform:Og},p:{style:lg},pt:{style:lg},pr:{style:lg},pb:{style:lg},pl:{style:lg},px:{style:lg},py:{style:lg},padding:{style:lg},paddingTop:{style:lg},paddingRight:{style:lg},paddingBottom:{style:lg},paddingLeft:{style:lg},paddingX:{style:lg},paddingY:{style:lg},paddingInline:{style:lg},paddingInlineStart:{style:lg},paddingInlineEnd:{style:lg},paddingBlock:{style:lg},paddingBlockStart:{style:lg},paddingBlockEnd:{style:lg},m:{style:ig},mt:{style:ig},mr:{style:ig},mb:{style:ig},ml:{style:ig},mx:{style:ig},my:{style:ig},margin:{style:ig},marginTop:{style:ig},marginRight:{style:ig},marginBottom:{style:ig},marginLeft:{style:ig},marginX:{style:ig},marginY:{style:ig},marginInline:{style:ig},marginInlineStart:{style:ig},marginInlineEnd:{style:ig},marginBlock:{style:ig},marginBlockStart:{style:ig},marginBlockEnd:{style:ig},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:kg},rowGap:{style:Lg},columnGap:{style:Rg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_g},maxWidth:{style:Pg},minWidth:{transform:_g},height:{transform:_g},maxHeight:{transform:_g},minHeight:{transform:_g},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function zg(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=Vm(n,l)||{};if(c)return c(o);return Fm(o,t,(t=>{let n=Gm(u,s,t);return t===n&&"string"==typeof t&&(n=Gm(u,s,`${e}${"default"===t?"":Hm(t)}`,t)),!1===i?n:{[i]:n}}))}return function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=null!=(r=a.unstable_sxConfig)?r:Ag;function l(n){let r=n;if("function"==typeof n)r=n(a);else if("object"!=typeof n)return n;if(!r)return null;const o=$m(a.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],c=a,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(i[n])s=zm(s,e(n,o,a,i));else{const e=Fm({theme:a},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=zm(s,e):s[n]=t({sx:o,theme:a})}else s=zm(s,e(n,o,a,i))})),Bm(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Dg=zg();function jg(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}Dg.filterProps=["sx"];const Fg=["breakpoints","palette","spacing","shape"];function $g(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Lm(e,Fg),l=qm(n),s=sg(o);let c=Pm({breakpoints:l,direction:"ltr",components:{},palette:Rm({mode:"light"},r),spacing:s,shape:Rm({},Am,a)},i);return c.applyStyles=jg,c=t.reduce(((e,t)=>Pm(e,t)),c),c.unstable_sxConfig=Rm({},Ag,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Dg({sx:e,theme:this})},c}var Bg=Object.freeze({__proto__:null,default:$g,private_createBreakpoints:qm,unstable_applyStyles:jg});function Wg(e=null){const t=U.useContext(Wh);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Hg=$g();function Ug(e=Hg){return Wg(e)}function Vg({styles:e,themeId:t,defaultTheme:n={}}){const r=Ug(n),o="function"==typeof e?e(t&&r[t]||r):e;return ym.jsx(wm,{styles:o})}const Gg=["sx"],Kg=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Ag;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Zg(e){const{sx:t}=e,n=Lm(e,Gg),{systemProps:r,otherProps:o}=Kg(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return _m(n)?Rm({},r,n):r}:Rm({},r,t),Rm({},o,{sx:a})}var Xg=Object.freeze({__proto__:null,default:Dg,extendSxProp:Zg,unstable_createStyleFunctionSx:zg,unstable_defaultSxConfig:Ag});const Qg=e=>e,Jg=(()=>{let e=Qg;return{configure(t){e=t},generate:t=>e(t),reset(){e=Qg}}})();function Yg(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Yg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ev(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Yg(e))&&(r&&(r+=" "),r+=t);return r}const tv=["className","component"];const nv={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 rv(e,t,n="Mui"){const r=nv[t];return r?`${n}-${r}`:`${Jg.generate(e)}-${t}`}function ov(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=rv(e,t,n)})),r}const av=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function iv(e){const t=`${e}`.match(av);return t&&t[1]||""}function lv(e,t=""){return e.displayName||e.name||iv(e)||t}function sv(e,t,n){const r=lv(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var cv=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return lv(e,"Component");if("object"==typeof e)switch(e.$$typeof){case mh.ForwardRef:return sv(e,e.render,"ForwardRef");case mh.Memo:return sv(e,e.type,"memo");default:return}}},getFunctionName:iv});const uv=["ownerState"],dv=["variants"],pv=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function fv(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const hv=$g(),mv=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function gv({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function vv(e){return e?(t,n)=>n[e]:null}function bv(e,t){let{ownerState:n}=t,r=Lm(t,uv);const o="function"==typeof e?e(Rm({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>bv(e,Rm({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Lm(o,dv);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Rm({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Rm({ownerState:n},r,n)):e.style))})),t}return o}const yv=function(e={}){const{themeId:t,defaultTheme:n=hv,rootShouldForwardProp:r=fv,slotShouldForwardProp:o=fv}=e,a=e=>Dg(Rm({},e,{theme:gv(Rm({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{Cm(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=vv(mv(s))}=i,p=Lm(i,pv),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=fv;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=Em(e,Rm({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||_m(e)?r=>bv(e,Rm({},r,{theme:gv({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let i=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=gv(Rm({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=bv(n,Rm({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=gv(Rm({},e,{defaultTheme:n,themeId:t}));return bv({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Rm({},e,{theme:o}))})),h||s.push(a);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=g(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}}();function xv(e,t){const n=Om({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Om({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[r]=Om({},a),Object.keys(o).forEach((e=>{n[r][e]=xv(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Sv({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ug(n);r&&(o=o[r]||o);const a=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?xv(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return a}const wv="undefined"!=typeof window?U.useLayoutEffect:U.useEffect;var Ev=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function Cv(){return Cv=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},Cv.apply(this,arguments)}function kv(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Rv(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Lv(e,t){var n,r;return U.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}function Ov(e){return e&&e.ownerDocument||document}function _v(e){return Ov(e).defaultView||window}function Iv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Pv=0;const Tv=G["useId".toString()];function Mv(e){if(void 0!==Tv){const t=Tv();return null!=e?e:t}return function(e){const[t,n]=U.useState(e),r=e||t;return U.useEffect((()=>{null==t&&(Pv+=1,n(`mui-${Pv}`))}),[t]),r}(e)}function Nv({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=U.useRef(void 0!==e),[a,i]=U.useState(t);return[o?e:a,U.useCallback((e=>{o||i(e)}),[])]}function qv(e){const t=U.useRef(e);return wv((()=>{t.current=e})),U.useRef(((...e)=>(0,t.current)(...e))).current}function Av(...e){return U.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Iv(e,t)}))}),e)}const zv={};const Dv=[];class jv{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new jv}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Fv(){const e=function(e,t){const n=U.useRef(zv);return n.current===zv&&(n.current=e(t)),n}(jv.create).current;var t;return t=e.disposeEffect,U.useEffect(t,Dv),e}let $v=!0,Bv=!1;const Wv=new jv,Hv={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 Uv(e){e.metaKey||e.altKey||e.ctrlKey||($v=!0)}function Vv(){$v=!1}function Gv(){"hidden"===this.visibilityState&&Bv&&($v=!0)}function Kv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return $v||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Hv[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Zv(){const e=U.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Uv,!0),t.addEventListener("mousedown",Vv,!0),t.addEventListener("pointerdown",Vv,!0),t.addEventListener("touchstart",Vv,!0),t.addEventListener("visibilitychange",Gv,!0))}),[]),t=U.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Kv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Bv=!0,Wv.start(100,(()=>{Bv=!1})),t.current=!1,!0)},ref:e}}function Xv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Qv=e=>{const t=U.useRef({});return U.useEffect((()=>{t.current=e})),t.current};function Jv(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}function Yv(e){return"string"==typeof e}function eb(e,t,n){return void 0===e||Yv(e)?t:Om({},t,{ownerState:Om({},t.ownerState,n)})}function tb(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=tb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nb(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=tb(e))&&(r&&(r+=" "),r+=t);return r}function rb(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 ob(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 ab=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ib(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ab),l=a?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=nb(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=Om({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=Om({},n,o,r);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=rb(Om({},o,r)),l=ob(r),s=ob(o),c=t(i),u=nb(null==c?void 0:c.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=Om({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Om({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(Om({},i,{externalSlotProps:l}));return eb(n,Om({},s,{ref:Av(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const lb=U.createContext(null);function sb(){return U.useContext(lb)}var cb="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ub(e){const{children:t,theme:n}=e,r=sb(),o=U.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Cv({},e,t)}(r,n);return null!=e&&(e[cb]=null!==r),e}),[n,r]);return ym.jsx(lb.Provider,{value:o,children:t})}const db=["value"],pb=U.createContext();function fb(e){let{value:t}=e,n=Lm(e,db);return ym.jsx(pb.Provider,Rm({value:null==t||t},n))}const hb=U.createContext(void 0);function mb({value:e,children:t}){return ym.jsx(hb.Provider,{value:e,children:t})}function gb({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?xv(o.defaultProps,r):o.styleOverrides||o.variants?r:xv(o,r)}({props:e,name:t,theme:{components:U.useContext(hb)}})}const vb={};function bb(e,t,n,r=!1){return U.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?Rm({},t,{[e]:a}):a;return r?()=>i:i}return Rm({},t,e?{[e]:n}:n)}),[e,t,n,r])}function yb(e){const{children:t,theme:n,themeId:r}=e,o=Wg(vb),a=sb()||vb,i=bb(r,o,n),l=bb(r,a,n,!0),s="rtl"===i.direction;return ym.jsx(ub,{theme:l,children:ym.jsx(Wh.Provider,{value:i,children:ym.jsx(fb,{value:s,children:ym.jsx(mb,{value:null==i?void 0:i.components,children:t})})})})}const xb=["component","direction","spacing","divider","children","className","useFlexGap"],Sb=$g(),wb=yv("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Eb(e){return Sv({props:e,name:"MuiStack",defaultTheme:Sb})}function Cb(e,t){const n=U.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(U.cloneElement(t,{key:`separator-${o}`})),e)),[])}const kb=({ownerState:e,theme:t})=>{let n=Rm({display:"flex",flexDirection:"column"},Fm({theme:t},Wm({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=ng(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),a=Wm({values:e.direction,base:o}),i=Wm({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach(((e,t,n)=>{if(!a[e]){const r=t>0?a[n[t-1]]:"column";a[e]=r}}));n=Pm(n,Fm({theme:t},i,((t,n)=>{return e.useFlexGap?{gap:rg(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?a[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:rg(r,t)}};var o})))}return n=function(e,...t){const n=$m(e),r=[n,...t].reduce(((e,t)=>Pm(e,t)),{});return Bm(Object.keys(n),r)}(t.breakpoints,n),n};const Rb=["defaultProps","mixins","overrides","palette","props","styleOverrides"],Lb=["type","mode"];var Ob={},_b={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(_b);var Ib=_b.exports,Pb=r(Mp),Tb=r(Ev),Mb=Ib;Object.defineProperty(Ob,"__esModule",{value:!0});var Nb=Ob.alpha=Gb;Ob.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=Bb(e),i=Bb(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Hb({type:"rgb",values:l})},Ob.colorChannel=void 0;var qb=Ob.darken=Kb;Ob.decomposeColor=Bb,Ob.emphasize=Xb;var Ab=Ob.getContrastRatio=function(e,t){const n=Vb(e),r=Vb(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Ob.getLuminance=Vb,Ob.hexToRgb=$b,Ob.hslToRgb=Ub;var zb=Ob.lighten=Zb;Ob.private_safeAlpha=function(e,t,n){try{return Gb(e,t)}catch(t){return e}},Ob.private_safeColorChannel=void 0,Ob.private_safeDarken=function(e,t,n){try{return Kb(e,t)}catch(t){return e}},Ob.private_safeEmphasize=function(e,t,n){try{return Xb(e,t)}catch(t){return e}},Ob.private_safeLighten=function(e,t,n){try{return Zb(e,t)}catch(t){return e}},Ob.recomposeColor=Hb,Ob.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Bb(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Db=Mb(Pb),jb=Mb(Tb);function Fb(e,t=0,n=1){return(0,jb.default)(e,t,n)}function $b(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Bb(e){if(e.type)return e;if("#"===e.charAt(0))return Bb($b(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Db.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,Db.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Wb=e=>{const t=Bb(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Ob.colorChannel=Wb;function Hb(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 Ub(e){e=Bb(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Hb({type:l,values:s})}function Vb(e){let t="hsl"===(e=Bb(e)).type||"hsla"===e.type?Bb(Ub(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 Gb(e,t){return e=Bb(e),t=Fb(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Hb(e)}function Kb(e,t){if(e=Bb(e),t=Fb(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 Hb(e)}function Zb(e,t){if(e=Bb(e),t=Fb(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 Hb(e)}function Xb(e,t=.15){return Vb(e)>.5?Kb(e,t):Zb(e,t)}Ob.private_safeColorChannel=(e,t)=>{try{return Wb(e)}catch(t){return e}};const Qb={black:"#000",white:"#fff"},Jb={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"},Yb={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"},ey={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"},ty={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"},ny={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"},ry={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"},oy={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"},ay=["mode","contrastThreshold","tonalOffset"],iy={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:Qb.white,default:Qb.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}},ly={text:{primary:Qb.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:Qb.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 sy(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=zb(e.main,o):"dark"===t&&(e.dark=qb(e.main,a)))}function cy(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ap(e,ay),a=e.primary||function(e="light"){return"dark"===e?{main:ny[200],light:ny[50],dark:ny[400]}:{main:ny[700],light:ny[400],dark:ny[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:Yb[200],light:Yb[50],dark:Yb[400]}:{main:Yb[500],light:Yb[300],dark:Yb[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:ey[500],light:ey[300],dark:ey[700]}:{main:ey[700],light:ey[400],dark:ey[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ry[400],light:ry[300],dark:ry[700]}:{main:ry[700],light:ry[500],dark:ry[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:oy[400],light:oy[300],dark:oy[700]}:{main:oy[800],light:oy[500],dark:oy[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:ty[400],light:ty[300],dark:ty[700]}:{main:"#ed6c02",light:ty[500],dark:ty[900]}}(t);function d(e){return Ab(e,ly.text.primary)>=n?ly.text.primary:iy.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=qp({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Tp(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Tp(12,t?` (${t})`:"",JSON.stringify(e.main)));return sy(e,"light",o,r),sy(e,"dark",a,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:ly,light:iy};return Pm(qp({common:qp({},Qb),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:Jb,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const uy=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const dy={textTransform:"uppercase"},py='"Roboto", "Helvetica", "Arial", sans-serif';function fy(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=py,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Ap(n,uy),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,a)=>{return qp({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===py?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},a,u);var i},g={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(l,14,1.75,.4,dy),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,dy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pm(qp({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function hy(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const my=["none",hy(0,2,1,-1,0,1,1,0,0,1,3,0),hy(0,3,1,-2,0,2,2,0,0,1,5,0),hy(0,3,3,-2,0,3,4,0,0,1,8,0),hy(0,2,4,-1,0,4,5,0,0,1,10,0),hy(0,3,5,-1,0,5,8,0,0,1,14,0),hy(0,3,5,-1,0,6,10,0,0,1,18,0),hy(0,4,5,-2,0,7,10,1,0,2,16,1),hy(0,5,5,-3,0,8,10,1,0,3,14,2),hy(0,5,6,-3,0,9,12,1,0,3,16,2),hy(0,6,6,-3,0,10,14,1,0,4,18,3),hy(0,6,7,-4,0,11,15,1,0,4,20,3),hy(0,7,8,-4,0,12,17,2,0,5,22,4),hy(0,7,8,-4,0,13,19,2,0,5,24,4),hy(0,7,9,-4,0,14,21,2,0,5,26,4),hy(0,8,9,-5,0,15,22,2,0,6,28,5),hy(0,8,10,-5,0,16,24,2,0,6,30,5),hy(0,8,11,-5,0,17,26,2,0,6,32,5),hy(0,9,11,-5,0,18,28,2,0,7,34,6),hy(0,9,12,-6,0,19,29,2,0,7,36,6),hy(0,10,13,-6,0,20,31,3,0,8,38,7),hy(0,10,13,-6,0,21,33,3,0,8,40,7),hy(0,10,14,-6,0,22,35,3,0,8,42,7),hy(0,11,14,-7,0,23,36,3,0,9,44,8),hy(0,11,15,-7,0,24,38,3,0,9,46,8)],gy=["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)"},by={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yy(e){return`${Math.round(e)}ms`}function xy(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Sy(e){const t=qp({},vy,e.easing),n=qp({},by,e.duration);return qp({getAutoHeightDuration:xy,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0}=r;return Ap(r,gy),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:yy(o)} ${a} ${"string"==typeof i?i:yy(i)}`)).join(",")}},e,{easing:t,duration:n})}const wy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ey=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Cy(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Ap(e,Ey);if(e.vars)throw new Error(Tp(18));const l=cy(r),s=$g(e);let c=Pm(s,{mixins:(u=s.breakpoints,d=n,qp({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:my.slice(),typography:fy(l,a),transitions:Sy(o),zIndex:qp({},wy)});var u,d;return c=Pm(c,i),c=t.reduce(((e,t)=>Pm(e,t)),c),c.unstable_sxConfig=qp({},Ag,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Dg({sx:e,theme:this})},c}const ky=Cy();function Ry(){const e=Ug(ky);return e[Np]||e}var Ly,Oy={},_y={exports:{}};var Iy,Py={exports:{}};var Ty=r(km),My=r(Tm),Ny=r(Um),qy=r(cv),Ay=r(Bg),zy=r(Xg),Dy=Ib;Object.defineProperty(Oy,"__esModule",{value:!0});var jy=Oy.default=function(e={}){const{themeId:t,defaultTheme:n=Qy,rootShouldForwardProp:r=Xy,slotShouldForwardProp:o=Xy}=e,a=e=>(0,Uy.default)((0,Fy.default)({},e,{theme:Yy((0,Fy.default)({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{(0,By.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=ex(Jy(s))}=i,p=(0,$y.default)(i,Ky),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=Xy;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,By.default)(e,(0,Fy.default)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Wy.isPlainObject)(e)?r=>tx(e,(0,Fy.default)({},r,{theme:Yy({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let i=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=Yy((0,Fy.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=tx(n,(0,Fy.default)({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=Yy((0,Fy.default)({},e,{defaultTheme:n,themeId:t}));return tx({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,Fy.default)({},e,{theme:o}))})),h||s.push(a);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=g(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}};Oy.shouldForwardProp=Xy,Oy.systemDefaultTheme=void 0;var Fy=Dy((Ly||(Ly=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(_y)),_y.exports)),$y=Dy((Iy||(Iy=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(Py)),Py.exports)),By=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Zy(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(Ty),Wy=My;Dy(Ny),Dy(qy);var Hy=Dy(Ay),Uy=Dy(zy);const Vy=["ownerState"],Gy=["variants"],Ky=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Zy(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Zy=function(e){return e?n:t})(e)}function Xy(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Qy=Oy.systemDefaultTheme=(0,Hy.default)(),Jy=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Yy({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function ex(e){return e?(t,n)=>n[e]:null}function tx(e,t){let{ownerState:n}=t,r=(0,$y.default)(t,Vy);const o="function"==typeof e?e((0,Fy.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>tx(e,(0,Fy.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,$y.default)(o,Gy);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Fy.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Fy.default)({ownerState:n},r,n)):e.style))})),t}return o}const nx=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,rx=jy({themeId:Np,defaultTheme:ky,rootShouldForwardProp:nx}),ox=["theme"];function ax(e){let{theme:t}=e,n=Ap(e,ox);const r=t[Np];return ym.jsx(yb,qp({},n,{themeId:r?Np:void 0,theme:r||t}))}const ix=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function lx(e){return gb(e)}function sx(){return sx=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},sx.apply(this,arguments)}function cx(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function ux(e,t){return ux=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ux(e,t)}function dx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ux(e,t)}var px=!1,fx=V.createContext(null),hx="unmounted",mx="exited",gx="entering",vx="entered",bx="exiting",yx=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=mx,r.appearStatus=gx):o=vx:o=t.unmountOnExit||t.mountOnEnter?hx:mx,r.state={status:o},r.nextCallback=null,r}dx(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===hx?{status:mx}: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!==gx&&n!==vx&&(t=gx):n!==gx&&n!==vx||(t=bx)}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===gx){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ip.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mx&&this.setState({status:hx})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Ip.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||px?this.safeSetState({status:vx},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:gx},(function(){t.props.onEntering(a,i),t.onTransitionEnd(s,(function(){t.safeSetState({status:vx},(function(){t.props.onEntered(a,i)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ip.findDOMNode(this);t&&!px?(this.props.onExit(r),this.safeSetState({status:bx},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:mx},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:mx},(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:Ip.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],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===hx)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=cx(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(fx.Provider,{value:null},"function"==typeof n?n(e,r):V.cloneElement(V.Children.only(n),r))},t}(V.Component);function xx(){}function Sx(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wx(e,t){var n=Object.create(null);return e&&U.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&U.isValidElement(e)?t(e):e}(e)})),n}function Ex(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Cx(e,t,n){var r=wx(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),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<a.length;r++)l[a[r]]=n(a[r]);return l}(t,r);return Object.keys(o).forEach((function(a){var i=o[a];if(U.isValidElement(i)){var l=a in t,s=a in r,c=t[a],u=U.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&U.isValidElement(c)&&(o[a]=U.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:Ex(i,"exit",e),enter:Ex(i,"enter",e)})):o[a]=U.cloneElement(i,{in:!1}):o[a]=U.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Ex(i,"exit",e),enter:Ex(i,"enter",e)})}})),o}yx.contextType=fx,yx.propTypes={},yx.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xx,onEntering:xx,onEntered:xx,onExit:xx,onExiting:xx,onExited:xx},yx.UNMOUNTED=hx,yx.EXITED=mx,yx.ENTERING=gx,yx.ENTERED=vx,yx.EXITING=bx;var kx=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Rx=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Sx(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}dx(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,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,wx(n.children,(function(e){return U.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Ex(e,"appear",n),enter:Ex(e,"enter",n),exit:Ex(e,"exit",n)})}))):Cx(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=wx(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=sx({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=cx(e,["component","childFactory"]),o=this.state.contextValue,a=kx(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?V.createElement(fx.Provider,{value:o},a):V.createElement(fx.Provider,{value:o},V.createElement(t,r,a))},t}(V.Component);Rx.propTypes={},Rx.defaultProps={component:"div",childFactory:function(e){return e}};const Lx=ov("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ox=["center","classes","className"];let _x,Ix,Px,Tx,Mx=e=>e;const Nx=Vh(_x||(_x=Mx`
|
|
34
34
|
0% {
|
|
35
35
|
transform: scale(0);
|
|
36
36
|
opacity: 0.1;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
100% {
|
|
49
49
|
opacity: 0;
|
|
50
50
|
}
|
|
51
|
-
`)),Ax=Vh(
|
|
51
|
+
`)),Ax=Vh(Px||(Px=Mx`
|
|
52
52
|
0% {
|
|
53
53
|
transform: scale(1);
|
|
54
54
|
}
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
100% {
|
|
61
61
|
transform: scale(1);
|
|
62
62
|
}
|
|
63
|
-
`)),zx=rx("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Dx=rx((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:s,timeout:c}=e,[u,d]=U.useState(!1),p=ev(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:i,height:i,top:-i/2+a,left:-i/2+o},h=ev(n.child,u&&n.childLeaving,r&&n.childPulsate);return l||u||d(!0),U.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,c);return()=>{clearTimeout(e)}}}),[s,l,c]),ym.jsx("span",{className:p,style:f,children:ym.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(
|
|
63
|
+
`)),zx=rx("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Dx=rx((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:s,timeout:c}=e,[u,d]=U.useState(!1),p=ev(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:i,height:i,top:-i/2+a,left:-i/2+o},h=ev(n.child,u&&n.childLeaving,r&&n.childPulsate);return l||u||d(!0),U.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,c);return()=>{clearTimeout(e)}}}),[s,l,c]),ym.jsx("span",{className:p,style:f,children:ym.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Tx||(Tx=Mx`
|
|
64
64
|
opacity: 0;
|
|
65
65
|
position: absolute;
|
|
66
66
|
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
animation-iteration-count: infinite;
|
|
104
104
|
animation-delay: 200ms;
|
|
105
105
|
}
|
|
106
|
-
`),Lx.rippleVisible,Nx,550,(({theme:e})=>e.transitions.easing.easeInOut),Lx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Lx.child,Lx.childLeaving,qx,550,(({theme:e})=>e.transitions.easing.easeInOut),Lx.childPulsate,Ax,(({theme:e})=>e.transitions.easing.easeInOut)),jx=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=Ap(n,Ox),[l,s]=U.useState([]),c=U.useRef(0),u=U.useRef(null);U.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=U.useRef(!1),p=Fv(),f=U.useRef(null),h=U.useRef(null),m=U.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,ym.jsx(Dx,{classes:{ripple:ev(o.ripple,Lx.ripple),rippleVisible:ev(o.rippleVisible,Lx.rippleVisible),ripplePulsate:ev(o.ripplePulsate,Lx.ripplePulsate),child:ev(o.child,Lx.child),childLeaving:ev(o.childLeaving,Lx.childLeaving),childPulsate:ev(o.childPulsate,Lx.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=U.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!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=i?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(a)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)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),v=U.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=U.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return U.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),ym.jsx(zx,qp({className:ev(Lx.root,o.root,a),ref:h},i,{children:ym.jsx(Rx,{component:null,exit:!0,children:l})}))}));function Fx(e){return rv("MuiButtonBase",e)}const $x=ov("MuiButtonBase",["root","disabled","focusVisible"]),Bx=["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"],Wx=rx("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"},[`&.${$x.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Hx=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:C,onTouchMove:k,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:_,type:I}=n,T=Ap(n,Bx),P=U.useRef(null),M=U.useRef(null),N=Av(M,_),{isFocusVisibleRef:q,onFocus:A,onBlur:z,ref:D}=Zv(),[j,F]=U.useState(!1);s&&j&&F(!1),U.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),P.current.focus()}})),[]);const[$,B]=U.useState(!1);U.useEffect((()=>{B(!0)}),[]);const W=$&&!c&&!s;function H(e,t,n=u){return qv((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}U.useEffect((()=>{j&&d&&!c&&$&&M.current.pulsate()}),[c,d,j,$]);const V=H("start",S),G=H("stop",m),K=H("stop",g),Z=H("stop",E),X=H("stop",(e=>{j&&e.preventDefault(),w&&w(e)})),Q=H("start",R),J=H("stop",C),Y=H("stop",k),ee=H("stop",(e=>{z(e),!1===q.current&&F(!1),f&&f(e)}),!1),te=qv((e=>{P.current||(P.current=e.currentTarget),A(e),!0===q.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=U.useRef(!1),oe=qv((e=>{d&&!re.current&&j&&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(),h&&h(e))})),ae=qv((e=>{d&&" "===e.key&&M.current&&j&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(T.href||T.to)&&(ie=p);const le={};"button"===ie?(le.type=void 0===I?"button":I,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Av(t,D,P),ce=qp({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:L,focusVisible:j}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Jv({root:["root",t&&"disabled",n&&"focusVisible"]},Fx,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return ym.jsxs(Wx,qp({as:ie,className:ev(ue.root,i),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:J,onTouchMove:Y,onTouchStart:Q,ref:se,tabIndex:s?-1:L,type:I},le,T,{children:[a,W?ym.jsx(jx,qp({ref:N,center:o},O)):null]}))}));function Ux(e){return rv("MuiButton",e)}const Vx=ov("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Gx=U.createContext({}),Kx=U.createContext(void 0),Zx=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Xx=e=>qp({},"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}}),Qx=rx(Hx,{shouldForwardProp:e=>nx(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Hm(n.color)}`],t[`size${Hm(n.size)}`],t[`${n.variant}Size${Hm(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],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return qp({},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":qp({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Nb(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})`:Nb(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})`:Nb(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:a,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":qp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Vx.focusVisible}`]:qp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Vx.disabled}`]:qp({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 ${Nb(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"},[`&.${Vx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vx.disabled}`]:{boxShadow:"none"}})),Jx=rx("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Hm(n.size)}`]]}})((({ownerState:e})=>qp({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Xx(e)))),Yx=rx("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Hm(n.size)}`]]}})((({ownerState:e})=>qp({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Xx(e)))),eS=U.forwardRef((function(e,t){const n=U.useContext(Gx),r=U.useContext(Kx),o=lx({props:xv(n,e),name:"MuiButton"}),{children:a,color:i="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=Ap(o,Zx),x=qp({},o,{color:i,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return qp({},i,Jv({root:["root",a,`${a}${Hm(t)}`,`size${Hm(o)}`,`${a}Size${Hm(o)}`,`color${Hm(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Hm(o)}`],endIcon:["icon","endIcon",`iconSize${Hm(o)}`]},Ux,i))})(x),w=g&&ym.jsx(Jx,{className:S.startIcon,ownerState:x,children:g}),E=p&&ym.jsx(Yx,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return ym.jsxs(Qx,qp({ownerState:x,className:ev(n.className,S.root,s,C),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:ev(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[w,a,E]}))}));var tS={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},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)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},MuiCheckbox:{color:"secondary"},MuiRadio:{color:"secondary"},MuiTabs:{indicatorColor:"secondary"}}};const nS={green:"#009845",greenPale:"#0AAF54",red:"#DC423F",redPale:"#F05551",blue:"#3F8AB3",bluePale:"#469DCD",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey85:"#D9D9D9",grey55:"#8C8C8C",grey45:"#737373",grey30:"#4D4D4D",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey5:"#0E0E0E",grey0:"#000000"},rS={mode:"light",palette:{primary:{main:nS.grey25,contrastText:nS.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:nS.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:nS.grey100,dark:nS.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:nS.grey100,default:nS.grey100,lightest:nS.grey100,lighter:nS.grey98,darker:nS.grey95,darkest:nS.grey90},custom:{focusBorder:nS.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:nS.grey45,disabledContrastText:nS.grey100},selected:{main:nS.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:nS.grey100,selectedContrastText:nS.grey100,mainContrastText:nS.grey100,alternativeContrastText:nS.grey25,excludedContrastText:nS.grey25,selectedExcludedContrastText:nS.grey100,possibleContrastText:nS.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},oS={mode:"dark",palette:{primary:{main:nS.grey20,contrastText:nS.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:nS.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:nS.grey100,dark:nS.grey0},action:{active:nS.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:nS.grey25,lighter:nS.grey20,darker:nS.grey15,darkest:nS.grey10},custom:{focusBorder:nS.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:nS.grey45,disabledContrastText:nS.grey100},selected:{main:nS.green,alternative:nS.grey20,excluded:nS.grey10,selectedExcluded:nS.grey10,possible:nS.grey80,selectedContrastText:nS.grey100,mainContrastText:nS.grey100,alternativeContrastText:nS.grey100,excludedContrastText:nS.grey100,selectedExcludedContrastText:nS.grey100,possibleContrastText:nS.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},aS={},iS=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&:focus-visible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(:active):not(:focus-visible)":{borderColor:"transparent",boxShadow:"none"}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(Vx.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none",["&.".concat(Vx.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",["&.".concat(Vx.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Vx.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function lS(e){let t=rS,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=oS));const r=JSON.stringify(t);if(aS[r])return aS[r];const o={palette:l(l({type:t.mode},tS.palette),t.palette),typography:l({},tS.typography),shadows:tS.shadows,props:l({},tS.props),shape:l({},tS.shape)};return aS[r]=Cy(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=qp({},Ap(e,Rb),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.defaultProps=a[e],l.components[e]=t})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=i[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=sg(e.spacing);const s=qm(e.breakpoints||{}),c=l.spacing;l.mixins=qp({gutters:(e={})=>qp({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:qp({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Ap(o,Lb),f=d||u||"light";return l.palette=qp({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(l(l({},o),{},{overrides:iS(o)}))),aS[r].name=n,aS[r]}Jg.configure((e=>"njs-".concat("ce25","-").concat(e.replace("Mui",""))));var sS=V.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const cS={active:!0,select:!0,passive:!0,edit:!1};function uS(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach((e=>{r[e]=!t[e]})),r}(e);Object.keys(cS).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=cS[e],n[e]=!cS[e])})),e.constraints=n,e.interactions=t}var dS=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))}};return[()=>{const[,e]=U.useState(t);return U.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[r]},r]};const pS=U.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:a}=e;const[i,l]=U.useState(n),[s,c]=U.useState(),{theme:u}=U.useMemo((()=>({theme:lS(s)})),[s]),[d,p]=U.useState([]);return U.useEffect((()=>{r&&r()}),[]),U.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),i&&(i.modelStore=o,i.selectionStore=a),V.createElement(Sm,{injectFirst:!0},V.createElement(ax,{theme:u},V.createElement(sS.Provider,{value:i},d)))}));function fS(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=V.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","5.4.2"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),r&&uS(r);const l=function(e){const[t,n]=dS({}),[r,o]=dS({}),[a,i]=dS({}),[l,s]=dS({}),[c,u]=dS({}),[,d]=dS({}),p=e=>{let{type:t,value:r}=e;const a=d.get(r.id);d.set(r.id,{});const l=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("changed",l),n.clear(r.id),o.clear(r.id),i.clear(r.id),s.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(a||(r.on("changed",l),r.once("closed",(()=>{c()})))),c},[f,h]=dS({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:l,rpcRequestModelStore:s,useRpcRequestSessionModelStore:a,rpcRequestSessionModelStore:i,modelChangedStore:u,appId:e}}(n.id),s=function(e){const[t,n]=dS({}),[r,o]=dS({}),[a,i]=dS({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:a,modalObjectStore:i,appId:e}}(n.id);wt.createRoot(i).render(V.createElement(pS,{ref:a,initialContext:r,renderCallback:t,modelStore:l,selectionStore:s}));const c={},u=[];return[{toggleFocusOfCells(e){Object.keys(c).forEach((t=>{c[t].current.toggleFocus(t===e)}))},cells:c,addCell(e,t){c[e]=t},removeCell(e){delete c[e]},add(e){(async()=>{await o,u.push(e),a.current.setComps(u)})()},remove(e){(async()=>{await o;const t=u.indexOf(e);-1!==t&&u.splice(t,1),a.current.setComps(u)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&uS(e),a.current.setContext(e)})()}},l,s,a,o]}function hS(e){return rv("MuiSvgIcon",e)}ov("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gS=rx("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Hm(n.color)}`],t[`fontSize${Hm(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),vS=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Ap(n,mS),f=U.isValidElement(r)&&"svg"===r.type,h=qp({},n,{color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Jv({root:["root","inherit"!==t&&`color${Hm(t)}`,`fontSize${Hm(n)}`]},hS,r)})(h);return ym.jsxs(gS,qp({as:i,className:ev(g.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?ym.jsx("title",{children:u}):null]}))}));function bS(e,t){function n(n,r){return ym.jsx(vS,qp({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=vS.muiName,U.memo(U.forwardRef(n))}vS.muiName="SvgIcon";const yS={configure:e=>{Jg.configure(e)}};var xS=Object.freeze({__proto__:null,capitalize:Hm,createChainedFunction:kv,createSvgIcon:bS,debounce:Rv,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Lv,ownerDocument:Ov,ownerWindow:_v,requirePropFactory:function(e,t){return()=>null},setRef:Iv,unstable_ClassNameGenerator:yS,unstable_useEnhancedEffect:wv,unstable_useId:Mv,unsupportedProp:function(e,t,n,r,o){return null},useControlled:Nv,useEventCallback:qv,useForkRef:Av,useIsFocusVisible:Zv});const SS=e=>e.scrollTop;function wS(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function ES(e){return rv("MuiPaper",e)}ov("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 CS=["className","component","elevation","square","variant"],kS=rx("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 qp({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&&qp({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Nb("#fff",ix(t.elevation))}, ${Nb("#fff",ix(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),RS=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=Ap(n,CS),c=qp({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Jv({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},ES,o)})(c);return ym.jsx(kS,qp({as:o,ownerState:c,className:ev(u.root,r),ref:t},s))}));function LS(e){return rv("MuiIconButton",e)}const OS=ov("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),_S=["edge","children","className","color","disabled","disableFocusRipple","size"],IS=rx(Hx,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Hm(n.color)}`],n.edge&&t[`edge${Hm(n.edge)}`],t[`size${Hm(n.size)}`]]}})((({theme:e,ownerState:t})=>qp({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nb(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return qp({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&qp({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":qp({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nb(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${OS.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),TS=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=Ap(n,_S),d=qp({},n,{edge:r,color:i,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e;return Jv({root:["root",n&&"disabled","default"!==r&&`color${Hm(r)}`,o&&`edge${Hm(o)}`,`size${Hm(a)}`]},LS,t)})(d);return ym.jsx(IS,qp({className:ev(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},u,{ownerState:d,children:o}))}));function PS(e){return rv("MuiTypography",e)}ov("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const MS=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],NS=rx("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${Hm(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>qp({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}))),qS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},AS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},zS=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiTypography"}),r=(e=>AS[e]||e)(n.color),o=Zg(qp({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=qS}=o,f=Ap(o,MS),h=qp({},o,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||qS[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return Jv({root:["root",a,"inherit"!==e.align&&`align${Hm(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},PS,i)})(h);return ym.jsx(NS,qp({as:m,ref:t,ownerState:h,className:ev(g.root,i)},f))}));var DS={};Object.defineProperty(DS,"__esModule",{value:!0});var jS=DS.default=void 0,FS=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=BS(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(U),$S=Py;function BS(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(BS=function(e){return e?n:t})(e)}jS=DS.default=function(e=null){const t=FS.useContext($S.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n};var WS="top",HS="bottom",US="right",VS="left",GS="auto",KS=[WS,HS,US,VS],ZS="start",XS="end",QS="clippingParents",JS="viewport",YS="popper",ew="reference",tw=KS.reduce((function(e,t){return e.concat([t+"-"+ZS,t+"-"+XS])}),[]),nw=[].concat(KS,[GS]).reduce((function(e,t){return e.concat([t,t+"-"+ZS,t+"-"+XS])}),[]),rw=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ow(e){return e?(e.nodeName||"").toLowerCase():null}function aw(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function iw(e){return e instanceof aw(e).Element||e instanceof Element}function lw(e){return e instanceof aw(e).HTMLElement||e instanceof HTMLElement}function sw(e){return"undefined"!=typeof ShadowRoot&&(e instanceof aw(e).ShadowRoot||e instanceof ShadowRoot)}var cw={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];lw(o)&&ow(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});lw(r)&&ow(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function uw(e){return e.split("-")[0]}var dw=Math.max,pw=Math.min,fw=Math.round;function hw(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function mw(){return!/^((?!chrome|android).)*safari/i.test(hw())}function gw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&lw(e)&&(o=e.offsetWidth>0&&fw(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&fw(r.height)/e.offsetHeight||1);var i=(iw(e)?aw(e):window).visualViewport,l=!mw()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function vw(e){var t=gw(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function bw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function yw(e){return aw(e).getComputedStyle(e)}function xw(e){return["table","td","th"].indexOf(ow(e))>=0}function Sw(e){return((iw(e)?e.ownerDocument:e.document)||window.document).documentElement}function ww(e){return"html"===ow(e)?e:e.assignedSlot||e.parentNode||(sw(e)?e.host:null)||Sw(e)}function Ew(e){return lw(e)&&"fixed"!==yw(e).position?e.offsetParent:null}function Cw(e){for(var t=aw(e),n=Ew(e);n&&xw(n)&&"static"===yw(n).position;)n=Ew(n);return n&&("html"===ow(n)||"body"===ow(n)&&"static"===yw(n).position)?t:n||function(e){var t=/firefox/i.test(hw());if(/Trident/i.test(hw())&&lw(e)&&"fixed"===yw(e).position)return null;var n=ww(e);for(sw(n)&&(n=n.host);lw(n)&&["html","body"].indexOf(ow(n))<0;){var r=yw(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function kw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rw(e,t,n){return dw(e,pw(t,n))}function Lw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ow(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var _w={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=uw(n.placement),s=kw(l),c=[VS,US].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return Lw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ow(e,KS))}(o.padding,n),d=vw(a),p="y"===s?WS:VS,f="y"===s?HS:US,h=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],m=i[s]-n.rects.reference[s],g=Cw(a),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=u[p],x=v-d[c]-u[f],S=v/2-d[c]/2+b,w=Rw(y,S,x),E=s;n.modifiersData[r]=((t={})[E]=w,t.centerOffset=w-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&bw(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Iw(e){return e.split("-")[1]}var Tw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pw(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=VS,x=WS,S=window;if(c){var w=Cw(n),E="clientHeight",C="clientWidth";if(w===aw(n)&&"static"!==yw(w=Sw(n)).position&&"absolute"===l&&(E="scrollHeight",C="scrollWidth"),o===WS||(o===VS||o===US)&&a===XS)x=HS,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===VS||(o===WS||o===HS)&&a===XS)y=US,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[C])-r.width,f*=s?1:-1}var k,R=Object.assign({position:l},c&&Tw),L=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:fw(n*o)/o||0,y:fw(r*o)/o||0}}({x:f,y:m},aw(n)):{x:f,y:m};return f=L.x,m=L.y,s?Object.assign({},R,((k={})[x]=b?"0":"",k[y]=v?"0":"",k.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",k)):Object.assign({},R,((t={})[x]=b?m+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var Mw={passive:!0};var Nw={left:"right",right:"left",bottom:"top",top:"bottom"};function qw(e){return e.replace(/left|right|bottom|top/g,(function(e){return Nw[e]}))}var Aw={start:"end",end:"start"};function zw(e){return e.replace(/start|end/g,(function(e){return Aw[e]}))}function Dw(e){var t=aw(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function jw(e){return gw(Sw(e)).left+Dw(e).scrollLeft}function Fw(e){var t=yw(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function $w(e){return["html","body","#document"].indexOf(ow(e))>=0?e.ownerDocument.body:lw(e)&&Fw(e)?e:$w(ww(e))}function Bw(e,t){var n;void 0===t&&(t=[]);var r=$w(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=aw(r),i=o?[a].concat(a.visualViewport||[],Fw(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Bw(ww(i)))}function Ww(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Hw(e,t,n){return t===JS?Ww(function(e,t){var n=aw(e),r=Sw(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=mw();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+jw(e),y:s}}(e,n)):iw(t)?function(e,t){var n=gw(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ww(function(e){var t,n=Sw(e),r=Dw(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=dw(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=dw(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+jw(e),s=-r.scrollTop;return"rtl"===yw(o||n).direction&&(l+=dw(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(Sw(e)))}function Uw(e,t,n,r){var o="clippingParents"===t?function(e){var t=Bw(ww(e)),n=["absolute","fixed"].indexOf(yw(e).position)>=0&&lw(e)?Cw(e):e;return iw(n)?t.filter((function(e){return iw(e)&&bw(e,n)&&"body"!==ow(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=Hw(e,n,r);return t.top=dw(o.top,t.top),t.right=pw(o.right,t.right),t.bottom=pw(o.bottom,t.bottom),t.left=dw(o.left,t.left),t}),Hw(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Vw(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?uw(o):null,i=o?Iw(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case WS:t={x:l,y:n.y-r.height};break;case HS:t={x:l,y:n.y+n.height};break;case US:t={x:n.x+n.width,y:s};break;case VS:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?kw(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case ZS:t[c]=t[c]-(n[u]/2-r[u]/2);break;case XS:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Gw(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?QS:l,c=n.rootBoundary,u=void 0===c?JS:c,d=n.elementContext,p=void 0===d?YS:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=Lw("number"!=typeof g?g:Ow(g,KS)),b=p===YS?ew:YS,y=e.rects.popper,x=e.elements[h?b:p],S=Uw(iw(x)?x:x.contextElement||Sw(e.elements.popper),s,u,i),w=gw(e.elements.reference),E=Vw({reference:w,element:y,strategy:"absolute",placement:o}),C=Ww(Object.assign({},y,E)),k=p===YS?C:w,R={top:S.top-k.top+v.top,bottom:k.bottom-S.bottom+v.bottom,left:S.left-k.left+v.left,right:k.right-S.right+v.right},L=e.modifiersData.offset;if(p===YS&&L){var O=L[o];Object.keys(R).forEach((function(e){var t=[US,HS].indexOf(e)>=0?1:-1,n=[WS,HS].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t}))}return R}function Kw(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?nw:s,u=Iw(r),d=u?l?tw:tw.filter((function(e){return Iw(e)===u})):KS,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Gw(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[uw(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Zw={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=uw(g),b=s||(v===g||!h?[qw(g)]:function(e){if(uw(e)===GS)return[];var t=qw(e);return[zw(e),t,zw(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(uw(n)===GS?Kw(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,S=t.rects.popper,w=new Map,E=!0,C=y[0],k=0;k<y.length;k++){var R=y[k],L=uw(R),O=Iw(R)===ZS,_=[WS,HS].indexOf(L)>=0,I=_?"width":"height",T=Gw(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),P=_?O?US:VS:O?HS:WS;x[I]>S[I]&&(P=qw(P));var M=qw(P),N=[];if(a&&N.push(T[L]<=0),l&&N.push(T[P]<=0,T[M]<=0),N.every((function(e){return e}))){C=R,E=!1;break}w.set(R,N)}if(E)for(var q=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},A=h?3:1;A>0;A--){if("break"===q(A))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Xw(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Qw(e){return[WS,US,HS,VS].some((function(t){return e[t]>=0}))}var Jw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=nw.reduce((function(e,n){return e[n]=function(e,t,n){var r=uw(e),o=[VS,WS].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[VS,US].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};var Yw={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=Gw(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=uw(t.placement),b=Iw(t.placement),y=!b,x=kw(v),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(a){var _,I="y"===x?WS:VS,T="y"===x?HS:US,P="y"===x?"height":"width",M=w[x],N=M+g[I],q=M-g[T],A=f?-C[P]/2:0,z=b===ZS?E[P]:C[P],D=b===ZS?-C[P]:-E[P],j=t.elements.arrow,F=f&&j?vw(j):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=$[I],W=$[T],H=Rw(0,E[P],F[P]),U=y?E[P]/2-A-H-B-R.mainAxis:z-H-B-R.mainAxis,V=y?-E[P]/2+A+H+W+R.mainAxis:D+H+W+R.mainAxis,G=t.elements.arrow&&Cw(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(_=null==L?void 0:L[x])?_:0,X=M+V-Z,Q=Rw(f?pw(N,M+U-Z-K):N,M,f?dw(q,X):q);w[x]=Q,O[x]=Q-M}if(l){var J,Y="x"===x?WS:VS,ee="x"===x?HS:US,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ae=-1!==[WS,VS].indexOf(v),ie=null!=(J=null==L?void 0:L[S])?J:0,le=ae?re:te-E[ne]-C[ne]-ie+R.altAxis,se=ae?te+E[ne]+C[ne]-ie-R.altAxis:oe,ce=f&&ae?function(e,t,n){var r=Rw(e,t,n);return r>n?n:r}(le,te,se):Rw(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function eE(e,t,n){void 0===n&&(n=!1);var r=lw(t),o=lw(t)&&function(e){var t=e.getBoundingClientRect(),n=fw(t.width)/e.offsetWidth||1,r=fw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Sw(t),i=gw(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==ow(t)||Fw(a))&&(l=function(e){return e!==aw(e)&&lw(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Dw(e);var t}(t)),lw(t)?((s=gw(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=jw(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function tE(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var nE={placement:"bottom",modifiers:[],strategy:"absolute"};function rE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function oE(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?nE:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},nE,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:iw(e)?Bw(e):e.contextElement?Bw(e.contextElement):[],popper:Bw(t)};var i,c,p=function(e){var t=tE(e);return rw.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:u,options:r}),i=function(){};s.push(a||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(rE(t,n)){l.rects={reference:eE(t,Cw(n),"fixed"===l.options.strategy),popper:vw(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!rE(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var aE=oE({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=aw(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,Mw)})),l&&s.addEventListener("resize",n.update,Mw),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Mw)})),l&&s.removeEventListener("resize",n.update,Mw)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Vw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:uw(t.placement),variation:Iw(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Pw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Pw(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},cw,Jw,Zw,Yw,_w,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Gw(t,{elementContext:"reference"}),l=Gw(t,{altBoundary:!0}),s=Xw(i,r),c=Xw(l,o,a),u=Qw(s),d=Qw(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const iE=U.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=U.useState(null),l=Av(U.isValidElement(n)?n.ref:null,t);if(wv((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),wv((()=>{if(a&&!o)return Iv(t,a),()=>{Iv(t,null)}}),[t,a,o]),o){if(U.isValidElement(n)){const e={ref:l};return U.cloneElement(n,e)}return ym.jsx(U.Fragment,{children:n})}return ym.jsx(U.Fragment,{children:a?_p.createPortal(n,a):a})}));function lE(e){return rv("MuiPopper",e)}ov("MuiPopper",["root"]);const sE=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],cE=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function uE(e){return"function"==typeof e?e():e}const dE={},pE=U.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:a,disablePortal:i,modifiers:l,open:s,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h}=e,m=Ap(e,sE),g=U.useRef(null),v=Av(g,t),b=U.useRef(null),y=Av(b,d),x=U.useRef(y);wv((()=>{x.current=y}),[y]),U.useImperativeHandle(d,(()=>b.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,a),[w,E]=U.useState(S),[C,k]=U.useState(uE(r));U.useEffect((()=>{b.current&&b.current.forceUpdate()})),U.useEffect((()=>{r&&k(uE(r))}),[r]),wv((()=>{if(!C||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=aE(C,g.current,qp({placement:S},u,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[C,i,l,s,u,S]);const R={placement:w};null!==h&&(R.TransitionProps=h);const L=(e=>{const{classes:t}=e;return Jv({root:["root"]},lE,t)})(e),O=null!=(n=f.root)?n:"div",_=ib({elementType:O,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:L.root});return ym.jsx(O,qp({},_,{children:"function"==typeof o?o(R):o}))})),fE=U.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=dE,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,v=Ap(e,cE),[b,y]=U.useState(!0);if(!l&&!c&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=uE(n);x=e&&void 0!==e.nodeType?Ov(e).body:Ov(null).body}const S=c||!l||h&&!b?void 0:"none",w=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return ym.jsx(iE,{disablePortal:i,container:x,children:ym.jsx(pE,qp({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},v,{style:qp({position:"fixed",top:0,left:0,display:S},f),TransitionProps:w,children:r}))})})),hE=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],mE=rx(fE,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gE=U.forwardRef((function(e,t){var n;const r=jS(),o=lx({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=Ap(o,hE),S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w=qp({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v},x);return ym.jsx(mE,qp({as:i,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))})),vE=["onChange","maxRows","minRows","style","value"];function bE(e){return parseInt(e,10)||0}const yE={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const xE=U.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=Ap(e,vE),{current:s}=U.useRef(null!=i),c=U.useRef(null),u=Av(t,c),d=U.useRef(null),p=U.useRef(null),f=U.useCallback((()=>{const t=c.current,n=_v(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const a=p.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=n.boxSizing,l=bE(n.paddingBottom)+bE(n.paddingTop),s=bE(n.borderBottomWidth)+bE(n.borderTopWidth),u=a.scrollHeight;a.value="x";const d=a.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===i?l+s:0),overflowing:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),h=U.useCallback((()=>{const e=f();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,r=c.current;d.current!==n&&(d.current=n,r.style.height=`${n}px`),r.style.overflow=e.overflowing?"hidden":""}),[f]);wv((()=>{const e=()=>{h()};const t=Rv(e),n=c.current,r=_v(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()}}),[f,h]),wv((()=>{h()}));return ym.jsxs(U.Fragment,{children:[ym.jsx("textarea",qp({value:i,onChange:e=>{s||h(),n&&n(e)},ref:u,rows:o,style:a},l)),ym.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:qp({},yE,a,{paddingTop:0,paddingBottom:0})})]})}));function SE({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const wE=U.createContext(void 0);function EE(){return U.useContext(wE)}function CE(e){return ym.jsx(Vg,qp({},e,{defaultTheme:ky,themeId:Np}))}function kE(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function RE(e){return rv("MuiInputBase",e)}const LE=ov("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),OE=["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"],_E=(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${Hm(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},IE=(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]},TE=rx("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_E})((({theme:e,ownerState:t})=>qp({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${LE.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&qp({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),PE=rx("input",{name:"MuiInputBase",slot:"Input",overridesResolver:IE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=qp({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"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return qp({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${LE.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${LE.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),ME=ym.jsx(CE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),NE=U.forwardRef((function(e,t){var n;const r=lx({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:C,onClick:k,onFocus:R,onKeyDown:L,onKeyUp:O,placeholder:_,readOnly:I,renderSuffix:T,rows:P,slotProps:M={},slots:N={},startAdornment:q,type:A="text",value:z}=r,D=Ap(r,OE),j=null!=v.value?v.value:z,{current:F}=U.useRef(null!=j),$=U.useRef(),B=U.useCallback((e=>{}),[]),W=Av($,b,v.ref,B),[H,V]=U.useState(!1),G=EE(),K=SE({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:H,U.useEffect((()=>{!G&&d&&H&&(V(!1),E&&E())}),[G,d,H,E]);const Z=G&&G.onFilled,X=G&&G.onEmpty,Q=U.useCallback((e=>{!function(e,t=!1){return e&&(kE(e.value)&&""!==e.value||t&&kE(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);wv((()=>{F&&Q({value:j})}),[j,Q,F]);U.useEffect((()=>{Q($.current)}),[]);let J=g,Y=v;S&&"input"===J&&(Y=qp(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:y,minRows:x},Y),J=xE);U.useEffect((()=>{G&&G.setAdornedStart(Boolean(q))}),[G,q]);const ee=qp({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:q,type:A}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Jv({root:["root",`color${Hm(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Hm(p)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},RE,t)})(ee),ne=N.root||s.Root||TE,re=M.root||c.root||{},oe=N.input||s.Input||PE;return Y=qp({},Y,null!=(n=M.input)?n:c.input),ym.jsxs(U.Fragment,{children:[!p&&ME,ym.jsxs(ne,qp({},re,!Yv(ne)&&{ownerState:qp({},ee,re.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),k&&k(e)}},D,{className:ev(te.root,re.className,l,I&&"MuiInputBase-readOnly"),children:[q,ym.jsx(wE.Provider,{value:null,children:ym.jsx(oe,qp({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:w,placeholder:_,readOnly:I,required:K.required,rows:P,value:j,onKeyDown:L,onKeyUp:O,type:A},Y,!Yv(oe)&&{as:J,ownerState:qp({},ee,Y.ownerState)},{ref:W,className:ev(te.input,Y.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!F){const t=e.target||$.current;if(null==t)throw new Error(Pp(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),f,T?T(qp({},K,{startAdornment:q})):null]}))]})}));var qE=NE;function AE(e){return rv("MuiOutlinedInput",e)}const zE=qp({},LE,ov("MuiOutlinedInput",["root","notchedOutline","input"])),DE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],jE={entering:{opacity:1},entered:{opacity:1}},FE=U.forwardRef((function(e,t){const n=Ry(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=yx}=e,b=Ap(e,DE),y=U.useRef(null),x=Av(y,i.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),E=S(((e,t)=>{SS(e);const r=wS({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=S(u),k=S(h),R=S((e=>{const t=wS({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return ym.jsx(v,qp({appear:a,in:s,nodeRef:y,onEnter:E,onEntered:C,onEntering:w,onExit:R,onExited:L,onExiting:k,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>U.cloneElement(i,qp({style:qp({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},jE[e],m,i.props.style),ref:x},t))}))}));function $E(e){return rv("MuiBackdrop",e)}ov("MuiBackdrop",["root","invisible"]);const BE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],WE=rx("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>qp({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"}))),HE=U.forwardRef((function(e,t){var n,r,o;const a=lx({props:e,name:"MuiBackdrop"}),{children:i,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=FE,transitionDuration:g}=a,v=Ap(a,BE),b=qp({},a,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Jv({root:["root",n&&"invisible"]},$E,t)})(b),x=null!=(n=f.root)?n:u.root;return ym.jsx(m,qp({in:p,timeout:g},v,{children:ym.jsx(WE,qp({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:ev(y.root,l,null==x?void 0:x.className),ownerState:qp({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:i}))}))}));function UE(e){return rv("MuiBadge",e)}const VE=ov("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),GE=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],KE=rx("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ZE=rx("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Hm(n.anchorOrigin.vertical)}${Hm(n.anchorOrigin.horizontal)}${Hm(n.overlap)}`],"default"!==n.color&&t[`color${Hm(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${VE.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${VE.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${VE.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${VE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${VE.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${VE.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${VE.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${VE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}})),XE=U.forwardRef((function(e,t){var n,r,o,a,i,l;const s=lx({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,C=Ap(s,GE),{badgeContent:k,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=Qv({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:b,invisible:v,badgeContent:y,showZero:w}),_=Qv({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),I=R||null==k&&"dot"!==E,{color:T=g,overlap:P=m,anchorOrigin:M=c,variant:N=E}=I?_:s,q="dot"!==N?O:void 0,A=qp({},s,{badgeContent:k,invisible:I,max:L,displayValue:q,showZero:w,anchorOrigin:M,color:T,overlap:P,variant:N}),z=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return Jv({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Hm(n.vertical)}${Hm(n.horizontal)}`,`anchorOrigin${Hm(n.vertical)}${Hm(n.horizontal)}${Hm(o)}`,`overlap${Hm(o)}`,"default"!==t&&`color${Hm(t)}`]},UE,i)})(A),D=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:KE,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:ZE,F=null!=(i=null==S?void 0:S.root)?i:f.root,$=null!=(l=null==S?void 0:S.badge)?l:f.badge,B=ib({elementType:D,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:A,className:ev(null==F?void 0:F.className,z.root,u)}),W=ib({elementType:j,externalSlotProps:$,ownerState:A,className:ev(z.badge,null==$?void 0:$.className)});return ym.jsxs(D,qp({},B,{children:[h,ym.jsx(j,qp({},W,{children:q}))]}))})),QE=ov("MuiBox",["root"]),JE=Cy(),YE=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=Em("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Dg),i=U.forwardRef((function(e,i){const l=Ug(n),s=Zg(e),{className:c,component:u="div"}=s,d=Lm(s,tv);return ym.jsx(a,Rm({as:u,ref:i,className:ev(c,o?o(r):r),theme:t&&l[t]||l},d))}));return i}({themeId:Np,defaultTheme:JE,defaultClassName:QE.root,generateClassName:Jg.generate});function eC(e){return rv("PrivateSwitchBase",e)}ov("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const tC=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],nC=rx(Hx)((({ownerState:e})=>qp({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),rC=rx("input",{shouldForwardProp:nx})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),oC=U.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:w}=e,E=Ap(e,tC),[C,k]=Nv({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=EE();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,_=qp({},e,{checked:C,disabled:L,disableFocusRipple:s,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Jv({root:["root",n&&"checked",r&&"disabled",o&&`edge${Hm(o)}`],input:["input"]},eC,t)})(_);return ym.jsxs(nC,qp({component:"span",className:ev(I.root,a),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:_,ref:t},E,{children:[ym.jsx(rC,qp({autoFocus:n,checked:r,defaultChecked:i,className:I.input,disabled:L,id:O?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),g&&g(e,t)},readOnly:b,ref:f,required:y,ownerState:_,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var aC=bS(ym.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),iC=bS(ym.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),lC=bS(ym.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function sC(e){return rv("MuiCheckbox",e)}const cC=ov("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),uC=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],dC=rx(oC,{shouldForwardProp:e=>nx(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Hm(n.size)}`],"default"!==n.color&&t[`color${Hm(n.color)}`]]}})((({theme:e,ownerState:t})=>qp({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nb("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${cC.checked}, &.${cC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${cC.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),pC=ym.jsx(iC,{}),fC=ym.jsx(aC,{}),hC=ym.jsx(lC,{}),mC=U.forwardRef((function(e,t){var n,r;const o=lx({props:e,name:"MuiCheckbox"}),{checkedIcon:a=pC,color:i="primary",icon:l=fC,indeterminate:s=!1,indeterminateIcon:c=hC,inputProps:u,size:d="medium",className:p}=o,f=Ap(o,uC),h=s?c:l,m=s?c:a,g=qp({},o,{color:i,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return qp({},t,Jv({root:["root",n&&"indeterminate",`color${Hm(r)}`,`size${Hm(o)}`]},sC,t))})(g);return ym.jsx(dC,qp({type:"checkbox",inputProps:qp({"data-indeterminate":s},u),icon:U.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:U.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:ev(v.root,p)},f,{classes:v}))}));function gC(e){return rv("MuiCircularProgress",e)}ov("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const vC=["className","color","disableShrink","size","style","thickness","value","variant"];let bC,yC,xC,SC,wC=e=>e;const EC=44,CC=Vh(bC||(bC=wC`
|
|
106
|
+
`),Lx.rippleVisible,Nx,550,(({theme:e})=>e.transitions.easing.easeInOut),Lx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Lx.child,Lx.childLeaving,qx,550,(({theme:e})=>e.transitions.easing.easeInOut),Lx.childPulsate,Ax,(({theme:e})=>e.transitions.easing.easeInOut)),jx=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=Ap(n,Ox),[l,s]=U.useState([]),c=U.useRef(0),u=U.useRef(null);U.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=U.useRef(!1),p=Fv(),f=U.useRef(null),h=U.useRef(null),m=U.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,ym.jsx(Dx,{classes:{ripple:ev(o.ripple,Lx.ripple),rippleVisible:ev(o.rippleVisible,Lx.rippleVisible),ripplePulsate:ev(o.ripplePulsate,Lx.ripplePulsate),child:ev(o.child,Lx.child),childLeaving:ev(o.childLeaving,Lx.childLeaving),childPulsate:ev(o.childPulsate,Lx.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=U.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!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=i?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(a)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)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),v=U.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=U.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return U.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),ym.jsx(zx,qp({className:ev(Lx.root,o.root,a),ref:h},i,{children:ym.jsx(Rx,{component:null,exit:!0,children:l})}))}));function Fx(e){return rv("MuiButtonBase",e)}const $x=ov("MuiButtonBase",["root","disabled","focusVisible"]),Bx=["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"],Wx=rx("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"},[`&.${$x.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Hx=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:C,onTouchMove:k,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:_,type:I}=n,P=Ap(n,Bx),T=U.useRef(null),M=U.useRef(null),N=Av(M,_),{isFocusVisibleRef:q,onFocus:A,onBlur:z,ref:D}=Zv(),[j,F]=U.useState(!1);s&&j&&F(!1),U.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),T.current.focus()}})),[]);const[$,B]=U.useState(!1);U.useEffect((()=>{B(!0)}),[]);const W=$&&!c&&!s;function H(e,t,n=u){return qv((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}U.useEffect((()=>{j&&d&&!c&&$&&M.current.pulsate()}),[c,d,j,$]);const V=H("start",S),G=H("stop",m),K=H("stop",g),Z=H("stop",E),X=H("stop",(e=>{j&&e.preventDefault(),w&&w(e)})),Q=H("start",R),J=H("stop",C),Y=H("stop",k),ee=H("stop",(e=>{z(e),!1===q.current&&F(!1),f&&f(e)}),!1),te=qv((e=>{T.current||(T.current=e.currentTarget),A(e),!0===q.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=T.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=U.useRef(!1),oe=qv((e=>{d&&!re.current&&j&&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(),h&&h(e))})),ae=qv((e=>{d&&" "===e.key&&M.current&&j&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const le={};"button"===ie?(le.type=void 0===I?"button":I,le.disabled=s):(P.href||P.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Av(t,D,T),ce=qp({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:L,focusVisible:j}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Jv({root:["root",t&&"disabled",n&&"focusVisible"]},Fx,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return ym.jsxs(Wx,qp({as:ie,className:ev(ue.root,i),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:J,onTouchMove:Y,onTouchStart:Q,ref:se,tabIndex:s?-1:L,type:I},le,P,{children:[a,W?ym.jsx(jx,qp({ref:N,center:o},O)):null]}))}));function Ux(e){return rv("MuiButton",e)}const Vx=ov("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Gx=U.createContext({}),Kx=U.createContext(void 0),Zx=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Xx=e=>qp({},"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}}),Qx=rx(Hx,{shouldForwardProp:e=>nx(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Hm(n.color)}`],t[`size${Hm(n.size)}`],t[`${n.variant}Size${Hm(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],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return qp({},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":qp({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Nb(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})`:Nb(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})`:Nb(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:a,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":qp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Vx.focusVisible}`]:qp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Vx.disabled}`]:qp({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 ${Nb(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"},[`&.${Vx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vx.disabled}`]:{boxShadow:"none"}})),Jx=rx("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Hm(n.size)}`]]}})((({ownerState:e})=>qp({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Xx(e)))),Yx=rx("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Hm(n.size)}`]]}})((({ownerState:e})=>qp({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Xx(e)))),eS=U.forwardRef((function(e,t){const n=U.useContext(Gx),r=U.useContext(Kx),o=lx({props:xv(n,e),name:"MuiButton"}),{children:a,color:i="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=Ap(o,Zx),x=qp({},o,{color:i,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return qp({},i,Jv({root:["root",a,`${a}${Hm(t)}`,`size${Hm(o)}`,`${a}Size${Hm(o)}`,`color${Hm(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Hm(o)}`],endIcon:["icon","endIcon",`iconSize${Hm(o)}`]},Ux,i))})(x),w=g&&ym.jsx(Jx,{className:S.startIcon,ownerState:x,children:g}),E=p&&ym.jsx(Yx,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return ym.jsxs(Qx,qp({ownerState:x,className:ev(n.className,S.root,s,C),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:ev(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[w,a,E]}))}));var tS={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},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)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},MuiCheckbox:{color:"secondary"},MuiRadio:{color:"secondary"},MuiTabs:{indicatorColor:"secondary"}}};const nS={green:"#00873D",greenPale:"#0AAF54",red:"#DC423F",redPale:"#F05551",blue:"#3F8AB3",bluePale:"#469DCD",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey85:"#D9D9D9",grey55:"#8C8C8C",grey45:"#737373",grey30:"#4D4D4D",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey5:"#0E0E0E",grey0:"#000000"},rS={mode:"light",palette:{primary:{main:nS.grey25,contrastText:nS.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:nS.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:nS.grey100,dark:nS.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:nS.grey100,default:nS.grey100,lightest:nS.grey100,lighter:nS.grey98,darker:nS.grey95,darkest:nS.grey90},custom:{focusBorder:nS.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:nS.grey45,disabledContrastText:nS.grey100},selected:{main:nS.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:nS.grey100,selectedContrastText:nS.grey100,mainContrastText:nS.grey100,alternativeContrastText:nS.grey25,excludedContrastText:nS.grey25,selectedExcludedContrastText:nS.grey100,possibleContrastText:nS.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},oS={mode:"dark",palette:{primary:{main:nS.grey20,contrastText:nS.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:nS.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:nS.grey100,dark:nS.grey0},action:{active:nS.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:nS.grey25,lighter:nS.grey20,darker:nS.grey15,darkest:nS.grey10},custom:{focusBorder:nS.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:nS.grey45,disabledContrastText:nS.grey100},selected:{main:nS.green,alternative:nS.grey20,excluded:nS.grey10,selectedExcluded:nS.grey10,possible:nS.grey80,selectedContrastText:nS.grey100,mainContrastText:nS.grey100,alternativeContrastText:nS.grey100,excludedContrastText:nS.grey100,selectedExcludedContrastText:nS.grey100,possibleContrastText:nS.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},aS={},iS=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&:focus-visible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(:active):not(:focus-visible)":{borderColor:"transparent",boxShadow:"none"}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(Vx.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none",["&.".concat(Vx.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",["&.".concat(Vx.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Vx.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function lS(e){let t=rS,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=oS));const r=JSON.stringify(t);if(aS[r])return aS[r];const o={palette:l(l({type:t.mode},tS.palette),t.palette),typography:l({},tS.typography),shadows:tS.shadows,props:l({},tS.props),shape:l({},tS.shape)};return aS[r]=Cy(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=qp({},Ap(e,Rb),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.defaultProps=a[e],l.components[e]=t})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=i[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=sg(e.spacing);const s=qm(e.breakpoints||{}),c=l.spacing;l.mixins=qp({gutters:(e={})=>qp({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:qp({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Ap(o,Lb),f=d||u||"light";return l.palette=qp({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(l(l({},o),{},{overrides:iS(o)}))),aS[r].name=n,aS[r]}Jg.configure((e=>"njs-".concat("db5f","-").concat(e.replace("Mui",""))));var sS=V.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const cS={active:!0,select:!0,passive:!0,edit:!1};function uS(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach((e=>{r[e]=!t[e]})),r}(e);Object.keys(cS).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=cS[e],n[e]=!cS[e])})),e.constraints=n,e.interactions=t}var dS=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))}};return[()=>{const[,e]=U.useState(t);return U.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[r]},r]};const pS=U.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:a}=e;const[i,l]=U.useState(n),[s,c]=U.useState(),{theme:u}=U.useMemo((()=>({theme:lS(s)})),[s]),[d,p]=U.useState([]);return U.useEffect((()=>{r&&r()}),[]),U.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),i&&(i.modelStore=o,i.selectionStore=a),V.createElement(Sm,{injectFirst:!0},V.createElement(ax,{theme:u},V.createElement(sS.Provider,{value:i},d)))}));function fS(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=V.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","5.5.0"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),r&&uS(r);const l=function(e){const[t,n]=dS({}),[r,o]=dS({}),[a,i]=dS({}),[l,s]=dS({}),[c,u]=dS({}),[,d]=dS({}),p=e=>{let{type:t,value:r}=e;const a=d.get(r.id);d.set(r.id,{});const l=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("changed",l),n.clear(r.id),o.clear(r.id),i.clear(r.id),s.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(a||(r.on("changed",l),r.once("closed",(()=>{c()})))),c},[f,h]=dS({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:l,rpcRequestModelStore:s,useRpcRequestSessionModelStore:a,rpcRequestSessionModelStore:i,modelChangedStore:u,appId:e}}(n.id),s=function(e){const[t,n]=dS({}),[r,o]=dS({}),[a,i]=dS({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:a,modalObjectStore:i,appId:e}}(n.id);wt.createRoot(i).render(V.createElement(pS,{ref:a,initialContext:r,renderCallback:t,modelStore:l,selectionStore:s}));const c={},u=[];return[{toggleFocusOfCells(e){Object.keys(c).forEach((t=>{c[t].current.toggleFocus(t===e)}))},cells:c,addCell(e,t){c[e]=t},removeCell(e){delete c[e]},add(e){(async()=>{await o,u.push(e),a.current.setComps(u)})()},remove(e){(async()=>{await o;const t=u.indexOf(e);-1!==t&&u.splice(t,1),a.current.setComps(u)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&uS(e),a.current.setContext(e)})()}},l,s,a,o]}function hS(e){return rv("MuiSvgIcon",e)}ov("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gS=rx("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Hm(n.color)}`],t[`fontSize${Hm(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),vS=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Ap(n,mS),f=U.isValidElement(r)&&"svg"===r.type,h=qp({},n,{color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Jv({root:["root","inherit"!==t&&`color${Hm(t)}`,`fontSize${Hm(n)}`]},hS,r)})(h);return ym.jsxs(gS,qp({as:i,className:ev(g.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?ym.jsx("title",{children:u}):null]}))}));function bS(e,t){function n(n,r){return ym.jsx(vS,qp({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=vS.muiName,U.memo(U.forwardRef(n))}vS.muiName="SvgIcon";const yS={configure:e=>{Jg.configure(e)}};var xS=Object.freeze({__proto__:null,capitalize:Hm,createChainedFunction:kv,createSvgIcon:bS,debounce:Rv,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Lv,ownerDocument:Ov,ownerWindow:_v,requirePropFactory:function(e,t){return()=>null},setRef:Iv,unstable_ClassNameGenerator:yS,unstable_useEnhancedEffect:wv,unstable_useId:Mv,unsupportedProp:function(e,t,n,r,o){return null},useControlled:Nv,useEventCallback:qv,useForkRef:Av,useIsFocusVisible:Zv});const SS=e=>e.scrollTop;function wS(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function ES(e){return rv("MuiPaper",e)}ov("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 CS=["className","component","elevation","square","variant"],kS=rx("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 qp({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&&qp({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Nb("#fff",ix(t.elevation))}, ${Nb("#fff",ix(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),RS=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=Ap(n,CS),c=qp({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Jv({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},ES,o)})(c);return ym.jsx(kS,qp({as:o,ownerState:c,className:ev(u.root,r),ref:t},s))}));function LS(e){return rv("MuiIconButton",e)}const OS=ov("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),_S=["edge","children","className","color","disabled","disableFocusRipple","size"],IS=rx(Hx,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Hm(n.color)}`],n.edge&&t[`edge${Hm(n.edge)}`],t[`size${Hm(n.size)}`]]}})((({theme:e,ownerState:t})=>qp({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nb(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return qp({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&qp({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":qp({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nb(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${OS.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),PS=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=Ap(n,_S),d=qp({},n,{edge:r,color:i,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e;return Jv({root:["root",n&&"disabled","default"!==r&&`color${Hm(r)}`,o&&`edge${Hm(o)}`,`size${Hm(a)}`]},LS,t)})(d);return ym.jsx(IS,qp({className:ev(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},u,{ownerState:d,children:o}))}));function TS(e){return rv("MuiTypography",e)}ov("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const MS=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],NS=rx("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${Hm(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>qp({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}))),qS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},AS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},zS=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiTypography"}),r=(e=>AS[e]||e)(n.color),o=Zg(qp({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=qS}=o,f=Ap(o,MS),h=qp({},o,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||qS[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return Jv({root:["root",a,"inherit"!==e.align&&`align${Hm(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},TS,i)})(h);return ym.jsx(NS,qp({as:m,ref:t,ownerState:h,className:ev(g.root,i)},f))}));var DS={};Object.defineProperty(DS,"__esModule",{value:!0});var jS=DS.default=void 0,FS=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=BS(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(U),$S=Ty;function BS(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(BS=function(e){return e?n:t})(e)}jS=DS.default=function(e=null){const t=FS.useContext($S.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n};var WS="top",HS="bottom",US="right",VS="left",GS="auto",KS=[WS,HS,US,VS],ZS="start",XS="end",QS="clippingParents",JS="viewport",YS="popper",ew="reference",tw=KS.reduce((function(e,t){return e.concat([t+"-"+ZS,t+"-"+XS])}),[]),nw=[].concat(KS,[GS]).reduce((function(e,t){return e.concat([t,t+"-"+ZS,t+"-"+XS])}),[]),rw=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ow(e){return e?(e.nodeName||"").toLowerCase():null}function aw(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function iw(e){return e instanceof aw(e).Element||e instanceof Element}function lw(e){return e instanceof aw(e).HTMLElement||e instanceof HTMLElement}function sw(e){return"undefined"!=typeof ShadowRoot&&(e instanceof aw(e).ShadowRoot||e instanceof ShadowRoot)}var cw={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];lw(o)&&ow(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});lw(r)&&ow(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function uw(e){return e.split("-")[0]}var dw=Math.max,pw=Math.min,fw=Math.round;function hw(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function mw(){return!/^((?!chrome|android).)*safari/i.test(hw())}function gw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&lw(e)&&(o=e.offsetWidth>0&&fw(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&fw(r.height)/e.offsetHeight||1);var i=(iw(e)?aw(e):window).visualViewport,l=!mw()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function vw(e){var t=gw(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function bw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function yw(e){return aw(e).getComputedStyle(e)}function xw(e){return["table","td","th"].indexOf(ow(e))>=0}function Sw(e){return((iw(e)?e.ownerDocument:e.document)||window.document).documentElement}function ww(e){return"html"===ow(e)?e:e.assignedSlot||e.parentNode||(sw(e)?e.host:null)||Sw(e)}function Ew(e){return lw(e)&&"fixed"!==yw(e).position?e.offsetParent:null}function Cw(e){for(var t=aw(e),n=Ew(e);n&&xw(n)&&"static"===yw(n).position;)n=Ew(n);return n&&("html"===ow(n)||"body"===ow(n)&&"static"===yw(n).position)?t:n||function(e){var t=/firefox/i.test(hw());if(/Trident/i.test(hw())&&lw(e)&&"fixed"===yw(e).position)return null;var n=ww(e);for(sw(n)&&(n=n.host);lw(n)&&["html","body"].indexOf(ow(n))<0;){var r=yw(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function kw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rw(e,t,n){return dw(e,pw(t,n))}function Lw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ow(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var _w={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=uw(n.placement),s=kw(l),c=[VS,US].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return Lw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ow(e,KS))}(o.padding,n),d=vw(a),p="y"===s?WS:VS,f="y"===s?HS:US,h=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],m=i[s]-n.rects.reference[s],g=Cw(a),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=u[p],x=v-d[c]-u[f],S=v/2-d[c]/2+b,w=Rw(y,S,x),E=s;n.modifiersData[r]=((t={})[E]=w,t.centerOffset=w-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&bw(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Iw(e){return e.split("-")[1]}var Pw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tw(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=VS,x=WS,S=window;if(c){var w=Cw(n),E="clientHeight",C="clientWidth";if(w===aw(n)&&"static"!==yw(w=Sw(n)).position&&"absolute"===l&&(E="scrollHeight",C="scrollWidth"),o===WS||(o===VS||o===US)&&a===XS)x=HS,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===VS||(o===WS||o===HS)&&a===XS)y=US,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[C])-r.width,f*=s?1:-1}var k,R=Object.assign({position:l},c&&Pw),L=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:fw(n*o)/o||0,y:fw(r*o)/o||0}}({x:f,y:m},aw(n)):{x:f,y:m};return f=L.x,m=L.y,s?Object.assign({},R,((k={})[x]=b?"0":"",k[y]=v?"0":"",k.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",k)):Object.assign({},R,((t={})[x]=b?m+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var Mw={passive:!0};var Nw={left:"right",right:"left",bottom:"top",top:"bottom"};function qw(e){return e.replace(/left|right|bottom|top/g,(function(e){return Nw[e]}))}var Aw={start:"end",end:"start"};function zw(e){return e.replace(/start|end/g,(function(e){return Aw[e]}))}function Dw(e){var t=aw(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function jw(e){return gw(Sw(e)).left+Dw(e).scrollLeft}function Fw(e){var t=yw(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function $w(e){return["html","body","#document"].indexOf(ow(e))>=0?e.ownerDocument.body:lw(e)&&Fw(e)?e:$w(ww(e))}function Bw(e,t){var n;void 0===t&&(t=[]);var r=$w(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=aw(r),i=o?[a].concat(a.visualViewport||[],Fw(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Bw(ww(i)))}function Ww(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Hw(e,t,n){return t===JS?Ww(function(e,t){var n=aw(e),r=Sw(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=mw();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+jw(e),y:s}}(e,n)):iw(t)?function(e,t){var n=gw(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ww(function(e){var t,n=Sw(e),r=Dw(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=dw(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=dw(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+jw(e),s=-r.scrollTop;return"rtl"===yw(o||n).direction&&(l+=dw(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(Sw(e)))}function Uw(e,t,n,r){var o="clippingParents"===t?function(e){var t=Bw(ww(e)),n=["absolute","fixed"].indexOf(yw(e).position)>=0&&lw(e)?Cw(e):e;return iw(n)?t.filter((function(e){return iw(e)&&bw(e,n)&&"body"!==ow(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=Hw(e,n,r);return t.top=dw(o.top,t.top),t.right=pw(o.right,t.right),t.bottom=pw(o.bottom,t.bottom),t.left=dw(o.left,t.left),t}),Hw(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Vw(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?uw(o):null,i=o?Iw(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case WS:t={x:l,y:n.y-r.height};break;case HS:t={x:l,y:n.y+n.height};break;case US:t={x:n.x+n.width,y:s};break;case VS:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?kw(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case ZS:t[c]=t[c]-(n[u]/2-r[u]/2);break;case XS:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Gw(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?QS:l,c=n.rootBoundary,u=void 0===c?JS:c,d=n.elementContext,p=void 0===d?YS:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=Lw("number"!=typeof g?g:Ow(g,KS)),b=p===YS?ew:YS,y=e.rects.popper,x=e.elements[h?b:p],S=Uw(iw(x)?x:x.contextElement||Sw(e.elements.popper),s,u,i),w=gw(e.elements.reference),E=Vw({reference:w,element:y,strategy:"absolute",placement:o}),C=Ww(Object.assign({},y,E)),k=p===YS?C:w,R={top:S.top-k.top+v.top,bottom:k.bottom-S.bottom+v.bottom,left:S.left-k.left+v.left,right:k.right-S.right+v.right},L=e.modifiersData.offset;if(p===YS&&L){var O=L[o];Object.keys(R).forEach((function(e){var t=[US,HS].indexOf(e)>=0?1:-1,n=[WS,HS].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t}))}return R}function Kw(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?nw:s,u=Iw(r),d=u?l?tw:tw.filter((function(e){return Iw(e)===u})):KS,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Gw(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[uw(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Zw={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=uw(g),b=s||(v===g||!h?[qw(g)]:function(e){if(uw(e)===GS)return[];var t=qw(e);return[zw(e),t,zw(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(uw(n)===GS?Kw(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,S=t.rects.popper,w=new Map,E=!0,C=y[0],k=0;k<y.length;k++){var R=y[k],L=uw(R),O=Iw(R)===ZS,_=[WS,HS].indexOf(L)>=0,I=_?"width":"height",P=Gw(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=_?O?US:VS:O?HS:WS;x[I]>S[I]&&(T=qw(T));var M=qw(T),N=[];if(a&&N.push(P[L]<=0),l&&N.push(P[T]<=0,P[M]<=0),N.every((function(e){return e}))){C=R,E=!1;break}w.set(R,N)}if(E)for(var q=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},A=h?3:1;A>0;A--){if("break"===q(A))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Xw(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Qw(e){return[WS,US,HS,VS].some((function(t){return e[t]>=0}))}var Jw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=nw.reduce((function(e,n){return e[n]=function(e,t,n){var r=uw(e),o=[VS,WS].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[VS,US].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};var Yw={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=Gw(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=uw(t.placement),b=Iw(t.placement),y=!b,x=kw(v),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(a){var _,I="y"===x?WS:VS,P="y"===x?HS:US,T="y"===x?"height":"width",M=w[x],N=M+g[I],q=M-g[P],A=f?-C[T]/2:0,z=b===ZS?E[T]:C[T],D=b===ZS?-C[T]:-E[T],j=t.elements.arrow,F=f&&j?vw(j):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=$[I],W=$[P],H=Rw(0,E[T],F[T]),U=y?E[T]/2-A-H-B-R.mainAxis:z-H-B-R.mainAxis,V=y?-E[T]/2+A+H+W+R.mainAxis:D+H+W+R.mainAxis,G=t.elements.arrow&&Cw(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(_=null==L?void 0:L[x])?_:0,X=M+V-Z,Q=Rw(f?pw(N,M+U-Z-K):N,M,f?dw(q,X):q);w[x]=Q,O[x]=Q-M}if(l){var J,Y="x"===x?WS:VS,ee="x"===x?HS:US,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ae=-1!==[WS,VS].indexOf(v),ie=null!=(J=null==L?void 0:L[S])?J:0,le=ae?re:te-E[ne]-C[ne]-ie+R.altAxis,se=ae?te+E[ne]+C[ne]-ie-R.altAxis:oe,ce=f&&ae?function(e,t,n){var r=Rw(e,t,n);return r>n?n:r}(le,te,se):Rw(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function eE(e,t,n){void 0===n&&(n=!1);var r=lw(t),o=lw(t)&&function(e){var t=e.getBoundingClientRect(),n=fw(t.width)/e.offsetWidth||1,r=fw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Sw(t),i=gw(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==ow(t)||Fw(a))&&(l=function(e){return e!==aw(e)&&lw(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Dw(e);var t}(t)),lw(t)?((s=gw(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=jw(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function tE(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var nE={placement:"bottom",modifiers:[],strategy:"absolute"};function rE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function oE(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?nE:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},nE,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:iw(e)?Bw(e):e.contextElement?Bw(e.contextElement):[],popper:Bw(t)};var i,c,p=function(e){var t=tE(e);return rw.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:u,options:r}),i=function(){};s.push(a||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(rE(t,n)){l.rects={reference:eE(t,Cw(n),"fixed"===l.options.strategy),popper:vw(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!rE(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var aE=oE({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=aw(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,Mw)})),l&&s.addEventListener("resize",n.update,Mw),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Mw)})),l&&s.removeEventListener("resize",n.update,Mw)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Vw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:uw(t.placement),variation:Iw(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Tw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Tw(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},cw,Jw,Zw,Yw,_w,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Gw(t,{elementContext:"reference"}),l=Gw(t,{altBoundary:!0}),s=Xw(i,r),c=Xw(l,o,a),u=Qw(s),d=Qw(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const iE=U.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=U.useState(null),l=Av(U.isValidElement(n)?n.ref:null,t);if(wv((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),wv((()=>{if(a&&!o)return Iv(t,a),()=>{Iv(t,null)}}),[t,a,o]),o){if(U.isValidElement(n)){const e={ref:l};return U.cloneElement(n,e)}return ym.jsx(U.Fragment,{children:n})}return ym.jsx(U.Fragment,{children:a?_p.createPortal(n,a):a})}));function lE(e){return rv("MuiPopper",e)}ov("MuiPopper",["root"]);const sE=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],cE=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function uE(e){return"function"==typeof e?e():e}const dE={},pE=U.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:a,disablePortal:i,modifiers:l,open:s,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h}=e,m=Ap(e,sE),g=U.useRef(null),v=Av(g,t),b=U.useRef(null),y=Av(b,d),x=U.useRef(y);wv((()=>{x.current=y}),[y]),U.useImperativeHandle(d,(()=>b.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,a),[w,E]=U.useState(S),[C,k]=U.useState(uE(r));U.useEffect((()=>{b.current&&b.current.forceUpdate()})),U.useEffect((()=>{r&&k(uE(r))}),[r]),wv((()=>{if(!C||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=aE(C,g.current,qp({placement:S},u,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[C,i,l,s,u,S]);const R={placement:w};null!==h&&(R.TransitionProps=h);const L=(e=>{const{classes:t}=e;return Jv({root:["root"]},lE,t)})(e),O=null!=(n=f.root)?n:"div",_=ib({elementType:O,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:L.root});return ym.jsx(O,qp({},_,{children:"function"==typeof o?o(R):o}))})),fE=U.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=dE,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,v=Ap(e,cE),[b,y]=U.useState(!0);if(!l&&!c&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=uE(n);x=e&&void 0!==e.nodeType?Ov(e).body:Ov(null).body}const S=c||!l||h&&!b?void 0:"none",w=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return ym.jsx(iE,{disablePortal:i,container:x,children:ym.jsx(pE,qp({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},v,{style:qp({position:"fixed",top:0,left:0,display:S},f),TransitionProps:w,children:r}))})})),hE=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],mE=rx(fE,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gE=U.forwardRef((function(e,t){var n;const r=jS(),o=lx({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=Ap(o,hE),S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w=qp({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v},x);return ym.jsx(mE,qp({as:i,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))})),vE=["onChange","maxRows","minRows","style","value"];function bE(e){return parseInt(e,10)||0}const yE={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const xE=U.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=Ap(e,vE),{current:s}=U.useRef(null!=i),c=U.useRef(null),u=Av(t,c),d=U.useRef(null),p=U.useRef(null),f=U.useCallback((()=>{const t=c.current,n=_v(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const a=p.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=n.boxSizing,l=bE(n.paddingBottom)+bE(n.paddingTop),s=bE(n.borderBottomWidth)+bE(n.borderTopWidth),u=a.scrollHeight;a.value="x";const d=a.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===i?l+s:0),overflowing:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),h=U.useCallback((()=>{const e=f();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,r=c.current;d.current!==n&&(d.current=n,r.style.height=`${n}px`),r.style.overflow=e.overflowing?"hidden":""}),[f]);wv((()=>{const e=()=>{h()};const t=Rv(e),n=c.current,r=_v(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()}}),[f,h]),wv((()=>{h()}));return ym.jsxs(U.Fragment,{children:[ym.jsx("textarea",qp({value:i,onChange:e=>{s||h(),n&&n(e)},ref:u,rows:o,style:a},l)),ym.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:qp({},yE,a,{paddingTop:0,paddingBottom:0})})]})}));function SE({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const wE=U.createContext(void 0);function EE(){return U.useContext(wE)}function CE(e){return ym.jsx(Vg,qp({},e,{defaultTheme:ky,themeId:Np}))}function kE(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function RE(e){return rv("MuiInputBase",e)}const LE=ov("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),OE=["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"],_E=(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${Hm(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},IE=(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]},PE=rx("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_E})((({theme:e,ownerState:t})=>qp({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${LE.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&qp({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),TE=rx("input",{name:"MuiInputBase",slot:"Input",overridesResolver:IE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=qp({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"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return qp({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${LE.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${LE.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),ME=ym.jsx(CE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),NE=U.forwardRef((function(e,t){var n;const r=lx({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:C,onClick:k,onFocus:R,onKeyDown:L,onKeyUp:O,placeholder:_,readOnly:I,renderSuffix:P,rows:T,slotProps:M={},slots:N={},startAdornment:q,type:A="text",value:z}=r,D=Ap(r,OE),j=null!=v.value?v.value:z,{current:F}=U.useRef(null!=j),$=U.useRef(),B=U.useCallback((e=>{}),[]),W=Av($,b,v.ref,B),[H,V]=U.useState(!1),G=EE(),K=SE({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:H,U.useEffect((()=>{!G&&d&&H&&(V(!1),E&&E())}),[G,d,H,E]);const Z=G&&G.onFilled,X=G&&G.onEmpty,Q=U.useCallback((e=>{!function(e,t=!1){return e&&(kE(e.value)&&""!==e.value||t&&kE(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);wv((()=>{F&&Q({value:j})}),[j,Q,F]);U.useEffect((()=>{Q($.current)}),[]);let J=g,Y=v;S&&"input"===J&&(Y=qp(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:y,minRows:x},Y),J=xE);U.useEffect((()=>{G&&G.setAdornedStart(Boolean(q))}),[G,q]);const ee=qp({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:q,type:A}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Jv({root:["root",`color${Hm(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Hm(p)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},RE,t)})(ee),ne=N.root||s.Root||PE,re=M.root||c.root||{},oe=N.input||s.Input||TE;return Y=qp({},Y,null!=(n=M.input)?n:c.input),ym.jsxs(U.Fragment,{children:[!p&&ME,ym.jsxs(ne,qp({},re,!Yv(ne)&&{ownerState:qp({},ee,re.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),k&&k(e)}},D,{className:ev(te.root,re.className,l,I&&"MuiInputBase-readOnly"),children:[q,ym.jsx(wE.Provider,{value:null,children:ym.jsx(oe,qp({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:w,placeholder:_,readOnly:I,required:K.required,rows:T,value:j,onKeyDown:L,onKeyUp:O,type:A},Y,!Yv(oe)&&{as:J,ownerState:qp({},ee,Y.ownerState)},{ref:W,className:ev(te.input,Y.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!F){const t=e.target||$.current;if(null==t)throw new Error(Tp(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),f,P?P(qp({},K,{startAdornment:q})):null]}))]})}));function qE(e){return rv("MuiOutlinedInput",e)}const AE=qp({},LE,ov("MuiOutlinedInput",["root","notchedOutline","input"])),zE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],DE={entering:{opacity:1},entered:{opacity:1}},jE=U.forwardRef((function(e,t){const n=Ry(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=yx}=e,b=Ap(e,zE),y=U.useRef(null),x=Av(y,i.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),E=S(((e,t)=>{SS(e);const r=wS({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=S(u),k=S(h),R=S((e=>{const t=wS({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return ym.jsx(v,qp({appear:a,in:s,nodeRef:y,onEnter:E,onEntered:C,onEntering:w,onExit:R,onExited:L,onExiting:k,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>U.cloneElement(i,qp({style:qp({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},DE[e],m,i.props.style),ref:x},t))}))}));function FE(e){return rv("MuiBackdrop",e)}ov("MuiBackdrop",["root","invisible"]);const $E=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],BE=rx("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>qp({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"}))),WE=U.forwardRef((function(e,t){var n,r,o;const a=lx({props:e,name:"MuiBackdrop"}),{children:i,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=jE,transitionDuration:g}=a,v=Ap(a,$E),b=qp({},a,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Jv({root:["root",n&&"invisible"]},FE,t)})(b),x=null!=(n=f.root)?n:u.root;return ym.jsx(m,qp({in:p,timeout:g},v,{children:ym.jsx(BE,qp({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:ev(y.root,l,null==x?void 0:x.className),ownerState:qp({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:i}))}))}));function HE(e){return rv("MuiBadge",e)}const UE=ov("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),VE=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],GE=rx("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),KE=rx("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Hm(n.anchorOrigin.vertical)}${Hm(n.anchorOrigin.horizontal)}${Hm(n.overlap)}`],"default"!==n.color&&t[`color${Hm(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${UE.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${UE.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${UE.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${UE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${UE.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${UE.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${UE.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${UE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}})),ZE=U.forwardRef((function(e,t){var n,r,o,a,i,l;const s=lx({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,C=Ap(s,VE),{badgeContent:k,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=Qv({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:b,invisible:v,badgeContent:y,showZero:w}),_=Qv({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),I=R||null==k&&"dot"!==E,{color:P=g,overlap:T=m,anchorOrigin:M=c,variant:N=E}=I?_:s,q="dot"!==N?O:void 0,A=qp({},s,{badgeContent:k,invisible:I,max:L,displayValue:q,showZero:w,anchorOrigin:M,color:P,overlap:T,variant:N}),z=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return Jv({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Hm(n.vertical)}${Hm(n.horizontal)}`,`anchorOrigin${Hm(n.vertical)}${Hm(n.horizontal)}${Hm(o)}`,`overlap${Hm(o)}`,"default"!==t&&`color${Hm(t)}`]},HE,i)})(A),D=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:GE,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:KE,F=null!=(i=null==S?void 0:S.root)?i:f.root,$=null!=(l=null==S?void 0:S.badge)?l:f.badge,B=ib({elementType:D,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:A,className:ev(null==F?void 0:F.className,z.root,u)}),W=ib({elementType:j,externalSlotProps:$,ownerState:A,className:ev(z.badge,null==$?void 0:$.className)});return ym.jsxs(D,qp({},B,{children:[h,ym.jsx(j,qp({},W,{children:q}))]}))})),XE=ov("MuiBox",["root"]),QE=Cy(),JE=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=Em("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Dg),i=U.forwardRef((function(e,i){const l=Ug(n),s=Zg(e),{className:c,component:u="div"}=s,d=Lm(s,tv);return ym.jsx(a,Rm({as:u,ref:i,className:ev(c,o?o(r):r),theme:t&&l[t]||l},d))}));return i}({themeId:Np,defaultTheme:QE,defaultClassName:XE.root,generateClassName:Jg.generate});function YE(e){return rv("PrivateSwitchBase",e)}ov("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const eC=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],tC=rx(Hx)((({ownerState:e})=>qp({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),nC=rx("input",{shouldForwardProp:nx})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),rC=U.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:w}=e,E=Ap(e,eC),[C,k]=Nv({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=EE();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,_=qp({},e,{checked:C,disabled:L,disableFocusRipple:s,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Jv({root:["root",n&&"checked",r&&"disabled",o&&`edge${Hm(o)}`],input:["input"]},YE,t)})(_);return ym.jsxs(tC,qp({component:"span",className:ev(I.root,a),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:_,ref:t},E,{children:[ym.jsx(nC,qp({autoFocus:n,checked:r,defaultChecked:i,className:I.input,disabled:L,id:O?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),g&&g(e,t)},readOnly:b,ref:f,required:y,ownerState:_,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var oC=bS(ym.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),aC=bS(ym.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),iC=bS(ym.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function lC(e){return rv("MuiCheckbox",e)}const sC=ov("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),cC=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],uC=rx(rC,{shouldForwardProp:e=>nx(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Hm(n.size)}`],"default"!==n.color&&t[`color${Hm(n.color)}`]]}})((({theme:e,ownerState:t})=>qp({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nb("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${sC.checked}, &.${sC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${sC.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),dC=ym.jsx(aC,{}),pC=ym.jsx(oC,{}),fC=ym.jsx(iC,{}),hC=U.forwardRef((function(e,t){var n,r;const o=lx({props:e,name:"MuiCheckbox"}),{checkedIcon:a=dC,color:i="primary",icon:l=pC,indeterminate:s=!1,indeterminateIcon:c=fC,inputProps:u,size:d="medium",className:p}=o,f=Ap(o,cC),h=s?c:l,m=s?c:a,g=qp({},o,{color:i,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return qp({},t,Jv({root:["root",n&&"indeterminate",`color${Hm(r)}`,`size${Hm(o)}`]},lC,t))})(g);return ym.jsx(uC,qp({type:"checkbox",inputProps:qp({"data-indeterminate":s},u),icon:U.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:U.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:ev(v.root,p)},f,{classes:v}))}));function mC(e){return rv("MuiCircularProgress",e)}ov("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const gC=["className","color","disableShrink","size","style","thickness","value","variant"];let vC,bC,yC,xC,SC=e=>e;const wC=44,EC=Vh(vC||(vC=SC`
|
|
107
107
|
0% {
|
|
108
108
|
transform: rotate(0deg);
|
|
109
109
|
}
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
100% {
|
|
112
112
|
transform: rotate(360deg);
|
|
113
113
|
}
|
|
114
|
-
`)),
|
|
114
|
+
`)),CC=Vh(bC||(bC=SC`
|
|
115
115
|
0% {
|
|
116
116
|
stroke-dasharray: 1px, 200px;
|
|
117
117
|
stroke-dashoffset: 0;
|
|
@@ -126,9 +126,9 @@
|
|
|
126
126
|
stroke-dasharray: 100px, 200px;
|
|
127
127
|
stroke-dashoffset: -125px;
|
|
128
128
|
}
|
|
129
|
-
`)),
|
|
129
|
+
`)),kC=rx("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Hm(n.color)}`]]}})((({ownerState:e,theme:t})=>qp({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&Uh(yC||(yC=SC`
|
|
130
130
|
animation: ${0} 1.4s linear infinite;
|
|
131
|
-
`),
|
|
131
|
+
`),EC))),RC=rx("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),LC=rx("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Hm(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>qp({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&Uh(xC||(xC=SC`
|
|
132
132
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
133
|
-
`),kC))),_C=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:i=40,style:l,thickness:s=3.6,value:c=0,variant:u="indeterminate"}=n,d=Ap(n,vC),p=qp({},n,{color:o,disableShrink:a,size:i,thickness:s,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Jv({root:["root",n,`color${Hm(r)}`],svg:["svg"],circle:["circle",`circle${Hm(n)}`,o&&"circleDisableShrink"]},gC,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((EC-s)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return ym.jsx(RC,qp({className:ev(f.root,r),style:qp({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:ym.jsx(LC,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:ym.jsx(OC,{className:f.circle,style:h,ownerState:p,cx:EC,cy:EC,r:(EC-s)/2,fill:"none",strokeWidth:s})})}))}));function IC(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function TC(e){return parseInt(_v(e).getComputedStyle(e).paddingRight,10)||0}function PC(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.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&&IC(e,o)}))}function MC(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function NC(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ov(e);return t.body===e?_v(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Xv(Ov(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${TC(r)+e}px`;const t=Ov(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${TC(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Ov(r).body;else{const t=r.parentElement,n=_v(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 qC=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function AC(e){const t=[],n=[];return Array.from(e.querySelectorAll(qC)).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 zC(){return!0}function DC(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=AC,isEnabled:i=zC,open:l}=e,s=U.useRef(!1),c=U.useRef(null),u=U.useRef(null),d=U.useRef(null),p=U.useRef(null),f=U.useRef(!1),h=U.useRef(null),m=Av(t.ref,h),g=U.useRef(null);U.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),U.useEffect((()=>{if(!l||!h.current)return;const e=Ov(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),U.useEffect((()=>{if(!l||!h.current)return;const e=Ov(h.current),t=t=>{g.current=t,!r&&i()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!i()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.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!==c.current&&e.activeElement!==u.current||(n=a(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,i,l,a]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ym.jsxs(U.Fragment,{children:[ym.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),U.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),ym.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}const jC=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&&IC(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);PC(t,e.mount,e.modalRef,r,!0);const o=MC(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=MC(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=NC(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=MC(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&&IC(e.modalRef,t),PC(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&&IC(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function FC(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=jC,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,p=U.useRef({}),f=U.useRef(null),h=U.useRef(null),m=Av(h,d),[g,v]=U.useState(!u),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=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=qv((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ov(f.current).body;o.add(x(),e),h.current&&S()})),E=U.useCallback((()=>o.isTopModal(x())),[o]),C=qv((e=>{f.current=e,e&&(u&&E()?S():h.current&&IC(h.current,y))})),k=U.useCallback((()=>{o.remove(x(),y)}),[y,o]);U.useEffect((()=>()=>{k()}),[k]),U.useEffect((()=>{u?w():b&&a||k()}),[u,k,b,a,w]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=rb(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=qp({},n,t);return qp({role:"presentation"},r,{onKeyDown:R(r),ref:m})},getBackdropProps:(e={})=>qp({"aria-hidden":!0},e,{onClick:L(e),open:u}),getTransitionProps:()=>({onEnter:kv((()=>{v(!1),i&&i()}),null==s?void 0:s.props.onEnter),onExited:kv((()=>{v(!0),l&&l(),a&&k()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:E,exited:g,hasTransition:b}}function $C(e){return rv("MuiModal",e)}ov("MuiModal",["root","hidden","backdrop"]);const BC=["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"],WC=rx("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})=>qp({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),HC=rx(HE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),UC=U.forwardRef((function(e,t){var n,r,o,a,i,l;const s=lx({name:"MuiModal",props:e}),{BackdropComponent:c=HC,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:E=!1,hideBackdrop:C=!1,keepMounted:k=!1,onBackdropClick:R,open:L,slotProps:O,slots:_}=s,I=Ap(s,BC),T=qp({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:E,hideBackdrop:C,keepMounted:k}),{getRootProps:P,getBackdropProps:M,getTransitionProps:N,portalRef:q,isTopModal:A,exited:z,hasTransition:D}=FC(qp({},T,{rootRef:t})),j=qp({},T,{exited:z}),F=(e=>{const{open:t,exited:n,classes:r}=e;return Jv({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},$C,r)})(j),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),D){const{onEnter:e,onExited:t}=N();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:WC,W=null!=(o=null!=(a=null==_?void 0:_.backdrop)?a:g.Backdrop)?o:c,H=null!=(i=null==O?void 0:O.root)?i:v.root,V=null!=(l=null==O?void 0:O.backdrop)?l:v.backdrop,G=ib({elementType:B,externalSlotProps:H,externalForwardedProps:I,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:j,className:ev(d,null==H?void 0:H.className,null==F?void 0:F.root,!j.open&&j.exited&&(null==F?void 0:F.hidden))}),K=ib({elementType:W,externalSlotProps:V,additionalProps:u,getSlotProps:e=>M(qp({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ev(null==V?void 0:V.className,null==u?void 0:u.className,null==F?void 0:F.backdrop),ownerState:j});return k||L||D&&!z?ym.jsx(iE,{ref:q,container:h,disablePortal:S,children:ym.jsxs(B,qp({},G,{children:[!C&&c?ym.jsx(W,qp({},K)):null,ym.jsx(DC,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:A,open:L,children:U.cloneElement(f,$)})]}))}):null}));function VC(e){return rv("MuiDivider",e)}const GC=ov("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),KC=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ZC=rx("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})=>qp({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)`:Nb(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})=>qp({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>qp({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>qp({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>qp({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),XC=rx("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>qp({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)`}))),QC=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Ap(n,KC),h=qp({},n,{absolute:r,component:i,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:l,variant:s}=e;return Jv({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},VC,r)})(h);return ym.jsx(ZC,qp({as:i,className:ev(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?ym.jsx(XC,{className:m.wrapper,ownerState:h,children:o}):null}))}));QC.muiSkipListHighlight=!0;const JC=function(e={}){const{createStyledComponent:t=wb,useThemeProps:n=Eb,componentName:r="MuiStack"}=e,o=t(kb),a=U.forwardRef((function(e,t){const a=Zg(n(e)),{component:i="div",direction:l="column",spacing:s=0,divider:c,children:u,className:d,useFlexGap:p=!1}=a,f=Lm(a,xb),h={direction:l,spacing:s,useFlexGap:p},m=Jv({root:["root"]},(e=>rv(r,e)),{});return ym.jsx(o,Rm({as:i,ownerState:h,ref:t,className:ev(m.root,d)},f,{children:c?Cb(u,c):u}))}));return a}({createStyledComponent:rx("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>lx({props:e,name:"MuiStack"})});function YC(e){return rv("MuiFormControlLabel",e)}const ek=ov("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),tk=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],nk=rx("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ek.label}`]:t.label},t.root,t[`labelPlacement${Hm(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>qp({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ek.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${ek.label}`]:{[`&.${ek.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),rk=rx("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${ek.error}`]:{color:(e.vars||e).palette.error.main}}))),ok=U.forwardRef((function(e,t){var n,r;const o=lx({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:i={},control:l,disabled:s,disableTypography:c,label:u,labelPlacement:d="end",required:p,slotProps:f={}}=o,h=Ap(o,tk),m=EE(),g=null!=(n=null!=s?s:l.props.disabled)?n:null==m?void 0:m.disabled,v=null!=p?p:l.props.required,b={disabled:g,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(b[e]=o[e])}));const y=SE({props:o,muiFormControl:m,states:["error"]}),x=qp({},o,{disabled:g,labelPlacement:d,required:v,error:y.error}),S=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e;return Jv({root:["root",n&&"disabled",`labelPlacement${Hm(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},YC,t)})(x),w=null!=(r=f.typography)?r:i.typography;let E=u;return null==E||E.type===zS||c||(E=ym.jsx(zS,qp({component:"span"},w,{className:ev(S.label,null==w?void 0:w.className),children:E}))),ym.jsxs(nk,qp({className:ev(S.root,a),ownerState:x,ref:t},h,{children:[U.cloneElement(l,b),v?ym.jsxs(JC,{display:"block",children:[E,ym.jsxs(rk,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):E]}))})),ak=U.createContext();function ik(e){return rv("MuiGrid",e)}const lk=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],sk=ov("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...lk.map((e=>`grid-xs-${e}`)),...lk.map((e=>`grid-sm-${e}`)),...lk.map((e=>`grid-md-${e}`)),...lk.map((e=>`grid-lg-${e}`)),...lk.map((e=>`grid-xl-${e}`))]),ck=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function uk(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function dk({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const pk=rx("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:l,zeroMinWidth:s,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(i,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,a&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((({ownerState:e})=>qp({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return Fm({theme:e},Wm({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${sk.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Wm({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=dk({breakpoints:e.breakpoints.values,values:t})),o=Fm({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${uk(a)}`,[`& > .${sk.item}`]:{paddingTop:uk(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${sk.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Wm({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=dk({breakpoints:e.breakpoints.values,values:t})),o=Fm({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${uk(a)})`,marginLeft:`-${uk(a)}`,[`& > .${sk.item}`]:{paddingLeft:uk(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${sk.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Wm({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof i?i[o]:i;if(null==l)return r;const s=Math.round(n/l*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${s} + ${uk(n)})`;c={flexBasis:e,maxWidth:e}}}a=qp({flexBasis:s,flexGrow:0,maxWidth:s},c)}return 0===e.breakpoints.values[o]?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r}),{})}));const fk=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:l,breakpoints:s}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(a,s));const u=[];s.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return Jv({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},ik,t)},hk=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiGrid"}),{breakpoints:r}=Ry(),o=Zg(n),{className:a,columns:i,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,g=Ap(o,ck),v=p||f,b=l||f,y=U.useContext(ak),x=c?i||12:y,S={},w=qp({},g);r.keys.forEach((e=>{null!=g[e]&&(S[e]=g[e],delete w[e])}));const E=qp({},o,{columns:x,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:f},S,{breakpoints:r.keys}),C=fk(E);return ym.jsx(ak.Provider,{value:x,children:ym.jsx(pk,qp({ownerState:E,className:ev(C.root,a),as:s,ref:t},w))})})),mk=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function gk(e){return`scale(${e}, ${e**2})`}const vk={entering:{opacity:1,transform:gk(1)},entered:{opacity:1,transform:"none"}},bk="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),yk=U.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:i,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=yx}=e,g=Ap(e,mk),v=Fv(),b=U.useRef(),y=Ry(),x=U.useRef(null),S=Av(x,o.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(c),C=w(((e,t)=>{SS(e);const{duration:n,delay:r,easing:o}=wS({style:f,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=n,e.style.transition=[y.transitions.create("opacity",{duration:i,delay:r}),y.transitions.create("transform",{duration:bk?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),k=w(s),R=w(p),L=w((e=>{const{duration:t,delay:n,easing:r}=wS({style:f,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(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:bk?o:.666*o,delay:bk?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=gk(.75),u&&u(e)})),O=w(d);return ym.jsx(m,qp({appear:r,in:i,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>U.cloneElement(o,qp({style:qp({opacity:0,transform:gk(.75),visibility:"exited"!==e||i?void 0:"hidden"},vk[e],f,o.props.style),ref:S},t))}))}));function xk(e){return rv("MuiIcon",e)}yk.muiSupportAuto=!0,ov("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Sk=["baseClassName","className","color","component","fontSize"],wk=rx("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Hm(n.color)}`],t[`fontSize${Hm(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),Ek=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=Ap(n,Sk),c=qp({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Jv({root:["root","inherit"!==t&&`color${Hm(t)}`,`fontSize${Hm(n)}`]},xk,r)})(c);return ym.jsx(wk,qp({as:i,className:ev(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));function Ck(e){return rv("MuiInputAdornment",e)}Ek.muiName="Icon";const kk=ov("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Rk;const Lk=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Ok=rx("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Hm(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>qp({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${kk.positionStart}&:not(.${kk.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),_k=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Ap(n,Lk),d=EE()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=qp({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:i,position:s,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e;return Jv({root:["root",n&&"disablePointerEvents",o&&`position${Hm(o)}`,i,r&&"hiddenLabel",a&&`size${Hm(a)}`]},Ck,t)})(f);return ym.jsx(wE.Provider,{value:null,children:ym.jsx(Ok,qp({as:a,ownerState:f,className:ev(h.root,o),ref:t},u,{children:"string"!=typeof r||l?ym.jsxs(U.Fragment,{children:["start"===s?Rk||(Rk=ym.jsx("span",{className:"notranslate",children:""})):null,r]}):ym.jsx(zS,{color:"text.secondary",children:r})}))})})),Ik=U.createContext({});function Tk(e){return rv("MuiList",e)}ov("MuiList",["root","padding","dense","subheader"]);const Pk=["children","className","component","dense","disablePadding","subheader"],Mk=rx("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})=>qp({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Nk=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=Ap(n,Pk),u=U.useMemo((()=>({dense:i})),[i]),d=qp({},n,{component:a,dense:i,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Jv({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Tk,t)})(d);return ym.jsx(Ik.Provider,{value:u,children:ym.jsxs(Mk,qp({as:a,className:ev(p.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));function qk(e){return rv("MuiListItem",e)}const Ak=ov("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),zk=ov("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Dk(e){return rv("MuiListItemSecondaryAction",e)}ov("MuiListItemSecondaryAction",["root","disableGutters"]);const jk=["className"],Fk=rx("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>qp({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),$k=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Ap(n,jk),a=qp({},n,{disableGutters:U.useContext(Ik).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return Jv({root:["root",t&&"disableGutters"]},Dk,n)})(a);return ym.jsx(Fk,qp({className:ev(i.root,r),ownerState:a,ref:t},o))}));$k.muiName="ListItemSecondaryAction";const Bk=["className"],Wk=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Hk=rx("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})=>qp({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&qp({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${zk.root}`]:{paddingRight:48}},{[`&.${Ak.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ak.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nb(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ak.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nb(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ak.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"}},[`&.${Ak.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nb(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})`:Nb(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Uk=rx("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Vk=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:a=!1,children:i,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,E=Ap(n.ContainerProps,Bk),C=Ap(n,Wk),k=U.useContext(Ik),R=U.useMemo((()=>({dense:f||k.dense||!1,alignItems:r,disableGutters:m})),[r,k.dense,f,m]),L=U.useRef(null);wv((()=>{o&&L.current&&L.current.focus()}),[o]);const O=U.Children.toArray(i),_=O.length&&Lv(O[O.length-1],["ListItemSecondaryAction"]),I=qp({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:_,selected:x}),T=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return Jv({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},qk,r)})(I),P=Av(L,t),M=w.root||c.Root||Hk,N=S.root||u.root||{},q=qp({className:ev(T.root,N.className,l),disabled:h},C);let A=s||"li";return a&&(q.component=s||"div",q.focusVisibleClassName=ev(Ak.focusVisible,b),A=Hx),_?(A=q.component||s?A:"div","li"===d&&("li"===A?A="div":"li"===q.component&&(q.component="div")),ym.jsx(Ik.Provider,{value:R,children:ym.jsxs(Uk,qp({as:d,className:ev(T.container,p),ref:P,ownerState:I},E,{children:[ym.jsx(M,qp({},N,!Yv(M)&&{as:A,ownerState:qp({},I,N.ownerState)},q,{children:O})),O.pop()]}))})):ym.jsx(Ik.Provider,{value:R,children:ym.jsxs(M,qp({},N,{as:A,ref:P},!Yv(M)&&{ownerState:qp({},I,N.ownerState)},q,{children:[O,y&&ym.jsx($k,{children:y})]}))})}));function Gk(e){return rv("MuiListItemIcon",e)}const Kk=ov("MuiListItemIcon",["root","alignItemsFlexStart"]),Zk=["className"],Xk=rx("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})=>qp({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Qk=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Ap(n,Zk),a=qp({},n,{alignItems:U.useContext(Ik).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return Jv({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Gk,n)})(a);return ym.jsx(Xk,qp({className:ev(i.root,r),ownerState:a,ref:t},o))})),Jk=ov("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Yk=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function eR(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function tR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function nR(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 rR(e,t,n,r,o,a){let i=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&nR(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const oR=U.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Ap(e,Yk),p=U.useRef(null),f=U.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});wv((()=>{r&&p.current.focus()}),[r]),U.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Xv(Ov(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Av(p,t);let m=-1;U.Children.forEach(a,((e,t)=>{U.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=a.length&&(m=-1))):m===t&&(m+=1,m>=a.length&&(m=-1))}));const g=U.Children.map(a,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),U.cloneElement(e,t)}return e}));return ym.jsx(Nk,qp({role:"menu",ref:h,className:i,onKeyDown:e=>{const t=p.current,n=e.key,r=Ov(t).activeElement;if("ArrowDown"===n)e.preventDefault(),rR(t,r,s,l,eR);else if("ArrowUp"===n)e.preventDefault(),rR(t,r,s,l,tR);else if("Home"===n)e.preventDefault(),rR(t,null,s,l,eR);else if("End"===n)e.preventDefault(),rR(t,null,s,l,tR);else if(1===n.length){const o=f.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=r&&!o.repeating&&nR(r,o);o.previousKeyMatched&&(s||rR(t,r,!1,l,eR,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));function aR(e){return rv("MuiPopover",e)}ov("MuiPopover",["root","paper"]);const iR=["onEntering"],lR=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],sR=["slotProps"];function cR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function uR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function dR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function pR(e){return"function"==typeof e?e():e}const fR=rx(UC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hR=rx(RS,{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}),mR=U.forwardRef((function(e,t){var n,r,o;const a=lx({props:e,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=yk,transitionDuration:w="auto",TransitionProps:{onEntering:E}={},disableScrollLock:C=!1}=a,k=Ap(a.TransitionProps,iR),R=Ap(a,lR),L=null!=(n=null==y?void 0:y.paper)?n:v,O=U.useRef(),_=Av(O,L.ref),I=qp({},a,{anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:k}),T=(e=>{const{classes:t}=e;return Jv({root:["root"],paper:["paper"]},aR,t)})(I),P=U.useCallback((()=>{if("anchorPosition"===u)return c;const e=pR(l),t=(e&&1===e.nodeType?e:Ov(O.current).body).getBoundingClientRect();return{top:t.top+cR(t,s.vertical),left:t.left+uR(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,u]),M=U.useCallback((e=>({vertical:cR(e,x.vertical),horizontal:uR(e,x.horizontal)})),[x.horizontal,x.vertical]),N=U.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===u)return{top:null,left:null,transformOrigin:dR(n)};const r=P();let o=r.top-n.vertical,a=r.left-n.horizontal;const i=o+t.height,s=a+t.width,c=_v(pR(l)),d=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&i>d){const e=i-d;o-=e,n.vertical+=e}if(null!==m&&a<m){const e=a-m;a-=e,n.horizontal+=e}else if(s>p){const e=s-p;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:dR(n)}}),[l,u,P,M,m]),[q,A]=U.useState(g),z=U.useCallback((()=>{const e=O.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)}),[N]);U.useEffect((()=>(C&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,C,z]);U.useEffect((()=>{g&&z()})),U.useImperativeHandle(i,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),U.useEffect((()=>{if(!g)return;const e=Rv((()=>{z()})),t=_v(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let D=w;"auto"!==w||S.muiSupportAuto||(D=void 0);const j=f||(l?Ov(pR(l)).body:void 0),F=null!=(r=null==b?void 0:b.root)?r:fR,$=null!=(o=null==b?void 0:b.paper)?o:hR,B=ib({elementType:$,externalSlotProps:qp({},L,{style:q?L.style:qp({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:_},ownerState:I,className:ev(T.paper,null==L?void 0:L.className)}),W=ib({elementType:F,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:I,className:ev(T.root,p)}),{slotProps:H}=W,V=Ap(W,sR);return ym.jsx(F,qp({},V,!Yv(F)&&{slotProps:H,disableScrollLock:C},{children:ym.jsx(S,qp({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),z()},onExited:()=>{A(!1)},timeout:D},k,{children:ym.jsx($,qp({},B,{children:d}))}))}))}));function gR(e){return rv("MuiMenuItem",e)}const vR=ov("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),bR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],yR=rx(Hx,{shouldForwardProp:e=>nx(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})=>qp({},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"}},[`&.${vR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nb(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nb(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nb(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})`:Nb(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${vR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${GC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${GC.inset}`]:{marginLeft:52},[`& .${Jk.root}`]:{marginTop:0,marginBottom:0},[`& .${Jk.inset}`]:{paddingLeft:36},[`& .${Kk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&qp({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Kk.root} svg`]:{fontSize:"1.25rem"}})))),xR=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:d}=n,p=Ap(n,bR),f=U.useContext(Ik),h=U.useMemo((()=>({dense:a||f.dense||!1,disableGutters:l})),[f.dense,a,l]),m=U.useRef(null);wv((()=>{r&&m.current&&m.current.focus()}),[r]);const g=qp({},n,{dense:h.dense,divider:i,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e;return qp({},i,Jv({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},gR,i))})(n),b=Av(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),ym.jsx(Ik.Provider,{value:h,children:ym.jsx(yR,qp({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:ev(v.focusVisible,s),className:ev(v.root,d)},p,{ownerState:g,classes:v}))})}));var SR;const wR=["children","classes","className","label","notched"],ER=rx("fieldset",{shouldForwardProp:nx})({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%"}),CR=rx("legend",{shouldForwardProp:nx})((({ownerState:e,theme:t})=>qp({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&&qp({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 kR=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],RR=rx(TE,{shouldForwardProp:e=>nx(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:_E})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return qp({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${zE.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zE.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${zE.focused} .${zE.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${zE.error} .${zE.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${zE.disabled} .${zE.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&qp({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),LR=rx((function(e){const{className:t,label:n,notched:r}=e,o=Ap(e,wR),a=null!=n&&""!==n,i=qp({},e,{notched:r,withLabel:a});return ym.jsx(ER,qp({"aria-hidden":!0,className:t,ownerState:i},o,{children:ym.jsx(CR,{ownerState:i,children:a?ym.jsx("span",{children:n}):SR||(SR=ym.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}})),OR=rx(PE,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:IE})((({theme:e,ownerState:t})=>qp({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}))),_R=U.forwardRef((function(e,t){var n,r,o,a,i;const l=lx({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=Ap(l,kR),v=(e=>{const{classes:t}=e;return qp({},t,Jv({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AE,t))})(l),b=EE(),y=SE({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=qp({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(n=null!=(r=h.root)?r:s.Root)?n:RR,w=null!=(o=null!=(a=h.input)?a:s.Input)?o:OR;return ym.jsx(qE,qp({slots:{root:S,input:w},renderSuffix:e=>ym.jsx(LR,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?i||(i=ym.jsxs(U.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:qp({},v,{notchedOutline:null})}))}));_R.muiName="Input";var IR=bS(ym.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),TR=bS(ym.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const PR=rx("span",{shouldForwardProp:nx})({position:"relative",display:"flex"}),MR=rx(IR)({transform:"scale(1)"}),NR=rx(TR)((({theme:e,ownerState:t})=>qp({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));function qR(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=qp({},e,{checked:t});return ym.jsxs(PR,{className:n.root,ownerState:o,children:[ym.jsx(MR,{fontSize:r,className:n.background,ownerState:o}),ym.jsx(NR,{fontSize:r,className:n.dot,ownerState:o})]})}const AR=U.createContext(void 0);function zR(e){return rv("MuiRadio",e)}const DR=ov("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),jR=["checked","checkedIcon","color","icon","name","onChange","size","className"],FR=rx(oC,{shouldForwardProp:e=>nx(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${Hm(n.size)}`],t[`color${Hm(n.color)}`]]}})((({theme:e,ownerState:t})=>qp({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nb("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${DR.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${DR.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const $R=ym.jsx(qR,{checked:!0}),BR=ym.jsx(qR,{}),WR=U.forwardRef((function(e,t){var n,r;const o=lx({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=$R,color:l="primary",icon:s=BR,name:c,onChange:u,size:d="medium",className:p}=o,f=Ap(o,jR),h=qp({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n,size:r}=e;return qp({},t,Jv({root:["root",`color${Hm(n)}`,"medium"!==r&&`size${Hm(r)}`]},zR,t))})(h),g=U.useContext(AR);let v=a;const b=kv(u,g&&g.onChange);let y=c;return g&&(void 0===v&&(v=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(g.value,o.value)),void 0===y&&(y=g.name)),ym.jsx(FR,qp({type:"radio",icon:U.cloneElement(s,{fontSize:null!=(n=BR.props.fontSize)?n:d}),checkedIcon:U.cloneElement(i,{fontSize:null!=(r=$R.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:ev(m.root,p)},f))}));function HR(e){return rv("MuiTooltip",e)}const UR=ov("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),VR=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const GR=rx(gE,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>qp({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${UR.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${UR.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${UR.arrow}`]:qp({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${UR.arrow}`]:qp({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),KR=rx("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Hm(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return qp({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Nb(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${UR.popper}[data-popper-placement*="left"] &`]:qp({transformOrigin:"right center"},t.isRtl?qp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):qp({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${UR.popper}[data-popper-placement*="right"] &`]:qp({transformOrigin:"left center"},t.isRtl?qp({marginRight:"14px"},t.touch&&{marginRight:"24px"}):qp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${UR.popper}[data-popper-placement*="top"] &`]:qp({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${UR.popper}[data-popper-placement*="bottom"] &`]:qp({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),ZR=rx("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Nb(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let XR=!1;const QR=new jv;let JR={x:0,y:0};function YR(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const eL=U.forwardRef((function(e,t){var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,b,y,x;const S=lx({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:C={},componentsProps:k={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:_=!1,disableTouchListener:I=!1,enterDelay:T=100,enterNextDelay:P=0,enterTouchDelay:M=700,followCursor:N=!1,id:q,leaveDelay:A=0,leaveTouchDelay:z=1500,onClose:D,onOpen:j,open:F,placement:$="bottom",PopperComponent:B,PopperProps:W={},slotProps:H={},slots:V={},title:G,TransitionComponent:K=yk,TransitionProps:Z}=S,X=Ap(S,VR),Q=U.isValidElement(E)?E:ym.jsx("span",{children:E}),J=Ry(),Y=(()=>{const e=U.useContext(pb);return null!=e&&e})(),[ee,te]=U.useState(),[ne,re]=U.useState(null),oe=U.useRef(!1),ae=_||N,ie=Fv(),le=Fv(),se=Fv(),ce=Fv(),[ue,de]=Nv({controlled:F,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=Mv(q),he=U.useRef(),me=qv((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ce.clear()}));U.useEffect((()=>me),[me]);const ge=e=>{QR.clear(),XR=!0,de(!0),j&&!pe&&j(e)},ve=qv((e=>{QR.start(800+A,(()=>{XR=!1})),de(!1),D&&pe&&D(e),ie.start(J.transitions.duration.shortest,(()=>{oe.current=!1}))})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),le.clear(),se.clear(),T||XR&&P?le.start(XR?P:T,(()=>{ge(e)})):ge(e))},ye=e=>{le.clear(),se.start(A,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:Se,onFocus:we,ref:Ee}=Zv(),[,Ce]=U.useState(!1),ke=e=>{Se(e),!1===xe.current&&(Ce(!1),ye(e))},Re=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Ce(!0),be(e))},Le=e=>{oe.current=!0;const t=Q.props;t.onTouchStart&&t.onTouchStart(e)},Oe=e=>{Le(e),se.clear(),ie.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(M,(()=>{document.body.style.WebkitUserSelect=he.current,be(e)}))},_e=e=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(e),me(),se.start(z,(()=>{ve(e)}))};U.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,pe]);const Ie=Av(Q.ref,Ee,te,t);G||0===G||(pe=!1);const Te=U.useRef(),Pe={},Me="string"==typeof G;R?(Pe.title=pe||!Me||O?null:G,Pe["aria-describedby"]=pe?fe:null):(Pe["aria-label"]=Me?G:null,Pe["aria-labelledby"]=pe&&!Me?fe:null);const Ne=qp({},Pe,X,Q.props,{className:ev(X.className,Q.props.className),onTouchStart:Le,ref:Ie},N?{onMouseMove:e=>{const t=Q.props;t.onMouseMove&&t.onMouseMove(e),JR={x:e.clientX,y:e.clientY},Te.current&&Te.current.update()}}:{}),qe={};I||(Ne.onTouchStart=Oe,Ne.onTouchEnd=_e),O||(Ne.onMouseOver=YR(be,Ne.onMouseOver),Ne.onMouseLeave=YR(ye,Ne.onMouseLeave),ae||(qe.onMouseOver=be,qe.onMouseLeave=ye)),L||(Ne.onFocus=YR(Re,Ne.onFocus),Ne.onBlur=YR(ke,Ne.onBlur),ae||(qe.onFocus=Re,qe.onBlur=ke));const Ae=U.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=W.popperOptions)&&e.modifiers&&(t=t.concat(W.popperOptions.modifiers)),qp({},W.popperOptions,{modifiers:t})}),[ne,W]),ze=qp({},S,{isRtl:Y,arrow:w,disableInteractive:ae,placement:$,PopperComponentProp:B,touch:oe.current}),De=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return Jv({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Hm(a.split("-")[0])}`],arrow:["arrow"]},HR,t)})(ze),je=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:GR,Fe=null!=(o=null!=(a=null!=(i=V.transition)?i:C.Transition)?a:K)?o:yk,$e=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:KR,Be=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:ZR,We=eb(je,qp({},W,null!=(d=H.popper)?d:k.popper,{className:ev(De.popper,null==W?void 0:W.className,null==(p=null!=(f=H.popper)?f:k.popper)?void 0:p.className)}),ze),He=eb(Fe,qp({},Z,null!=(h=H.transition)?h:k.transition),ze),Ue=eb($e,qp({},null!=(m=H.tooltip)?m:k.tooltip,{className:ev(De.tooltip,null==(g=null!=(v=H.tooltip)?v:k.tooltip)?void 0:g.className)}),ze),Ve=eb(Be,qp({},null!=(b=H.arrow)?b:k.arrow,{className:ev(De.arrow,null==(y=null!=(x=H.arrow)?x:k.arrow)?void 0:y.className)}),ze);return ym.jsxs(U.Fragment,{children:[U.cloneElement(Q,Ne),ym.jsx(je,qp({as:null!=B?B:gE,placement:$,anchorEl:N?{getBoundingClientRect:()=>({top:JR.y,left:JR.x,right:JR.x,bottom:JR.y,width:0,height:0})}:ee,popperRef:Te,open:!!ee&&pe,id:fe,transition:!0},qe,We,{popperOptions:Ae,children:({TransitionProps:e})=>ym.jsx(Fe,qp({timeout:J.transitions.duration.shorter},e,He,{children:ym.jsxs($e,qp({},Ue,{children:[G,w?ym.jsx(Be,qp({},Ve,{ref:re})):null]}))}))}))]})}));function tL(){const{useModelStore:e}=U.useContext(sS).modelStore;return e()}function nL(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=tL(),[o]=function(){const{useRpcRequestSessionModelStore:e}=U.useContext(sS).modelStore;return e()}(),[a,i]=U.useState();for(var l=arguments.length,s=new Array(l>2?l-2:0),c=2;c<l;c++)s[c-2]=arguments[c];return U.useEffect((()=>{if(!t)return;(async()=>{let a=o.get(n);a||(a=t.createSessionObject(e),o.set(n,a));const l=await a;r.set(n,l),i(l)})()}),[t,...s]),[a]}const rL={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function oL(e){return nL(rL,e)}const aL=e=>new Promise((t=>{setTimeout(t,e)})),iL=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=l(l({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:l({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=l(l({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let i=n.get(r);return i||(i={}),i[o]=a,n.set(r,i),a};function lL(e,t){const n=e?"".concat(e.id):null,[r]=function(){const{useRpcResultStore:e}=U.useContext(sS).modelStore;return e()}(),[o,a]=U.useReducer(iL,n?r.get(n):null),[i]=function(){const{useModelChangedStore:e}=U.useContext(sS).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=U.useContext(sS).modelStore;return e()}();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let i=s[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},s[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{await aL(0);const o=await i.rpc;a({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(i.rpcRetry||(i.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return U.useEffect((()=>{e&&c()}),[e,i.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function sL(e){return lL(e,"getLayout")}function cL(e){return lL(e,"getAppLayout")}function uL(){const[e,t]=U.useState(),[n,r]=U.useState(),o=U.useCallback((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:o,height:a}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:a})};return U.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[o,n,e]}function dL(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function pL(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const i=l({fontSize:dL(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return V.createElement("i",{style:i},V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.map(((e,t)=>{let{type:n,attrs:r}=e;return V.createElement(n,a({key:t},r))}))))}var fL=e=>pL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var hL=e=>pL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const mL=e=>l(l({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var gL=e=>pL(mL(e));var vL=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),bL=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},yL=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=bL(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},bL(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),vL(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,a=n.minimumBatchSize,i=void 0===a?10:a,l=n.threshold,s=void 0===l?15:l,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,a=e.stopIndex,i=[],l=null,s=null,c=o;c<=a;c++)t(c)?null!==s&&(i.push(l,s),l=s=null):(s=c,null===l&&(l=c));if(null!==s){for(var u=Math.min(Math.max(s,l+r-1),n-1),d=s+1;d<=u&&!t(d);d++)s=d;i.push(l,s)}if(i.length)for(;i[1]-i[0]+1<r&&i[0]>0;){var p=i[0]-1;if(t(p))break;i[0]=p}return i}({isItemLoaded:r,itemCount:o,minimumBatchSize:i,startIndex:Math.max(0,e-s),stopIndex:Math.min(o-1,t+s)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],a=e[r+1],i=n(o,a);null!=i&&i.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:a})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}(U.PureComponent);const xL=["S","XS"],SL=e=>e.reduce(((e,t)=>e.concat(t)));function wL(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!xL.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return SL(t)}async function EL(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let a=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{a=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){a=!1}a||(o?t.cancel():t.clear())}return a}const CL="RowColumn",kL={row:"".concat(CL,"-row"),rowBorderBottom:"".concat(CL,"-rowBorderBottom"),column:"".concat(CL,"-column"),fieldRoot:"".concat(CL,"-fieldRoot"),cell:"".concat(CL,"-cell"),labelText:"".concat(CL,"-labelText"),labelDense:"".concat(CL,"-labelDense"),highlighted:"".concat(CL,"-highlighted"),checkboxLabel:"".concat(CL,"-checkboxLabel"),icon:"".concat(CL,"-icon"),S:"".concat(CL,"-S"),XS:"".concat(CL,"-XS"),A:"".concat(CL,"-A"),X:"".concat(CL,"-X"),frequencyCount:"".concat(CL,"-frequencyCount"),barContainer:"".concat(CL,"-barContainer"),bar:"".concat(CL,"-bar"),barSelected:"".concat(CL,"-barSelected"),barWithCheckbox:"".concat(CL,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(CL,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(CL,"-excludedTextWithCheckbox")},RL=".".concat(kL.fieldRoot),LL=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function OL(e){var t;let{selectionState:n,selections:r,checkboxes:o=!1,doc:a=document,loaderRef:i}=e;const l=U.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});U.useEffect((()=>{var e;if(null===(e=i.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=i.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=i.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const s=async()=>{var e;return(null===(e=n.selectDisabled)||void 0===e||!e.call(n))&&(n.setSelectableValuesUpdating(),EL({selections:r,elemNumbers:l.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:l.current.toggle}))},c=(e,t)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return SL(t)}(n.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],r)},u=e=>{const{startElemNumber:t}=l.current;if(t===e)return;const r=c(l.current.startElemNumber,e);n.updateItems(r,!0,l.current.elemNumbers)},d=U.useCallback((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&LL(e.nativeEvent);l.current.elemNumbers=[t],l.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),l.current.active=!1,s()}),[]),p=U.useCallback((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&LL(e);l.current.isRange=!1,l.current.startElemNumber=t,l.current.elemNumbers=[t],l.current.toggle=r,l.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(l.current.active=!1,s()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),f=U.useCallback((e=>{if(0===e.button&&l.current.active){if(l.current.active=!1,l.current.isRange){const t=+e.currentTarget.getAttribute("data-n");u(t)}s()}}),[]),h=U.useCallback((e=>{0===e.button&&l.current.active&&(l.current.active=!1,s())}),[]),m=U.useCallback((e=>{if(!l.current.active)return;l.current.isRange||(l.current.isRange=!0,n.isSelected(l.current.startElemNumber)||(n.updateItem(l.current.startElemNumber,!0),l.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");u(t)}),[]),g=U.useCallback((e=>{var t,r;if(l.current.active||l.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void s();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(RL))||void 0===t?void 0:t.getAttribute("data-n")),a=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(RL))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void s();l.current.active=!0;c(o,a).length<7&&(l.current.touchRangeSmall=!0),l.current.elemNumbers=[],l.current.touchElemNumbers=[o,a]}),[]),v=U.useCallback((()=>{if(2!==l.current.touchElemNumbers.length)return;if(l.current.touchRangeSmall)return l.current.touchRangeSmall=!1,l.current.touchElemNumbers=[],void(l.current.active=!1);const[e,t]=l.current.touchElemNumbers;l.current.startElemNumber=e,u(t),l.current.touchElemNumbers=[],l.current.active=!1,l.current.toggle=!0,s()}),[]);U.useEffect((()=>(a.addEventListener("mouseup",h),()=>{a.removeEventListener("mouseup",h)})),[h]),U.useEffect((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return r.on("clearItemStates",e),r.on("deactivated",e),r.on("cleared",t),()=>{r.removeListener("clearItemStates",e),r.removeListener("deactivated",e),r.removeListener("cleared",t)}}),[r]);const b={};return o?Object.assign(b,{onChange:d}):Object.assign(b,{onMouseUp:f,onMouseDown:p,onMouseEnter:m,onTouchStart:g,onTouchEnd:v}),{interactionEvents:b,select:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(e=n.selectDisabled)&&void 0!==e&&e.call(n))return!1;const i=!n.isSingleSelect&&LL(null==a?void 0:a.nativeEvent);i||n.clearItemStates(!0);const l=[];return n.updateItems(t,o,l),n.setSelectableValuesUpdating(),EL({selections:r,elemNumbers:o?l:t,isSingleSelect:n.isSingleSelect,toggle:i})}}}const _L=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var IL=e=>pL(_L(e));const TL=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,PL=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||TL(t))&&n};const ML=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const a=[t?kL.column:kL.row];n||a.push(kL.rowBorderBottom);const i=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?kL.XS:kL.S;break;case"S":case"L":t=kL.S;break;case"A":t=!!r&&kL.A;break;case"X":case"XL":t=!!r&&kL.X;break;default:t=!1}return t}({cell:r,showGray:o});return i&&a.push(i),a},NL=9,qL=4,AL=7,zL=12+2*(AL+1),DL=80,jL=10,FL=150,$L=56,BL=20,WL="-",HL=32,UL=29,VL=20,GL=4,KL=e=>e.filter((e=>!!e)).join(" ").trim(),ZL=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),a=parseFloat(o?r:t);return"".concat(o?a:a/n*100,"%")},XL=e=>e||WL,QL=["backgroundColor"],JL=e=>{let{sizes:t,frequencyMode:n,isGridMode:r,freqHitsValue:o}=e;if("P"===n)return"".concat(t.freqMinWidth,"px");return r&&!o?"max-content":"25%"},YL=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},eO=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(kL.labelText)]:{color:r.selections.selected}}:{};const a=r.selections,i=a[o],l=a["".concat(o,"Contrast")];return{background:i,color:l,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(kL.labelText)]:{color:l},["& .".concat(kL.icon)]:{color:l}}},tO={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},nO=rx("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:a,direction:i,sizes:c,frequencyMode:u,freqHitsValue:d,styles:p}=e;const f=s(p.content,QL),h=eO({theme:t,styles:p,checkboxes:n,selectionState:"selected"}),m=eO({theme:t,styles:p,checkboxes:n,selectionState:"excluded"}),g={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},v={opacity:"30%"};return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(kL.row)]:l({flexWrap:"nowrap"},p.content),["& .".concat(kL.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(kL.column)]:l({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},p.content),["& .".concat(kL.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(NL,"px"),paddingRight:0},["& .".concat(kL.labelText)]:l(l({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},tO),f),["& .".concat(kL.labelDense)]:{fontSize:12},["& .".concat(kL.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(kL.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":l(l({},tO),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(kL.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:f.color},["& .".concat(kL.S)]:l(l({},h),{},{border:r?"none":void 0}),["& .".concat(kL.XS)]:l(l({},eO({theme:t,styles:p,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(kL.A)]:l(l({},eO({theme:t,styles:p,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(kL.X)]:l(l({},m),{},{border:r?"none":void 0}),["& .".concat(kL.X,", & .").concat(kL.XS)]:{border:r?"none":void 0,["& .".concat(kL.barSelected," .bar-filled")]:l({},g)},["& .".concat(kL.frequencyCount)]:l(l({zIndex:3,justifyContent:"flex-end"},tO),{},{flex:"0 0 ".concat(JL({sizes:c,frequencyMode:u,isGridMode:r,freqHitsValue:d})),minWidth:!r&&"P"!==u&&d?c.freqMinWidth:"max-content",maxWidth:YL({sizes:c,frequencyMode:u,isGridMode:r}),textAlign:"rtl"===i?"left":"right",paddingLeft:"rtl"!==i?"8px":0}),["&.".concat(kL.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(kL.bar)]:{height:a?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":l({},g)},["& .".concat(kL.barSelected)]:{"& .bar-filled":l({},v)},["& .".concat(kL.barWithCheckbox)]:{left:"rtl"===i?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(kL.barSelectedWithCheckbox)]:{"& .bar-filled":l(l({},v),{},{backgroundColor:p.selections.selected||"#BFE5D0",borderColor:p.selections.selected})},["& .".concat(kL.excludedTextWithCheckbox)]:{color:p.content.color,fontStyle:"italic"}}}));var rO=V.memo(nO);const oO="ListBoxCheckbox",aO={cbIcon:"".concat(oO,"-cbIcon"),cbIconChecked:"".concat(oO,"-cbIconChecked"),cbIconExcluded:"".concat(oO,"-cbIconExcluded"),cbIconAlternative:"".concat(oO,"-cbIconAlternative"),checkbox:"".concat(oO,"-checkbox"),dense:"".concat(oO,"-dense")},iO=rx(mC,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(aO.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat(aO.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(aO.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(aO.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(aO.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(aO.dense)]:{padding:"4px 8px"}}})),lO=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return V.createElement("span",{className:e.cbIcon},n&&V.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function sO(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,styles:i,showGray:l=!0,dataN:s}=e;return V.createElement(iO,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[aO.checkbox,o&&aO.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":s},name:r,icon:lO(aO,l,a),checkedIcon:V.createElement("span",{className:aO.cbIconChecked}),styles:i})}const cO={radioButton:"".concat("ListBoxRadioButton","-radioButton")},uO=rx(WR,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(cO.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function dO(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a,styles:i}=e;return V.createElement(uO,{checked:n,onChange:t,value:r,name:r,className:cO.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:o?"small":"medium",dense:o,styles:i})}function pO(e){let{label:t,dense:n,showGray:r=!0,checkboxes:o,cell:a,valueTextAlign:i}=e;return V.createElement(zS,{component:"span",variant:"body2",className:KL([kL.labelText,n&&kL.labelDense,r&&PL({cell:a,checkboxes:o})&&kL.excludedTextWithCheckbox]),align:i,dir:"auto"},V.createElement("span",null,t))}function fO(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}=e;return"string"==typeof t?V.createElement(pO,{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}):t}function hO(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;const f=V.createElement(sO,{onChange:t,label:n,checked:o,dense:a,excluded:TL(i),isGridCol:l,showGray:s,dataN:r,styles:p}),h=V.createElement(dO,{onChange:t,label:n,checked:o,dense:a,dataN:r,styles:p});return V.createElement(ok,{control:c?h:f,className:kL.checkboxLabel,label:V.createElement(fO,{label:n,dense:a,showGray:s,checkboxes:u,cell:i,valueTextAlign:d}),key:r})}function mO(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const a=t.map(((e,t)=>{let[n,r]=e;return V.createElement("span",{id:t,className:r?kL.highlighted:""},n)}));return V.createElement(pO,{label:a,dense:n,showGray:r,checkboxes:o})}function gO(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:a,qElemNumber:i,isSelected:l,cell:s,isGridCol:c,isSingleSelect:u,valueTextAlign:d,styles:p}=e;const f=V.createElement(mO,{labels:n,dense:o,showGray:a,checkboxes:r});return r?V.createElement(hO,{onChange:t,label:f,qElemNumber:i,isSelected:l,dense:o,cell:s,isGridCol:c,showGray:a,isSingleSelect:u,checkboxes:r,valueTextAlign:d,styles:p}):f}var vO=V.memo((function(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;return u?V.createElement(hO,{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}):V.createElement(pO,{label:n,dense:a,showGray:!0,checkboxes:u,cell:i,valueTextAlign:d})}));function bO(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&XL(t)!==WL))return;const i=ZL({qFrequency:t,checkboxes:r,frequencyMax:a});return V.createElement(YE,{className:KL([kL.bar,r&&kL.barWithCheckbox,o&&(r?kL.barSelectedWithCheckbox:kL.barSelected)])},V.createElement(YE,{className:"bar-filled",width:i}))}function yO(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const a=XL(null==t?void 0:t.qFrequency);return V.createElement(hk,{item:!0,style:{display:"flex",alignItems:"center"},className:kL.frequencyCount,"aria-label":a,title:a},V.createElement(zS,{noWrap:!0,color:"inherit",variant:"body2",className:KL([r&&kL.labelDense,kL.labelText,o&&PL({cell:t,checkboxes:n})&&kL.excludedTextWithCheckbox])},a))}function xO(e){let{dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:o}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:o?"100%":"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const SO=rx(hk,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:a,fillHeight:i}=e;const s="padding".concat("rtl"===a?"Left":"Right");return{["&.".concat(kL.fieldRoot)]:l(l({},xO({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:i})),{},{[s]:o?"8px":void 0})}}));const wO=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:e=>e===wO.ARROW_UP||e===wO.ARROW_DOWN||e===wO.ARROW_LEFT||e===wO.ARROW_RIGHT});function EO(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function CO(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))||(null==e?void 0:e.closest(".qv-gs-listbox"))}function kO(e){let{containerRef:t,enabled:n}=e;const[r,o]=U.useState(!1),a={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const a=CO(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var i;null==(i=t.current)||i.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),EO(t.current),e&&a&&(a.setAttribute("tabIndex",0),t.current.setAttribute("tabIndex",-1),a.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),a=null==e?void 0:e.querySelector(".value.last-focused"),i=null==e?void 0:e.querySelector(".value.selector, .value"),l=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=(null==e?void 0:e.querySelector(".listbox-cyclic-button"))||r||a||i||s||l;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return null==n||n.setAttribute("tabIndex",0),null==n||n.focus(),n}};return a}const RO=e=>+e.getAttribute("data-n"),LO=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},OO=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused"),n=null==e?void 0:e.querySelector(".value.selector"),r=null==e?void 0:e.querySelector(".value"),o=t||n||r;return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),EO(e),o},_O=e=>{const t=null==e?void 0:e.querySelector(".listbox-cyclic-button:not(:disabled)");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},IO=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),a=n.closest(".listbox-container"),i=CO(a),l=1===(null==i?void 0:i.querySelectorAll(".listbox-container").length);if(o||l)t.blur(!0);else{EO(a),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}},TO=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:a,keyCode:i,numCells:l}=e;const s=e=>{let t;return"row"===a?(t=l%o,e<t?r:r-1):(t=l%r,e<o-1?r:t)};let c=t,u=n;if(i===wO.ARROW_DOWN)if(t>=s(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=s(n-1)-1,u=n-1}else c=t-1;if("row"===a)return c*o+u;const d=l%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};const PO={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function MO(e){var t,n;let{index:r,rowIndex:o,columnIndex:a,style:i,data:s}=e;const{onChange:c,onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onTouchStart:h,onTouchEnd:m,pages:g,isLocked:v,column:b=!1,checkboxes:y=!1,textAlign:x,direction:S,layoutOptions:w={},freqIsAllowed:E,isSingleSelect:C,actions:k,frequencyMax:R="",histogram:L=!1,keyboard:O,showGray:_=!0,showTick:I=!0,columnCount:T=1,rowCount:P=1,dataOffset:M,deducedFrequencyMode:N,focusListItems:q,listCount:A,sizes:z,translator:D,showSearch:j,isModal:F,contentFontStyle:$,styles:B,fillHeight:W}=s,{dense:H=!1,dataLayout:G="singleColumn",layoutOrder:K}=w,{itemPadding:Z}=z;let X,Q;const J={max:null,currentIndex:null};if("number"==typeof o&&"number"==typeof a){"row"===K?(X=o*T+a,J.max=P,J.currentIndex=o):(X=a*P+o,J.max=T,J.currentIndex=a);const e=0;Q=l(l({},i),{},{height:W?"100%":i.height,left:e+(0===a?i.left:Number(i.left)+a*e),top:0===o?i.top:Number(i.top)+o*e})}else X=r,J.max=A,J.currentIndex=r,Q=l({},i);X+=M;const[Y,ee]=U.useState(null);U.useEffect((()=>{null!==Y&&(0===J.currentIndex&&q.first&&(Y.focus(),q.setFirst(!1)),J.currentIndex===J.max-1&&q.last&&(Y.focus(),q.setLast(!1)))}),[Y,q.first,q.last]);const te=U.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:a,setScrollPosition:i,focusListItems:l,keyboard:s,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:f,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===wO.ARROW_LEFT||e===wO.ARROW_RIGHT||"number"!=typeof p||"number"!=typeof f){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=TO({rowIndex:p,columnIndex:f,rowCount:u,columnCount:d,layoutOrder:h,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const v=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:f,shiftKey:h=!1,ctrlKey:b=!1,metaKey:y=!1}=p;switch(f){case wO.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;if(d.classList.add("last-focused"),null==s||!s.enabled){if(!n)return;return s.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(h){LO(t)||_O(t)||(n?s.focusSelection():IO(e,s));break}s.focusSelection()||_O(t)||LO(t)||(d.blur(),IO(e,s));break}case wO.SHIFT:v(!0);break;case wO.SPACE:t([RO(d)],!1,e);break;case wO.ARROW_DOWN:case wO.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([RO(d)],!0),v(!1)),t([RO(u)],!0));break;case wO.ARROW_UP:case wO.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([RO(d)],!0),v(!1)),t([RO(u)],!0));break;case wO.ENTER:if(o(),void 0===c)return;break;case wO.ESCAPE:if(void 0===c)return void a();if(!c())return;a();break;case wO.HOME:if(l.setFirst(!0),b){null==i||i("overflowStart");break}null==i||i("start");break;case wO.END:if(l.setLast(!0),b){null==i||i("overflowEnd");break}null==i||i("end");break;case wO.A:if(b||y){n();break}return;case wO.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(l(l({},k),{},{focusListItems:q,keyboard:O,isModal:F,rowCount:P,columnCount:T,rowIndex:o,columnIndex:a,layoutOrder:K})),[k,null==O?void 0:O.innerTabStops,P,T,o,a,K]),ne=U.useMemo((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:g,cellIndex:X})),[g,X]),re="S"===(null==ne?void 0:ne.qState)||"XS"===(null==ne?void 0:ne.qState)||"L"===(null==ne?void 0:ne.qState)||"XL"===(null==ne?void 0:ne.qState),oe=U.useMemo((()=>ML({column:b,histogram:L,cell:ne,showGray:_})),[null==ne?void 0:ne.qState,L,H]),ae=U.useCallback((e=>{e.preventDefault()}),[y]),ie=U.useMemo((()=>ne&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let a;return a=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(a)?a:"left"}({direction:S,cell:ne,textAlign:x})),[S,ne,x]);if(!ne)return null;const le="grid"===G&&"column"===K,se=null!==(t=null==ne?void 0:ne.qText)&&void 0!==t?t:"";let ce;if(null!==(n=ne.qHighlightRanges)&&void 0!==n&&null!==(n=n.qRanges)&&void 0!==n&&n.length){const e=ne.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ce=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const a=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,a=[];return r>n&&a.push([e.slice(n,r),!1]),a.push([e.slice(r,r+o),!0]),a}(e,r,a));const i=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return i&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(se,e)}const ue={alignItems:"center",display:"flex",fontSize:"8px"},de="rtl"===S,pe={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:de?8:y?0:void 0,paddingRight:y?0:de?8:0,justifyContent:ie,textAlign:ie},fe=0===r,he=re&&v,me=!y&&re&&!v,ge=!y&&I,ve=y||!I,be=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:a,maxIndex:i,showSearch:l}=e;const s=PO[r],c=t.get(s),u=[];if(o){const e=l?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[a+1,i+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:D,label:se,qState:ne.qState,currentIndex:J.currentIndex,maxIndex:J.max,showSearch:j}),ye=!de&&"right"===ie||de&&"left"===ie;return V.createElement(rO,{className:kL.barContainer,checkboxes:y,style:Q,styles:B,isGridCol:le,isGridMode:"grid"===G,dense:H,direction:S,sizes:z,frequencyMode:N,freqHitsValue:ye,contentFontStyle:$,"data-testid":"listbox.item"},V.createElement(SO,{role:"row","aria-label":be,"aria-selected":re,"aria-setsize":J.max,"aria-rowindex":J.currentIndex,ref:ee,container:!0,dataLayout:G,cellPaddingRight:ve,layoutOrder:K,itemPadding:Z,gap:0,className:KL(["value",...oe]),classes:{root:kL.fieldRoot},onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onKeyDown:te,onTouchStart:h,onTouchEnd:m,onContextMenu:ae,tabIndex:fe&&O.innerTabStops?0:-1,"data-n":null==ne?void 0:ne.qElemNumber,direction:S,fillHeight:W},(null==ne?void 0:ne.qFrequency)&&V.createElement(bO,{qFrequency:null==ne?void 0:ne.qFrequency,histogram:L,checkboxes:y,isSelected:re,frequencyMax:R}),V.createElement(hk,{item:!0,style:pe,className:KL([kL.cell,kL.selectedCell]),title:"".concat(se)},ce?V.createElement(gO,{onChange:c,labels:ce,checkboxes:y,dense:H,showGray:_,qElemNumber:ne.qElemNumber,isSelected:re,cell:ne,isGridCol:le,isSingleSelect:C,valueTextAlign:ie,styles:B}):V.createElement(vO,{onChange:c,label:se,qElemNumber:ne.qElemNumber,isSelected:re,dense:H,cell:ne,isGridCol:le,showGray:_,isSingleSelect:C,checkboxes:y,valueTextAlign:ie,styles:B})),E&&V.createElement(yO,{cell:ne,checkboxes:y,dense:H,showGray:_}),ge&&V.createElement(hk,{item:!0,className:kL.icon},he&&V.createElement(hL,{style:ue,size:"small"}),me&&V.createElement(IL,{style:ue,size:"small"}))))}var NO=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function qO(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||NO(r)&&NO(o)))return!1;var r,o;return!0}function AO(e,t){var n;void 0===t&&(t=qO);var r,o=[],a=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}var zO="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function DO(e){cancelAnimationFrame(e.id)}function jO(e,t){var n=zO();var r={id:requestAnimationFrame((function o(){zO()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var FO=-1;function $O(e){if(void 0===e&&(e=!1),-1===FO||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),FO=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return FO}var BO=null;function WO(e){if(void 0===e&&(e=!1),null===BO||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?BO="positive-descending":(t.scrollLeft=1,BO=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),BO}return BO}var HO=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function UO(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,i=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,Sx(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Sx(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=AO((function(e,t,n,o,a,i,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:a,visibleColumnStopIndex:i,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=AO((function(e,t,n,o,a){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:a})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,i=r.props,l=i.columnWidth,s=i.direction,c=i.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:a(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=AO((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,a=t.scrollLeft,i=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===a&&e.scrollTop===i)return null;var t=r.props.direction,c=a;if("rtl"===t)switch(WO()){case"negative":c=-a;break;case"positive-descending":c=s-o-a}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(i,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<a?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<i?"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&&DO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=jO(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}dx(t,e),t.getDerivedStateFromProps=function(e,t){return VO(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,a=this.props,u=a.columnCount,d=a.height,p=a.rowCount,f=a.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=$O();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=i(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,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(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(WO()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var a=o.clientWidth,i=o.scrollWidth;o.scrollLeft=i-a-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&DO(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,a=e.height,s=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?HO:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],C=this._getVerticalRangeToRender(),k=C[0],R=C[1],L=[];if(r>0&&g)for(var O=k;O<=R;O++)for(var _=w;_<=E;_++)L.push(U.createElement(t,{columnIndex:_,data:d,isScrolling:b?x:void 0,key:f({columnIndex:_,data:d,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,_)}));var I=i(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return U.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:sx({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},U.createElement(c||u||"div",{children:L,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 a=this._getHorizontalRangeToRender(),i=a[0],l=a[1],s=a[2],c=a[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(i,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,a=e.overscanColumnsCount,i=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||a||i||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,a=e.rowCount,i=this.state,l=i.isScrolling,s=i.verticalScrollDirection,c=i.scrollTop,u=r||o||n||1;if(0===t||0===a)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,u),g=l&&"forward"!==s?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(a-1,h+g)),d,h]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var VO=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},GO=function(e,t){return e};function KO(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,Sx(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Sx(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=AO((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=AO((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,a=r.props,i=a.direction,l=a.itemSize,s=a.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&i);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===i||"horizontal"===s,h="rtl"===i,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=AO((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,a=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,i=o;if("rtl"===t)switch(WO()){case"negative":i=-o;break;case"positive-descending":i=a-n-o}return i=Math.max(0,Math.min(i,a-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:i,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,a=t.scrollTop;r.setState((function(e){if(e.scrollOffset===a)return null;var t=Math.max(0,Math.min(a,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&&DO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=jO(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}dx(t,e),t.getDerivedStateFromProps=function(e,t){return ZO(e,t),u(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,i=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?$O():0:s.scrollHeight>s.clientHeight?$O():0}this.scrollTo(a(this.props,e,t,i,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 a=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(WO()){case"negative":a.scrollLeft=-o;break;case"positive-ascending":a.scrollLeft=o;break;default:var i=a.clientWidth,l=a.scrollWidth;a.scrollLeft=l-i-o}else a.scrollLeft=o;else a.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&DO(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,a=e.height,i=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?GO:d,f=e.layout,h=e.outerElementType,m=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,w=this._getRangeToRender(),E=w[0],C=w[1],k=[];if(c>0)for(var R=E;R<=C;R++)k.push(U.createElement(t,{data:u,key:p(R,u),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return U.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:sx({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},U.createElement(l||s||"div",{children:k,ref:i,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"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 a=this.state,i=a.scrollDirection,l=a.scrollOffset,s=a.scrollUpdateWasRequested;this._callOnScroll(i,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,a=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=i(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==a?1:Math.max(1,n),p=o&&"forward"!==a?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ZO=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},XO=UO({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,a){var i=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,i*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+a+l);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,a){var i=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*i-l),u=Math.min(c,t*i),d=Math.max(0,t*i-l+a+i);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,a=e.width,i=t*r,l=Math.ceil((a+n-i)/r);return Math.max(0,Math.min(o-1,t+l-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,a=e.height,i=t*r,l=Math.ceil((a+n-i)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),QO=KO({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,a){var i=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===i||"horizontal"===u?d:l,f=Math.max(0,s*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+a);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,a=e.itemCount,i=e.itemSize,l=e.layout,s=e.width,c=t*i,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/i);return Math.max(0,Math.min(a-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const JO="#BBB",YO="#f1f1f1",e_={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const t_=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,n_=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,r_=(e,t,n,r)=>e===t*n+r+n;function o_(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:a,overflowDisclaimer:i,qCardinal:l,dataOffset:s}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=t_(t,c),d=c?r.column:r.row,p=(c?o:a)>=d,f=r_(l,u,c?a:o,s),h=!!s&&n_(t,c),m=p&&!f&&u>=d-1||h||i.state.show;i.set(m)}const{StyledFixedSizeList:a_,StyledFixedSizeGrid:i_}=function(){const e=e=>({scrollbarColor:"".concat(JO," ").concat(YO),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:YO},"&::-webkit-scrollbar-thumb":{backgroundColor:JO,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Yh(QO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(e_.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:Yh(XO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(e_.styledScrollbars)]:e(n)}}))}}();const l_=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));const r=n.measureText(e);return Math.ceil(r.width||0)},s_=e=>{const t=U.useMemo((()=>"text"in e?e:{}),[e]);return U.useMemo((()=>l_(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function c_(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function u_(e){let{isGridMode:t,dense:n}=e;let r=n?VL:t?HL:UL;return t&&(r+=GL),r}function d_(e){let{layout:t,width:n,height:r,listCount:o,count:a,freqIsAllowed:i,checkboxes:l,styles:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==s?void 0:s.content)||{},v="".concat(m," ").concat(g),b=s_({text:c_(t),font:v}),y=s_({text:c_(5),font:v}),x=s_({text:c_(8),font:v}),S=i?y:0,w=l?BL:0;let E=$L+S+w;!l&&E>=DL&&(E+=BL);let C,k,R,L,O=b+18+S+w;!l&&O>=DL&&(O+=BL),O=Math.min(FL,Math.max(O,E));const _=u_({isGridMode:"grid"===h,dense:f}),I=null!=r?r:8*_;if(u){let e=n;"row"===u?(C={overflowX:"hidden"},e+=2*GL,({rowCount:L,columnWidth:R,columnCount:k}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:a}=e;const i=(null==t?void 0:t.maxColumns)||3,l=r-jL;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(a,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,i,c),s=Math.max(s,1);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:O,itemMinWidth:E}))):(C={overflowY:"hidden"},({rowCount:L,columnWidth:R,columnCount:k}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:a,columnAutoWidth:i,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(a/r);t=!1!==n.auto?u:Math.min(o,c,u),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(i,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:_,listCount:o,listHeight:I,columnAutoWidth:O,containerWidth:e,itemMinWidth:E})))}k=("singleColumn"===h?1:k)||1,L=("singleColumn"===h?a:L)||o;const T=c.dense?838e3:577e3;L=Math.min(L,T);const P=Math.floor(3355e4/R);k=Math.min(k,P)||1;const M=L*k,N=Math.min(o,M);return{columnCount:k,columnWidth:R,rowCount:L,overflowStyling:C,itemHeight:_,listHeight:I,listWidth:n,scrollBarWidth:jL,count:a,listCount:N,maxCount:{row:T,column:P},itemPadding:GL,textWidth:b,freqMinWidth:y,freqMaxWidth:x}}const p_=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),a=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?a:r};const[f_,h_]=dS({});function m_(e){const t="".concat(e.id),[n]=f_();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const g_=rx(zS,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return l({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function v_(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=U.useContext(sS);return V.createElement(eL,{title:o?a.get(n):""},V.createElement(g_,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},a.get(n)))}var b_={},y_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(y_);var x_,S_=y_.exports,w_={},E_=r(xS);var C_=S_;Object.defineProperty(b_,"__esModule",{value:!0});var k_=b_.default=void 0,R_=C_((x_||(x_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=E_}(w_)),w_)),L_=ym;k_=b_.default=(0,R_.default)((0,L_.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const O_=rx(RS)((e=>{let{theme:t,left:n}=e;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(t.palette.divider),width:"calc(100% - 11px)",left:n}})),__=rx("div")((()=>({paddingLeft:"6px",flexGrow:1}))),I_=rx("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),T_=rx(k_)((()=>({fontSize:"14px"})));function P_(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const a="function"==typeof n,i=r?370:282,l=Math.max(o/2-i/2,0),s=Math.min(i,o)-42,c=r&&o<i;return V.createElement(O_,{left:l,style:{maxWidth:i}},V.createElement(__,null,V.createElement(v_,{text:t,dense:r,width:s,tooltip:c})),V.createElement(I_,{dense:r},a&&V.createElement(TS,{"aria-label":"close",onClick:()=>n()},V.createElement(T_,null))))}const M_=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const N_=80;function q_(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>N_,{frequencyEnabled:a=!1}=(null==n?void 0:n.qListObject)||{},i=!["N",void 0].includes(r);return!(!o||!i&&!a)}const A_=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e)(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},z_=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=U.useState(),[a,i]=U.useState(n);return U.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=A_(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),i(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:a}};const D_=["isLoadingData"],j_=100,F_=rx("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function $_(e){var t,n;let{model:r,app:o,constraints:i,layout:c,selections:u,selectionState:d,direction:p,checkboxes:f,height:h,width:m,frequencyMode:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x=!1,keyboard:S={},showGray:w=!0,scrollState:E,keyScroll:C={state:{},reset:()=>{}},currentScrollIndex:k={set:()=>{}},renderedCallback:R,onCtrlF:L,showSearch:O,isModal:_,styles:I}=e;const{translator:T}=U.useContext(sS),[P,M]=U.useState(!1),N=!(!c||!c.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:q=f,histogram:A}=null!=c?c:{},z=U.useRef(null),D=U.useRef({queue:[],validPages:!1,dataOffset:0}),j=U.useRef({pages:[]}),{frequencyMax:F,awaitingFrequencyMax:$}=z_(o,c),B=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:a,postProcessPages:i,listData:l}=e;const[s,c]=U.useState(!1),[u,d]=U.useState([]);let[p]=U.useState(0);const f=(e,s)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:s+u});const f=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),c(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],a=r.getListObjectData("/qListObjectDef",[{qTop:n.start>p?n.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:n.start,qHeight:p,qLeft:0,qWidth:1}]).then((n=>{const r=i?i(n):n;t.current.validPages=!0,l.current.pages=r,d(r),c(!1),e()}));o&&o(a)}),f?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:u,isLoading:s}}({local:D,loaderRef:z,model:r,fetchStart:b,scrollTimeout:0,postProcessPages:y,listData:j}),W=s(B,D_),{getStoreValue:H,setStoreValue:G}=m_(r),K=U.useCallback(W.loadMoreItems,[c]),[Z,X]=U.useState({show:!1,dismissed:!1}),[Q,J]=U.useState([]);null!=W&&W.pages&&d.update({setPages:J,pages:W.pages,isSingleSelect:N,layout:c});const Y=null==c?void 0:c.qListObject.qDimensionInfo.qCardinal;(null!=W&&W.pages.length&&!$||0===Y)&&(null==R||R());const ee=U.useCallback((e=>{if(null==Q||!Q.length||!D.current.validPages)return!1;D.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Q.filter((e=>t(e)))[0];return n&&t(n)}),[c,Q]),{interactionEvents:te,select:ne}=OL({selectionState:d,selections:u,checkboxes:q,doc:document,loaderRef:z}),{layoutOptions:re={}}=c||{};let oe=!0;re.dataLayout&&(oe="singleColumn"===re.dataLayout||"row"===(null==re?void 0:re.layoutOrder));const ae="grid"===(null==re?void 0:re.dataLayout),ie=e=>{const t=l({},oe?{rowIndex:e}:{columnIndex:e}),n=ae?t:e;z.current._listRef.scrollToItem(n)},le=()=>{if(D.current.queue=[],D.current.validPages=!1,z.current){z.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===C.state.scrollPosition;if(c&&c.qSelectionInfo.qInSelections||e)return void(e&&C.reset());D.current.dataOffset=0,ie(0)}};v&&v.call(null,le),U.useEffect((()=>{E&&!P&&z.current&&(z.current._listRef.scrollToItem(E.initScrollPos),M(!0))}),[z.current]),U.useEffect((()=>{le()}),[c,D.current.dataOffset]);let se=j_;const ce="grid"!==re.dataLayout,ue=null==c||null===(t=c.qListObject.qSize)||void 0===t?void 0:t.qcy,de=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?p_({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:Q,minimumBatchSize:se,count:ue,calculatePagesHeight:x,layoutOptions:re,model:r});let pe=q_({itemWidth:m,layout:c,frequencyMode:g});const fe=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(Q),he=d_({layout:c,width:m,height:h,listCount:de,count:ue,freqIsAllowed:pe,checkboxes:q,styles:I});he.columnWidth&&(pe=q_({itemWidth:he.columnWidth,layout:c,frequencyMode:g}));const{listCount:me}=he;G("listCount",me);const ge=H("inputText"),ve=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=U.useContext(sS),a=[];if(null!=n&&n.length){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(r),t=o.get(e,[r]);a.push(t)}const i=function(e){var t;let{layout:n,translatorDynamic:r}=e;const{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},a=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let i;switch(a){case 0:i="ScreenReader.ZeroSelected";break;case 1:i="ScreenReader.OneSelected";break;default:i="ScreenReader.ManySelected"}return r.get(i,[a])}({layout:t,translatorDynamic:o});a.push(i);const l=a.filter((e=>!(null==e||!e.length))).join(". ");return l}({layout:c,searchInputText:ge,listCount:me}),be=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:a,offset:i}=e,l=!1,s=null!=i?i:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":s=0,t=0,l=!0;break;case"overflowEnd":s=M_(a,o.listCount),t=a.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:oe,sizes:he,layout:c,offset:D.current.dataOffset});D.current.dataOffset=n,r&&d.triggerStateChanged(),ie(t)};U.useEffect((()=>{const e=C.state;e.up?ie(k.state.start-e.up):e.down?ie(k.state.stop+e.down):e.scrollPosition&&be(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&C.reset()}),[C.state.up,C.state.down,C.state.scrollPosition]);const{textAlign:ye}=(null==c?void 0:c.qListObject.qDimensionInfo)||{},[xe,Se]=U.useState({first:!1,last:!1}),{List:we,Grid:Ee}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:i,pages:s,selectionState:c,interactionEvents:u,deducedFrequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:b,keyboard:y,showGray:x,scrollState:S,direction:w,sizes:E,listCount:C,overflowDisclaimer:k,setScrollPosition:R,focusListItems:L,setCurrentScrollIndex:O,constraints:_,frequencyMax:I,freqIsAllowed:T,translator:P,showSearch:M,isModal:N,styles:q}=e;const{layoutOptions:A={}}=t||{},{columnWidth:z,listHeight:D,itemHeight:j,rowCount:F,columnCount:$}=E||{},B=("grid"===A.dataLayout?z:n)>DL,W={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:e_.styledScrollbars},H=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,U=D<=j,G=l(l({isLocked:H,column:!i,pages:s},H||c.selectDisabled()?{}:u),{},{checkboxes:r,layoutOptions:A,deducedFrequencyMode:d,freqIsAllowed:T,isSingleSelect:f,textAlign:v,sizes:E,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:R,selectAll:m,onCtrlF:g},frequencyMax:I,histogram:p,keyboard:y,showGray:x,showTick:B,dataOffset:o.current.dataOffset,focusListItems:L,direction:w,translator:P,showSearch:M,isModal:N,styles:q,fillHeight:U});return{List:e=>{let{onItemsRendered:r,ref:i}=e;return o.current.listRef=i,V.createElement(a_,a({},W,{dataTestid:"fixed-size-list",scrollDisabled:null==_?void 0:_.active,height:D,width:n,itemCount:C,itemData:l(l({},G),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var n;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),o_({renderProps:e,layoutOptions:A,maxCount:E.maxCount,columnCount:$,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(l({},e))},ref:i}),MO)},Grid:e=>{let{onItemsRendered:r,ref:i}=e;const{overflowStyling:s,scrollBarWidth:c}=E,{layoutOrder:u}=A||{},d=Math.min(D,F*j+c);return o.current.listRef=i,V.createElement(i_,a({},W,{dataTestid:"fixed-size-grid",scrollDisabled:null==_?void 0:_.active,height:d,width:n,columnCount:$,columnWidth:z,rowCount:F,rowHeight:j,style:l({},s),itemData:l(l({},G),{},{column:void 0,columnCount:$,rowCount:F}),onItemsRendered:e=>{var n;const a="row"===u;O({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const i=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:a}=e,{overscanRowStartIndex:i,overscanRowStopIndex:l,overscanColumnStartIndex:s,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,p=i,f=c*o,h=l):(d=s,p=i*a,f=c,h=l*a),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:F,columnCount:$});o_({renderProps:e,layoutOptions:A,maxCount:E.maxCount,columnCount:$,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(i)},ref:i}),MO)}}}({direction:p,layout:c,height:h,width:m,checkboxes:q,deducedFrequencyMode:fe,histogram:A,keyboard:S,showGray:w,interactionEvents:te,select:ne,selectAll:()=>{d.clearItemStates(!1),r.selectListObjectAll("/qListObjectDef")},onCtrlF:L,textAlign:ye,isVertical:ce,pages:Q,selectionState:d,isSingleSelect:N,selections:u,scrollState:E,local:D,sizes:he,listCount:me,overflowDisclaimer:{state:Z,set:e=>X((t=>l(l({},t),{},{show:e})))},setScrollPosition:be,focusListItems:{first:xe.first,setFirst:e=>Se((t=>l(l({},t),{},{first:e}))),last:xe.last,setLast:e=>Se((t=>l(l({},t),{},{last:e})))},setCurrentScrollIndex:k.set,constraints:i,frequencyMax:F,freqIsAllowed:pe,translator:T,showSearch:O,isModal:_,styles:I}),{columnWidth:Ce,listHeight:ke,itemHeight:Re}=he||{};return ce||(se=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:m,columnWidth:Ce,listHeight:ke,itemHeight:Re})),V.createElement(F_,null,V.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},ve),!me&&Y>0&&V.createElement(v_,{width:m,text:"Listbox.NoMatchesForYourTerms"}),V.createElement(yL,{isItemLoaded:ee,itemCount:me||1,loadMoreItems:K.with({minimumBatchSize:se}),threshold:0,minimumBatchSize:se,ref:z,role:"grid"},ce?we:Ee),Z.show&&!Z.dismissed&&V.createElement(P_,{text:"Listbox.ItemsOverflow",dismiss:()=>X((e=>l(l({},e),{},{dismissed:!0}))),parentWidth:null==z||null===(n=z.current)||void 0===n||null===(n=n._listRef)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.width,dense:null==re?void 0:re.dense}))}const B_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),W_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),H_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),U_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var V_=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:a=!1,selections:i}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const l="/qListObjectDef",s=()=>{i.isActive()||i.begin(l)};return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:B_,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectAll(l)}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:H_,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectPossible(l)}},!a&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:W_,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectAlternative(l)}},!a&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:U_,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectExcluded(l)}}].filter(Boolean)};const G_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function K_(e){const t=Ry(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}const Z_={className:"njs-cell-action"},X_=V.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=Ry(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=K_(r);if(i)return null;const u=Number.parseInt(a.spacing(.5),10),d=r.keyboardAction||r.action,p=d?e=>["Enter"].includes(e.key)&&d():null,f=d?e=>[" ","Spacebar"].includes(e.key)&&d():null,h="actions-toolbar-".concat(r.key);return V.createElement(TS,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[Z_.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&pL(r.getSvgIconShape()),o&&V.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),Q_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]});var J_=e=>pL(Q_(e));const Y_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var eI=e=>pL(Y_(e));const tI="njs-action-toolbar-more",nI={icon:"".concat("More","-icon")},rI=rx(mR)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(nI.icon," *")]:{color:t.palette.text.primary}}}));function oI(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:a,hasSvgIconShape:i}=K_(t);return o?null:V.createElement(xR,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:a,tabindex:"0"},i&&V.createElement(Qk,{className:nI.icon},pL(t.getSvgIconShape())),V.createElement(zS,{noWrap:!0},t.label))}const aI=V.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:i={},popoverPaperStyle:s={},onCloseOrActionClick:c=(()=>{})}=e;const u=n.length>0,d=n.findIndex((e=>!e.disabled));return u&&V.createElement(rI,a({},i,{onClose:c,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:tI},paper:{style:l({pointerEvents:"auto",maxWidth:"250px"},s)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),V.createElement(oR,{id:"moreMenuList"},n.map(((e,t)=>V.createElement(oI,{key:t,item:e,autoFocus:t===d,onActionClick:c})))))})),iI=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},lI=e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()};const sI="ActionsToolbar",cI={item:"".concat(sI,"-item"),itemSpacing:"".concat(sI,"-itemSpacing")},uI=rx(mR)((e=>{let{theme:t}=e;return{["& .".concat(cI.itemSpacing)]:{padding:t.spacing(0,.25)}}})),dI={className:"njs-action-toolbar-popover"},pI=V.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],addAnchor:a=!1,isRtl:i=!1}=e;return o.length>0?V.createElement(hk,{item:!0,container:!0,gap:0,flexDirection:i?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>V.createElement(hk,{item:!0,key:e.key,className:"".concat(cI.itemSpacing," ").concat(cI.item)},V.createElement(X_,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:a}))))):null})),fI={pointerEvents:"none"},hI={vertical:"bottom",horizontal:"right"};function mI(e){var t,n;let{show:r=!0,actions:o=[],maxItems:a=3,selections:i={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:s,more:c={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:u={show:!1,anchorEl:null},focusHandler:d=null,actionsRefMock:p=null,isRtl:f,autoConfirm:h=!1,layout:m}=e;const g=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:a=(()=>{})}=e;const{translator:i}=U.useContext(sS);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:Y_},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{a(),o(),t.cancel()},getSvgIconShape:Q_},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{a(),r(),t.confirm()},getSvgIconShape:_L}]}(l(l({},i),{},{layout:m})),{translator:v,keyboardNavigation:b}=U.useContext(sS),[y,x]=U.useState(!1),S={vertical:12,horizontal:(null!==(t=null===(n=u.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},w=U.useRef(),E=U.useRef(),C=Ry(),k=U.useMemo((()=>({margin:C.spacing(.5,0)}))),R=e=>{const t=w.current||p;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},L=U.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o,isRtl:a}=e;return e=>{const{target:i,nativeEvent:l}=e,{keyCode:s}=l;switch(s){case wO.ARROW_LEFT:case wO.ARROW_DOWN:case wO.ARROW_RIGHT:case wO.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=iI(i);let t=[wO.ARROW_LEFT,wO.ARROW_DOWN].includes(s);t=a?!t:t,lI(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case wO.SPACE:e.preventDefault();break;case wO.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case wO.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:b,focusHandler:d,getEnabledButton:R,selections:i,isRtl:f})),[b,d,R,i,f]);if(U.useEffect((()=>()=>{x(!1)}),[u.show,r,i.show]),U.useEffect((()=>{if(!d)return;d.on("focus_toolbar_first",(()=>{const e=R(!1);null==e||e.focus()})),d.on("focus_toolbar_last",(()=>{const e=R(!0);null==e||e.focus()}))}),[]),h)return;let O=c.enabled,_=c.actions;const I=c.alignTo||E,T=o.filter((e=>!e.hidden));if(T.length>a){const e=T.splice(-(T.length-a)-1);O=!0,_=[...e,...c.actions]}if(!i.show&&0===T.length&&!O)return null;const P={key:"more",label:v.get("Menu.More"),getSvgIconShape:G_,hidden:!1,active:y,enabled:()=>O,action:()=>x(!y)},M=T.length>0,N=_.length>0,q=M&&i.show||N&&i.show,A=V.createElement(hk,{ref:w,onKeyDown:L,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:f?"row-reverse":"row"}},(null==s?void 0:s.length)&&V.createElement(pI,{className:"actions-toolbar-extra-actions",actions:s,isRtl:f}),M&&V.createElement(pI,{actions:T}),N&&V.createElement(pI,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:E,ariaExpanded:y,actions:[P],addAnchor:!0}),q&&V.createElement(hk,{item:!0,className:cI.itemSpacing,style:k},V.createElement(QC,{orientation:"vertical"})),i.show&&V.createElement(pI,{className:"actions-toolbar-default-actions",actions:g,isRtl:f}),y&&V.createElement(aI,{show:y,actions:_,alignTo:I,popoverProps:c.popoverProps,popoverPaperStyle:c.popoverPaperStyle,onCloseOrActionClick:()=>{x(!1)}}));return u.show?V.createElement(uI,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:S,transformOrigin:hI,hideBackdrop:!0,style:fI,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:dI.className,style:{pointerEvents:"auto",padding:C.spacing(.5,.25)}}}},A):r&&A}var gI=e=>pL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{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"}}]}))(e));const vI="/qListObjectDef",bI=e=>null==e?void 0:e.substring(0,64e3),yI=rx(_R,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{styles:t,dense:n,isRtl:r}=e,o={};return n&&(o={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:t.search.color,textAlign:r?"right":"left"}}),l({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,backdropFilter:t.background.backgroundImage?t.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:r?"row-reverse":"row","& fieldset":{borderColor:"".concat(t.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(t.search.highlightBorderColor," !important")},"& .MuiInputBase-root":l({},t.search),"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:r?"right":"left"}},o)})),xI=rx(TS)((()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}})));var SI=U.forwardRef((function(e,t){let{popoverOpen:n,selections:r,selectionState:o,model:a,keyboard:i,dense:l=!1,visible:s=!0,autoFocus:c=!0,beginSelectionOnFocus:u=!0,wildCardSearch:d=!1,searchEnabled:p,direction:f,hide:h,styles:m}=e;const{translator:g}=U.useContext(sS),[v,b]=U.useState(""),[y,x]=U.useState(!1),S=U.useRef(),w=U.useRef(),E=g.get("Listbox.Clear.Search"),{getStoreValue:C,setStoreValue:k}=m_(a),R="rtl"===f,L=async()=>{try{await a.abortListObjectSearch(vI)}finally{b("")}};U.useEffect((()=>s?()=>L():()=>{}),[s]),U.useEffect((()=>(r.on("deactivated",L),()=>{r.removeListener&&r.removeListener("deactivated",L)})),[]),U.useEffect((()=>{if(y&&S.current){const e=v.length-1;S.current.setSelectionRange(e,e),x(!1)}}),[y,S.current]),U.useEffect((()=>{k("inputText",v)}),[v]);const O=async()=>{let e;const t=bI(v),n=await a.searchListObjectFor(vI,t);return o.selectDisabled()?n:(n&&t.length&&C("listCount")>0&&(e=a.acceptListObjectSearch(vI,!0),r.selectionsMade=!0,o.clearItemStates(!1),b("")),e)},_=()=>{var e;null===(e=S.current)||void 0===e||e.focus()},I=()=>{L(),_()};return U.useImperativeHandle(t,(()=>({focus(){_()}}))),s&&!1!==p?V.createElement(yI,{styles:m,dense:l,isRtl:R,startAdornment:V.createElement(_k,{position:"start",sx:{marginLeft:l?"8px":"".concat(NL,"px")}},V.createElement(gI,{size:l?"small":"normal"})),endAdornment:V.createElement(_k,{position:"end",sx:{marginLeft:0}},""!==v&&V.createElement(xI,{tabIndex:0,ref:w,title:E,"aria-label":E,onClick:I,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":I();break;case"Tab":e.shiftKey?_():OO(t);break;default:return}e.preventDefault(),e.stopPropagation()}},V.createElement(J_,{size:l?"small":"normal"}))),className:"search",inputRef:S,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:v,onFocus:()=>{d&&(b("**"),x(!0)),u&&!o.selectDisabled()&&!r.isModal()&&r.begin("/qListObjectDef")},onChange:async e=>{const t=bI(e.target.value);return b(t),t.length?a.searchListObjectFor(vI,t):L()},onKeyDown:async e=>{const{currentTarget:t}=e,o=t.closest(".listbox-container");switch(e.key){case"Enter":O();break;case"Escape":if(OO(o),r.cancel(),n)return;break;case"Tab":e.shiftKey?_O(o)||i.focusSelection():w.current?w.current.focus():OO(o);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;h&&(h(),OO(o));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:c,inputProps:{tabIndex:i.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":g.get("Listbox.Search.ScreenReaderInstructions")}}):null}));function wI(e){if(!e.session)return[];const{selectionStore:t}=U.useContext(sS),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return U.useEffect((()=>{e&&!o&&(o=function(e){let{app:t,selectionStore:n}=e;const r="".concat(t.id),{modalObjectStore:o,appModalStore:a}=n,i=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:t,objectSelections:n}=o.get(r)||{};t&&(await t.endSelections(e),o.clear(r),n.emit("deactivated"))},l={begin:async e=>{var n;let{model:a,paths:l,accept:s=!0,objectSelections:c}=e;if(c===(null===(n=o.get(r))||void 0===n?void 0:n.objectSelections))return;i(s),o.set(r,{model:a,objectSelections:c});const u=Array.isArray(l)?l:[l],d=async e=>{try{await a.beginSelections(u),o.set(r,{model:a,objectSelections:c})}catch(n){6003!==n.code||e?o.clear(r):(await t.abortModal(s),d(!0))}};await d()},end:i};a.set(r,l);const s={model:t,isInModal:()=>!!o.get(r),isModal(e){var t;return e?(null===(t=o.get(r))||void 0===t?void 0:t.objectSelections)===e:!!o.get(r)},forward:()=>l.end().then((()=>t.forward())),back:()=>l.end().then((()=>t.back())),clear:()=>l.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return l.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return s}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))}),[e]),[o]}function EI(e){return Object.keys(ee.prototype).forEach((t=>{e[t]=ee.prototype[t]})),ee.init(e),e}const CI=e=>{let t,{appSelections:n,appModal:r,model:o}=e,a=!1,i=!1;const l={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(a=!0,this.emit("activated"),r.begin({model:o,paths:e,accept:!0,objectSelections:l}))},clear(){return i=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return i=!1,a=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return i=!1,a=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return i="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:i,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:i,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>a,isModal:()=>n.isModal(l),goModal:e=>r.begin({model:o,paths:e,accept:!1,objectSelections:l}),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return EI(l),l},kI=e=>{let{elements:t,objectSelections:n,options:r={}}=e;const o=function(e){let{elements:t,handleClickOutside:n}=e;return e=>{if(!document.contains(e.target))return;const r=t.map((e=>"string"==typeof e?document.querySelector(e):null==e?void 0:e.current)).filter((e=>!!e&&!!document.contains(e)));r.length&&!r.some((t=>t.contains(e.target)))&&n(e)}}({elements:t,handleClickOutside:()=>n.confirm.call(n)});return{activateClickOut(){var e;document.addEventListener("mousedown",o),null==r||null===(e=r.onSelectionActivated)||void 0===e||e.call(r)},deactivateClickOut(){var e;document.removeEventListener("mousedown",o),null==r||null===(e=r.onSelectionDeactivated)||void 0===e||e.call(r)}}};function RI(e,t,n,r){const o=Array.isArray(n)?n:[n],[a]=wI(e),[i]=sL(t),{appModalStore:l}=U.useContext(sS).selectionStore,s=l.get(e.id),[c,u]=U.useState();return U.useEffect((()=>{a&&t&&!c&&u(CI({appSelections:a,appModal:s,model:t}))}),[a,t]),U.useEffect((()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=kI({elements:o,objectSelections:c,options:r});return c.addListener("activated",e),c.addListener("deactivated",t),()=>{c.isActive()&&c.confirm(),c.removeListener("activated",e),c.removeListener("deactivated",t)}}),[c]),U.useEffect((()=>{c&&c.setLayout(i)}),[c,i]),[c]}function LI(){const e=l(l({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(t){var n,r;let{setPages:o,pages:a,isSingleSelect:i,selectDisabled:l,layout:s}=t;this.setPages=o;const c=this.lastRowCount===s.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===s.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=s.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=s.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=wL(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=i,e.selectDisabled=l||e.selectDisabled,e.isDimCalculated=null!==(n=null==s||null===(r=s.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[l(l({},n),{},{qState:r}),...t.slice(1)]}));return l(l({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}});return e}const OI=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:r};function _I(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return OI(t,"qSelected",0)+OI(t,"qSelectedExcluded",0)+OI(t,"qLocked",0)+OI(t,"qLockedExcluded",0)>0}const II=/,(?![^(]*\))/,TI=/\s(?![^(]*\))/,PI=/^[0-9]+[a-zA-Z%]+?$/,MI=["none","inset","initial","inherit"],NI=e=>{if(!e)return;const t=e.split(TI).filter((e=>!MI.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||PI.test(e))(t)||MI.includes(t.toLowerCase())?void 0:t;return n},qI=e=>e?e.split(II).map((e=>e.trim())):[];function AI(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}const zI=!0;function DI(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e,zI):void 0:AI(t,n,r,o)}const jI={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},FI={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function $I(e,t){return t?function(e){var t;let n,r,o,a;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),a="wss:"===r.protocol,o=a?"https://":"http://",o+r.host):""}(e)+t:void 0}function BI(e,t){const n=null==e?void 0:e.bgImage;if(n){let r="";if("media"===n.mode||"media"===e.useImage){const e=null==n?void 0:n.mediaUrl,{qUrl:o}=(null==e?void 0:e.qStaticContentUrl)||{};r=o?decodeURIComponent(o):void 0,r=$I(t,r)}"expression"===n.mode&&(r=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=FI[e.bgImage.position]),n}(e),a=function(e){var t;let n=jI.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=jI[r]),n}(e);return r?{url:r,pos:o,size:a}:void 0}}function WI(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):DI(null==r?void 0:r.color,"","backgroundColor",t,n)}function HI(e,t,n){var r,o;const a=AI("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&MI.includes(e.toLowerCase()))return e.toLowerCase();const r=qI(e);if(1!==r.length)return e;let o=n;if(!o){const n=qI(t);if(1!==n.length)return e;o=NI(n[0])}if(!o)return e;const a=NI(r[0]);return a?e.replace(a,o):"".concat(e," ").concat(o)})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||a,a,DI(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function UI(e,t,n,r){var o;const a=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},i=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(a.fontStyle,t);return{fontFamily:a.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),fontSize:a.fontSize||n.getStyle("object.".concat(r),"title.".concat(t),"fontSize"),color:a.color&&"none"!==a.color.color?n.getColorPickerColor(a.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:i.includes("bold")?"bold":"normal",fontStyle:i.includes("italic")?"italic":"normal",textDecoration:i.includes("underline")?"underline":"initial"}}const VI="#FFF",GI="#000",KI=1.5,ZI=3,XI={selected:"#009845",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},QI=(e,t)=>{let n=!1;const r=new ot(e),o=new ot(t);if(!(o.isInvalid()||r.isInvalid()||o.getAlpha()<1||r.getAlpha()<1)){try{n=ot.getContrast(r,o)}catch(e){n=void 0}return n}};function JI(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:GI,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:VI;const o=new ot(r),a=new ot(e),i=new ot(t);if(a.isInvalid()||i.isInvalid()||a.getAlpha()<1||i.getAlpha()<1)return t;const l=QI(o,a),s=QI(i,a),c=l>s||l>ZI;let u;return u=t&&s>KI&&!c?t:c?r:n,u}const YI=["theme","selections"];function eT(e){var t,n,r,o,a;let{getColorPickerColor:i,theme:s,getListboxStyle:c,overrides:u,checkboxes:d,themeSelectionColorsEnabled:p}=e;const f=null===(t=u.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor,h=i(f)||c("content","color")||(null===(n=s.palette)||void 0===n?void 0:n.text.primary),m=!d&&(null===(r=null===(o=u.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),g=(null===(a=u.selections)||void 0===a?void 0:a.colors)||{},v=e=>{var t,n;const r="selected"===e?"main":e,o="".concat(e,"Contrast"),a=i(g[e])||(e=>p?c("","dataColors.".concat(e)):void 0)(e)||"possible"===e&&c("","backgroundColor")||(null===(t=s.palette)||void 0===t?void 0:t.selected[r])||XI[e];return{[e]:a,[o]:m?JI(a,h):h||(null===(n=s.palette)||void 0===n?void 0:n.selected["".concat(o,"Text}")])}};return l(l(l(l(l({},v("selected")),v("alternative")),v("excluded")),v("selectedExcluded")),v("possible"))}function tT(e){var t,n,r,o,a,i,l,s;let{app:c,themeApi:u,theme:d,components:p=[],checkboxes:f=!1,themeSelectionColorsEnabled:h=!1}=e;const m=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;YI.includes(n)&&(e[n]=t)})),e}(p),g=(e,t)=>u.getStyle("object.listBox",e,t),v=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e,!1):void 0,b=eT({getColorPickerColor:v,theme:d,getListboxStyle:g,overrides:m,checkboxes:f,themeSelectionColorsEnabled:h}),y=m.theme||{},x=v(null===(t=y.header)||void 0===t?void 0:t.fontColor)||g("title.main","color"),S=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?WI({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color,!1),t):t}({themeApi:u,themeOverrides:y}),w=null!==(n=y.background)&&void 0!==n&&n.image?BI({bgImage:y.background.image},c):void 0,E=S||g("","backgroundColor")||d.palette.background.default,C=function(e,t){const n=new ot(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.toRGBA()}(E,g),k=function(e){return JI("#fff",e("content","color"))}(g),R=(null===(r=y.header)||void 0===r?void 0:r.fontStyle)||{},L=(null===(o=y.content)||void 0===o?void 0:o.fontStyle)||{},O=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:E,backgroundImage:null==w||!w.url||null!=w&&w.url.startsWith("url(")?void 0:"url('".concat(w.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==w?void 0:w.size,backgroundPosition:null==w?void 0:w.pos},header:{color:x,fontSize:(null===(a=y.header)||void 0===a?void 0:a.fontSize)||g("title.main","fontSize"),fontFamily:(null===(i=y.header)||void 0===i?void 0:i.fontFamily)||g("title.main","fontFamily"),fontWeight:O(R.bold,"bold","normal")||g("title.main","fontWeight")||"bold",textDecoration:R.underline?"underline":"initial",fontStyle:O(R.italic,"italic","normal")||g("title.main","fontStyle")||"initial"},content:{backgroundColor:f?void 0:b.possible,color:b.possibleContrast||g("content","color"),fontSize:(null===(l=y.content)||void 0===l?void 0:l.fontSize)||g("content","fontSize"),fontFamily:(null===(s=y.content)||void 0===s?void 0:s.fontFamily)||g("content","fontFamily"),fontWeight:O(L.bold,"bold","normal")||g("content","fontWeight")||"normal",textDecoration:L.underline?"underline":"initial",fontStyle:O(L.italic,"italic","normal")||g("content","fontStyle")||"initial"},search:{color:k,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:C,backdropFilter:"blur(8px)"},selections:b}}function nT(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:a,app:i,fieldName:l,stateName:s="$",autoFocus:c,components:u,checkboxes:d,selectDisabled:p=(()=>!1),flags:f,sortCriteria:h=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}=e;const m=Boolean(null==l?void 0:l.qLibraryId),g=o&&Boolean(t.current),[v,b]=U.useState(0),y=Ry(),x=U.useRef(),[S]=nL({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:h,qFieldDefs:m?void 0:[l]},qLibraryId:m?l.qLibraryId:void 0}},i,l,s),w=U.useCallback((()=>{S.lock("/qListObjectDef")}),[S]),E=U.useCallback((()=>{S.unlock("/qListObjectDef")}),[S]),{translator:C,themeApi:k,keyboardNavigation:R}=U.useContext(sS),L=U.useRef(),O=U.useRef(),[_]=RI(i,S,O),[I]=sL(S),[T]=U.useState((()=>LI({selectDisabled:p}))),P=kO({containerRef:O,enabled:R}),{checkboxes:M=d}=I||{},N=tT({themeApi:k,theme:y,components:u,checkboxes:M,themeSelectionColorsEnabled:null==f?void 0:f.isEnabled("PS_22149_THEME_SELECTION_COLORS")});if(U.useEffect((()=>{_&&g&&(_.isModal(S)||_.goModal("/qListObjectDef"))}),[_,g]),!S||!I||!C)return null;const q=!0===I.qListObject.qDimensionInfo.qLocked,A=(e,t)=>{const n="escapeKeyDown"!==t;_.noModal(n),a()},z=V_({layout:I,model:S,translator:C,selectionState:T,selections:_}),D=_I(I);return V.createElement(mR,{className:"listbox-container",open:g,onClose:A,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?A():void 0},V.createElement(hk,{container:!0,direction:"column",gap:0,ref:O},V.createElement(hk,{item:!0,container:!0,style:{padding:y.spacing(1)}},V.createElement(hk,{item:!0},q?V.createElement(TS,{onClick:E,disabled:!q,size:"large"},V.createElement(hL,{title:C.get("Listbox.Unlock")})):V.createElement(TS,{onClick:w,disabled:!D,size:"large"},V.createElement(gL,{title:C.get("Listbox.Lock")}))),V.createElement(hk,{item:!0,xs:!0}),V.createElement(hk,{item:!0},V.createElement(mI,{layout:I,more:{enabled:!q,actions:z,alignTo:L,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:_,onConfirm:A,onCancel:()=>A(0,"escapeKeyDown")}}))),V.createElement(hk,{item:!0,xs:!0},V.createElement("div",{ref:L}),V.createElement(hk,{item:!0},V.createElement(SI,{ref:x,popoverOpen:g,styles:N,visible:!0,model:S,listCount:v,selections:_,selectionState:T,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:P.focusSelection},autoFocus:null==c||c})),V.createElement($_,{model:S,app:i,layout:I,selections:_,selectionState:T,direction:"ltr",onSetListCount:e=>b(e),onCtrlF:()=>{x.current.focus()},styles:N,keyboard:P}))))}function rT(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=U.useContext(sS),s=a||U.useRef(),c=Ry(),[u,d]=U.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),i()},h=t.selections[r];void 0===h.qTotal&&(h.qTotal=0);const m=h.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},g=(m.qSelected+m.qLocked)/h.qTotal,v=m.qAlternative/h.qTotal,b=(m.qExcluded+m.qLockedExcluded+m.qSelectedExcluded)/h.qTotal,y=m.qSelected+m.qSelectedExcluded+m.qLocked+m.qLockedExcluded,x=0===y&&0===h.qTotal;let S="";h.qTotal===y&&h.qTotal>1?S=l.get("CurrentSelections.All"):y>1&&h.qTotal?S=l.get("CurrentSelections.Of",[y,h.qTotal]):h.qSelectedFieldSelectionInfo&&(S=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(S="".concat(t.states[r],": ").concat(S));const w=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:v},{color:c.palette.selected.excluded,ratio:b}];w.forEach(((e,t)=>{e.offset=t?w[t-1].offset+w[t-1].ratio:0}));let E=null,C=null,k=null,R=null;return a||(E=V.createElement(hk,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},V.createElement(zS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},h.qField),V.createElement(zS,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},S)),h.qLocked?C=V.createElement(hk,{item:!0},V.createElement(TS,{size:"large"},V.createElement(hL,null))):h.qOneAndOnlyOne||(C=V.createElement(hk,{item:!0},V.createElement(TS,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},V.createElement(fL,null)))),k=V.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&w.map((e=>V.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),R=V.createElement(hk,{container:!0,gap:1,ref:s,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&p||null},E,C,k,u&&V.createElement(nT,{alignTo:s,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),a?V.createElement(nT,{alignTo:s,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):R}var oT=e=>pL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const aT={item:"".concat("MultiState","-item")},iT=rx(hk)((e=>{let{theme:t}=e;return{["&.".concat(aT.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function lT(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=U.useState(!!r),[l,s]=U.useState(-1),[c,u]=U.useState(r?r.current:null),d=r||U.useRef(),{translator:p}=U.useContext(sS),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=V.createElement(V.Fragment,null,V.createElement(hk,{item:!0,xs:!0,zeroMinWidth:!0},V.createElement(XE,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},V.createElement(zS,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),V.createElement(hk,{item:!0},V.createElement("div",{style:{width:"12px"}})),V.createElement(hk,{item:!0},V.createElement(TS,{size:"large"},V.createElement(oT,null)))));const g=V.createElement(Nk,{dense:!0},V.createElement(Vk,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},V.createElement(eS,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>V.createElement(Vk,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},V.createElement(YE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},V.createElement(rT,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=V.createElement(mR,{open:a,onClose:()=>{i(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},g),b=r?v:V.createElement(iT,{container:!0,gap:0,className:aT.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,i(!a))}},m,a&&v,l>-1&&V.createElement(nT,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?V.createElement(nT,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const sT="More",cT={item:"".concat(sT,"-item"),badge:"".concat(sT,"-badge")},uT=rx(hk)((e=>{let{theme:t}=e;return{["&.".concat(cT.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(cT.badge)]:{padding:t.spacing(0,1)}}}));function dT(e){let{items:t=[],api:n}=e;const r=Ry(),[o,a]=U.useState(!1),[i,l]=U.useState(-1),[s,c]=U.useState(null),u=U.useRef(),d=()=>{l(-1)};let p=null;return i>-1&&(p=t[i].states.length>1?V.createElement(lT,{field:t[i],api:n,moreAlignTo:u,onClose:d}):V.createElement(rT,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),V.createElement(uT,{container:!0,gap:0,className:cT.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},V.createElement(hk,{item:!0},V.createElement(YE,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},V.createElement(zS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),V.createElement(hk,{item:!0},V.createElement(TS,{size:"large"},V.createElement(oT,null))),o&&V.createElement(mR,{open:o,onClose:()=>{a(!1)},anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},V.createElement(Nk,{dense:!0},t.map(((e,t)=>V.createElement(Vk,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},V.createElement(YE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?V.createElement(lT,{field:e,api:n}):V.createElement(rT,{field:e,api:n}))))))),p)}const pT=120,fT=72;function hT(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";e.qSelections.forEach((e=>{const r=e.qField,o=t[r]=t[r]||{name:r,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function mT(e){let{api:t,app:n}=e;const r=Ry(),[o]=oL(n),[a]=sL(o),[i,l]=U.useState({items:[],more:[]}),{modalObjectStore:s}=U.useContext(sS).selectionStore,[c,u]=uL(),[d,p]=U.useState(0);return U.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-fT,n=Math.floor(t/pT);p(n)}),[u]),U.useEffect((()=>{if(!(n&&o&&a&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&hT(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>hT(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(a);l((t=>{const r=e;if((()=>{const{model:e}=s.get(n.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,a,t.isInModal(),d]),V.createElement(hk,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>V.createElement(hk,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(pT,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?V.createElement(lT,{field:e,api:t}):V.createElement(rT,{field:e,api:t})))),i.more.length>0&&V.createElement(hk,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(fT,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},V.createElement(dT,{items:i.more,api:t})))}var gT=e=>pL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var vT=e=>pL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const bT=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function yT(e){let{api:t,app:n}=e;const{translator:r}=U.useContext(sS),[o]=function(e){const[t]=oL(e),[n]=sL(t),[r]=cL(e),[o,a]=U.useState(null);return U.useEffect((()=>{r&&t&&n&&bT(t,n,r)}),[r,t,n]),U.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),a({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return V.createElement(hk,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},V.createElement(hk,{item:!0},V.createElement(TS,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},V.createElement(gT,null))),V.createElement(hk,{item:!0},V.createElement(TS,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},V.createElement(vT,null))),V.createElement(hk,{item:!0},V.createElement(TS,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},V.createElement(eI,null))))}const xT=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function ST(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function wT(){return xT.map(ST).join("")}function ET(e){let{app:t}=e;const n=Ry(),[r]=wI(t);return r?V.createElement(hk,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},V.createElement(hk,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},V.createElement(yT,{api:r,app:t})),V.createElement(hk,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},V.createElement(mT,{api:r,app:t}))):null}let CT;CT="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let kT=null,RT=null;const LT=CT.clearTimeout,OT=CT.setTimeout,_T=CT.cancelAnimationFrame||CT.mozCancelAnimationFrame||CT.webkitCancelAnimationFrame,IT=CT.requestAnimationFrame||CT.mozRequestAnimationFrame||CT.webkitRequestAnimationFrame;function TT(e){let t,n,r,o,a,i,l;const s="undefined"!=typeof document&&document.attachEvent;if(!s){i=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},a=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;i(this),this.__resizeRAF__&&kT(this.__resizeRAF__),this.__resizeRAF__=RT((function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,s="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],s="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+s+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=s+"animation: 1ms "+n+"; "}return{addResizeListener:function(a,c){if(s)a.attachEvent("onresize",c);else{if(!a.__resizeTriggers__){const s=a.ownerDocument,c=CT.getComputedStyle(a);c&&"static"===c.position&&(a.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',a=n.head||n.getElementsByTagName("head")[0],i=n.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(n.createTextNode(r)),a.appendChild(i)}}(s),a.__resizeLast__={},a.__resizeListeners__=[],(a.__resizeTriggers__=s.createElement("div")).className="resize-triggers";const u=s.createElement("div");u.className="expand-trigger",u.appendChild(s.createElement("div"));const d=s.createElement("div");d.className="contract-trigger",a.__resizeTriggers__.appendChild(u),a.__resizeTriggers__.appendChild(d),a.appendChild(a.__resizeTriggers__),i(a),a.addEventListener("scroll",l,!0),r&&(a.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&i(a)},a.__resizeTriggers__.addEventListener(r,a.__resizeTriggers__.__animationListener__))}a.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==_T||null==IT?(kT=LT,RT=function(e){return OT(e,20)}):(kT=function([e,t]){_T(e),LT(t)},RT=function(e){const t=IT((function(){LT(n),e()})),n=OT((function(){_T(t),e()}),20);return[t,n]});class PT extends U.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),a=parseFloat(r.paddingRight||"0"),i=parseFloat(r.paddingTop||"0"),l=parseFloat(r.paddingBottom||"0"),s=this._parentNode.getBoundingClientRect(),c=s.height-i-l,u=s.width-o-a,d=this._parentNode.offsetHeight-i-l,p=this._parentNode.offsetWidth-o-a;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===p&&this.state.scaledWidth===u)||(this.setState({height:d,width:p,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:p}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=TT(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:i,onResize:l,style:s={},tagName:c="div",...u}=this.props,{height:d,scaledHeight:p,scaledWidth:f,width:h}=this.state,m={overflow:"visible"},g={};let v=!1;return r||(0===d&&(v=!0),m.height=0,g.height=d,g.scaledHeight=p),o||(0===h&&(v=!0),m.width=0,g.width=h,g.scaledWidth=f),a&&(v=!1),U.createElement(c,{ref:this._setRef,style:{...m,...s},...u},!v&&e(g))}}function MT(e){let{keyboard:t,hovering:n,updateKeyScroll:r,currentScrollIndex:o,isModal:a,constraints:i,selections:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,o=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const i=e.currentTarget.closest(".listbox-container"),s=a();switch(n){case wO.TAB:if(document.activeElement===i||!s&&!i.contains(document.activeElement))return;if(r){OO(i)||LO(i)||IO(e,t)}else{if(!(_O(i)||LO(i)||OO(i)))break}o();break;case wO.ENTER:case wO.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case wO.ESCAPE:IO(e,t),l.isActive()&&l.cancel()}},handleOnMouseEnter:()=>{n.current=!0},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current||(()=>{const e=(null==i?void 0:i.select)||(null==i?void 0:i.active),t=a();return e||t})())return;const{keyCode:t,ctrlKey:l=!1,shiftKey:s=!1}=e;switch(t){case wO.ARROW_UP:r({up:1});break;case wO.ARROW_DOWN:r({down:1});break;case wO.PAGE_UP:r({up:o.stop-o.start});break;case wO.PAGE_DOWN:r({down:o.stop-o.start});break;case wO.HOME:r({scrollPosition:l&&s?"overflowStart":"start"});break;case wO.END:r({scrollPosition:l&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const NT=rx("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function qT(e){let{text:t}=e;const{translator:n}=U.useContext(sS);return V.createElement(NT,null,n.get(t))}const AT={fontSize:"12px"},zT=rx(Hx)((e=>{let{theme:t,isLoading:n}=e;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:t.palette.custom.disabledBackground,opacity:1,color:t.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:n?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:t.palette.custom.disabledContrastText},"& i":{padding:"".concat(AL,"px")}}})),DT=rx(hk,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return l(l({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),jT=rx(zS)((e=>{let{styles:t}=e;return l(l({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function FT(e){let{translator:t,toggleLock:n,keyboard:r,isLoading:o}=e;const a=t.get("SelectionToolbar.ClickToUnlock");return V.createElement(zT,{title:a,tabIndex:r.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?V.createElement(_C,{size:16,variant:"indeterminate",color:"primary"}):V.createElement(hL,{disableRipple:!0,style:AT}),!o&&V.createElement(zS,{fontSize:"14px"},a))}var $T=e=>pL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));var BT=e=>pL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));var WT=e=>pL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));const HT="H",UT="C";var VT={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:a,keyboard:i}=e;switch(t.qGrouping){case HT:return{icon:BT,tooltip:"Listbox.DrillDown",onClick:void 0};case UT:{const e=n&&a,l=()=>{o||r.confirm(),n.getDimension(t.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")})).catch((()=>null))};return{icon:e?WT:$T,tooltip:"Listbox.Cyclic",onClick:e?l:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case wO.SPACE:case wO.ENTER:l();break;case wO.TAB:{if(!i.enabled)return;let n;n=e.shiftKey?i.focusSelection():LO(t)||OO(t),n||IO(e,i)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}}};const GT=rx(eS)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function KT(e){let{iconData:t,translator:n,iconStyle:r,disabled:o,keyboard:a}=e;if(!t)return;const{icon:i,tooltip:s,onClick:c,onKeyDown:u}=t,d=i,p=n.get(s);return c?V.createElement(GT,{variant:"outlined",onClick:c,tabIndex:a.innerTabStops?0:-1,title:p,size:"large",disableRipple:!0,disabled:o,onKeyDown:u,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},V.createElement(d,{style:r})):V.createElement(d,{title:p,size:"large",style:l(l({},r),{},{padding:"".concat(AL,"px")})})}const ZT=500;let XT=0;function QT(e){var t,n,r;let{layout:o,translator:i,styles:s,isRtl:c,showLock:u,showSearchIcon:d,constraints:p,onShowSearch:f,classes:h,containerRect:m,isPopover:g,showToolbar:v,showDetachedToolbarOnly:b,containerRef:y,model:x,selectionState:S,isDirectQuery:w,selections:E,keyboard:C,autoConfirm:k,app:R}=e;const[L,O]=U.useState(b),[_,I]=U.useState(null==o||null===(t=o.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked),[T,P]=U.useState(!1);U.useEffect((()=>{var e;I(null==o||null===(e=o.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==o||null===(n=o.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qLocked]);const M=U.useRef(null),N=VT.createDimensionIconData({dimInfo:null==o||null===(r=o.qListObject)||void 0===r?void 0:r.qDimensionInfo,app:R,selections:E,isPopover:g,active:!(null!=p&&p.active),keyboard:C}),q=u&&_,A=!u&&_,z=d||A||N,D=NL-(z?AL:0),j=c?NL-(z?AL:0):qL,F=(d?zL:0)+(A?zL:0)+(N?zL:0),$=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:a}=e;return()=>{const e=new Date;if(e-XT<ZT)return Promise.resolve();if(r)return()=>{};a(!0),XT=e;const i=t?o.unlock:o.lock;return n(!t),i.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{a(!1)}),0)}))}}({isLocked:_,setLocked:I,settingLockedState:T,setSettingLockedState:P,model:x}),B=V_({layout:o,model:x,translator:i,selectionState:S,isDirectQuery:w,selections:E}),W=_||!u?void 0:[{key:"lock",type:void 0,label:i.get("SelectionToolbar.ClickToLock"),getSvgIconShape:mL,enabled:()=>!T&&!S.selectDisabled()&&_I(o),action:$}],H=null!=p&&p.active?V.createElement(gI,{title:i.get("Listbox.Search"),size:"large",style:l(l({},AT),{},{padding:"".concat(AL,"px")})}):V.createElement(TS,{onClick:f,tabIndex:-1,title:i.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},V.createElement(gI,{style:AT}));U.useEffect((()=>{if(!M.current||!m)return;const e=function(e){var t,n,r,o;let{containerRect:a,titleRef:i,iconsWidth:l,paddingLeft:s,paddingRight:c}=e;const u=s+c,d=a.width<(null!==(t=null==i||null===(n=i.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+l+u+2+128,p=(null==i||null===(r=i.current)||void 0===r?void 0:r.scrollWidth)>(null==i||null===(o=i.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!p)}({containerRect:m,titleRef:M,iconsWidth:F,paddingLeft:D,paddingRight:j});O(b||e)}),[F,D,j,M.current,b,Object.entries(m||{}).sort().join(",")]);const G=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:a,extraItems:i,selections:l,keyboard:s,autoConfirm:c}=e;return{autoConfirm:c,isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:i,more:{enabled:!o,actions:a,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:l,onConfirm:()=>{null==s||s.focus()},onCancel:()=>{null==s||s.focus()}}}}({isDetached:!g&&L,showToolbar:v,containerRef:y,isPopover:g,isLocked:_,extraItems:W,listboxSelectionToolbarItems:B,selections:E,keyboard:C,autoConfirm:k}),K=V.createElement(mI,a({isRtl:c,layout:o},G));if(b)return K;const Z=A?V.createElement(hL,{size:"large",style:l(l({},AT),{},{padding:"".concat(AL,"px")})}):void 0;return V.createElement(DT,{item:!0,container:!0,styles:s,isRtl:c,marginY:1,paddingLeft:"".concat(D,"px"),paddingRight:"".concat(j,"px"),className:"header-container"},q&&V.createElement(FT,{isLoading:T,translator:i,toggleLock:$,keyboard:C}),z&&V.createElement(hk,{item:!0,container:!0,alignItems:"center",width:F,className:"header-action-container"},Z||d&&H,V.createElement(KT,{iconData:N,iconStyle:AT,disabled:E.isActive()&&g,translator:i,keyboard:C})),V.createElement(hk,{item:!0,xs:!0,minWidth:0,justifyContent:c?"flex-end":"flex-start",className:h.listBoxHeader},V.createElement(jT,{variant:"h6",noWrap:!0,ref:M,title:o.title,styles:s},o.title)),V.createElement(hk,{item:!0,display:"flex"},K))}const JT="ListBoxInline",YT={listBoxHeader:"".concat(JT,"-listBoxHeader"),screenReaderOnly:"".concat(JT,"-screenReaderOnly"),listboxWrapper:"".concat(JT,"-listboxWrapper")},eP=rx(hk,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return l(l({},o.background),{},{["& .".concat(YT.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(YT.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(YT.listboxWrapper)]:{padding:n},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:r?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}));const tP=V.memo((function(e){var t,n,r,o;let{options:a,layout:i}=e;const{app:s,direction:c,frequencyMode:u,checkboxes:d,search:p=!0,focusSearch:f=!1,rangeSelect:h=!0,model:m,selections:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x,showGray:S=!0,scrollState:w,renderedCallback:E,toolbar:C=!0,isPopover:k=!1,showLock:R=!1,components:L,selectDisabled:O=(()=>!1),flags:_}=a,I=Ry(),{translator:T,keyboardNavigation:P,themeApi:M,constraints:N}=U.useContext(sS),{checkboxes:q=d}=i||{},A=null==_?void 0:_.isEnabled("PS_22149_THEME_SELECTION_COLORS"),z=tT({app:s,themeApi:M,theme:I,components:L,checkboxes:q,themeSelectionColorsEnabled:A}),D=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==s?void 0:s.layout}),j=U.useRef(),F=U.useRef(),[$,B]=uL(),[W,H]=U.useState(!1),[G,K]=U.useState(!1),Z=U.useRef(!1),[X,Q]=U.useState({down:0,up:0,scrollPosition:""}),J=e=>Q((t=>l(l({},t),e))),[Y,ee]=U.useState({start:0,stop:0}),[te]=wI(s),[ne]=U.useState((()=>LI({selectDisabled:O}))),re=kO({containerRef:j,enabled:P}),oe=U.useCallback((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:s,appSelections:te})),[s,te]),ae=null==i?void 0:i.qListObject.qDimensionInfo.qError,ie=ae&&N.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:le,handleOnMouseEnter:se,handleOnMouseLeave:ce,globalKeyDown:ue}=U.useMemo((()=>MT({keyboard:re,hovering:Z,updateKeyScroll:J,containerRef:j,currentScrollIndex:Y,app:s,appSelections:te,constraints:N,isModal:oe,selections:g})),[re,Z,J,j,Y,s,te,N,oe]);U.useEffect((()=>(document.addEventListener("keydown",ue),()=>{document.removeEventListener("keydown",ue)})),[ue]),U.useEffect((()=>{!0===p&&K(!0);const e=()=>{H(!0)},t=()=>{H(!1),"toggle"===p&&K(!1)};return k&&(g.isActive()||(g.on("activated",e),g.on("deactivated",t)),H(k)),C&&g&&(g.isModal()||(g.on("activated",e),g.on("deactivated",t)),H(k||g.isActive())),()=>{g&&g.removeListener&&(g.removeListener("activated",e),g.removeListener("deactivated",t))}}),[C,g,k]);const{wildCardSearch:de,searchEnabled:pe,autoConfirm:fe=!1,layoutOptions:he={}}=null!=i?i:{},me=null==i||null===(t=i.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked,ge=!1!==pe&&"toggle"===p&&!me,ve=(null==i||null===(n=i.title)||void 0===n?void 0:n.length)&&!1!==(null==i?void 0:i.showTitle),be=C&&!ve&&!k,ye=C&&ve||k,xe="rtl"===c;if(!m||!i||!T)return null;const Se=!0===p||"toggle"===p&&G&&!1!==pe,we=null!==(r=he.dense)&&void 0!==r&&r,Ee=()=>{K(!G)},Ce=()=>{"toggle"===p?Ee():F.current.focus()},ke=Se&&("toggle"===p||f),Re="grid"===(null==he?void 0:he.dataLayout),Le=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:a}=e;if(n){let e;e=u_({isGridMode:n,dense:r})>o?"0px":"2px",t="row"===a?"".concat(e," 4px"):"".concat(e," 6px ").concat(e," 4px")}else t=void 0;return t}({isGridMode:Re,dense:we,height:null===(o=j.current)||void 0===o?void 0:o.clientHeight,layoutOrder:he.layoutOrder});ae&&(null==E||E());const Oe=ye?VL+jL:0,_e=V.createElement(QT,{app:s,showSearchIcon:ge,onShowSearch:Ee,isPopover:k,showToolbar:W,isDirectQuery:D,autoConfirm:fe,showDetachedToolbarOnly:be,layout:i,translator:T,styles:z,isRtl:xe,showLock:R,constraints:N,classes:YT,containerRect:B,containerRef:j,model:m,selectionState:ne,selections:g,keyboard:re});return V.createElement(V.Fragment,null,be&&_e,V.createElement(eP,{className:"listbox-container",container:!0,tabIndex:re.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Le,styles:z,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:le,onMouseEnter:se,onMouseLeave:ce,ref:e=>{j.current=e,$(e)},isGridMode:Re,"aria-label":re.active?T.get("Listbox.ScreenReaderInstructions"):""},ye&&_e,V.createElement(hk,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Oe,role:"region","aria-label":T.get("Listbox.ResultFilterLabel")},V.createElement(hk,{item:!0},V.createElement(SI,{ref:F,selections:g,selectionState:ne,model:m,dense:we,keyboard:re,visible:Se,search:p,autoFocus:ke,beginSelectionOnFocus:!k,wildCardSearch:de,searchEnabled:pe,direction:c,hide:ge&&Ee,styles:z})),V.createElement(hk,{item:!0,xs:!0,className:YT.listboxWrapper},ae?V.createElement(qT,{text:ie}):V.createElement(PT,null,(e=>{let{height:t,width:n}=e;return V.createElement($_,{model:m,app:s,constraints:N,layout:i,selections:g,selectionState:ne,direction:c,frequencyMode:u,rangeSelect:h,checkboxes:q,height:t,width:n,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x,keyboard:re,showGray:S,scrollState:w,keyScroll:{state:X,reset:()=>Q({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Y,set:ee},renderedCallback:E,onCtrlF:Ce,isModal:oe,styles:z})}))))))}));function nP(e){let{options:t={}}=e;const{model:n}=t,[r]=sL(n);return V.createElement(tP,{options:t,layout:r})}function rP(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=U.useState(),[i]=tL(),{sessionModel:l}=r,s=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(r).filter((e=>s.includes(e)));if(c.length)throw new Error('Option "'.concat(c.join(", "),'" is not applicable for existing objects.'));return U.useEffect((()=>{Promise.resolve(l||async function(e){return i.get(e)||await t.getObject(e)}(n)).then((e=>{!function(e){i.get(e.id)||(i.set(e.id,e),e.once("closed",(()=>{i.clear(e.id)})))}(e),a(e)}))}),[]),o}const oP={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function aP(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const iP=["__DO_NOT_USE__"],lP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return l(l(l({},s(e,iP)),n),t)};function sP(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:a,options:i,renderedCallback:s,flags:c}=e;const{isExistingObject:u,hasExternalSelectionsApi:d}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:r,options:i});u||Object.assign(i,{frequencyMode:aP(i.frequencyMode)});const[p,f]=U.useState(0);U.useEffect((()=>{if(p)throw new Error("Source or selection Api can not change after a listbox has been mounted");f(p+1)}),[u,d]);const h=u?rP({app:t,qId:r,options:i}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:a={}}=e;const[i,l]=U.useState(""),[s,c]=U.useState(!0),[u,d]=U.useState(),[p,f]=U.useState(),h=null!==(t=a.title)&&void 0!==t?t:p;let{histogram:m=!1,frequencyMode:g="N"}=a;i&&i.failedToFetchFieldDef&&(m=!1,g="N"),U.useEffect((()=>{const e=m||"N"!==g;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();f(t.qDim.title),"N"===t.qDim.qGrouping?l(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):l({multiFieldDim:!0}),c(!1)}catch(e){throw c(!1),l({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(c(!1),f(r))}),[]);const{dense:v,checkboxes:b,listLayout:y,properties:x={}}=a,S={dense:v};"horizontal"===y&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const w=U.useRef();w.current||(w.current=wT());const E=He(!0,{},oP,{qInfo:{qId:w.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:b,layoutOptions:S,title:h});let C;if(He(!0,E,x),r.qLibraryId?(E.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(E.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==g&&m)if(null!=i&&i.multiFieldDim)E.frequencyMax="fetch";else{const e=r.qLibraryId?i:C;E.frequencyMax={qValueExpression:A_(e)}}const[k]=nL(E,s?null:n,C,o);return U.useEffect((()=>{k&&d(k)}),[k]),u}({app:t,fieldIdentifier:n,stateName:o,options:i}),m=U.useRef(a),g=d?i.selectionsApi:RI(t,h,[m,".njs-action-toolbar-more",".njs-action-toolbar-popover"],i)[0],v=U.useMemo((()=>l(l({},i),{},{selections:g,model:h,app:t,renderedCallback:s,flags:c})),[i,g,h,t]);return g&&h?V.createElement(nP,{options:v}):null}const cP={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function uP(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={},flags:i}=e;const[l,s]=U.useState(!!a.show);return V.createElement(nT,{show:l,app:t,alignTo:{current:o},anchorOrigin:a.anchorOrigin,transformOrigin:a.transformOrigin,close:()=>{s(!1),a.onPopoverClose&&a.onPopoverClose()},fieldName:n,stateName:r,autoFocus:a.autoFocus,components:a.components,flags:i,sortCriteria:a.sortCriteria})}function dP(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function pP(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}const fP=e=>({qDef:{qFieldDefs:[e]}}),hP=e=>({qDef:{qDef:e}});function mP(e){let{dc:t,def:n,properties:r}=e;t.qDimensions=t.qDimensions||[],t.qMeasures=t.qMeasures||[],t.qInterColumnSortOrder=t.qInterColumnSortOrder||[],t.qInitialDataFetch=t.qInitialDataFetch||[],t.qColumnOrder=t.qColumnOrder||[],t.qExpansionState=t.qExpansionState||[];const o=r,a={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?fP(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||wT(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],t.qDimensions.length<a.maxDimensions()?(t.qDimensions.push(r),dP(t.qInterColumnSortOrder,t.qDimensions.length-1),n.dimensions.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];return pP(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?hP(e):l(l({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||wT(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<a.maxMeasures()?(t.qMeasures.push(r),dP(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),n.measures.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(e){const r=t.qMeasures.splice(e,1)[0];pP(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,o,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<a.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<a.maxMeasures()};return a}const gP=e=>({qDef:{qFieldDefs:[e]}});function vP(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,a={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?gP(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||wT(),r.qDef.qSortCriterias=t.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(r).forEach((e=>{t[e]=r[e]})),n.dimensions.added(r,o),r},removeDimension(e){const r=t;return delete t.qDef,delete t.qLibraryId,n.dimensions.removed(r,o,e),r},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===a.dimensions().length,canAddMeasure:()=>!1};return a}const bP=e=>({qDef:{qFieldDefs:[e]}}),yP=e=>{let t;return t="string"==typeof e?He(!0,{},oP,{qListObjectDef:bP(e)}):e.qListObjectDef?He(!0,{},oP,e):He(!0,{},oP,{qListObjectDef:e}),t};function xP(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=yP(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||wT(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var a,i;r.title=o.qDef.title||(null===(a=o.qDef.qFieldLabels)||void 0===a?void 0:a[0])||(null===(i=o.qDef.qFieldDefs)||void 0===i?void 0:i[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}};return r}function SP(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function wP(e,t){let{sn:n,properties:r,fields:o,children:a}=e;if(!o.length)return;const i=n.qae.data.targets[0];if(!i)return;const{propertyPath:l}=i,s=l.split("/");let c=r;for(let e=0;e<s.length;e++){const t=s[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?vP:e.match("/qChildListDef")?xP:mP}(l),d=u({dc:c,def:i,properties:r,children:a,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===SP(t)?await d.addMeasure(t):await d.addDimension(t)}}var EP={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let a=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==a[t]&&null!==a[t]||(a[t]=Number.isNaN(+r[e+1])?{}:[]),a=a[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?a[o]=n:delete a[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var CP={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(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}};const kP=2**53-1;function RP(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function LP(e,t){const n=He(!0,{},t,e);return EP.getValue(n,"qOtherTotalSpec.qOtherCounted")||EP.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),EP.getValue(n,"qOtherTotalSpec.qOtherLimit")||EP.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function OP(e,t){return He(!0,{},t,e)}function _P(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var IP={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===EP.getValue(e,t)&&EP.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:RP,importCommonProperties:function(e,t,n){const r="masterobject"===EP.getValue(t,"properties.qInfo.qType")?"masterobject":EP.getValue(n,"qInfo.qType");EP.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},createDefaultDimension:LP,createDefaultMeasure:OP,resolveValue:_P,getHypercubePath:function(e){const t=EP.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},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:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let a=n.qInterColumnSortOrder.length;if(a!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());a!==o;)a<o?(CP.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,CP.indexRemoved(n.qInterColumnSortOrder,a))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=He(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?EP.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||RP(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=He(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},a=n.measures||{max:0},i=_P(a.max,r.dimensions.length,kP),l=_P(a.min,r.dimensions.length,0);return{maxDimensions:_P(o.max,i,kP),minDimensions:_P(o.min,l,0),maxMeasures:i,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a}=e;const i=t.data[0];return i.dimensions.length>n&&n>0||i.measures.length>o&&o>0||i.excludedDimensions.length>0&&i.dimensions.length+i.excludedDimensions.length>r||i.excludedMeasures.length>0&&i.measures.length+i.excludedMeasures.length>a||!o&&i.measures.length>0||!n&&i.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a,newHyperCubeDef:i}=e;const l=t.data[0];i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.qHyperCubeDef||(i.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>a)&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(LP(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(LP(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(LP(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(LP(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(LP(i.excludedDimensions[l],a))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(OP(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(OP(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(OP(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(OP(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(OP(i.excludedMeasures[l],a))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=EP.getValue(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach((r=>{e.qDimensions.push(r),n.dimensions.added(r,t)}))}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=EP.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var TP={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,a=EP.getValue(o,n||""),i=a.qHyperCubeDef,l=r.data[0];if(i.qInterColumnSortOrder||(i.qInterColumnSortOrder=[]),l.dimensions.push(...i.qDimensions),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...i.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...i.qMeasures),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...i.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=i.qInterColumnSortOrder.concat(),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();CP.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete i.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=a.qHyperCubeDef,delete a.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(IP.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!EP.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:a}=e;const i={qChildren:[]},l=IP.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=EP.getValue(n,a||"").qHyperCubeDef,c=EP.getValue(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=IP.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=IP.getDefaultDimension(),defaultMeasure:m=IP.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,IP.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&IP.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),IP.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),IP.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),IP.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),IP.copyPropertyIfExist("qMaxStackedCells",s,c),IP.copyPropertyIfExist("qNoOfLeftDims",s,c),IP.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),IP.copyPropertyOrSetDefault("qMode",s,c,"S"),IP.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),IP.copyPropertyOrSetDefault("qSortbyYValue",s,c),IP.copyPropertyOrSetDefault("qIndentMode",s,c),IP.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),IP.importCommonProperties(l,t,n),IP.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),IP.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const PP=e=>EP.getValue(e,"data.targets.0.propertyPath"),MP=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return TP.exportProperties})(PP(e))},NP=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return TP.importProperties})(PP(e))},qP=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:a,viewDataMode:i=!1}=e;const s=a?{qProperty:a}:await n.getFullPropertyTree(),c=r.current.getQae(),u=MP(c);if(!u)throw new Error("Source chart does not support conversion");const d=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),p=d.qae,f=NP(p);if(!f)throw new Error("Target chart does not support conversion");return f({exportFormat:u({propertyTree:s,hypercubePath:IP.getHypercubePath(c),viewDataMode:i}),initialProperties:l({qInfo:{qType:o},visualization:o},EP.getValue(p,"properties.initial",{})),dataDefinition:EP.getValue(p,"data.targets.0.",{}),hypercubePath:IP.getHypercubePath(p),viewDataMode:i})},AP={hypercube:TP};var zP=e=>pL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function DP(e){let{d:t}=e;const n=Ry();let r="inherit",o=n.palette.success.main;t.missing?o=n.palette.warning.main:t.error&&(r="error",o=n.palette.error.main);const a={color:o},i=V.createElement(zS,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},V.createElement(Ek,null,t.missing||t.error?V.createElement(zP,{style:a}):V.createElement(IL,{style:a})));return V.createElement(hk,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},V.createElement(hk,{item:!0},i),V.createElement(hk,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},V.createElement(zS,{noWrap:!0,component:"p"},V.createElement(zS,{component:"span",variant:"subtitle2",color:r},t.description),V.createElement(zS,{component:"span"}," "),V.createElement(zS,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function jP(e){let{data:t}=e;const n=Ry();return V.createElement(hk,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>V.createElement(DP,{d:e,key:t})));return r.length>0&&V.createElement(hk,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},V.createElement(zS,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function FP(e){let{title:t="Error",message:n="",data:r=[]}=e;return V.createElement(hk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},V.createElement(hk,{item:!0},V.createElement(zP,{style:{fontSize:"38px"}})),V.createElement(hk,{item:!0},V.createElement(zS,{variant:"h6",align:"center","data-tid":"error-title"},t)),V.createElement(hk,{item:!0},V.createElement(zS,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),V.createElement(jP,{data:r}))}const $P=["size"],BP="Progress",WP={root:"".concat(BP,"-root"),front:"".concat(BP,"-front"),back:"".concat(BP,"-back")},HP=rx("div")((e=>{let{theme:t}=e;return{["&.".concat(WP.root)]:{position:"relative",display:"inline-block"},["& .".concat(WP.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(WP.back)]:{color:t.palette.divider}}})),UP={small:16,medium:32,large:64,xlarge:128};function VP(e){let{size:t="medium"}=e,n=s(e,$P);const r=UP[t];return V.createElement(HP,{className:WP.root},V.createElement(_C,a({variant:"determinate",value:100,className:WP.back,size:r,thickness:3},n)),V.createElement(_C,a({variant:"indeterminate",disableShrink:!0,className:WP.front,size:r,thickness:3},n)))}const GP=["cancel","translator"],KP=["retry","translator"],ZP={stripes:"".concat("LongRunningQuery","-stripes")},XP=rx(hk)((()=>({["& .".concat(ZP.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})));function QP(e){let{cancel:t,translator:n}=e,r=s(e,GP);return V.createElement(V.Fragment,null,V.createElement(XP,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},V.createElement(hk,{item:!0},V.createElement(VP,null)),V.createElement(hk,{item:!0},V.createElement(zS,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),V.createElement(hk,a({item:!0},r),V.createElement(eS,{variant:"contained",onClick:t},n.get("Cancel"))))}function JP(e){let{retry:t,translator:n}=e,r=s(e,KP);return V.createElement(V.Fragment,null,V.createElement(hk,{item:!0},V.createElement(zP,{style:{fontSize:"38px"}})),V.createElement(hk,{item:!0},V.createElement(zS,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),V.createElement(hk,{item:!0},V.createElement(eS,a({variant:"contained",onClick:t},r),n.get("Retry"))))}function YP(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=U.useContext(sS);return V.createElement(hk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:ZP.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&V.createElement(QP,{cancel:r.cancel,translator:o,className:ZP.cancel}),n&&V.createElement(JP,{retry:r.retry,translator:o,className:ZP.retry}))}function eM(){return V.createElement(hk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},V.createElement(VP,{size:"large"}))}const tM="Header",nM={containerStyle:"".concat(tM,"-containerStyle"),containerTitleStyle:"".concat(tM,"-containerTitleStyle")},rM=rx(hk)((e=>{let{theme:t}=e;return{["&.".concat(nM.containerStyle)]:{flexGrow:0},["&.".concat(nM.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),oM="njs-cell-title",aM="njs-cell-sub-title";function iM(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:a,titleStyles:i={}}=e;const l=t.showTitles&&!!t.title,s=t.showTitles&&!!t.subtitle,c=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,d]=U.useState([]),[p,f]=uL(),[h,m]=U.useState(!1);U.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{d([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),U.useEffect((()=>{if(!f)return;const{width:e}=f;m(e<221)}),[f]);const g=l||s,v=[nM.containerStyle,...g?[nM.containerTitleStyle]:[]],b=(o||c)&&(h||!g),y=g&&!b&&!h,x=V.createElement(mI,{show:y,selections:{show:c,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:a,layout:t});return V.createElement(rM,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},V.createElement(hk,{item:!0,zeroMinWidth:!0,xs:!0},V.createElement(hk,{container:!0,wrap:"nowrap",direction:"column"},l&&V.createElement(zS,{variant:"h6",noWrap:!0,className:oM,style:i.main},t.title),s&&V.createElement(zS,{variant:"body2",noWrap:!0,className:aM,style:i.subTitle},t.subtitle))),V.createElement(hk,{item:!0},x))}const lM={itemStyle:"".concat("Footer","-itemStyle")},sM=rx(hk)((e=>{let{theme:t}=e;return{["& .".concat(lM.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),cM="njs-cell-footer";function uM(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?V.createElement(sM,{container:!0},V.createElement(hk,{item:!0,className:lM.itemStyle},V.createElement(zS,{noWrap:!0,variant:"body2",className:cM,style:n.footer},t.footnote))):null}class dM{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout((()=>{this.doNext()}),10)}async doNext(){const e=this.next;this.next=null,e?(await e(),this.scheduleNext()):this.stop()}schedule(e){this.next=e,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}const pM="njs-viz";function fM(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:i}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=U.useContext(sS),[h]=U.useState((()=>new dM)),[m,g]=U.useState(!1),[v,b]=U.useState(0),[y,x,S]=uL(),[w,E]=U.useState(null),C=U.useCallback((e=>{e&&E(e)}),[]);return U.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),U.useEffect((()=>{m&&w&&x&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),d.edit||e.push("edit"),i.app&&i.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:i.public.nebbie,context:l({constraints:d,interactions:p,theme:i.public.theme,appLayout:a,keyboardNavigation:f},s.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(a||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===v&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),b(v+1))}))})))}),[x,n,r,w,S,o,a,c,u,d,p,m,f]),V.createElement("div",{ref:y,"data-render-count":v,style:{position:"relative",height:"100%"},className:pM},V.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const hM=(e,t,n,r)=>{const o=U.useMemo((()=>{if(e&&t){const r=e.components?e.components.find((e=>"general"===e.key)):null,o={main:UI(r,"main",t,e.visualization),footer:UI(r,"footer",t,e.visualization),subTitle:UI(r,"subTitle",t,e.visualization)},a=WI(r,t,e.visualization),i=BI(r,n),l=function(e,t,n){const r=DI(null==e?void 0:e.borderColor,"","borderColor",t,n),o=(null==e?void 0:e.borderWidth)||AI("","borderWidth",t,n);return o&&r?"".concat(o," solid ").concat(r):void 0}(r,t,e.visualization),s=function(e,t,n){return(null==e?void 0:e.borderRadius)||AI("","borderRadius",t,n)}(r,t,e.visualization);return{titleStyles:o,bgColor:a,bgImage:i,border:l,borderRadius:s,boxShadow:HI(r,t,e.visualization)}}return{}}),[e,t,n,r]);return o},mM="njs-cell",gM=(e,t)=>{switch(t.type){case"LOADING":return l(l({},e),{},{loading:!0});case"LOADED":return l(l({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return l(l({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return l(l({},e),{},{longRunningQuery:!0});case"ERROR":return l(l({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function vM(e){let{delay:t=750}=e;const[n,r]=U.useState(!1);return U.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?V.createElement(eM,null):null}const bM=e=>!e.qError||7005===e.qError.qErrorCode,yM=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const a=!(!t||!t[e]),i=a&&t[e].qError&&7005===t[e].qError.qErrorCode,l=a&&!i&&t[e].qError,s=i&&t[e].qCalcCondMsg,c="".concat(l?r:i?s||o:a&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!a&&!l&&e>=t.length||i,error:l}})),xM=e=>e&&(Array.isArray(e)?e:[e])||[],SM=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:yM(o,xM(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:yM(a,xM(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},wM=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:a,aggMinD:i,aggMinM:l,hasLayoutErrors:s,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,a=0,i=!1,l=!1;const s=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),f=u.resolveLayout(n),h=xM(f.qDimensionInfo||f.qItems).filter(bM),m=xM(f.qMeasureInfo).filter(bM);if(o+=d,a+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){i=!0,l=7005===f.qError.qErrorCode;const t=l&&f.qCalcCondMsg?f.qCalcCondMsg:l?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");s.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:a,hasLayoutErrors:i,layoutErrors:s}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const i=o[n];if(!s&&a){const n=p||await r.getProperties();p=n;const o=SM(e,t,n,i);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,i]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,l]),v=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],b=s?c:v;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},EM=U.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:i,onMount:s,currentId:c,emitter:u,navigation:d}=e;const{app:p,types:f}=n,{nebbie:h}=n.public,{theme:m,translator:g,language:v,keyboardNavigation:b,disableCellPadding:y=!1}=U.useContext(sS),x=Ry(),[S,w,E]=uL(),[C,k]=U.useReducer(gM,{loading:!1,loaded:!1,longRunningQuery:!1,error:(R=i)?{title:R.message}:null,sn:null,visualization:null});var R;const[L,O]=U.useState(r),[_,{validating:I,canCancel:T,canRetry:P},M]=sL(L),[N]=cL(p),[q,A,z]=uL(),[D,j]=U.useState(o),[F,$]=U.useState(a),B="njs-cell-".concat(c),[W]=RI(p,L,["#".concat(B),".njs-action-toolbar-popover"]),[H,G]=U.useState(!1),K=U.useRef({enter:null,leave:null}),{titleStyles:Z,bgColor:X,bgImage:Q,border:J,borderRadius:Y,boxShadow:ee}=hM(_,n.public.theme,n.app,m),te=U.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});U.useEffect((()=>{EI(te.current)}),[]),te.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&z&&z.focus()},te.current.refocusContent=()=>{C.sn.component&&"function"==typeof C.sn.component.focus&&C.sn.component.focus()};U.useEffect((()=>{if(i)return void s();if(!N||!_)return;if(C.visualization===_.visualization&&C.sn)return void(async e=>{const[t,n]=await wM(g,_,e.generator.qae.data,L);k(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:C.sn,layout:_,model:L})})(C.sn);const e=f.getSupportedVersion(_.visualization,_.version);return(async(e,t)=>{k({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u,onMount:d,navigation:p}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o}),f=e.create({model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u,navigation:p});f&&(t({type:"LOADED",sn:f,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:k,types:f,visualization:e,version:t,model:L,app:p,selections:W,nebbie:h,focusHandler:te.current,emitter:u,onMount:s,navigation:d})})(_.visualization,e),()=>{}}),[f,C.sn,L,W,_,N,v]),U.useEffect((()=>{if(!I)return;const e=setTimeout((()=>k({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[I]),U.useImperativeHandle(t,(()=>({getQae:()=>C.sn.generator.qae,toggleFocus(e){"function"==typeof C.sn.component.focus&&(e?C.sn.component.focus():C.sn.component.blur())},setSnOptions:j,setSnPlugins:$,setModel:O,getImperativeHandle(){var e;return null!==(e=C.sn)&&void 0!==e&&e.component&&"function"==typeof C.sn.component.getImperativeHandle?C.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=w;let n=JSON.parse(JSON.stringify(_));return"function"==typeof C.sn.component.setSnapshotData&&(n=await C.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:g.language(),theme:x.name,appLayout:N,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof n.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return n.config.snapshot.capture(e)}})),[C.sn,A,w,_,x.name,N]);let ne=null;return C.loading&&!C.longRunningQuery?ne=V.createElement(vM,null):C.error?ne=V.createElement(FP,C.error):C.loaded&&(ne=V.createElement(fM,{key:_.visualization,sn:C.sn,halo:n,snOptions:D,snPlugins:F,layout:_,appLayout:N})),V.createElement(RS,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:X||"unset",backgroundImage:Q&&Q.url?"url(".concat(Q.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:Q&&Q.size,backgroundPosition:Q&&Q.pos,border:J,borderRadius:Y,boxShadow:ee,boxSizing:"border-box"},elevation:0,square:!0,className:mM,ref:S,id:B,onMouseEnter:()=>{K.current.leave&&clearTimeout(K.current.leave),K.enter||(K.current.enter=setTimeout((()=>{G(!0),K.current.enter=null}),250))},onMouseLeave:()=>{K.current.enter&&clearTimeout(K.current.enter),K.current.leave||(K.current.leave=setTimeout((()=>{G(!1),K.current.leave=null}),750))}},V.createElement(hk,{container:!0,direction:"column",gap:0,style:l(l({position:"relative",width:"100%",height:"100%"},y?{}:{padding:x.spacing(1)}),C.longRunningQuery?{opacity:"0.3"}:{})},E&&_&&C.sn&&V.createElement(iM,{layout:_,sn:C.sn,anchorEl:E,hovering:H,focusHandler:te.current,titleStyles:Z}," "),V.createElement(hk,{tabIndex:b?0:-1,onKeyDown:b?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:q},ne),E&&_&&C.sn&&V.createElement(uM,{layout:_,titleStyles:Z})),C.longRunningQuery&&V.createElement(YP,{canCancel:T,canRetry:P,api:M}))}));function CM(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function kM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const a=t[o];"object"!=typeof n[o]||"object"!=typeof a||Array.isArray(a)?function(e,t){return CM(e)&&CM(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(a,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...kM("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function RM(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach((e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error('Invalid plugin format: The plugin "'.concat(e.info.name,'" has no "fn" function'))}))}const LM=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},OM=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),_M=He.bind(null,!0),IM={},{isArray:TM}=Array;function PM(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function MM(e){return void 0===e}function NM(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function qM(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const a=isNaN(r)?{}:[];e[r||t]=MM(e[r||t])?a:e[t],e=e[r||t]})),e}function AM(e,t){let n=!0;if(PM(e)&&PM(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{AM(e[r],t[r])||(n=!1)})),n);if(TM(e)&&TM(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!AM(e[n],t[n]))return!1;return!0}return e===t}IM.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?_M({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);AM(a,i)||NM(t,o)||(MM(i)?r.push({op:"add",path:l,value:a}):PM(a)&&PM(i)?r=r.concat(IM.generate(i,a,l)):TM(a)&&TM(i)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let a=-1;function i(e,t,n){if(e[n]&&MM(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(AM(t,o))return r;if(!MM(t[0])&&MM(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)a=i(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===a?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(IM.generate(o[e],t[a],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)a=i(o,t[e].qInfo&&t[e].qInfo.qId),-1===a?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):a!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(a)}),o.splice(e,0,o.splice(a,1)[0]));return r}(i,a,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:a}))})),Object.keys(e).forEach((o=>{MM(t[o])&&!NM(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},IM.apply=function(e,t){t.forEach((t=>{let n=qM(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const a=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(TM(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(TM(o)&&TM(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(PM(o)&&PM(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!NM(i,e)&&delete i[e]})),_M(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=qM(e,t.from);TM(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(TM(n)?n.splice(+r,1):delete n[r]);var i}))},IM.clone=function(e){return _M({},e)},IM.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},IM.updateObject=function(e,t){Object.keys(e).length?IM.apply(e,IM.generate(e,t)):_M(e,t)};const zM=e=>t=>{const n=(r=l(l({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(ee.prototype).forEach((e=>{r[e]=ee.prototype[e]})),ee.init(r),r);var r;return n};let DM,jM;function FM(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function $M(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function BM(e){HM(e.__hooks.list,!0),e.__hooks.obsolete=!0,e.__hooks.list.length=0,e.__hooks.pendingEffects.length=0,e.__hooks.pendingLayoutEffects.length=0,e.__hooks.actions=null,e.__hooks.imperativeHandle=null,e.__hooks.resizer=null,e.__hooks.accessibility=null,e.__actionsDispatch=null,clearTimeout(e.__hooks.micro),cancelAnimationFrame(e.__hooks.macro)}async function WM(e){if(e.__hooks.obsolete)return Promise.resolve();jM=-1,DM=e,DM.__hooks.initiated&&DM.__hooks.list.length;try{DM.fn.call(null)}catch(e){console.error(e)}DM.__hooks.initiated=!0;const t=DM.__hooks;return KM(DM),jM=void 0,DM=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){HM(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){HM(e.pendingEffects),e.macro=null,function(e){if(e.pendingPromises.length||e.micro||e.macro)return;e.chain.promise=null,e.chain.resolve(!e.waitForData)}(e)}(e)}))}(t),t.chain.promise}function HM(e,t){try{e.forEach((e=>{"function"==typeof e.teardown&&e.teardown(),t||(e.teardown=e.value[0]())}))}catch(e){console.error(e)}e.length=0}function UM(e,t){try{return Promise.all(e.__hooks.snaps.map((e=>Promise.resolve(e.fn(t))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function VM(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function GM(e){return e.__hooks.imperativeHandle}function KM(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function ZM(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,KM(e))}function XM(e){if(void 0===DM)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=DM.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function QM(e){XM(++jM);return DM.context[e]}function JM(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function YM(e){return{__hooked:!0,fn:e,initiate:$M,run:WM,teardown:BM,runSnaps:UM,runMenu:VM,focus:aN,blur:iN,observeActions:ZM,getImperativeHandle:GM,updateRectOnNextRun:JM}}function eN(e){const t=XM(++jM);if(!t.value){t.component=DM;const n=e=>{if(t.component.__hooks.obsolete)return;const n="function"==typeof e?e(t.value[0]):e;var r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout((()=>{r.__hooks.micro=null,WM(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function tN(e,t){const n=XM(++jM);FM(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===DM.__hooks.pendingEffects.indexOf(n)&&DM.__hooks.pendingEffects.push(n))}function nN(e,t){const n=XM(++jM);FM(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],DM.__hooks.pendingLayoutEffects.push(n))}function rN(e,t){const n=XM(++jM);return FM(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function oN(){return QM("element")}function aN(e){const t=e.__hooks.accessibility;t.active||(t.active=!0,t&&t.setter&&t.setter({active:!0,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}function iN(e){const t=e.__hooks.accessibility;t&&t.active&&(t.active=!1,t&&t.setter&&t.setter({active:!1,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}const lN={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},sN=Object.keys(lN),cN=e=>(Object.keys(ee.prototype).forEach((t=>{e[t]=ee.prototype[t]})),ee.init(e),e);function uN(e,t){const n=l({},lN);cN(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==sN.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],a=zM(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=a(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=a(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:a,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function dN(e,t,n){"function"==typeof e.component&&(e.component=YM(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const a={},i=["appLayout","constraints","interactions"],s={},c={};t.model&&t.model.session||(s.select=!0,s.edit=!0,c.select=!1,c.edit=!1);const u={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:c,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(u,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}i.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(l(l({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(l(l({},r[e]),c))),t!==a[e]&&(n=!0,a[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==a.themeName&&(n=!0,a.themeName=this.context.theme.name()),this.context.translator.language()!==a.language&&(n=!0,a.language=u.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return i.forEach((e=>{a[e]=JSON.stringify(u.context[e])})),a.themeName=u.context.theme?u.context.theme.name():void 0,a.language=u.context.translator?u.context.translator.language():void 0,Object.assign(u,{selections:t.selections}),[u,null]}(e,t,n):uN(e,t),a=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];try{e.qae.properties.onChange.call({model:t.model},...r)}catch(e){}return t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const a=IM.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));IM.apply(o,i);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const l=IM.generate(a,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,l,r)}))},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},a.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){a.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const pN=()=>{};function fN(e,t){return void 0===e?()=>t:()=>e}function hN(e){const t=e||{};return{min:"function"==typeof t.min?t.min:fN(t.min,0),max:"function"==typeof t.max?t.max:fN(t.max,1e3),added:t.added||t.add||pN,description:t.description||pN,moved:t.moved||t.move||pN,removed:t.removed||t.remove||pN,replaced:t.replaced||t.replace||pN,isDefined:()=>!!e}}const mN=(e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o};function gN(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>mN(e,n,{}),dimensions:hN(e.dimensions),measures:hN(e.measures)}}function vN(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);return{properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(gN)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function bN(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:vN(n.qae),component:n.component||{},create:e=>dN(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const yN=(e,t,n)=>{if(!e)return Promise.resolve();let r=IM.generate(t,n);return He(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},xN=()=>{};function SN(){let e,{model:t,halo:n,navigation:r,initialError:o,onDestroy:a=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=xN,s=null,c=null,u=null,d=null;const p=new Promise((e=>{u=e})),f=new Promise((e=>{d=e})),h=e=>()=>{e&&e(),d()};let m={},g=[];const v=new ee,b={id:t.id,model:t,async destroy(){await a(),i(),i=xN},async convertTo(e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const o=await t.getLayout();if(LM(o)&&!r){const r=await qP({halo:n,model:t,cellRef:s,newType:e});return await OM(t,r.qProperty),r}const a=await t.getEffectiveProperties(),i=await qP({halo:n,model:t,cellRef:s,newType:e,properties:a}),l=i.qProperty;return await yN(t,a,l),i}return await qP({halo:n,model:t,cellRef:s,newType:e})},async toggleDataView(r){let o;if(e||!1===r)e&&!0!==r&&(o=t,await n.app.destroySessionObject(e),e=void 0);else{let r=n.config.context.dataViewType;const a=await t.getEffectiveProperties();if(!n.types.getSupportedVersion(r)){if(!n.types.getSupportedVersion("table"))throw new Error("No data view type registered");r="table"}const i=await qP({halo:n,model:t,cellRef:s,newType:r,properties:a,viewDataMode:!0});o=await n.app.createSessionObject(i.qProperty),e=o.id}o&&s.current.setModel(o)},addListener(e,t){v.addListener(e,t)},removeListener(e,t){v.removeListener(e,t)},getImperativeHandle:async()=>(await f,s.current.getImperativeHandle()),takeSnapshot:async()=>(await f,s.current.takeSnapshot()),__DO_NOT_USE__:{mount(e){if(c)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return c=e,[i,s]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,emitter:l,initialError:s,navigation:c}=e;const{root:u}=t,d=V.createRef(),p=wT(),f=Ip.createPortal(V.createElement(EM,{ref:d,halo:t,model:r,currentId:p,initialSnOptions:o,initialSnPlugins:a,initialError:s,onMount:i,emitter:l,navigation:c}),n,p),h=()=>{u.remove(f),r.removeListener("closed",h)};return r.on("closed",h),u.add(f),u.addCell(p,d),[h,d]}({halo:n,element:e,model:t,initialSnOptions:m,initialSnPlugins:g,initialError:o,onMount:u,emitter:v,navigation:r}),p},async applyProperties(e){const n=kM("/",e,await t.getEffectiveProperties());if(n.length)return t.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;c?(async()=>{await p,s.current.setSnOptions(l(l(l({},m),e),{onInitialRender:h(t)}))})():m=l(l(l({},m),e),{onInitialRender:h(t)})})(e)},plugins(e){(async e=>{RM(e),c?(async()=>{await p,s.current.setSnPlugins(e)})():g=e})(e)},exportImage:()=>s.current.exportImage(),takeSnapshot:()=>s.current.takeSnapshot(),getModel:()=>t,convert:{async toType(e){const r=await t.getEffectiveProperties(),o=await qP({halo:n,model:t,cellRef:s,newType:e,properties:r}),a=o.qProperty;return await yN(t,r,a),o},async revert(){await t.clearSoftPatches()}}}};return b}async function wN(e,t,n,r,o){const a=SN({model:e,halo:n,navigation:r,initialError:o,onDestroy:arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{}});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}async function EN(e,t,n,r){let{type:o,version:a,fields:i,properties:l,extendProperties:s}=e,c={};const u=[],{modelStore:d}=r;try{const e=t.types.get({name:o,version:a});c=await e.initialProperties(l,s);const n=await e.supernova();i&&await wP({sn:n,properties:c,fields:i,children:u},t),l&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},c)}catch(e){c=n?null:{qInfo:{qType:o},visualization:o}}if(!n){const e=await t.app.createObject(c);return u.length>0&&await e.setFullPropertyTree({qProperty:c,qChildren:u}),d.set(e.id,e),e}return c}const CN="njs-sheet";function kN(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}const RN=U.forwardRef(((e,t)=>{var n;let{model:r,halo:o,initialSnOptions:a,initialSnPlugins:i,initialError:l,onMount:s,unmount:c,navigation:u}=e;const{root:d}=o,[p,f]=U.useState(r),[h]=sL(p),{theme:m,modelStore:g}=U.useContext(sS),[v,b]=U.useState([]),[y,x]=U.useState(void 0),[S,w]=U.useState(void 0),[E,C]=U.useState("");null==u||null===(n=u.setCurrentSheetId)||void 0===n||n.call(u,p.id),U.useEffect((()=>{if(h){const e=JSON.stringify(h.cells);if(e===E)return;C(e);const t=async()=>{v.forEach((e=>{d.removeCell(e.currentId)}));const e=h.cells,{columns:t,rows:n}=h,r=await Promise.all(e.map((async e=>{let r;const a=new Promise((e=>{r=e})),i=v.find((t=>t.id===e.name));if(i)return i.bounds=kN(e,t,n),delete i.mountedPromise,i;const l=await async function(e,t,n){let{id:r,options:o,plugins:a,element:i}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),wN(d,{options:o,plugins:a,element:i},t)}({id:e.name},o,g);return{model:l.model,id:e.name,bounds:kN(e,t,n),cellRef:V.createRef(),currentId:wT(),mounted:r,mountedPromise:a}})));r.forEach((e=>d.addCell(e.currentId,e.cellRef))),b(r)};t()}}),[h]),U.useEffect((()=>{const e=()=>{p.removeListener("closed",e),c()};return p.on("closed",e),()=>p.removeListener("closed",e)}),[p]);const k=U.useMemo((()=>v?v.map((e=>function(e,t,n,r,o,a,i){const{x:l,y:s,width:c,height:u}=e.bounds;return V.createElement("div",{style:{left:"".concat(l,"%"),top:"".concat(s,"%"),width:"".concat(c,"%"),height:"".concat(u,"%"),position:"absolute"},key:e.model.id},V.createElement(EM,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:a,navigation:i}))}(e,o,a,i,l,e.mounted,u))):[]),[v]);U.useEffect((()=>{const e=null!=h&&h.components?h.components.find((e=>"general"===e.key)):null;x(WI(e,o.public.theme)),w(BI(e,o.app))}),[h,o.public.theme,o.app,m]),U.useImperativeHandle(t,(()=>({setModel:f})),[]);const R=!h||Number.isNaN(h.height)?"100%":"".concat(Number(h.height),"%"),L=v.map((e=>e.mountedPromise)),O=L.filter((e=>!!e));return O.length&&Promise.all(L).then((()=>{s()})),V.createElement("div",{className:CN,style:{width:"100%",height:R,position:"relative",backgroundColor:y,backgroundImage:S&&S.url?"url(".concat(S.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:S&&S.size,backgroundPosition:S&&S.pos}},k)}));const LN=()=>{};function ON(){let{model:e,halo:t,navigation:n,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=LN,i=null,s=null,c=null;const u=new Promise((e=>{c=e}));let d={},p=[];const f={id:e.id,model:e,navigation:n,async destroy(){await o(),a(),a=LN},__DO_NOT_USE__:{mount(o){if(s)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return s=o,[a,i]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l,navigation:s}=e;const{root:c}=t,u=V.createRef();let d;const p=()=>{c.remove(d)};return d=Ip.createPortal(V.createElement(RN,{ref:u,halo:t,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i,unmount:p,navigation:s}),n,r.id),s.setSheetRef(u),c.add(d),[p,u]}({halo:t,element:o,model:e,initialSnOptions:d,initialSnPlugins:p,initialError:r,onMount:c,navigation:n}),u},async applyProperties(t){const n=kM("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{s?(async()=>{await u,i.current.setSnOptions(l(l({},d),e))})():d=l(l({},d),e)})(e)},plugins(e){(async e=>{RM(e),s?(async()=>{await u,i.current.setSnPlugins(e)})():p=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return f}async function _N(e,t,n){let{id:r,options:o,plugins:a,element:i,navigation:l}=e;const{modelStore:s,rpcRequestModelStore:c}=n,u="".concat(r);let d=c.get(u);d||(d=t.app.getObject(r),c.set(u,d));const p=await d;s.set(u,p);const f=l||("sheet"===p.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var a;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(a=o.anything)||void 0===a||null===(a=a.sense)||void 0===a?void 0:a.navigation;const i={model:n},l={goToSheet:async n=>{var r,o;if(!i.sheetRef)return;const{modelStore:a,rpcRequestModelStore:s}=t,c="".concat(n);let u,d=s.get(c);d||(d=e.app.getObject(n),s.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}a.set(c,u),null===(r=i.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),i.model=u,l.emit("sheetChanged")},setSheetRef:e=>{i.sheetRef=e},getCurrentSheetId:()=>!!i.model&&i.model.id};return EI(l),l}(t,n,p):void 0);return"sheet"===p.genericType?async function(e,t,n,r,o){const a=ON({model:e,halo:n,navigation:r,initialError:o,onDestroy:arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{}});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}(p,{options:o,plugins:a,element:i},t,f):wN(p,{options:o,plugins:a,element:i},t,f)}function IN(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var TN=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}};const PN=Object.freeze({loose:!0}),MN=Object.freeze({});var NN=e=>e?"object"!=typeof e?PN:e:MN,qN={exports:{}};var AN={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const zN="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};var DN=zN;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=AN,a=DN,i=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[d,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=u++;a(e,o,t),c[e]=o,s[o]=t,i[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(d,"*")),f("MAINVERSION","(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")")),f("MAINVERSIONLOOSE","(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")")),f("PRERELEASEIDENTIFIER","(?:".concat(s[c.NUMERICIDENTIFIER],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[c.NUMERICIDENTIFIERLOOSE],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASE","(?:-(".concat(s[c.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIER],")*))")),f("PRERELEASELOOSE","(?:-?(".concat(s[c.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIERLOOSE],")*))")),f("BUILDIDENTIFIER","".concat(d,"+")),f("BUILD","(?:\\+(".concat(s[c.BUILDIDENTIFIER],"(?:\\.").concat(s[c.BUILDIDENTIFIER],")*))")),f("FULLPLAIN","v?".concat(s[c.MAINVERSION]).concat(s[c.PRERELEASE],"?").concat(s[c.BUILD],"?")),f("FULL","^".concat(s[c.FULLPLAIN],"$")),f("LOOSEPLAIN","[v=\\s]*".concat(s[c.MAINVERSIONLOOSE]).concat(s[c.PRERELEASELOOSE],"?").concat(s[c.BUILD],"?")),f("LOOSE","^".concat(s[c.LOOSEPLAIN],"$")),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE","".concat(s[c.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),f("XRANGEIDENTIFIER","".concat(s[c.NUMERICIDENTIFIER],"|x|X|\\*")),f("XRANGEPLAIN","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:".concat(s[c.PRERELEASE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[c.PRERELEASELOOSE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAIN],"$")),f("XRANGELOOSE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAINLOOSE],"$")),f("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),f("COERCE","".concat(s[c.COERCEPLAIN],"(?:$|[^\\d])")),f("COERCEFULL",s[c.COERCEPLAIN]+"(?:".concat(s[c.PRERELEASE],")?")+"(?:".concat(s[c.BUILD],")?")+"(?:$|[^\\d])"),f("COERCERTL",s[c.COERCE],!0),f("COERCERTLFULL",s[c.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM","(\\s*)".concat(s[c.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",f("TILDE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAIN],"$")),f("TILDELOOSE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("LONECARET","(?:\\^)"),f("CARETTRIM","(\\s*)".concat(s[c.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",f("CARET","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAIN],"$")),f("CARETLOOSE","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("COMPARATORLOOSE","^".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],")$|^$")),f("COMPARATOR","^".concat(s[c.GTLT],"\\s*(").concat(s[c.FULLPLAIN],")$|^$")),f("COMPARATORTRIM","(\\s*)".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],"|").concat(s[c.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE","^\\s*(".concat(s[c.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAIN],")")+"\\s*$"),f("HYPHENRANGELOOSE","^\\s*(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s*$"),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(qN,qN.exports);var jN=qN.exports;const FN=/^[0-9]+$/,$N=(e,t)=>{const n=FN.test(e),r=FN.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var BN={compareIdentifiers:$N,rcompareIdentifiers:(e,t)=>$N(t,e)};const WN=DN,{MAX_LENGTH:HN,MAX_SAFE_INTEGER:UN}=AN,{safeRe:VN,t:GN}=jN,KN=NN,{compareIdentifiers:ZN}=BN;var XN=class e{constructor(t,n){if(n=KN(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof t,'".'));if(t.length>HN)throw new TypeError("version is longer than ".concat(HN," characters"));WN("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?VN[GN.LOOSE]:VN[GN.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>UN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>UN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>UN||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<UN)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(WN("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),ZN(this.major,t.major)||ZN(this.minor,t.minor)||ZN(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(WN("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return ZN(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(WN("build compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return ZN(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===ZN(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}};const QN=XN;var JN=(e,t,n)=>new QN(e,n).compare(new QN(t,n));const YN=JN;var eq=(e,t,n)=>0===YN(e,t,n);const tq=JN;var nq=(e,t,n)=>0!==tq(e,t,n);const rq=JN;var oq=(e,t,n)=>rq(e,t,n)>0;const aq=JN;var iq=(e,t,n)=>aq(e,t,n)>=0;const lq=JN;var sq=(e,t,n)=>lq(e,t,n)<0;const cq=JN;var uq=(e,t,n)=>cq(e,t,n)<=0;const dq=eq,pq=nq,fq=oq,hq=iq,mq=sq,gq=uq;var vq,bq,yq,xq,Sq=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return dq(e,n,r);case"!=":return pq(e,n,r);case">":return fq(e,n,r);case">=":return hq(e,n,r);case"<":return mq(e,n,r);case"<=":return gq(e,n,r);default:throw new TypeError("Invalid operator: ".concat(t))}};function wq(){if(xq)return yq;xq=1;const e=/\s+/g;class t{constructor(n,a){if(a=r(a),n instanceof t)return n.loose===!!a.loose&&n.includePrerelease===!!a.includePrerelease?n:new t(n.raw,a);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&f))+":"+e,r=n.get(t);if(r)return r;const i=this.options.loose,m=i?l[s.HYPHENRANGELOOSE]:l[s.HYPHENRANGE];e=e.replace(m,L(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(l[s.COMPARATORTRIM],c),a("comparator trim",e),e=e.replace(l[s.TILDETRIM],u),a("tilde trim",e),e=e.replace(l[s.CARETTRIM],d),a("caret trim",e);let g=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));i&&(g=g.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(l[s.COMPARATORLOOSE]))))),a("range list",g);const b=new Map,y=g.map((e=>new o(e,this.options)));for(const e of y){if(h(e))return[e];b.set(e.value,e)}b.size>1&&b.has("")&&b.delete("");const x=[...b.values()];return n.set(t,x),x}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}yq=t;const n=new TN,r=NN,o=function(){if(bq)return vq;bq=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),i("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],a=t.match(n);if(!a)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==a[1]?a[1]:"","="===this.operator&&(this.operator=""),a[2]?this.semver=new l(a[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(i("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new l(t,this.options)}catch(e){return!1}return a(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(e.value,r).test(this.value):""===e.operator?""===e.value||new s(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(a(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(a(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}vq=t;const n=NN,{safeRe:r,t:o}=jN,a=Sq,i=DN,l=XN,s=wq();return vq}(),a=DN,i=XN,{safeRe:l,t:s,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=jN,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:f}=AN,h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},v=(e,t)=>(a("comp",e,t),e=S(e,t),a("caret",e),e=y(e,t),a("tildes",e),e=E(e,t),a("xrange",e),e=k(e,t),a("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?l[s.TILDELOOSE]:l[s.TILDE];return e.replace(n,((t,n,r,o,i)=>{let l;return a("tilde",e,t,n,r,o,i),b(n)?l="":b(r)?l=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):b(o)?l=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):i?(a("replaceTilde pr",i),l=">=".concat(n,".").concat(r,".").concat(o,"-").concat(i," <").concat(n,".").concat(+r+1,".0-0")):l=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),a("tilde return",l),l}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{a("caret",e,t);const n=t.loose?l[s.CARETLOOSE]:l[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,i,l)=>{let s;return a("caret",e,t,n,o,i,l),b(n)?s="":b(o)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):b(i)?s="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):l?(a("replaceCaret pr",l),s="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(n,".").concat(o,".").concat(+i+1,"-0"):">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(+n+1,".0.0-0")):(a("no pr"),s="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(i).concat(r," <").concat(n,".").concat(o,".").concat(+i+1,"-0"):">=".concat(n,".").concat(o,".").concat(i).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(i," <").concat(+n+1,".0.0-0")),a("caret return",s),s}))},E=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?l[s.XRANGELOOSE]:l[s.XRANGE];return e.replace(n,((n,r,o,i,l,s)=>{a("xRange",e,n,r,o,i,l,s);const c=b(o),u=c||b(i),d=u||b(l),p=d;return"="===r&&p&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(i=0),l=0,">"===r?(r=">=",u?(o=+o+1,i=0,l=0):(i=+i+1,l=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),"<"===r&&(s="-0"),n="".concat(r+o,".").concat(i,".").concat(l).concat(s)):u?n=">=".concat(o,".0.0").concat(s," <").concat(+o+1,".0.0-0"):d&&(n=">=".concat(o,".").concat(i,".0").concat(s," <").concat(o,".").concat(+i+1,".0-0")),a("xRange return",n),n}))},k=(e,t)=>(a("replaceStars",e,t),e.trim().replace(l[s.STAR],"")),R=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),L=e=>(t,n,r,o,a,i,l,s,c,u,d,p)=>(n=b(r)?"":b(o)?">=".concat(r,".0.0").concat(e?"-0":""):b(a)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):i?">=".concat(n):">=".concat(n).concat(e?"-0":""),s=b(c)?"":b(u)?"<".concat(+c+1,".0.0-0"):b(d)?"<".concat(c,".").concat(+u+1,".0-0"):p?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(p):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(s),"".concat(n," ").concat(s).trim()),O=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(a(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return yq}const Eq=wq();var Cq=(e,t,n)=>{try{t=new Eq(t,n)}catch(e){return!1}return t.test(e)},kq=n(Cq);const Rq={};function Lq(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=o,i={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||kq(e,a.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!Rq[a]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const i=(r||o.load)({name:e,version:t}),l=Promise.resolve(i);Rq[a]=l.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))}))}return Rq[a]}(i.name,i.version,t,o.load).then((e=>(n=n||bN(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=l({qInfo:{qType:i.name},visualization:i.name,version:i.version,showTitles:!0},JSON.parse(r));return t?(He(!0,n,e),n):l(l({},n),e)}))}};return i}function Oq(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,a)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=Lq({name:e,version:o},t,a),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function _q(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=Oq(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>{if(r[e])return r[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(Rq).forEach((t=>{t.split("__")[0]===e&&(Rq[t]=void 0)}))}(e)}}}const Iq={get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json()))},Tq={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,IM_1869_HIDE_DIM_MEA_LINE:!0,IM_1579_HIDE_DIM_MEA:!0,CLIENT_IM_3365:!0},snapshot:Iq};Tq.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const Pq=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(l({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},Mq=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter(((e,t,n)=>n.indexOf(e)===t))};var Nq=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=X(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let a=l(l({},t.context),{},{translator:n.translator});const[i,s]=fS({app:e,context:a}),c=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=bt();return{setTheme:async o=>{let a=e.filter((e=>e.id===o))[0],i="dark"===o?"dark":"light";if(!a&&t&&(a={load:t}),a&&a.load)try{const e=await Promise.race([a.load(o),yt(xt,{__timedOut:!0})]);e.__timedOut||(i="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(i))}catch(e){}else r.internalAPI.setTheme({type:i},o),n.setMuiThemeName(i)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:i});a.themeApi=c.externalAPI;const u={galaxy:{translator:n.translator,flags:IN(t.flags),deviceType:St(t.context.deviceType),anything:t.anything},theme:c.externalAPI,translator:n.translator,nebbie:null},d={app:e,root:i,config:t,public:u,context:a,types:null},p=_q({halo:d});t.types.forEach((e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let f=c.setTheme(t.context.theme),h=null,m=null;const g={render:async e=>(await f,e.id?_N(e,d,s):async function(e,t,n){let{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c,extendProperties:u,navigation:d}=e,p={};const f=[],{modelStore:h,subscribe:m}=n;let g;try{const e=t.types.get({name:r,version:o});p=await e.initialProperties(i,u);const n=await e.supernova();a&&await wP({sn:n,properties:p,fields:a,children:f},t),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},p)}catch(e){g=e,p={qInfo:{qType:r},visualization:r}}const v=await t.app.createSessionObject(p);f.length>0&&await v.setFullPropertyTree({qProperty:p,qChildren:f}),h.set(v.id,v);const b=m(v);return wN(v,{options:l,plugins:s,element:c},t,d,g,(async()=>{await t.app.destroySessionObject(v.id),b()}))}(e,d,s)),create:async e=>EN(e,d,!1,s),generateProperties:async e=>EN(e,d,!0,s),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=l(l(l({},a),t),{},{translator:n.translator}),t.theme&&(f=c.setTheme(t.theme),await f),t.language&&d.public.translator.language(t.language),i.context(a))},selections:async()=>(h||(h={mount(t){m||(m=function(e){let{element:t,app:n}=e;return Ip.createPortal(V.createElement(ET,{app:n}),t,wT())}({element:t,app:e}),i.add(m))},unmount(){m&&(i.remove(m),m=null)}}),h),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(a){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));const c=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise((r=>{this._instance=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={},renderedCallback:l,flags:s}=e;return Ip.createPortal(V.createElement(sP,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,options:i,renderedCallback:l,flags:s}),t,wT())}({element:a,app:e,fieldIdentifier:t,qId:n,options:lP(l({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r,flags:d.public.galaxy.flags}),i.add(this._instance)}))},unmount(){this._instance&&(i.remove(this._instance),this._instance=null)}};return EI(o),o},getRegisteredTypes:p.getList,__DO_NOT_USE__:{types:p,popover(t,n,r){g._popoverInstance&&(i.remove(g._popoverInstance),g._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=l({},cP);return He(!0,t,e),t}(l({onPopoverClose:()=>g.emit("fieldPopoverClose")},r));g._popoverInstance=V.createElement(uP,{element:t,key:wT(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$",flags:d.public.galaxy.flags}),i.add(g._popoverInstance)}}};return d.public.nebbie=g,d.types=p,EI(g),g}return r.createConfiguration=n=>e(((e,t)=>({context:Pq(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:l({},t.snapshot||e.snapshot),types:Mq(e.types,t.types),themes:Mq(e.themes,t.themes),flags:Pq(e.flags,t.flags),anything:Pq(e.anything,t.anything)}))(t,n)),r.config=t,r}(Tq);function qq(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const Aq=globalThis.crypto||{getRandomValues:()=>123456};function zq(e){return t=>{const n=He({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^Aq.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=He({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const Dq=function(e){let{args:t=[],defaultValue:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof e?e(...t):void 0!==e?e:n},jq=function(e){let{defaultValue:t,async:n=!0,delay:r=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];const l=Dq(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},Fq=["id","session"],$q=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Bq(e){return!$q.includes(e)}function Wq(e){const t=Dq(e.getLayout);return t.qInfo&&t.qInfo.qId}function Hq(e,t){return e.reduce(((e,n)=>l(l({},e),function(e,t){let n=Wq(e);const{delay:r}=t,{id:o,session:a}=e,i=s(e,Fq);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:l(l({id:n,session:Dq(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(i).reduce(((e,t)=>{let[n,o]=t;return l(l({},e),{},{[n]:jq(o,{async:Bq(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function Uq(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Wq(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function Vq(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(Uq);const n=Hq(e,t);return async e=>Promise.resolve(n[e])}function Gq(){return()=>Promise.resolve({id:"app-layout"})}const Kq={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new qq,r=new zq(n),o=new Vq(e,t),a=new Gq,i={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:a};return Promise.resolve(i)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},Zq={generator:bN,hook:YM,theme:bt,locale:K};e.EnigmaMocker=Kq,e.__DO_NOT_USE__=Zq,e.conversion=AP,e.embed=Nq,e.onContextMenu=function(e){const t=XM(++jM);t.value||(t.value=1,DM.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=XM(++jM);t.value||(t.value=1,DM.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=eN({action(){n._config.action.call(null)}});return n.component||(n.component=DM,DM.__hooks.actions.list.push(n)),rN((()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0}),t),n.action},e.useApp=function(){const e=QM("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return QM("appLayout")},e.useConstraints=function(){return QM("constraints")},e.useDeviceType=function(){return QM("deviceType")},e.useEffect=tN,e.useElement=oN,e.useEmbed=function(){return QM("nebbie")},e.useEmitter=function(){return QM("emitter")},e.useGlobal=function(){const e=QM("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=XM(++jM);if(n.imperative||(n.imperative=!0),FM(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],DM.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return QM("interactions")},e.useKeyboard=function(){const e=QM("keyboardNavigation"),t=QM("focusHandler");if(!DM.__hooks.accessibility.exitFunction){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=this.__hooks.accessibility;n.enabled&&n.active&&(iN(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(DM);DM.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),aN(this))}.bind(DM);DM.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(DM);DM.__hooks.accessibility.focusSelectionFunction=r}const n=DM.__hooks.accessibility.focusFunction,r=DM.__hooks.accessibility.exitFunction,o=DM.__hooks.accessibility.focusSelectionFunction,[a,i]=eN({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return DM.__hooks.accessibility.setter=i,DM.__hooks.accessibility.enabled=e,tN((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return QM("layout")},e.useMemo=rN,e.useModel=function(){const e=QM("model");return e&&e.session?e:void 0},e.useNavigation=function(){return QM("navigation")},e.useOptions=function(){return QM("options")},e.usePlugins=function(){return QM("plugins")},e.usePromise=function(e,t){const[n,r]=eN((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=XM(++jM);return o.component||(o.component=DM),nN((()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then((e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]},e.useRect=function(){const e=oN(),t=DM.__hooks.resizer,[n,r]=eN((()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}}));return t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r),t.update&&t.resize&&(t.update=!1,t.resize()),nN((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:a}=e.getBoundingClientRect(),i=t.current;i.width===o&&i.height===a&&i.left===n&&i.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:a})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n},e.useRenderState=function(){XM(++jM);const e=DM.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return QM("selections")},e.useStaleLayout=function(){const e=QM("layout"),[t]=eN({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=eN,e.useTheme=function(){return QM("theme")},e.useTranslator=function(){return QM("translator")}}));
|
|
133
|
+
`),CC))),OC=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:i=40,style:l,thickness:s=3.6,value:c=0,variant:u="indeterminate"}=n,d=Ap(n,gC),p=qp({},n,{color:o,disableShrink:a,size:i,thickness:s,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Jv({root:["root",n,`color${Hm(r)}`],svg:["svg"],circle:["circle",`circle${Hm(n)}`,o&&"circleDisableShrink"]},mC,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((wC-s)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return ym.jsx(kC,qp({className:ev(f.root,r),style:qp({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:ym.jsx(RC,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:ym.jsx(LC,{className:f.circle,style:h,ownerState:p,cx:wC,cy:wC,r:(wC-s)/2,fill:"none",strokeWidth:s})})}))}));function _C(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function IC(e){return parseInt(_v(e).getComputedStyle(e).paddingRight,10)||0}function PC(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.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&&_C(e,o)}))}function TC(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function MC(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ov(e);return t.body===e?_v(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Xv(Ov(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${IC(r)+e}px`;const t=Ov(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${IC(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Ov(r).body;else{const t=r.parentElement,n=_v(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 NC=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function qC(e){const t=[],n=[];return Array.from(e.querySelectorAll(NC)).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 AC(){return!0}function zC(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=qC,isEnabled:i=AC,open:l}=e,s=U.useRef(!1),c=U.useRef(null),u=U.useRef(null),d=U.useRef(null),p=U.useRef(null),f=U.useRef(!1),h=U.useRef(null),m=Av(t.ref,h),g=U.useRef(null);U.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),U.useEffect((()=>{if(!l||!h.current)return;const e=Ov(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),U.useEffect((()=>{if(!l||!h.current)return;const e=Ov(h.current),t=t=>{g.current=t,!r&&i()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!i()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.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!==c.current&&e.activeElement!==u.current||(n=a(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,i,l,a]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ym.jsxs(U.Fragment,{children:[ym.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),U.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),ym.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}const DC=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&&_C(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);PC(t,e.mount,e.modalRef,r,!0);const o=TC(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=TC(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=MC(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=TC(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&&_C(e.modalRef,t),PC(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&&_C(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function jC(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=DC,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,p=U.useRef({}),f=U.useRef(null),h=U.useRef(null),m=Av(h,d),[g,v]=U.useState(!u),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=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=qv((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ov(f.current).body;o.add(x(),e),h.current&&S()})),E=U.useCallback((()=>o.isTopModal(x())),[o]),C=qv((e=>{f.current=e,e&&(u&&E()?S():h.current&&_C(h.current,y))})),k=U.useCallback((()=>{o.remove(x(),y)}),[y,o]);U.useEffect((()=>()=>{k()}),[k]),U.useEffect((()=>{u?w():b&&a||k()}),[u,k,b,a,w]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=rb(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=qp({},n,t);return qp({role:"presentation"},r,{onKeyDown:R(r),ref:m})},getBackdropProps:(e={})=>qp({"aria-hidden":!0},e,{onClick:L(e),open:u}),getTransitionProps:()=>({onEnter:kv((()=>{v(!1),i&&i()}),null==s?void 0:s.props.onEnter),onExited:kv((()=>{v(!0),l&&l(),a&&k()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:E,exited:g,hasTransition:b}}function FC(e){return rv("MuiModal",e)}ov("MuiModal",["root","hidden","backdrop"]);const $C=["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"],BC=rx("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})=>qp({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),WC=rx(WE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),HC=U.forwardRef((function(e,t){var n,r,o,a,i,l;const s=lx({name:"MuiModal",props:e}),{BackdropComponent:c=WC,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:E=!1,hideBackdrop:C=!1,keepMounted:k=!1,onBackdropClick:R,open:L,slotProps:O,slots:_}=s,I=Ap(s,$C),P=qp({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:E,hideBackdrop:C,keepMounted:k}),{getRootProps:T,getBackdropProps:M,getTransitionProps:N,portalRef:q,isTopModal:A,exited:z,hasTransition:D}=jC(qp({},P,{rootRef:t})),j=qp({},P,{exited:z}),F=(e=>{const{open:t,exited:n,classes:r}=e;return Jv({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},FC,r)})(j),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),D){const{onEnter:e,onExited:t}=N();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:BC,W=null!=(o=null!=(a=null==_?void 0:_.backdrop)?a:g.Backdrop)?o:c,H=null!=(i=null==O?void 0:O.root)?i:v.root,V=null!=(l=null==O?void 0:O.backdrop)?l:v.backdrop,G=ib({elementType:B,externalSlotProps:H,externalForwardedProps:I,getSlotProps:T,additionalProps:{ref:t,as:m},ownerState:j,className:ev(d,null==H?void 0:H.className,null==F?void 0:F.root,!j.open&&j.exited&&(null==F?void 0:F.hidden))}),K=ib({elementType:W,externalSlotProps:V,additionalProps:u,getSlotProps:e=>M(qp({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ev(null==V?void 0:V.className,null==u?void 0:u.className,null==F?void 0:F.backdrop),ownerState:j});return k||L||D&&!z?ym.jsx(iE,{ref:q,container:h,disablePortal:S,children:ym.jsxs(B,qp({},G,{children:[!C&&c?ym.jsx(W,qp({},K)):null,ym.jsx(zC,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:A,open:L,children:U.cloneElement(f,$)})]}))}):null}));function UC(e){return rv("MuiDivider",e)}const VC=ov("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),GC=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],KC=rx("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})=>qp({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)`:Nb(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})=>qp({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>qp({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>qp({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>qp({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),ZC=rx("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>qp({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)`}))),XC=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Ap(n,GC),h=qp({},n,{absolute:r,component:i,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:l,variant:s}=e;return Jv({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},UC,r)})(h);return ym.jsx(KC,qp({as:i,className:ev(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?ym.jsx(ZC,{className:m.wrapper,ownerState:h,children:o}):null}))}));XC.muiSkipListHighlight=!0;const QC=function(e={}){const{createStyledComponent:t=wb,useThemeProps:n=Eb,componentName:r="MuiStack"}=e,o=t(kb),a=U.forwardRef((function(e,t){const a=Zg(n(e)),{component:i="div",direction:l="column",spacing:s=0,divider:c,children:u,className:d,useFlexGap:p=!1}=a,f=Lm(a,xb),h={direction:l,spacing:s,useFlexGap:p},m=Jv({root:["root"]},(e=>rv(r,e)),{});return ym.jsx(o,Rm({as:i,ownerState:h,ref:t,className:ev(m.root,d)},f,{children:c?Cb(u,c):u}))}));return a}({createStyledComponent:rx("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>lx({props:e,name:"MuiStack"})});function JC(e){return rv("MuiFormControlLabel",e)}const YC=ov("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ek=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],tk=rx("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${YC.label}`]:t.label},t.root,t[`labelPlacement${Hm(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>qp({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${YC.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${YC.label}`]:{[`&.${YC.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),nk=rx("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${YC.error}`]:{color:(e.vars||e).palette.error.main}}))),rk=U.forwardRef((function(e,t){var n,r;const o=lx({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:i={},control:l,disabled:s,disableTypography:c,label:u,labelPlacement:d="end",required:p,slotProps:f={}}=o,h=Ap(o,ek),m=EE(),g=null!=(n=null!=s?s:l.props.disabled)?n:null==m?void 0:m.disabled,v=null!=p?p:l.props.required,b={disabled:g,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(b[e]=o[e])}));const y=SE({props:o,muiFormControl:m,states:["error"]}),x=qp({},o,{disabled:g,labelPlacement:d,required:v,error:y.error}),S=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e;return Jv({root:["root",n&&"disabled",`labelPlacement${Hm(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},JC,t)})(x),w=null!=(r=f.typography)?r:i.typography;let E=u;return null==E||E.type===zS||c||(E=ym.jsx(zS,qp({component:"span"},w,{className:ev(S.label,null==w?void 0:w.className),children:E}))),ym.jsxs(tk,qp({className:ev(S.root,a),ownerState:x,ref:t},h,{children:[U.cloneElement(l,b),v?ym.jsxs(QC,{display:"block",children:[E,ym.jsxs(nk,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):E]}))})),ok=U.createContext();function ak(e){return rv("MuiGrid",e)}const ik=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],lk=ov("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...ik.map((e=>`grid-xs-${e}`)),...ik.map((e=>`grid-sm-${e}`)),...ik.map((e=>`grid-md-${e}`)),...ik.map((e=>`grid-lg-${e}`)),...ik.map((e=>`grid-xl-${e}`))]),sk=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ck(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function uk({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const dk=rx("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:l,zeroMinWidth:s,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(i,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,a&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((({ownerState:e})=>qp({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return Fm({theme:e},Wm({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${lk.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Wm({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=uk({breakpoints:e.breakpoints.values,values:t})),o=Fm({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${ck(a)}`,[`& > .${lk.item}`]:{paddingTop:ck(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${lk.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Wm({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=uk({breakpoints:e.breakpoints.values,values:t})),o=Fm({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${ck(a)})`,marginLeft:`-${ck(a)}`,[`& > .${lk.item}`]:{paddingLeft:ck(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${lk.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Wm({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof i?i[o]:i;if(null==l)return r;const s=Math.round(n/l*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${s} + ${ck(n)})`;c={flexBasis:e,maxWidth:e}}}a=qp({flexBasis:s,flexGrow:0,maxWidth:s},c)}return 0===e.breakpoints.values[o]?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r}),{})}));const pk=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:l,breakpoints:s}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(a,s));const u=[];s.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return Jv({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},ak,t)},fk=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiGrid"}),{breakpoints:r}=Ry(),o=Zg(n),{className:a,columns:i,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,g=Ap(o,sk),v=p||f,b=l||f,y=U.useContext(ok),x=c?i||12:y,S={},w=qp({},g);r.keys.forEach((e=>{null!=g[e]&&(S[e]=g[e],delete w[e])}));const E=qp({},o,{columns:x,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:f},S,{breakpoints:r.keys}),C=pk(E);return ym.jsx(ok.Provider,{value:x,children:ym.jsx(dk,qp({ownerState:E,className:ev(C.root,a),as:s,ref:t},w))})})),hk=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function mk(e){return`scale(${e}, ${e**2})`}const gk={entering:{opacity:1,transform:mk(1)},entered:{opacity:1,transform:"none"}},vk="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bk=U.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:i,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=yx}=e,g=Ap(e,hk),v=Fv(),b=U.useRef(),y=Ry(),x=U.useRef(null),S=Av(x,o.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(c),C=w(((e,t)=>{SS(e);const{duration:n,delay:r,easing:o}=wS({style:f,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=n,e.style.transition=[y.transitions.create("opacity",{duration:i,delay:r}),y.transitions.create("transform",{duration:vk?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),k=w(s),R=w(p),L=w((e=>{const{duration:t,delay:n,easing:r}=wS({style:f,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(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:vk?o:.666*o,delay:vk?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=mk(.75),u&&u(e)})),O=w(d);return ym.jsx(m,qp({appear:r,in:i,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>U.cloneElement(o,qp({style:qp({opacity:0,transform:mk(.75),visibility:"exited"!==e||i?void 0:"hidden"},gk[e],f,o.props.style),ref:S},t))}))}));function yk(e){return rv("MuiIcon",e)}bk.muiSupportAuto=!0,ov("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const xk=["baseClassName","className","color","component","fontSize"],Sk=rx("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Hm(n.color)}`],t[`fontSize${Hm(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),wk=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=Ap(n,xk),c=qp({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Jv({root:["root","inherit"!==t&&`color${Hm(t)}`,`fontSize${Hm(n)}`]},yk,r)})(c);return ym.jsx(Sk,qp({as:i,className:ev(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));function Ek(e){return rv("MuiInputAdornment",e)}wk.muiName="Icon";const Ck=ov("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var kk;const Rk=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Lk=rx("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Hm(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>qp({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Ck.positionStart}&:not(.${Ck.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Ok=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Ap(n,Rk),d=EE()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=qp({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:i,position:s,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e;return Jv({root:["root",n&&"disablePointerEvents",o&&`position${Hm(o)}`,i,r&&"hiddenLabel",a&&`size${Hm(a)}`]},Ek,t)})(f);return ym.jsx(wE.Provider,{value:null,children:ym.jsx(Lk,qp({as:a,ownerState:f,className:ev(h.root,o),ref:t},u,{children:"string"!=typeof r||l?ym.jsxs(U.Fragment,{children:["start"===s?kk||(kk=ym.jsx("span",{className:"notranslate",children:""})):null,r]}):ym.jsx(zS,{color:"text.secondary",children:r})}))})})),_k=U.createContext({});function Ik(e){return rv("MuiList",e)}ov("MuiList",["root","padding","dense","subheader"]);const Pk=["children","className","component","dense","disablePadding","subheader"],Tk=rx("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})=>qp({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Mk=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=Ap(n,Pk),u=U.useMemo((()=>({dense:i})),[i]),d=qp({},n,{component:a,dense:i,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Jv({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Ik,t)})(d);return ym.jsx(_k.Provider,{value:u,children:ym.jsxs(Tk,qp({as:a,className:ev(p.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));function Nk(e){return rv("MuiListItem",e)}const qk=ov("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Ak=ov("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function zk(e){return rv("MuiListItemSecondaryAction",e)}ov("MuiListItemSecondaryAction",["root","disableGutters"]);const Dk=["className"],jk=rx("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>qp({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Fk=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Ap(n,Dk),a=qp({},n,{disableGutters:U.useContext(_k).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return Jv({root:["root",t&&"disableGutters"]},zk,n)})(a);return ym.jsx(jk,qp({className:ev(i.root,r),ownerState:a,ref:t},o))}));Fk.muiName="ListItemSecondaryAction";const $k=["className"],Bk=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Wk=rx("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})=>qp({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&qp({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Ak.root}`]:{paddingRight:48}},{[`&.${qk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nb(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nb(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qk.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"}},[`&.${qk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nb(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})`:Nb(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Hk=rx("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Uk=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:a=!1,children:i,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,E=Ap(n.ContainerProps,$k),C=Ap(n,Bk),k=U.useContext(_k),R=U.useMemo((()=>({dense:f||k.dense||!1,alignItems:r,disableGutters:m})),[r,k.dense,f,m]),L=U.useRef(null);wv((()=>{o&&L.current&&L.current.focus()}),[o]);const O=U.Children.toArray(i),_=O.length&&Lv(O[O.length-1],["ListItemSecondaryAction"]),I=qp({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:_,selected:x}),P=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return Jv({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},Nk,r)})(I),T=Av(L,t),M=w.root||c.Root||Wk,N=S.root||u.root||{},q=qp({className:ev(P.root,N.className,l),disabled:h},C);let A=s||"li";return a&&(q.component=s||"div",q.focusVisibleClassName=ev(qk.focusVisible,b),A=Hx),_?(A=q.component||s?A:"div","li"===d&&("li"===A?A="div":"li"===q.component&&(q.component="div")),ym.jsx(_k.Provider,{value:R,children:ym.jsxs(Hk,qp({as:d,className:ev(P.container,p),ref:T,ownerState:I},E,{children:[ym.jsx(M,qp({},N,!Yv(M)&&{as:A,ownerState:qp({},I,N.ownerState)},q,{children:O})),O.pop()]}))})):ym.jsx(_k.Provider,{value:R,children:ym.jsxs(M,qp({},N,{as:A,ref:T},!Yv(M)&&{ownerState:qp({},I,N.ownerState)},q,{children:[O,y&&ym.jsx(Fk,{children:y})]}))})}));function Vk(e){return rv("MuiListItemIcon",e)}const Gk=ov("MuiListItemIcon",["root","alignItemsFlexStart"]),Kk=["className"],Zk=rx("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})=>qp({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Xk=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Ap(n,Kk),a=qp({},n,{alignItems:U.useContext(_k).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return Jv({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Vk,n)})(a);return ym.jsx(Zk,qp({className:ev(i.root,r),ownerState:a,ref:t},o))})),Qk=ov("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Jk=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Yk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function eR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function tR(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 nR(e,t,n,r,o,a){let i=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&tR(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const rR=U.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Ap(e,Jk),p=U.useRef(null),f=U.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});wv((()=>{r&&p.current.focus()}),[r]),U.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Xv(Ov(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Av(p,t);let m=-1;U.Children.forEach(a,((e,t)=>{U.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=a.length&&(m=-1))):m===t&&(m+=1,m>=a.length&&(m=-1))}));const g=U.Children.map(a,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),U.cloneElement(e,t)}return e}));return ym.jsx(Mk,qp({role:"menu",ref:h,className:i,onKeyDown:e=>{const t=p.current,n=e.key,r=Ov(t).activeElement;if("ArrowDown"===n)e.preventDefault(),nR(t,r,s,l,Yk);else if("ArrowUp"===n)e.preventDefault(),nR(t,r,s,l,eR);else if("Home"===n)e.preventDefault(),nR(t,null,s,l,Yk);else if("End"===n)e.preventDefault(),nR(t,null,s,l,eR);else if(1===n.length){const o=f.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=r&&!o.repeating&&tR(r,o);o.previousKeyMatched&&(s||nR(t,r,!1,l,Yk,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));function oR(e){return rv("MuiPopover",e)}ov("MuiPopover",["root","paper"]);const aR=["onEntering"],iR=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],lR=["slotProps"];function sR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function cR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function uR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function dR(e){return"function"==typeof e?e():e}const pR=rx(HC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fR=rx(RS,{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}),hR=U.forwardRef((function(e,t){var n,r,o;const a=lx({props:e,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=bk,transitionDuration:w="auto",TransitionProps:{onEntering:E}={},disableScrollLock:C=!1}=a,k=Ap(a.TransitionProps,aR),R=Ap(a,iR),L=null!=(n=null==y?void 0:y.paper)?n:v,O=U.useRef(),_=Av(O,L.ref),I=qp({},a,{anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:k}),P=(e=>{const{classes:t}=e;return Jv({root:["root"],paper:["paper"]},oR,t)})(I),T=U.useCallback((()=>{if("anchorPosition"===u)return c;const e=dR(l),t=(e&&1===e.nodeType?e:Ov(O.current).body).getBoundingClientRect();return{top:t.top+sR(t,s.vertical),left:t.left+cR(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,u]),M=U.useCallback((e=>({vertical:sR(e,x.vertical),horizontal:cR(e,x.horizontal)})),[x.horizontal,x.vertical]),N=U.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===u)return{top:null,left:null,transformOrigin:uR(n)};const r=T();let o=r.top-n.vertical,a=r.left-n.horizontal;const i=o+t.height,s=a+t.width,c=_v(dR(l)),d=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&i>d){const e=i-d;o-=e,n.vertical+=e}if(null!==m&&a<m){const e=a-m;a-=e,n.horizontal+=e}else if(s>p){const e=s-p;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:uR(n)}}),[l,u,T,M,m]),[q,A]=U.useState(g),z=U.useCallback((()=>{const e=O.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)}),[N]);U.useEffect((()=>(C&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,C,z]);U.useEffect((()=>{g&&z()})),U.useImperativeHandle(i,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),U.useEffect((()=>{if(!g)return;const e=Rv((()=>{z()})),t=_v(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let D=w;"auto"!==w||S.muiSupportAuto||(D=void 0);const j=f||(l?Ov(dR(l)).body:void 0),F=null!=(r=null==b?void 0:b.root)?r:pR,$=null!=(o=null==b?void 0:b.paper)?o:fR,B=ib({elementType:$,externalSlotProps:qp({},L,{style:q?L.style:qp({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:_},ownerState:I,className:ev(P.paper,null==L?void 0:L.className)}),W=ib({elementType:F,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:I,className:ev(P.root,p)}),{slotProps:H}=W,V=Ap(W,lR);return ym.jsx(F,qp({},V,!Yv(F)&&{slotProps:H,disableScrollLock:C},{children:ym.jsx(S,qp({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),z()},onExited:()=>{A(!1)},timeout:D},k,{children:ym.jsx($,qp({},B,{children:d}))}))}))}));function mR(e){return rv("MuiMenuItem",e)}const gR=ov("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),vR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],bR=rx(Hx,{shouldForwardProp:e=>nx(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})=>qp({},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"}},[`&.${gR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nb(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nb(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nb(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})`:Nb(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${gR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${VC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${VC.inset}`]:{marginLeft:52},[`& .${Qk.root}`]:{marginTop:0,marginBottom:0},[`& .${Qk.inset}`]:{paddingLeft:36},[`& .${Gk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&qp({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Gk.root} svg`]:{fontSize:"1.25rem"}})))),yR=U.forwardRef((function(e,t){const n=lx({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:d}=n,p=Ap(n,vR),f=U.useContext(_k),h=U.useMemo((()=>({dense:a||f.dense||!1,disableGutters:l})),[f.dense,a,l]),m=U.useRef(null);wv((()=>{r&&m.current&&m.current.focus()}),[r]);const g=qp({},n,{dense:h.dense,divider:i,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e;return qp({},i,Jv({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},mR,i))})(n),b=Av(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),ym.jsx(_k.Provider,{value:h,children:ym.jsx(bR,qp({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:ev(v.focusVisible,s),className:ev(v.root,d)},p,{ownerState:g,classes:v}))})}));var xR;const SR=["children","classes","className","label","notched"],wR=rx("fieldset",{shouldForwardProp:nx})({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%"}),ER=rx("legend",{shouldForwardProp:nx})((({ownerState:e,theme:t})=>qp({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&&qp({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"],kR=rx(PE,{shouldForwardProp:e=>nx(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:_E})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return qp({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${AE.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${AE.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${AE.focused} .${AE.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${AE.error} .${AE.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${AE.disabled} .${AE.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&qp({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),RR=rx((function(e){const{className:t,label:n,notched:r}=e,o=Ap(e,SR),a=null!=n&&""!==n,i=qp({},e,{notched:r,withLabel:a});return ym.jsx(wR,qp({"aria-hidden":!0,className:t,ownerState:i},o,{children:ym.jsx(ER,{ownerState:i,children:a?ym.jsx("span",{children:n}):xR||(xR=ym.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}})),LR=rx(TE,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:IE})((({theme:e,ownerState:t})=>qp({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}))),OR=U.forwardRef((function(e,t){var n,r,o,a,i;const l=lx({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=Ap(l,CR),v=(e=>{const{classes:t}=e;return qp({},t,Jv({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qE,t))})(l),b=EE(),y=SE({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=qp({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(n=null!=(r=h.root)?r:s.Root)?n:kR,w=null!=(o=null!=(a=h.input)?a:s.Input)?o:LR;return ym.jsx(NE,qp({slots:{root:S,input:w},renderSuffix:e=>ym.jsx(RR,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?i||(i=ym.jsxs(U.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:qp({},v,{notchedOutline:null})}))}));OR.muiName="Input";var _R=bS(ym.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),IR=bS(ym.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const PR=rx("span",{shouldForwardProp:nx})({position:"relative",display:"flex"}),TR=rx(_R)({transform:"scale(1)"}),MR=rx(IR)((({theme:e,ownerState:t})=>qp({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));function NR(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=qp({},e,{checked:t});return ym.jsxs(PR,{className:n.root,ownerState:o,children:[ym.jsx(TR,{fontSize:r,className:n.background,ownerState:o}),ym.jsx(MR,{fontSize:r,className:n.dot,ownerState:o})]})}const qR=U.createContext(void 0);function AR(e){return rv("MuiRadio",e)}const zR=ov("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),DR=["checked","checkedIcon","color","icon","name","onChange","size","className"],jR=rx(rC,{shouldForwardProp:e=>nx(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${Hm(n.size)}`],t[`color${Hm(n.color)}`]]}})((({theme:e,ownerState:t})=>qp({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nb("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${zR.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${zR.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const FR=ym.jsx(NR,{checked:!0}),$R=ym.jsx(NR,{}),BR=U.forwardRef((function(e,t){var n,r;const o=lx({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=FR,color:l="primary",icon:s=$R,name:c,onChange:u,size:d="medium",className:p}=o,f=Ap(o,DR),h=qp({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n,size:r}=e;return qp({},t,Jv({root:["root",`color${Hm(n)}`,"medium"!==r&&`size${Hm(r)}`]},AR,t))})(h),g=U.useContext(qR);let v=a;const b=kv(u,g&&g.onChange);let y=c;return g&&(void 0===v&&(v=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(g.value,o.value)),void 0===y&&(y=g.name)),ym.jsx(jR,qp({type:"radio",icon:U.cloneElement(s,{fontSize:null!=(n=$R.props.fontSize)?n:d}),checkedIcon:U.cloneElement(i,{fontSize:null!=(r=FR.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:ev(m.root,p)},f))}));function WR(e){return rv("MuiTooltip",e)}const HR=ov("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),UR=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const VR=rx(gE,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>qp({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${HR.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${HR.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${HR.arrow}`]:qp({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${HR.arrow}`]:qp({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),GR=rx("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Hm(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return qp({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Nb(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${HR.popper}[data-popper-placement*="left"] &`]:qp({transformOrigin:"right center"},t.isRtl?qp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):qp({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${HR.popper}[data-popper-placement*="right"] &`]:qp({transformOrigin:"left center"},t.isRtl?qp({marginRight:"14px"},t.touch&&{marginRight:"24px"}):qp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${HR.popper}[data-popper-placement*="top"] &`]:qp({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${HR.popper}[data-popper-placement*="bottom"] &`]:qp({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),KR=rx("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Nb(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ZR=!1;const XR=new jv;let QR={x:0,y:0};function JR(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const YR=U.forwardRef((function(e,t){var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,b,y,x;const S=lx({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:C={},componentsProps:k={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:_=!1,disableTouchListener:I=!1,enterDelay:P=100,enterNextDelay:T=0,enterTouchDelay:M=700,followCursor:N=!1,id:q,leaveDelay:A=0,leaveTouchDelay:z=1500,onClose:D,onOpen:j,open:F,placement:$="bottom",PopperComponent:B,PopperProps:W={},slotProps:H={},slots:V={},title:G,TransitionComponent:K=bk,TransitionProps:Z}=S,X=Ap(S,UR),Q=U.isValidElement(E)?E:ym.jsx("span",{children:E}),J=Ry(),Y=(()=>{const e=U.useContext(pb);return null!=e&&e})(),[ee,te]=U.useState(),[ne,re]=U.useState(null),oe=U.useRef(!1),ae=_||N,ie=Fv(),le=Fv(),se=Fv(),ce=Fv(),[ue,de]=Nv({controlled:F,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=Mv(q),he=U.useRef(),me=qv((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ce.clear()}));U.useEffect((()=>me),[me]);const ge=e=>{XR.clear(),ZR=!0,de(!0),j&&!pe&&j(e)},ve=qv((e=>{XR.start(800+A,(()=>{ZR=!1})),de(!1),D&&pe&&D(e),ie.start(J.transitions.duration.shortest,(()=>{oe.current=!1}))})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),le.clear(),se.clear(),P||ZR&&T?le.start(ZR?T:P,(()=>{ge(e)})):ge(e))},ye=e=>{le.clear(),se.start(A,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:Se,onFocus:we,ref:Ee}=Zv(),[,Ce]=U.useState(!1),ke=e=>{Se(e),!1===xe.current&&(Ce(!1),ye(e))},Re=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Ce(!0),be(e))},Le=e=>{oe.current=!0;const t=Q.props;t.onTouchStart&&t.onTouchStart(e)},Oe=e=>{Le(e),se.clear(),ie.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(M,(()=>{document.body.style.WebkitUserSelect=he.current,be(e)}))},_e=e=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(e),me(),se.start(z,(()=>{ve(e)}))};U.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,pe]);const Ie=Av(Q.ref,Ee,te,t);G||0===G||(pe=!1);const Pe=U.useRef(),Te={},Me="string"==typeof G;R?(Te.title=pe||!Me||O?null:G,Te["aria-describedby"]=pe?fe:null):(Te["aria-label"]=Me?G:null,Te["aria-labelledby"]=pe&&!Me?fe:null);const Ne=qp({},Te,X,Q.props,{className:ev(X.className,Q.props.className),onTouchStart:Le,ref:Ie},N?{onMouseMove:e=>{const t=Q.props;t.onMouseMove&&t.onMouseMove(e),QR={x:e.clientX,y:e.clientY},Pe.current&&Pe.current.update()}}:{}),qe={};I||(Ne.onTouchStart=Oe,Ne.onTouchEnd=_e),O||(Ne.onMouseOver=JR(be,Ne.onMouseOver),Ne.onMouseLeave=JR(ye,Ne.onMouseLeave),ae||(qe.onMouseOver=be,qe.onMouseLeave=ye)),L||(Ne.onFocus=JR(Re,Ne.onFocus),Ne.onBlur=JR(ke,Ne.onBlur),ae||(qe.onFocus=Re,qe.onBlur=ke));const Ae=U.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=W.popperOptions)&&e.modifiers&&(t=t.concat(W.popperOptions.modifiers)),qp({},W.popperOptions,{modifiers:t})}),[ne,W]),ze=qp({},S,{isRtl:Y,arrow:w,disableInteractive:ae,placement:$,PopperComponentProp:B,touch:oe.current}),De=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return Jv({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Hm(a.split("-")[0])}`],arrow:["arrow"]},WR,t)})(ze),je=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:VR,Fe=null!=(o=null!=(a=null!=(i=V.transition)?i:C.Transition)?a:K)?o:bk,$e=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:GR,Be=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:KR,We=eb(je,qp({},W,null!=(d=H.popper)?d:k.popper,{className:ev(De.popper,null==W?void 0:W.className,null==(p=null!=(f=H.popper)?f:k.popper)?void 0:p.className)}),ze),He=eb(Fe,qp({},Z,null!=(h=H.transition)?h:k.transition),ze),Ue=eb($e,qp({},null!=(m=H.tooltip)?m:k.tooltip,{className:ev(De.tooltip,null==(g=null!=(v=H.tooltip)?v:k.tooltip)?void 0:g.className)}),ze),Ve=eb(Be,qp({},null!=(b=H.arrow)?b:k.arrow,{className:ev(De.arrow,null==(y=null!=(x=H.arrow)?x:k.arrow)?void 0:y.className)}),ze);return ym.jsxs(U.Fragment,{children:[U.cloneElement(Q,Ne),ym.jsx(je,qp({as:null!=B?B:gE,placement:$,anchorEl:N?{getBoundingClientRect:()=>({top:QR.y,left:QR.x,right:QR.x,bottom:QR.y,width:0,height:0})}:ee,popperRef:Pe,open:!!ee&&pe,id:fe,transition:!0},qe,We,{popperOptions:Ae,children:({TransitionProps:e})=>ym.jsx(Fe,qp({timeout:J.transitions.duration.shorter},e,He,{children:ym.jsxs($e,qp({},Ue,{children:[G,w?ym.jsx(Be,qp({},Ve,{ref:re})):null]}))}))}))]})}));function eL(){const{useModelStore:e}=U.useContext(sS).modelStore;return e()}function tL(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=eL(),[o]=function(){const{useRpcRequestSessionModelStore:e}=U.useContext(sS).modelStore;return e()}(),[a,i]=U.useState();for(var l=arguments.length,s=new Array(l>2?l-2:0),c=2;c<l;c++)s[c-2]=arguments[c];return U.useEffect((()=>{if(!t)return;(async()=>{let a=o.get(n);a||(a=t.createSessionObject(e),o.set(n,a));const l=await a;r.set(n,l),i(l)})()}),[t,...s]),[a]}const nL={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function rL(e){return tL(nL,e)}const oL=e=>new Promise((t=>{setTimeout(t,e)})),aL=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=l(l({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:l({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=l(l({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let i=n.get(r);return i||(i={}),i[o]=a,n.set(r,i),a};function iL(e,t){const n=e?"".concat(e.id):null,[r]=function(){const{useRpcResultStore:e}=U.useContext(sS).modelStore;return e()}(),[o,a]=U.useReducer(aL,n?r.get(n):null),[i]=function(){const{useModelChangedStore:e}=U.useContext(sS).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=U.useContext(sS).modelStore;return e()}();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let i=s[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},s[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{await oL(0);const o=await i.rpc;a({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(i.rpcRetry||(i.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return U.useEffect((()=>{e&&c()}),[e,i.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function lL(e){return iL(e,"getLayout")}function sL(e){return iL(e,"getAppLayout")}function cL(){const[e,t]=U.useState(),[n,r]=U.useState(),o=U.useCallback((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:o,height:a}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:a})};return U.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[o,n,e]}function uL(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function dL(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const i=l({fontSize:uL(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return V.createElement("i",{style:i},V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.map(((e,t)=>{let{type:n,attrs:r}=e;return V.createElement(n,a({key:t},r))}))))}var pL=e=>dL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var fL=e=>dL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const hL=e=>l(l({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var mL=e=>dL(hL(e));var gL=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),vL=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},bL=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=vL(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},vL(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),gL(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,a=n.minimumBatchSize,i=void 0===a?10:a,l=n.threshold,s=void 0===l?15:l,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,a=e.stopIndex,i=[],l=null,s=null,c=o;c<=a;c++)t(c)?null!==s&&(i.push(l,s),l=s=null):(s=c,null===l&&(l=c));if(null!==s){for(var u=Math.min(Math.max(s,l+r-1),n-1),d=s+1;d<=u&&!t(d);d++)s=d;i.push(l,s)}if(i.length)for(;i[1]-i[0]+1<r&&i[0]>0;){var p=i[0]-1;if(t(p))break;i[0]=p}return i}({isItemLoaded:r,itemCount:o,minimumBatchSize:i,startIndex:Math.max(0,e-s),stopIndex:Math.min(o-1,t+s)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],a=e[r+1],i=n(o,a);null!=i&&i.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:a})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}(U.PureComponent);const yL=["S","XS"],xL=e=>e.reduce(((e,t)=>e.concat(t)));function SL(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!yL.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return xL(t)}async function wL(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let a=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{a=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){a=!1}a||(o?t.cancel():t.clear())}return a}const EL="RowColumn",CL={row:"".concat(EL,"-row"),rowBorderBottom:"".concat(EL,"-rowBorderBottom"),column:"".concat(EL,"-column"),fieldRoot:"".concat(EL,"-fieldRoot"),cell:"".concat(EL,"-cell"),labelText:"".concat(EL,"-labelText"),labelDense:"".concat(EL,"-labelDense"),highlighted:"".concat(EL,"-highlighted"),checkboxLabel:"".concat(EL,"-checkboxLabel"),icon:"".concat(EL,"-icon"),S:"".concat(EL,"-S"),XS:"".concat(EL,"-XS"),A:"".concat(EL,"-A"),X:"".concat(EL,"-X"),frequencyCount:"".concat(EL,"-frequencyCount"),barContainer:"".concat(EL,"-barContainer"),bar:"".concat(EL,"-bar"),barSelected:"".concat(EL,"-barSelected"),barWithCheckbox:"".concat(EL,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(EL,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(EL,"-excludedTextWithCheckbox")},kL=".".concat(CL.fieldRoot),RL=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function LL(e){var t;let{selectionState:n,selections:r,checkboxes:o=!1,doc:a=document,loaderRef:i}=e;const l=U.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});U.useEffect((()=>{var e;if(null===(e=i.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=i.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=i.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const s=async()=>{var e;return(null===(e=n.selectDisabled)||void 0===e||!e.call(n))&&(n.setSelectableValuesUpdating(),wL({selections:r,elemNumbers:l.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:l.current.toggle}))},c=(e,t)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return xL(t)}(n.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],r)},u=e=>{const{startElemNumber:t}=l.current;if(t===e)return;const r=c(l.current.startElemNumber,e);n.updateItems(r,!0,l.current.elemNumbers)},d=U.useCallback((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&RL(e.nativeEvent);l.current.elemNumbers=[t],l.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),l.current.active=!1,s()}),[]),p=U.useCallback((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&RL(e);l.current.isRange=!1,l.current.startElemNumber=t,l.current.elemNumbers=[t],l.current.toggle=r,l.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(l.current.active=!1,s()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),f=U.useCallback((e=>{if(0===e.button&&l.current.active){if(l.current.active=!1,l.current.isRange){const t=+e.currentTarget.getAttribute("data-n");u(t)}s()}}),[]),h=U.useCallback((e=>{0===e.button&&l.current.active&&(l.current.active=!1,s())}),[]),m=U.useCallback((e=>{if(!l.current.active)return;l.current.isRange||(l.current.isRange=!0,n.isSelected(l.current.startElemNumber)||(n.updateItem(l.current.startElemNumber,!0),l.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");u(t)}),[]),g=U.useCallback((e=>{var t,r;if(l.current.active||l.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void s();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(kL))||void 0===t?void 0:t.getAttribute("data-n")),a=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(kL))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void s();l.current.active=!0;c(o,a).length<7&&(l.current.touchRangeSmall=!0),l.current.elemNumbers=[],l.current.touchElemNumbers=[o,a]}),[]),v=U.useCallback((()=>{if(2!==l.current.touchElemNumbers.length)return;if(l.current.touchRangeSmall)return l.current.touchRangeSmall=!1,l.current.touchElemNumbers=[],void(l.current.active=!1);const[e,t]=l.current.touchElemNumbers;l.current.startElemNumber=e,u(t),l.current.touchElemNumbers=[],l.current.active=!1,l.current.toggle=!0,s()}),[]);U.useEffect((()=>(a.addEventListener("mouseup",h),()=>{a.removeEventListener("mouseup",h)})),[h]),U.useEffect((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return r.on("clearItemStates",e),r.on("deactivated",e),r.on("cleared",t),()=>{r.removeListener("clearItemStates",e),r.removeListener("deactivated",e),r.removeListener("cleared",t)}}),[r]);const b={};return o?Object.assign(b,{onChange:d}):Object.assign(b,{onMouseUp:f,onMouseDown:p,onMouseEnter:m,onTouchStart:g,onTouchEnd:v}),{interactionEvents:b,select:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(e=n.selectDisabled)&&void 0!==e&&e.call(n))return!1;const i=!n.isSingleSelect&&RL(null==a?void 0:a.nativeEvent);i||n.clearItemStates(!0);const l=[];return n.updateItems(t,o,l),n.setSelectableValuesUpdating(),wL({selections:r,elemNumbers:o?l:t,isSingleSelect:n.isSingleSelect,toggle:i})}}}const OL=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var _L=e=>dL(OL(e));const IL=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,PL=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||IL(t))&&n};const TL=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const a=[t?CL.column:CL.row];n||a.push(CL.rowBorderBottom);const i=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?CL.XS:CL.S;break;case"S":case"L":t=CL.S;break;case"A":t=!!r&&CL.A;break;case"X":case"XL":t=!!r&&CL.X;break;default:t=!1}return t}({cell:r,showGray:o});return i&&a.push(i),a},ML=9,NL=4,qL=7,AL=12+2*(qL+1),zL=80,DL=10,jL=150,FL=56,$L=20,BL="-",WL=32,HL=29,UL=20,VL=4,GL=e=>e.filter((e=>!!e)).join(" ").trim(),KL=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),a=parseFloat(o?r:t);return"".concat(o?a:a/n*100,"%")},ZL=e=>e||BL,XL=["backgroundColor"],QL=e=>{let{sizes:t,frequencyMode:n,isGridMode:r,freqHitsValue:o}=e;if("P"===n)return"".concat(t.freqMinWidth,"px");return r&&!o?"max-content":"25%"},JL=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},YL=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(CL.labelText)]:{color:r.selections.selected}}:{};const a=r.selections,i=a[o],l=a["".concat(o,"Contrast")];return{background:i,color:l,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(CL.labelText)]:{color:l},["& .".concat(CL.icon)]:{color:l}}},eO={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},tO=rx("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:a,direction:i,sizes:c,frequencyMode:u,freqHitsValue:d,styles:p}=e;const f=s(p.content,XL),h=YL({theme:t,styles:p,checkboxes:n,selectionState:"selected"}),m=YL({theme:t,styles:p,checkboxes:n,selectionState:"excluded"}),g={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},v={opacity:"30%"};return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(CL.row)]:l({flexWrap:"nowrap"},p.content),["& .".concat(CL.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(CL.column)]:l({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},p.content),["& .".concat(CL.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(ML,"px"),paddingRight:0},["& .".concat(CL.labelText)]:l(l({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},eO),f),["& .".concat(CL.labelDense)]:{fontSize:12},["& .".concat(CL.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(CL.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":l(l({},eO),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(CL.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:f.color},["& .".concat(CL.S)]:l(l({},h),{},{border:r?"none":void 0}),["& .".concat(CL.XS)]:l(l({},YL({theme:t,styles:p,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(CL.A)]:l(l({},YL({theme:t,styles:p,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(CL.X)]:l(l({},m),{},{border:r?"none":void 0}),["& .".concat(CL.X,", & .").concat(CL.XS)]:{border:r?"none":void 0,["& .".concat(CL.barSelected," .bar-filled")]:l({},g)},["& .".concat(CL.frequencyCount)]:l(l({zIndex:3,justifyContent:"flex-end"},eO),{},{flex:"0 0 ".concat(QL({sizes:c,frequencyMode:u,isGridMode:r,freqHitsValue:d})),minWidth:!r&&"P"!==u&&d?c.freqMinWidth:"max-content",maxWidth:JL({sizes:c,frequencyMode:u,isGridMode:r}),textAlign:"rtl"===i?"left":"right",paddingLeft:"rtl"!==i?"8px":0}),["&.".concat(CL.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(CL.bar)]:{height:a?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":l({},g)},["& .".concat(CL.barSelected)]:{"& .bar-filled":l({},v)},["& .".concat(CL.barWithCheckbox)]:{left:"rtl"===i?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(CL.barSelectedWithCheckbox)]:{"& .bar-filled":l(l({},v),{},{backgroundColor:p.selections.selected||"#BFE5D0",borderColor:p.selections.selected})},["& .".concat(CL.excludedTextWithCheckbox)]:{color:p.content.color,fontStyle:"italic"}}}));var nO=V.memo(tO);const rO="ListBoxCheckbox",oO={cbIcon:"".concat(rO,"-cbIcon"),cbIconChecked:"".concat(rO,"-cbIconChecked"),cbIconExcluded:"".concat(rO,"-cbIconExcluded"),cbIconAlternative:"".concat(rO,"-cbIconAlternative"),checkbox:"".concat(rO,"-checkbox"),dense:"".concat(rO,"-dense")},aO=rx(hC,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(oO.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat(oO.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(oO.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(oO.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(oO.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(oO.dense)]:{padding:"4px 8px"}}})),iO=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return V.createElement("span",{className:e.cbIcon},n&&V.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function lO(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,styles:i,showGray:l=!0,dataN:s}=e;return V.createElement(aO,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[oO.checkbox,o&&oO.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":s},name:r,icon:iO(oO,l,a),checkedIcon:V.createElement("span",{className:oO.cbIconChecked}),styles:i})}const sO={radioButton:"".concat("ListBoxRadioButton","-radioButton")},cO=rx(BR,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(sO.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function uO(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a,styles:i}=e;return V.createElement(cO,{checked:n,onChange:t,value:r,name:r,className:sO.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:o?"small":"medium",dense:o,styles:i})}function dO(e){let{label:t,dense:n,showGray:r=!0,checkboxes:o,cell:a,valueTextAlign:i}=e;return V.createElement(zS,{component:"span",variant:"body2",className:GL([CL.labelText,n&&CL.labelDense,r&&PL({cell:a,checkboxes:o})&&CL.excludedTextWithCheckbox]),align:i,dir:"auto"},V.createElement("span",null,t))}function pO(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}=e;return"string"==typeof t?V.createElement(dO,{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}):t}function fO(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;const f=V.createElement(lO,{onChange:t,label:n,checked:o,dense:a,excluded:IL(i),isGridCol:l,showGray:s,dataN:r,styles:p}),h=V.createElement(uO,{onChange:t,label:n,checked:o,dense:a,dataN:r,styles:p});return V.createElement(rk,{control:c?h:f,className:CL.checkboxLabel,label:V.createElement(pO,{label:n,dense:a,showGray:s,checkboxes:u,cell:i,valueTextAlign:d}),key:r})}function hO(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const a=t.map(((e,t)=>{let[n,r]=e;return V.createElement("span",{id:t,className:r?CL.highlighted:""},n)}));return V.createElement(dO,{label:a,dense:n,showGray:r,checkboxes:o})}function mO(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:a,qElemNumber:i,isSelected:l,cell:s,isGridCol:c,isSingleSelect:u,valueTextAlign:d,styles:p}=e;const f=V.createElement(hO,{labels:n,dense:o,showGray:a,checkboxes:r});return r?V.createElement(fO,{onChange:t,label:f,qElemNumber:i,isSelected:l,dense:o,cell:s,isGridCol:c,showGray:a,isSingleSelect:u,checkboxes:r,valueTextAlign:d,styles:p}):f}var gO=V.memo((function(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;return u?V.createElement(fO,{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}):V.createElement(dO,{label:n,dense:a,showGray:!0,checkboxes:u,cell:i,valueTextAlign:d})}));function vO(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&ZL(t)!==BL))return;const i=KL({qFrequency:t,checkboxes:r,frequencyMax:a});return V.createElement(JE,{className:GL([CL.bar,r&&CL.barWithCheckbox,o&&(r?CL.barSelectedWithCheckbox:CL.barSelected)])},V.createElement(JE,{className:"bar-filled",width:i}))}function bO(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const a=ZL(null==t?void 0:t.qFrequency);return V.createElement(fk,{item:!0,style:{display:"flex",alignItems:"center"},className:CL.frequencyCount,"aria-label":a,title:a},V.createElement(zS,{noWrap:!0,color:"inherit",variant:"body2",className:GL([r&&CL.labelDense,CL.labelText,o&&PL({cell:t,checkboxes:n})&&CL.excludedTextWithCheckbox])},a))}function yO(e){let{dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:o}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:o?"100%":"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const xO=rx(fk,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:a,fillHeight:i}=e;const s="padding".concat("rtl"===a?"Left":"Right");return{["&.".concat(CL.fieldRoot)]:l(l({},yO({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:i})),{},{[s]:o?"8px":void 0})}}));const SO=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:e=>e===SO.ARROW_UP||e===SO.ARROW_DOWN||e===SO.ARROW_LEFT||e===SO.ARROW_RIGHT});function wO(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function EO(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))||(null==e?void 0:e.closest(".qv-gs-listbox"))}function CO(e){let{containerRef:t,enabled:n}=e;const[r,o]=U.useState(!1),a={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const a=EO(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var i;null==(i=t.current)||i.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),wO(t.current),e&&a&&(a.setAttribute("tabIndex",0),t.current.setAttribute("tabIndex",-1),a.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),a=null==e?void 0:e.querySelector(".value.last-focused"),i=null==e?void 0:e.querySelector(".value.selector, .value"),l=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=(null==e?void 0:e.querySelector(".listbox-cyclic-button"))||r||a||i||s||l;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return null==n||n.setAttribute("tabIndex",0),null==n||n.focus(),n}};return a}const kO=e=>+e.getAttribute("data-n"),RO=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},LO=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused"),n=null==e?void 0:e.querySelector(".value.selector"),r=null==e?void 0:e.querySelector(".value"),o=t||n||r;return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),wO(e),o},OO=e=>{const t=null==e?void 0:e.querySelector(".listbox-cyclic-button:not(:disabled)");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},_O=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),a=n.closest(".listbox-container"),i=EO(a),l=1===(null==i?void 0:i.querySelectorAll(".listbox-container").length);if(o||l)t.blur(!0);else{wO(a),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}},IO=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:a,keyCode:i,numCells:l}=e;const s=e=>{let t;return"row"===a?(t=l%o,e<t?r:r-1):(t=l%r,e<o-1?r:t)};let c=t,u=n;if(i===SO.ARROW_DOWN)if(t>=s(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=s(n-1)-1,u=n-1}else c=t-1;if("row"===a)return c*o+u;const d=l%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};const PO={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function TO(e){var t,n;let{index:r,rowIndex:o,columnIndex:a,style:i,data:s}=e;const{onChange:c,onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onTouchStart:h,onTouchEnd:m,pages:g,isLocked:v,column:b=!1,checkboxes:y=!1,textAlign:x,direction:S,layoutOptions:w={},freqIsAllowed:E,isSingleSelect:C,actions:k,frequencyMax:R="",histogram:L=!1,keyboard:O,showGray:_=!0,showTick:I=!0,columnCount:P=1,rowCount:T=1,dataOffset:M,deducedFrequencyMode:N,focusListItems:q,listCount:A,sizes:z,translator:D,showSearch:j,isModal:F,contentFontStyle:$,styles:B,fillHeight:W}=s,{dense:H=!1,dataLayout:G="singleColumn",layoutOrder:K}=w,{itemPadding:Z}=z;let X,Q;const J={max:null,currentIndex:null};if("number"==typeof o&&"number"==typeof a){"row"===K?(X=o*P+a,J.max=T,J.currentIndex=o):(X=a*T+o,J.max=P,J.currentIndex=a);const e=0;Q=l(l({},i),{},{height:W?"100%":i.height,left:e+(0===a?i.left:Number(i.left)+a*e),top:0===o?i.top:Number(i.top)+o*e})}else X=r,J.max=A,J.currentIndex=r,Q=l({},i);X+=M;const[Y,ee]=U.useState(null);U.useEffect((()=>{null!==Y&&(0===J.currentIndex&&q.first&&(Y.focus(),q.setFirst(!1)),J.currentIndex===J.max-1&&q.last&&(Y.focus(),q.setLast(!1)))}),[Y,q.first,q.last]);const te=U.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:a,setScrollPosition:i,focusListItems:l,keyboard:s,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:f,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===SO.ARROW_LEFT||e===SO.ARROW_RIGHT||"number"!=typeof p||"number"!=typeof f){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=IO({rowIndex:p,columnIndex:f,rowCount:u,columnCount:d,layoutOrder:h,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const v=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:f,shiftKey:h=!1,ctrlKey:b=!1,metaKey:y=!1}=p;switch(f){case SO.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;if(d.classList.add("last-focused"),null==s||!s.enabled){if(!n)return;return s.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(h){RO(t)||OO(t)||(n?s.focusSelection():_O(e,s));break}s.focusSelection()||OO(t)||RO(t)||(d.blur(),_O(e,s));break}case SO.SHIFT:v(!0);break;case SO.SPACE:t([kO(d)],!1,e);break;case SO.ARROW_DOWN:case SO.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([kO(d)],!0),v(!1)),t([kO(u)],!0));break;case SO.ARROW_UP:case SO.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([kO(d)],!0),v(!1)),t([kO(u)],!0));break;case SO.ENTER:if(o(),void 0===c)return;break;case SO.ESCAPE:if(void 0===c)return void a();if(!c())return;a();break;case SO.HOME:if(l.setFirst(!0),b){null==i||i("overflowStart");break}null==i||i("start");break;case SO.END:if(l.setLast(!0),b){null==i||i("overflowEnd");break}null==i||i("end");break;case SO.A:if(b||y){n();break}return;case SO.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(l(l({},k),{},{focusListItems:q,keyboard:O,isModal:F,rowCount:T,columnCount:P,rowIndex:o,columnIndex:a,layoutOrder:K})),[k,null==O?void 0:O.innerTabStops,T,P,o,a,K]),ne=U.useMemo((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:g,cellIndex:X})),[g,X]),re="S"===(null==ne?void 0:ne.qState)||"XS"===(null==ne?void 0:ne.qState)||"L"===(null==ne?void 0:ne.qState)||"XL"===(null==ne?void 0:ne.qState),oe=U.useMemo((()=>TL({column:b,histogram:L,cell:ne,showGray:_})),[null==ne?void 0:ne.qState,L,H]),ae=U.useCallback((e=>{e.preventDefault()}),[y]),ie=U.useMemo((()=>ne&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let a;return a=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(a)?a:"left"}({direction:S,cell:ne,textAlign:x})),[S,ne,x]);if(!ne)return null;const le="grid"===G&&"column"===K,se=null!==(t=null==ne?void 0:ne.qText)&&void 0!==t?t:"";let ce;if(null!==(n=ne.qHighlightRanges)&&void 0!==n&&null!==(n=n.qRanges)&&void 0!==n&&n.length){const e=ne.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ce=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const a=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,a=[];return r>n&&a.push([e.slice(n,r),!1]),a.push([e.slice(r,r+o),!0]),a}(e,r,a));const i=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return i&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(se,e)}const ue={alignItems:"center",display:"flex",fontSize:"8px"},de="rtl"===S,pe={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:de?8:y?0:void 0,paddingRight:y?0:de?8:0,justifyContent:ie,textAlign:ie},fe=0===r,he=re&&v,me=!y&&re&&!v,ge=!y&&I,ve=y||!I,be=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:a,maxIndex:i,showSearch:l}=e;const s=PO[r],c=t.get(s),u=[];if(o){const e=l?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[a+1,i+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:D,label:se,qState:ne.qState,currentIndex:J.currentIndex,maxIndex:J.max,showSearch:j}),ye=!de&&"right"===ie||de&&"left"===ie;return V.createElement(nO,{className:CL.barContainer,checkboxes:y,style:Q,styles:B,isGridCol:le,isGridMode:"grid"===G,dense:H,direction:S,sizes:z,frequencyMode:N,freqHitsValue:ye,contentFontStyle:$,"data-testid":"listbox.item"},V.createElement(xO,{role:"row","aria-label":be,"aria-selected":re,"aria-setsize":J.max,"aria-rowindex":J.currentIndex,ref:ee,container:!0,dataLayout:G,cellPaddingRight:ve,layoutOrder:K,itemPadding:Z,gap:0,className:GL(["value",...oe]),classes:{root:CL.fieldRoot},onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onKeyDown:te,onTouchStart:h,onTouchEnd:m,onContextMenu:ae,tabIndex:fe&&O.innerTabStops?0:-1,"data-n":null==ne?void 0:ne.qElemNumber,direction:S,fillHeight:W},(null==ne?void 0:ne.qFrequency)&&V.createElement(vO,{qFrequency:null==ne?void 0:ne.qFrequency,histogram:L,checkboxes:y,isSelected:re,frequencyMax:R}),V.createElement(fk,{item:!0,style:pe,className:GL([CL.cell,CL.selectedCell]),title:"".concat(se)},ce?V.createElement(mO,{onChange:c,labels:ce,checkboxes:y,dense:H,showGray:_,qElemNumber:ne.qElemNumber,isSelected:re,cell:ne,isGridCol:le,isSingleSelect:C,valueTextAlign:ie,styles:B}):V.createElement(gO,{onChange:c,label:se,qElemNumber:ne.qElemNumber,isSelected:re,dense:H,cell:ne,isGridCol:le,showGray:_,isSingleSelect:C,checkboxes:y,valueTextAlign:ie,styles:B})),E&&V.createElement(bO,{cell:ne,checkboxes:y,dense:H,showGray:_}),ge&&V.createElement(fk,{item:!0,className:CL.icon},he&&V.createElement(fL,{style:ue,size:"small"}),me&&V.createElement(_L,{style:ue,size:"small"}))))}var MO=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function NO(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||MO(r)&&MO(o)))return!1;var r,o;return!0}function qO(e,t){var n;void 0===t&&(t=NO);var r,o=[],a=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}var AO="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function zO(e){cancelAnimationFrame(e.id)}function DO(e,t){var n=AO();var r={id:requestAnimationFrame((function o(){AO()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var jO=-1;function FO(e){if(void 0===e&&(e=!1),-1===jO||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),jO=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return jO}var $O=null;function BO(e){if(void 0===e&&(e=!1),null===$O||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?$O="positive-descending":(t.scrollLeft=1,$O=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),$O}return $O}var WO=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function HO(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,i=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,Sx(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Sx(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=qO((function(e,t,n,o,a,i,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:a,visibleColumnStopIndex:i,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=qO((function(e,t,n,o,a){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:a})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,i=r.props,l=i.columnWidth,s=i.direction,c=i.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:a(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=qO((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,a=t.scrollLeft,i=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===a&&e.scrollTop===i)return null;var t=r.props.direction,c=a;if("rtl"===t)switch(BO()){case"negative":c=-a;break;case"positive-descending":c=s-o-a}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(i,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<a?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<i?"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&&zO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=DO(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}dx(t,e),t.getDerivedStateFromProps=function(e,t){return UO(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,a=this.props,u=a.columnCount,d=a.height,p=a.rowCount,f=a.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=FO();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=i(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,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(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(BO()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var a=o.clientWidth,i=o.scrollWidth;o.scrollLeft=i-a-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&zO(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,a=e.height,s=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?WO:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],C=this._getVerticalRangeToRender(),k=C[0],R=C[1],L=[];if(r>0&&g)for(var O=k;O<=R;O++)for(var _=w;_<=E;_++)L.push(U.createElement(t,{columnIndex:_,data:d,isScrolling:b?x:void 0,key:f({columnIndex:_,data:d,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,_)}));var I=i(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return U.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:sx({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},U.createElement(c||u||"div",{children:L,ref:s,style:{height:I,pointerEvents:x?"none":void 0,width:P}}))},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 a=this._getHorizontalRangeToRender(),i=a[0],l=a[1],s=a[2],c=a[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(i,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,a=e.overscanColumnsCount,i=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||a||i||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,a=e.rowCount,i=this.state,l=i.isScrolling,s=i.verticalScrollDirection,c=i.scrollTop,u=r||o||n||1;if(0===t||0===a)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,u),g=l&&"forward"!==s?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(a-1,h+g)),d,h]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var UO=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},VO=function(e,t){return e};function GO(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,Sx(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Sx(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=qO((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=qO((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,a=r.props,i=a.direction,l=a.itemSize,s=a.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&i);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===i||"horizontal"===s,h="rtl"===i,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=qO((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,a=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,i=o;if("rtl"===t)switch(BO()){case"negative":i=-o;break;case"positive-descending":i=a-n-o}return i=Math.max(0,Math.min(i,a-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:i,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,a=t.scrollTop;r.setState((function(e){if(e.scrollOffset===a)return null;var t=Math.max(0,Math.min(a,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&&zO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=DO(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}dx(t,e),t.getDerivedStateFromProps=function(e,t){return KO(e,t),u(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,i=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?FO():0:s.scrollHeight>s.clientHeight?FO():0}this.scrollTo(a(this.props,e,t,i,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 a=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(BO()){case"negative":a.scrollLeft=-o;break;case"positive-ascending":a.scrollLeft=o;break;default:var i=a.clientWidth,l=a.scrollWidth;a.scrollLeft=l-i-o}else a.scrollLeft=o;else a.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&zO(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,a=e.height,i=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?VO:d,f=e.layout,h=e.outerElementType,m=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,w=this._getRangeToRender(),E=w[0],C=w[1],k=[];if(c>0)for(var R=E;R<=C;R++)k.push(U.createElement(t,{data:u,key:p(R,u),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return U.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:sx({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},U.createElement(l||s||"div",{children:k,ref:i,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"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 a=this.state,i=a.scrollDirection,l=a.scrollOffset,s=a.scrollUpdateWasRequested;this._callOnScroll(i,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,a=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=i(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==a?1:Math.max(1,n),p=o&&"forward"!==a?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var KO=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},ZO=HO({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,a){var i=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,i*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+a+l);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,a){var i=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*i-l),u=Math.min(c,t*i),d=Math.max(0,t*i-l+a+i);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,a=e.width,i=t*r,l=Math.ceil((a+n-i)/r);return Math.max(0,Math.min(o-1,t+l-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,a=e.height,i=t*r,l=Math.ceil((a+n-i)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),XO=GO({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,a){var i=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===i||"horizontal"===u?d:l,f=Math.max(0,s*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+a);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,a=e.itemCount,i=e.itemSize,l=e.layout,s=e.width,c=t*i,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/i);return Math.max(0,Math.min(a-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const QO="#BBB",JO="#f1f1f1",YO={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const e_=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,t_=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,n_=(e,t,n,r)=>e===t*n+r+n;function r_(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:a,overflowDisclaimer:i,qCardinal:l,dataOffset:s}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=e_(t,c),d=c?r.column:r.row,p=(c?o:a)>=d,f=n_(l,u,c?a:o,s),h=!!s&&t_(t,c),m=p&&!f&&u>=d-1||h||i.state.show;i.set(m)}const{StyledFixedSizeList:o_,StyledFixedSizeGrid:a_}=function(){const e=e=>({scrollbarColor:"".concat(QO," ").concat(JO),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:JO},"&::-webkit-scrollbar-thumb":{backgroundColor:QO,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Yh(XO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(YO.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:Yh(ZO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(YO.styledScrollbars)]:e(n)}}))}}();const i_=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));const r=n.measureText(e);return Math.ceil(r.width||0)},l_=e=>{const t=U.useMemo((()=>"text"in e?e:{}),[e]);return U.useMemo((()=>i_(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function s_(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function c_(e){let{isGridMode:t,dense:n}=e;let r=n?UL:t?WL:HL;return t&&(r+=VL),r}function u_(e){let{layout:t,width:n,height:r,listCount:o,count:a,freqIsAllowed:i,checkboxes:l,styles:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==s?void 0:s.content)||{},v="".concat(m," ").concat(g),b=l_({text:s_(t),font:v}),y=l_({text:s_(5),font:v}),x=l_({text:s_(8),font:v}),S=i?y:0,w=l?$L:0;let E=FL+S+w;!l&&E>=zL&&(E+=$L);let C,k,R,L,O=b+18+S+w;!l&&O>=zL&&(O+=$L),O=Math.min(jL,Math.max(O,E));const _=c_({isGridMode:"grid"===h,dense:f}),I=null!=r?r:8*_;if(u){let e=n;"row"===u?(C={overflowX:"hidden"},e+=2*VL,({rowCount:L,columnWidth:R,columnCount:k}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:a}=e;const i=(null==t?void 0:t.maxColumns)||3,l=r-DL;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(a,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,i,c),s=Math.max(s,1);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:O,itemMinWidth:E}))):(C={overflowY:"hidden"},({rowCount:L,columnWidth:R,columnCount:k}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:a,columnAutoWidth:i,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(a/r);t=!1!==n.auto?u:Math.min(o,c,u),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(i,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:_,listCount:o,listHeight:I,columnAutoWidth:O,containerWidth:e,itemMinWidth:E})))}k=("singleColumn"===h?1:k)||1,L=("singleColumn"===h?a:L)||o;const P=c.dense?838e3:577e3;L=Math.min(L,P);const T=Math.floor(3355e4/R);k=Math.min(k,T)||1;const M=L*k,N=Math.min(o,M);return{columnCount:k,columnWidth:R,rowCount:L,overflowStyling:C,itemHeight:_,listHeight:I,listWidth:n,scrollBarWidth:DL,count:a,listCount:N,maxCount:{row:P,column:T},itemPadding:VL,textWidth:b,freqMinWidth:y,freqMaxWidth:x}}const d_=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),a=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?a:r};const[p_,f_]=dS({});function h_(e){const t="".concat(e.id),[n]=p_();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const m_=rx(zS,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return l({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function g_(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=U.useContext(sS);return V.createElement(YR,{title:o?a.get(n):""},V.createElement(m_,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},a.get(n)))}var v_={},b_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(b_);var y_,x_=b_.exports,S_={},w_=r(xS);var E_=x_;Object.defineProperty(v_,"__esModule",{value:!0});var C_=v_.default=void 0,k_=E_((y_||(y_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=w_}(S_)),S_)),R_=ym;C_=v_.default=(0,k_.default)((0,R_.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const L_=rx(RS)((e=>{let{theme:t,left:n}=e;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(t.palette.divider),width:"calc(100% - 11px)",left:n}})),O_=rx("div")((()=>({paddingLeft:"6px",flexGrow:1}))),__=rx("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),I_=rx(C_)((()=>({fontSize:"14px"})));function P_(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const a="function"==typeof n,i=r?370:282,l=Math.max(o/2-i/2,0),s=Math.min(i,o)-42,c=r&&o<i;return V.createElement(L_,{left:l,style:{maxWidth:i}},V.createElement(O_,null,V.createElement(g_,{text:t,dense:r,width:s,tooltip:c})),V.createElement(__,{dense:r},a&&V.createElement(PS,{"aria-label":"close",onClick:()=>n()},V.createElement(I_,null))))}const T_=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const M_=80;function N_(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>M_,{frequencyEnabled:a=!1}=(null==n?void 0:n.qListObject)||{},i=!["N",void 0].includes(r);return!(!o||!i&&!a)}const q_=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e)(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},A_=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=U.useState(),[a,i]=U.useState(n);return U.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=q_(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),i(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:a}};const z_=["isLoadingData"],D_=100,j_=rx("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function F_(e){var t,n;let{model:r,app:o,constraints:i,layout:c,selections:u,selectionState:d,direction:p,checkboxes:f,height:h,width:m,frequencyMode:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x=!1,keyboard:S={},showGray:w=!0,scrollState:E,keyScroll:C={state:{},reset:()=>{}},currentScrollIndex:k={set:()=>{}},renderedCallback:R,onCtrlF:L,showSearch:O,isModal:_,styles:I}=e;const{translator:P}=U.useContext(sS),[T,M]=U.useState(!1),N=!(!c||!c.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:q=f,histogram:A}=null!=c?c:{},z=U.useRef(null),D=U.useRef({queue:[],validPages:!1,dataOffset:0}),j=U.useRef({pages:[]}),{frequencyMax:F,awaitingFrequencyMax:$}=A_(o,c),B=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:a,postProcessPages:i,listData:l}=e;const[s,c]=U.useState(!1),[u,d]=U.useState([]);let[p]=U.useState(0);const f=(e,s)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:s+u});const f=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),c(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],a=r.getListObjectData("/qListObjectDef",[{qTop:n.start>p?n.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:n.start,qHeight:p,qLeft:0,qWidth:1}]).then((n=>{const r=i?i(n):n;t.current.validPages=!0,l.current.pages=r,d(r),c(!1),e()}));o&&o(a)}),f?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:u,isLoading:s}}({local:D,loaderRef:z,model:r,fetchStart:b,scrollTimeout:0,postProcessPages:y,listData:j}),W=s(B,z_),{getStoreValue:H,setStoreValue:G}=h_(r),K=U.useCallback(W.loadMoreItems,[c]),[Z,X]=U.useState({show:!1,dismissed:!1}),[Q,J]=U.useState([]);null!=W&&W.pages&&d.update({setPages:J,pages:W.pages,isSingleSelect:N,layout:c});const Y=null==c?void 0:c.qListObject.qDimensionInfo.qCardinal;(null!=W&&W.pages.length&&!$||0===Y)&&(null==R||R());const ee=U.useCallback((e=>{if(null==Q||!Q.length||!D.current.validPages)return!1;D.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Q.filter((e=>t(e)))[0];return n&&t(n)}),[c,Q]),{interactionEvents:te,select:ne}=LL({selectionState:d,selections:u,checkboxes:q,doc:document,loaderRef:z}),{layoutOptions:re={}}=c||{};let oe=!0;re.dataLayout&&(oe="singleColumn"===re.dataLayout||"row"===(null==re?void 0:re.layoutOrder));const ae="grid"===(null==re?void 0:re.dataLayout),ie=e=>{const t=l({},oe?{rowIndex:e}:{columnIndex:e}),n=ae?t:e;z.current._listRef.scrollToItem(n)},le=()=>{if(D.current.queue=[],D.current.validPages=!1,z.current){z.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===C.state.scrollPosition;if(c&&c.qSelectionInfo.qInSelections||e)return void(e&&C.reset());D.current.dataOffset=0,ie(0)}};v&&v.call(null,le),U.useEffect((()=>{E&&!T&&z.current&&(z.current._listRef.scrollToItem(E.initScrollPos),M(!0))}),[z.current]),U.useEffect((()=>{le()}),[c,D.current.dataOffset]);let se=D_;const ce="grid"!==re.dataLayout,ue=null==c||null===(t=c.qListObject.qSize)||void 0===t?void 0:t.qcy,de=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?d_({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:Q,minimumBatchSize:se,count:ue,calculatePagesHeight:x,layoutOptions:re,model:r});let pe=N_({itemWidth:m,layout:c,frequencyMode:g});const fe=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(Q),he=u_({layout:c,width:m,height:h,listCount:de,count:ue,freqIsAllowed:pe,checkboxes:q,styles:I});he.columnWidth&&(pe=N_({itemWidth:he.columnWidth,layout:c,frequencyMode:g}));const{listCount:me}=he;G("listCount",me);const ge=H("inputText"),ve=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=U.useContext(sS),a=[];if(null!=n&&n.length){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(r),t=o.get(e,[r]);a.push(t)}const i=function(e){var t;let{layout:n,translatorDynamic:r}=e;const{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},a=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let i;switch(a){case 0:i="ScreenReader.ZeroSelected";break;case 1:i="ScreenReader.OneSelected";break;default:i="ScreenReader.ManySelected"}return r.get(i,[a])}({layout:t,translatorDynamic:o});a.push(i);const l=a.filter((e=>!(null==e||!e.length))).join(". ");return l}({layout:c,searchInputText:ge,listCount:me}),be=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:a,offset:i}=e,l=!1,s=null!=i?i:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":s=0,t=0,l=!0;break;case"overflowEnd":s=T_(a,o.listCount),t=a.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:oe,sizes:he,layout:c,offset:D.current.dataOffset});D.current.dataOffset=n,r&&d.triggerStateChanged(),ie(t)};U.useEffect((()=>{const e=C.state;e.up?ie(k.state.start-e.up):e.down?ie(k.state.stop+e.down):e.scrollPosition&&be(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&C.reset()}),[C.state.up,C.state.down,C.state.scrollPosition]);const{textAlign:ye}=(null==c?void 0:c.qListObject.qDimensionInfo)||{},[xe,Se]=U.useState({first:!1,last:!1}),{List:we,Grid:Ee}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:i,pages:s,selectionState:c,interactionEvents:u,deducedFrequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:b,keyboard:y,showGray:x,scrollState:S,direction:w,sizes:E,listCount:C,overflowDisclaimer:k,setScrollPosition:R,focusListItems:L,setCurrentScrollIndex:O,constraints:_,frequencyMax:I,freqIsAllowed:P,translator:T,showSearch:M,isModal:N,styles:q}=e;const{layoutOptions:A={}}=t||{},{columnWidth:z,listHeight:D,itemHeight:j,rowCount:F,columnCount:$}=E||{},B=("grid"===A.dataLayout?z:n)>zL,W={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:YO.styledScrollbars},H=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,U=D<=j,G=l(l({isLocked:H,column:!i,pages:s},H||c.selectDisabled()?{}:u),{},{checkboxes:r,layoutOptions:A,deducedFrequencyMode:d,freqIsAllowed:P,isSingleSelect:f,textAlign:v,sizes:E,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:R,selectAll:m,onCtrlF:g},frequencyMax:I,histogram:p,keyboard:y,showGray:x,showTick:B,dataOffset:o.current.dataOffset,focusListItems:L,direction:w,translator:T,showSearch:M,isModal:N,styles:q,fillHeight:U});return{List:e=>{let{onItemsRendered:r,ref:i}=e;return o.current.listRef=i,V.createElement(o_,a({},W,{dataTestid:"fixed-size-list",scrollDisabled:null==_?void 0:_.active,height:D,width:n,itemCount:C,itemData:l(l({},G),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var n;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),r_({renderProps:e,layoutOptions:A,maxCount:E.maxCount,columnCount:$,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(l({},e))},ref:i}),TO)},Grid:e=>{let{onItemsRendered:r,ref:i}=e;const{overflowStyling:s,scrollBarWidth:c}=E,{layoutOrder:u}=A||{},d=Math.min(D,F*j+c);return o.current.listRef=i,V.createElement(a_,a({},W,{dataTestid:"fixed-size-grid",scrollDisabled:null==_?void 0:_.active,height:d,width:n,columnCount:$,columnWidth:z,rowCount:F,rowHeight:j,style:l({},s),itemData:l(l({},G),{},{column:void 0,columnCount:$,rowCount:F}),onItemsRendered:e=>{var n;const a="row"===u;O({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const i=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:a}=e,{overscanRowStartIndex:i,overscanRowStopIndex:l,overscanColumnStartIndex:s,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,p=i,f=c*o,h=l):(d=s,p=i*a,f=c,h=l*a),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:F,columnCount:$});r_({renderProps:e,layoutOptions:A,maxCount:E.maxCount,columnCount:$,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(i)},ref:i}),TO)}}}({direction:p,layout:c,height:h,width:m,checkboxes:q,deducedFrequencyMode:fe,histogram:A,keyboard:S,showGray:w,interactionEvents:te,select:ne,selectAll:()=>{d.clearItemStates(!1),r.selectListObjectAll("/qListObjectDef")},onCtrlF:L,textAlign:ye,isVertical:ce,pages:Q,selectionState:d,isSingleSelect:N,selections:u,scrollState:E,local:D,sizes:he,listCount:me,overflowDisclaimer:{state:Z,set:e=>X((t=>l(l({},t),{},{show:e})))},setScrollPosition:be,focusListItems:{first:xe.first,setFirst:e=>Se((t=>l(l({},t),{},{first:e}))),last:xe.last,setLast:e=>Se((t=>l(l({},t),{},{last:e})))},setCurrentScrollIndex:k.set,constraints:i,frequencyMax:F,freqIsAllowed:pe,translator:P,showSearch:O,isModal:_,styles:I}),{columnWidth:Ce,listHeight:ke,itemHeight:Re}=he||{};return ce||(se=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:m,columnWidth:Ce,listHeight:ke,itemHeight:Re})),V.createElement(j_,null,V.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},ve),!me&&Y>0&&V.createElement(g_,{width:m,text:"Listbox.NoMatchesForYourTerms"}),V.createElement(bL,{isItemLoaded:ee,itemCount:me||1,loadMoreItems:K.with({minimumBatchSize:se}),threshold:0,minimumBatchSize:se,ref:z,role:"grid"},ce?we:Ee),Z.show&&!Z.dismissed&&V.createElement(P_,{text:"Listbox.ItemsOverflow",dismiss:()=>X((e=>l(l({},e),{},{dismissed:!0}))),parentWidth:null==z||null===(n=z.current)||void 0===n||null===(n=n._listRef)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.width,dense:null==re?void 0:re.dense}))}const $_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),B_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),W_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),H_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var U_=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:a=!1,selections:i}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const l="/qListObjectDef",s=()=>{i.isActive()||i.begin(l)};return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:$_,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectAll(l)}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:W_,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectPossible(l)}},!a&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:B_,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectAlternative(l)}},!a&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:H_,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectExcluded(l)}}].filter(Boolean)};const V_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function G_(e){const t=Ry(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}const K_={className:"njs-cell-action"},Z_=V.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=Ry(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=G_(r);if(i)return null;const u=Number.parseInt(a.spacing(.5),10),d=r.keyboardAction||r.action,p=d?e=>["Enter"].includes(e.key)&&d():null,f=d?e=>[" ","Spacebar"].includes(e.key)&&d():null,h="actions-toolbar-".concat(r.key);return V.createElement(PS,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[K_.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&dL(r.getSvgIconShape()),o&&V.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),X_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]});var Q_=e=>dL(X_(e));const J_=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var Y_=e=>dL(J_(e));const eI="njs-action-toolbar-more",tI={icon:"".concat("More","-icon")},nI=rx(hR)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(tI.icon," *")]:{color:t.palette.text.primary}}}));function rI(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:a,hasSvgIconShape:i}=G_(t);return o?null:V.createElement(yR,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:a,tabindex:"0"},i&&V.createElement(Xk,{className:tI.icon},dL(t.getSvgIconShape())),V.createElement(zS,{noWrap:!0},t.label))}const oI=V.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:i={},popoverPaperStyle:s={},onCloseOrActionClick:c=(()=>{}),disablePortal:u=!0}=e;const d=n.length>0,p=n.findIndex((e=>!e.disabled));return d&&V.createElement(nI,a({},i,{onClose:c,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:u?null:void 0,container:u?o.current:void 0,disablePortal:u,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:eI},paper:{style:l({pointerEvents:"auto",maxWidth:"250px"},s)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),V.createElement(rR,{id:"moreMenuList"},n.map(((e,t)=>V.createElement(rI,{key:t,item:e,autoFocus:t===p,onActionClick:c})))))})),aI=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},iI=e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()};const lI="ActionsToolbar",sI={item:"".concat(lI,"-item"),itemSpacing:"".concat(lI,"-itemSpacing")},cI=rx(hR)((e=>{let{theme:t}=e;return{["& .".concat(sI.itemSpacing)]:{padding:t.spacing(0,.25)}}})),uI={className:"njs-action-toolbar-popover"},dI=V.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],addAnchor:a=!1,isRtl:i=!1}=e;return o.length>0?V.createElement(fk,{item:!0,container:!0,gap:0,flexDirection:i?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>V.createElement(fk,{item:!0,key:e.key,className:"".concat(sI.itemSpacing," ").concat(sI.item)},V.createElement(Z_,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:a}))))):null})),pI={pointerEvents:"none"},fI={vertical:"bottom",horizontal:"right"};function hI(e){var t,n;let{show:r=!0,actions:o=[],maxItems:a=3,selections:i={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:s,more:c={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:u={show:!1,anchorEl:null},focusHandler:d=null,actionsRefMock:p=null,isRtl:f,autoConfirm:h=!1,layout:m}=e;const g=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:a=(()=>{})}=e;const{translator:i}=U.useContext(sS);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:J_},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{a(),o(),t.cancel()},getSvgIconShape:X_},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{a(),r(),t.confirm()},getSvgIconShape:OL}]}(l(l({},i),{},{layout:m})),{translator:v,keyboardNavigation:b}=U.useContext(sS),[y,x]=U.useState(!1),S={vertical:12,horizontal:(null!==(t=null===(n=u.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},w=U.useRef(),E=U.useRef(),C=Ry(),k=U.useMemo((()=>({margin:C.spacing(.5,0)}))),R=e=>{const t=w.current||p;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},L=U.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o,isRtl:a}=e;return e=>{const{target:i,nativeEvent:l}=e,{keyCode:s}=l;switch(s){case SO.ARROW_LEFT:case SO.ARROW_DOWN:case SO.ARROW_RIGHT:case SO.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=aI(i);let t=[SO.ARROW_LEFT,SO.ARROW_DOWN].includes(s);t=a?!t:t,iI(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case SO.SPACE:e.preventDefault();break;case SO.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case SO.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:b,focusHandler:d,getEnabledButton:R,selections:i,isRtl:f})),[b,d,R,i,f]);if(U.useEffect((()=>()=>{x(!1)}),[u.show,r,i.show]),U.useEffect((()=>{if(!d)return;d.on("focus_toolbar_first",(()=>{const e=R(!1);null==e||e.focus()})),d.on("focus_toolbar_last",(()=>{const e=R(!0);null==e||e.focus()}))}),[]),h)return;let O=c.enabled,_=c.actions;const I=c.alignTo||E,P=o.filter((e=>!e.hidden));if(P.length>a){const e=P.splice(-(P.length-a)-1);O=!0,_=[...e,...c.actions]}if(!i.show&&0===P.length&&!O)return null;const T={key:"more",label:v.get("Menu.More"),getSvgIconShape:V_,hidden:!1,active:y,enabled:()=>O,action:()=>x(!y)},M=P.length>0,N=_.length>0,q=M&&i.show||N&&i.show,A=V.createElement(fk,{ref:w,onKeyDown:L,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:f?"row-reverse":"row"}},(null==s?void 0:s.length)&&V.createElement(dI,{className:"actions-toolbar-extra-actions",actions:s,isRtl:f}),M&&V.createElement(dI,{actions:P}),N&&V.createElement(dI,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:E,ariaExpanded:y,actions:[T],addAnchor:!0}),q&&V.createElement(fk,{item:!0,className:sI.itemSpacing,style:k},V.createElement(XC,{orientation:"vertical"})),i.show&&V.createElement(dI,{className:"actions-toolbar-default-actions",actions:g,isRtl:f}),y&&V.createElement(oI,{show:y,actions:_,alignTo:I,popoverProps:c.popoverProps,popoverPaperStyle:c.popoverPaperStyle,onCloseOrActionClick:()=>{x(!1)},disablePortal:c.disablePortal}));return u.show?V.createElement(cI,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:S,transformOrigin:fI,hideBackdrop:!0,style:pI,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:uI.className,style:{pointerEvents:"auto",padding:C.spacing(.5,.25)}}}},A):r&&A}var mI=e=>dL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{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"}}]}))(e));const gI="/qListObjectDef",vI=e=>null==e?void 0:e.substring(0,64e3),bI=rx(OR,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{styles:t,dense:n,isRtl:r}=e,o={};return n&&(o={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:t.search.color,textAlign:r?"right":"left"}}),l({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,backdropFilter:t.background.backgroundImage?t.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:r?"row-reverse":"row","& fieldset":{borderColor:"".concat(t.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(t.search.highlightBorderColor," !important")},"& .MuiInputBase-root":l({},t.search),"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:r?"right":"left"}},o)})),yI=rx(PS)((()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}})));var xI=U.forwardRef((function(e,t){let{popoverOpen:n,selections:r,selectionState:o,model:a,keyboard:i,dense:l=!1,visible:s=!0,autoFocus:c=!0,beginSelectionOnFocus:u=!0,wildCardSearch:d=!1,searchEnabled:p,direction:f,hide:h,styles:m}=e;const{translator:g}=U.useContext(sS),[v,b]=U.useState(""),[y,x]=U.useState(!1),S=U.useRef(),w=U.useRef(),E=g.get("Listbox.Clear.Search"),{getStoreValue:C,setStoreValue:k}=h_(a),R="rtl"===f,L=async()=>{try{await a.abortListObjectSearch(gI)}finally{b("")}};U.useEffect((()=>s?()=>L():()=>{}),[s]),U.useEffect((()=>(r.on("deactivated",L),()=>{r.removeListener&&r.removeListener("deactivated",L)})),[]),U.useEffect((()=>{if(y&&S.current){const e=v.length-1;S.current.setSelectionRange(e,e),x(!1)}}),[y,S.current]),U.useEffect((()=>{k("inputText",v)}),[v]);const O=async()=>{let e;const t=vI(v),n=await a.searchListObjectFor(gI,t);return o.selectDisabled()?n:(n&&t.length&&C("listCount")>0&&(e=a.acceptListObjectSearch(gI,!0),r.selectionsMade=!0,o.clearItemStates(!1),b("")),e)},_=()=>{var e;null===(e=S.current)||void 0===e||e.focus()},I=()=>{L(),_()};return U.useImperativeHandle(t,(()=>({focus(){_()}}))),s&&!1!==p?V.createElement(bI,{styles:m,dense:l,isRtl:R,startAdornment:V.createElement(Ok,{position:"start",sx:{marginLeft:l?"8px":"".concat(ML,"px")}},V.createElement(mI,{size:l?"small":"normal"})),endAdornment:V.createElement(Ok,{position:"end",sx:{marginLeft:0}},""!==v&&V.createElement(yI,{tabIndex:0,ref:w,title:E,"aria-label":E,onClick:I,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":I();break;case"Tab":e.shiftKey?_():LO(t);break;default:return}e.preventDefault(),e.stopPropagation()}},V.createElement(Q_,{size:l?"small":"normal"}))),className:"search",inputRef:S,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:v,onFocus:()=>{d&&(b("**"),x(!0)),u&&!o.selectDisabled()&&!r.isModal()&&r.begin("/qListObjectDef")},onChange:async e=>{const t=vI(e.target.value);return b(t),t.length?a.searchListObjectFor(gI,t):L()},onKeyDown:async e=>{const{currentTarget:t}=e,o=t.closest(".listbox-container");switch(e.key){case"Enter":O();break;case"Escape":if(LO(o),r.cancel(),n)return;break;case"Tab":e.shiftKey?OO(o)||i.focusSelection():w.current?w.current.focus():LO(o);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;h&&(h(),LO(o));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:c,inputProps:{tabIndex:i.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":g.get("Listbox.Search.ScreenReaderInstructions")}}):null}));function SI(e){if(!e.session)return[];const{selectionStore:t}=U.useContext(sS),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return U.useEffect((()=>{e&&!o&&(o=function(e){let{app:t,selectionStore:n}=e;const r="".concat(t.id),{modalObjectStore:o,appModalStore:a}=n,i=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:t,objectSelections:n}=o.get(r)||{};t&&(await t.endSelections(e),o.clear(r),n.emit("deactivated"))},l={begin:async e=>{var n;let{model:a,paths:l,accept:s=!0,objectSelections:c}=e;if(c===(null===(n=o.get(r))||void 0===n?void 0:n.objectSelections))return;i(s),o.set(r,{model:a,objectSelections:c});const u=Array.isArray(l)?l:[l],d=async e=>{try{await a.beginSelections(u),o.set(r,{model:a,objectSelections:c})}catch(n){6003!==n.code||e?o.clear(r):(await t.abortModal(s),d(!0))}};await d()},end:i};a.set(r,l);const s={model:t,isInModal:()=>!!o.get(r),isModal(e){var t;return e?(null===(t=o.get(r))||void 0===t?void 0:t.objectSelections)===e:!!o.get(r)},forward:()=>l.end().then((()=>t.forward())),back:()=>l.end().then((()=>t.back())),clear:()=>l.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return l.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return s}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))}),[e]),[o]}function wI(e){return Object.keys(ee.prototype).forEach((t=>{e[t]=ee.prototype[t]})),ee.init(e),e}const EI=e=>{let t,{appSelections:n,appModal:r,model:o}=e,a=!1,i=!1;const l={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(a=!0,this.emit("activated"),r.begin({model:o,paths:e,accept:!0,objectSelections:l}))},clear(){return i=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return i=!1,a=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return i=!1,a=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return i="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:i,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:i,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>a,isModal:()=>n.isModal(l),goModal:e=>r.begin({model:o,paths:e,accept:!1,objectSelections:l}),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return wI(l),l},CI=e=>{let{elements:t,objectSelections:n,options:r={}}=e;const o=function(e){let{elements:t,handleClickOutside:n}=e;return e=>{if(!document.contains(e.target))return;const r=t.map((e=>"string"==typeof e?document.querySelector(e):null==e?void 0:e.current)).filter((e=>!!e&&!!document.contains(e)));r.length&&!r.some((t=>t.contains(e.target)))&&n(e)}}({elements:t,handleClickOutside:()=>n.confirm.call(n)});return{activateClickOut(){var e;document.addEventListener("mousedown",o),null==r||null===(e=r.onSelectionActivated)||void 0===e||e.call(r)},deactivateClickOut(){var e;document.removeEventListener("mousedown",o),null==r||null===(e=r.onSelectionDeactivated)||void 0===e||e.call(r)}}};function kI(e,t,n,r){const o=Array.isArray(n)?n:[n],[a]=SI(e),[i]=lL(t),{appModalStore:l}=U.useContext(sS).selectionStore,s=l.get(e.id),[c,u]=U.useState();return U.useEffect((()=>{a&&t&&!c&&u(EI({appSelections:a,appModal:s,model:t}))}),[a,t]),U.useEffect((()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=CI({elements:o,objectSelections:c,options:r});return c.addListener("activated",e),c.addListener("deactivated",t),()=>{c.isActive()&&c.confirm(),c.removeListener("activated",e),c.removeListener("deactivated",t)}}),[c]),U.useEffect((()=>{c&&c.setLayout(i)}),[c,i]),[c]}function RI(){const e=l(l({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(t){var n,r;let{setPages:o,pages:a,isSingleSelect:i,selectDisabled:l,layout:s}=t;this.setPages=o;const c=this.lastRowCount===s.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===s.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=s.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=s.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=SL(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=i,e.selectDisabled=l||e.selectDisabled,e.isDimCalculated=null!==(n=null==s||null===(r=s.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[l(l({},n),{},{qState:r}),...t.slice(1)]}));return l(l({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}});return e}const LI=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:r};function OI(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return LI(t,"qSelected",0)+LI(t,"qSelectedExcluded",0)+LI(t,"qLocked",0)+LI(t,"qLockedExcluded",0)>0}const _I=/,(?![^(]*\))/,II=/\s(?![^(]*\))/,PI=/^[0-9]+[a-zA-Z%]+?$/,TI=["none","inset","initial","inherit"],MI=e=>{if(!e)return;const t=e.split(II).filter((e=>!TI.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||PI.test(e))(t)||TI.includes(t.toLowerCase())?void 0:t;return n},NI=e=>e?e.split(_I).map((e=>e.trim())):[];function qI(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}const AI=!0;function zI(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e,AI):void 0:qI(t,n,r,o)}const DI={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},jI={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function FI(e,t){return t?function(e){var t;let n,r,o,a;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),a="wss:"===r.protocol,o=a?"https://":"http://",o+r.host):""}(e)+t:void 0}function $I(e,t){const n=null==e?void 0:e.bgImage;if(n){let r="";if("media"===n.mode||"media"===e.useImage){const e=null==n?void 0:n.mediaUrl,{qUrl:o}=(null==e?void 0:e.qStaticContentUrl)||{};r=o?decodeURIComponent(o):void 0,r=FI(t,r)}"expression"===n.mode&&(r=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=jI[e.bgImage.position]),n}(e),a=function(e){var t;let n=DI.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=DI[r]),n}(e);return r?{url:r,pos:o,size:a}:void 0}}function BI(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):zI(null==r?void 0:r.color,"","backgroundColor",t,n)}function WI(e,t,n){var r,o;const a=qI("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&TI.includes(e.toLowerCase()))return e.toLowerCase();const r=NI(e);if(1!==r.length)return e;let o=n;if(!o){const n=NI(t);if(1!==n.length)return e;o=MI(n[0])}if(!o)return e;const a=MI(r[0]);return a?e.replace(a,o):"".concat(e," ").concat(o)})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||a,a,zI(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function HI(e,t,n,r){var o;const a=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},i=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(a.fontStyle,t);return{fontFamily:a.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),fontSize:a.fontSize||n.getStyle("object.".concat(r),"title.".concat(t),"fontSize"),color:a.color&&"none"!==a.color.color?n.getColorPickerColor(a.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:i.includes("bold")?"bold":"normal",fontStyle:i.includes("italic")?"italic":"normal",textDecoration:i.includes("underline")?"underline":"initial"}}const UI="#FFF",VI="#000",GI=1.5,KI=3,ZI={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},XI=(e,t)=>{let n=!1;const r=new ot(e),o=new ot(t);if(!(o.isInvalid()||r.isInvalid()||o.getAlpha()<1||r.getAlpha()<1)){try{n=ot.getContrast(r,o)}catch(e){n=void 0}return n}};function QI(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:VI,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:UI;const o=new ot(r),a=new ot(e),i=new ot(t);if(a.isInvalid()||i.isInvalid()||a.getAlpha()<1||i.getAlpha()<1)return t;const l=XI(o,a),s=XI(i,a),c=l>s||l>KI;let u;return u=t&&s>GI&&!c?t:c?r:n,u}const JI=["theme","selections"];function YI(e){var t,n,r,o,a;let{getColorPickerColor:i,theme:s,getListboxStyle:c,overrides:u,checkboxes:d,themeSelectionColorsEnabled:p}=e;const f=null===(t=u.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor,h=i(f)||c("content","color")||(null===(n=s.palette)||void 0===n?void 0:n.text.primary),m=!d&&(null===(r=null===(o=u.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),g=(null===(a=u.selections)||void 0===a?void 0:a.colors)||{},v=e=>{var t,n;const r="selected"===e?"main":e,o="".concat(e,"Contrast"),a=i(g[e])||(e=>p?c("","dataColors.".concat(e)):void 0)(e)||"possible"===e&&c("","backgroundColor")||(null===(t=s.palette)||void 0===t||null===(t=t.selected)||void 0===t?void 0:t[r])||ZI[e];return{[e]:a,[o]:m?QI(a,h):h||(null===(n=s.palette)||void 0===n?void 0:n.selected["".concat(o,"Text}")])}};return l(l(l(l(l({},v("selected")),v("alternative")),v("excluded")),v("selectedExcluded")),v("possible"))}function eP(e){var t,n,r,o,a,i,l,s;let{app:c,themeApi:u,theme:d,components:p=[],checkboxes:f=!1,themeSelectionColorsEnabled:h=!1}=e;const m=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;JI.includes(n)&&(e[n]=t)})),e}(p),g=(e,t)=>u.getStyle("object.listBox",e,t),v=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e,!1):void 0,b=YI({getColorPickerColor:v,theme:d,getListboxStyle:g,overrides:m,checkboxes:f,themeSelectionColorsEnabled:h}),y=m.theme||{},x=v(null===(t=y.header)||void 0===t?void 0:t.fontColor)||g("title.main","color"),S=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?BI({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color,!1),t):t}({themeApi:u,themeOverrides:y}),w=null!==(n=y.background)&&void 0!==n&&n.image?$I({bgImage:y.background.image},c):void 0,E=S||g("","backgroundColor")||d.palette.background.default,C=function(e,t){const n=new ot(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.toRGBA()}(E,g),k=function(e){return QI("#fff",e("content","color"))}(g),R=(null===(r=y.header)||void 0===r?void 0:r.fontStyle)||{},L=(null===(o=y.content)||void 0===o?void 0:o.fontStyle)||{},O=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:E,backgroundImage:null==w||!w.url||null!=w&&w.url.startsWith("url(")?void 0:"url('".concat(w.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==w?void 0:w.size,backgroundPosition:null==w?void 0:w.pos},header:{color:x,fontSize:(null===(a=y.header)||void 0===a?void 0:a.fontSize)||g("title.main","fontSize"),fontFamily:(null===(i=y.header)||void 0===i?void 0:i.fontFamily)||g("title.main","fontFamily"),fontWeight:O(R.bold,"bold","normal")||g("title.main","fontWeight")||"bold",textDecoration:R.underline?"underline":"initial",fontStyle:O(R.italic,"italic","normal")||g("title.main","fontStyle")||"initial"},content:{backgroundColor:f?void 0:b.possible,color:b.possibleContrast||g("content","color"),fontSize:(null===(l=y.content)||void 0===l?void 0:l.fontSize)||g("content","fontSize"),fontFamily:(null===(s=y.content)||void 0===s?void 0:s.fontFamily)||g("content","fontFamily"),fontWeight:O(L.bold,"bold","normal")||g("content","fontWeight")||"normal",textDecoration:L.underline?"underline":"initial",fontStyle:O(L.italic,"italic","normal")||g("content","fontStyle")||"initial"},search:{color:k,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:C,backdropFilter:"blur(8px)"},selections:b}}function tP(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:a,app:i,fieldName:l,stateName:s="$",autoFocus:c,components:u,checkboxes:d,selectDisabled:p=(()=>!1),flags:f,sortCriteria:h=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}=e;const m=Boolean(null==l?void 0:l.qLibraryId),g=o&&Boolean(t.current),[v,b]=U.useState(0),y=Ry(),x=U.useRef(),[S]=tL({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:h,qFieldDefs:m?void 0:[l]},qLibraryId:m?l.qLibraryId:void 0}},i,l,s),w=U.useCallback((()=>{S.lock("/qListObjectDef")}),[S]),E=U.useCallback((()=>{S.unlock("/qListObjectDef")}),[S]),{translator:C,themeApi:k,keyboardNavigation:R}=U.useContext(sS),L=U.useRef(),O=U.useRef(),[_]=kI(i,S,O),[I]=lL(S),[P]=U.useState((()=>RI({selectDisabled:p}))),T=CO({containerRef:O,enabled:R}),{checkboxes:M=d}=I||{},N=eP({themeApi:k,theme:y,components:u,checkboxes:M,themeSelectionColorsEnabled:null==f?void 0:f.isEnabled("PS_22149_THEME_SELECTION_COLORS")});if(U.useEffect((()=>{_&&g&&(_.isModal(S)||_.goModal("/qListObjectDef"))}),[_,g]),!S||!I||!C)return null;const q=!0===I.qListObject.qDimensionInfo.qLocked,A=(e,t)=>{const n="escapeKeyDown"!==t;_.noModal(n),a()},z=U_({layout:I,model:S,translator:C,selectionState:P,selections:_}),D=OI(I);return V.createElement(hR,{className:"listbox-container",open:g,onClose:A,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?A():void 0},V.createElement(fk,{container:!0,direction:"column",gap:0,ref:O},V.createElement(fk,{item:!0,container:!0,style:{padding:y.spacing(1)}},V.createElement(fk,{item:!0},q?V.createElement(PS,{onClick:E,disabled:!q,size:"large"},V.createElement(fL,{title:C.get("Listbox.Unlock")})):V.createElement(PS,{onClick:w,disabled:!D,size:"large"},V.createElement(mL,{title:C.get("Listbox.Lock")}))),V.createElement(fk,{item:!0,xs:!0}),V.createElement(fk,{item:!0},V.createElement(hI,{layout:I,more:{enabled:!q,actions:z,alignTo:L,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:_,onConfirm:A,onCancel:()=>A(0,"escapeKeyDown")}}))),V.createElement(fk,{item:!0,xs:!0},V.createElement("div",{ref:L}),V.createElement(fk,{item:!0},V.createElement(xI,{ref:x,popoverOpen:g,styles:N,visible:!0,model:S,listCount:v,selections:_,selectionState:P,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:T.focusSelection},autoFocus:null==c||c})),V.createElement(F_,{model:S,app:i,layout:I,selections:_,selectionState:P,direction:"ltr",onSetListCount:e=>b(e),onCtrlF:()=>{x.current.focus()},styles:N,keyboard:T}))))}function nP(e){var t;let{field:n,api:r,stateIx:o=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:i=null,onClose:l=(()=>{})}=e;const{translator:s}=U.useContext(sS),c=i||U.useRef(),u=Ry(),[d,p]=U.useState(!1),f=e=>{e.currentTarget.contains(e.target)&&p(!d)},h=()=>{p(!1),l()},m=n.selections[o],g=(null===(t=m.qDimensionReferences)||void 0===t||null===(t=t.find((e=>e.qLabel)))||void 0===t?void 0:t.qLabel)||m.qReadableName||m.qField;void 0===m.qTotal&&(m.qTotal=0);const v=m.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},b=(v.qSelected+v.qLocked)/m.qTotal,y=v.qAlternative/m.qTotal,x=(v.qExcluded+v.qLockedExcluded+v.qSelectedExcluded)/m.qTotal,S=v.qSelected+v.qSelectedExcluded+v.qLocked+v.qLockedExcluded,w=0===S&&0===m.qTotal;let E="";m.qTotal===S&&m.qTotal>1?E=s.get("CurrentSelections.All"):S>1&&m.qTotal?E=s.get("CurrentSelections.Of",[S,m.qTotal]):m.qSelectedFieldSelectionInfo&&(E=m.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==n.states[o]&&(E="".concat(n.states[o],": ").concat(E));const C=[{color:u.palette.selected.main,ratio:b},{color:u.palette.selected.alternative,ratio:y},{color:u.palette.selected.excluded,ratio:x}];C.forEach(((e,t)=>{e.offset=t?C[t-1].offset+C[t-1].ratio:0}));let k=null,R=null,L=null,O=null;return i||(k=V.createElement(fk,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:m.qLocked?"0.3":""}},V.createElement(zS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},g),V.createElement(zS,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},E)),m.qLocked?R=V.createElement(fk,{item:!0},V.createElement(PS,{size:"large"},V.createElement(fL,null))):m.qOneAndOnlyOne||(R=V.createElement(fk,{item:!0},V.createElement(PS,{title:s.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),r.clearField(m.qField,n.states[o])},size:"large"},V.createElement(pL,null)))),L=V.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===w&&C.map((e=>V.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),O=V.createElement(fk,{container:!0,gap:1,ref:c,sx:{backgroundColor:u.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:u.palette.action.hover}},onClick:!1===a&&f||null},k,R,L,d&&V.createElement(tP,{alignTo:c,show:d,close:h,app:r.model,fieldName:m.qField,stateName:n.states[o]}))),i?V.createElement(tP,{alignTo:c,show:!0,close:h,app:r.model,fieldName:m.qField,stateName:n.states[o]}):O}var rP=e=>dL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const oP={item:"".concat("MultiState","-item")},aP=rx(fk)((e=>{let{theme:t}=e;return{["&.".concat(oP.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function iP(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=U.useState(!!r),[l,s]=U.useState(-1),[c,u]=U.useState(r?r.current:null),d=r||U.useRef(),{translator:p}=U.useContext(sS),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=V.createElement(V.Fragment,null,V.createElement(fk,{item:!0,xs:!0,zeroMinWidth:!0},V.createElement(ZE,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},V.createElement(zS,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),V.createElement(fk,{item:!0},V.createElement("div",{style:{width:"12px"}})),V.createElement(fk,{item:!0},V.createElement(PS,{size:"large"},V.createElement(rP,null)))));const g=V.createElement(Mk,{dense:!0},V.createElement(Uk,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},V.createElement(eS,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>V.createElement(Uk,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},V.createElement(JE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},V.createElement(nP,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=V.createElement(hR,{open:a,onClose:()=>{i(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},g),b=r?v:V.createElement(aP,{container:!0,gap:0,className:oP.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,i(!a))}},m,a&&v,l>-1&&V.createElement(tP,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?V.createElement(tP,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const lP="More",sP={item:"".concat(lP,"-item"),badge:"".concat(lP,"-badge")},cP=rx(fk)((e=>{let{theme:t}=e;return{["&.".concat(sP.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(sP.badge)]:{padding:t.spacing(0,1)}}}));function uP(e){let{items:t=[],api:n}=e;const r=Ry(),[o,a]=U.useState(!1),[i,l]=U.useState(-1),[s,c]=U.useState(null),u=U.useRef(),d=()=>{l(-1)};let p=null;return i>-1&&(p=t[i].states.length>1?V.createElement(iP,{field:t[i],api:n,moreAlignTo:u,onClose:d}):V.createElement(nP,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),V.createElement(cP,{container:!0,gap:0,className:sP.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},V.createElement(fk,{item:!0},V.createElement(JE,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},V.createElement(zS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),V.createElement(fk,{item:!0},V.createElement(PS,{size:"large"},V.createElement(rP,null))),o&&V.createElement(hR,{open:o,onClose:()=>{a(!1)},anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},V.createElement(Mk,{dense:!0},t.map(((e,t)=>V.createElement(Uk,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},V.createElement(JE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?V.createElement(iP,{field:e,api:n}):V.createElement(nP,{field:e,api:n}))))))),p)}const dP=120,pP=72;function fP(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";e.qSelections.forEach((e=>{const r=e.qField,o=t[r]=t[r]||{name:r,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function hP(e){let{api:t,app:n}=e;const r=Ry(),[o]=rL(n),[a]=lL(o),[i,l]=U.useState({items:[],more:[]}),{modalObjectStore:s}=U.useContext(sS).selectionStore,[c,u]=cL(),[d,p]=U.useState(0);return U.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-pP,n=Math.floor(t/dP);p(n)}),[u]),U.useEffect((()=>{if(!(n&&o&&a&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&fP(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>fP(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(a);l((t=>{const r=e;if((()=>{const{model:e}=s.get(n.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,a,t.isInModal(),d]),V.createElement(fk,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>V.createElement(fk,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(dP,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?V.createElement(iP,{field:e,api:t}):V.createElement(nP,{field:e,api:t})))),i.more.length>0&&V.createElement(fk,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(pP,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},V.createElement(uP,{items:i.more,api:t})))}var mP=e=>dL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var gP=e=>dL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const vP=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function bP(e){let{api:t,app:n}=e;const{translator:r}=U.useContext(sS),[o]=function(e){const[t]=rL(e),[n]=lL(t),[r]=sL(e),[o,a]=U.useState(null);return U.useEffect((()=>{r&&t&&n&&vP(t,n,r)}),[r,t,n]),U.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),a({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return V.createElement(fk,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},V.createElement(fk,{item:!0},V.createElement(PS,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},V.createElement(mP,null))),V.createElement(fk,{item:!0},V.createElement(PS,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},V.createElement(gP,null))),V.createElement(fk,{item:!0},V.createElement(PS,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},V.createElement(Y_,null))))}const yP=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function xP(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function SP(){return yP.map(xP).join("")}function wP(e){let{app:t}=e;const n=Ry(),[r]=SI(t);return r?V.createElement(fk,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},V.createElement(fk,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},V.createElement(bP,{api:r,app:t})),V.createElement(fk,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},V.createElement(hP,{api:r,app:t}))):null}let EP;EP="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let CP=null,kP=null;const RP=EP.clearTimeout,LP=EP.setTimeout,OP=EP.cancelAnimationFrame||EP.mozCancelAnimationFrame||EP.webkitCancelAnimationFrame,_P=EP.requestAnimationFrame||EP.mozRequestAnimationFrame||EP.webkitRequestAnimationFrame;function IP(e){let t,n,r,o,a,i,l;const s="undefined"!=typeof document&&document.attachEvent;if(!s){i=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},a=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;i(this),this.__resizeRAF__&&CP(this.__resizeRAF__),this.__resizeRAF__=kP((function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,s="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],s="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+s+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=s+"animation: 1ms "+n+"; "}return{addResizeListener:function(a,c){if(s)a.attachEvent("onresize",c);else{if(!a.__resizeTriggers__){const s=a.ownerDocument,c=EP.getComputedStyle(a);c&&"static"===c.position&&(a.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',a=n.head||n.getElementsByTagName("head")[0],i=n.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(n.createTextNode(r)),a.appendChild(i)}}(s),a.__resizeLast__={},a.__resizeListeners__=[],(a.__resizeTriggers__=s.createElement("div")).className="resize-triggers";const u=s.createElement("div");u.className="expand-trigger",u.appendChild(s.createElement("div"));const d=s.createElement("div");d.className="contract-trigger",a.__resizeTriggers__.appendChild(u),a.__resizeTriggers__.appendChild(d),a.appendChild(a.__resizeTriggers__),i(a),a.addEventListener("scroll",l,!0),r&&(a.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&i(a)},a.__resizeTriggers__.addEventListener(r,a.__resizeTriggers__.__animationListener__))}a.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==OP||null==_P?(CP=RP,kP=function(e){return LP(e,20)}):(CP=function([e,t]){OP(e),RP(t)},kP=function(e){const t=_P((function(){RP(n),e()})),n=LP((function(){OP(t),e()}),20);return[t,n]});class PP extends U.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),a=parseFloat(r.paddingRight||"0"),i=parseFloat(r.paddingTop||"0"),l=parseFloat(r.paddingBottom||"0"),s=this._parentNode.getBoundingClientRect(),c=s.height-i-l,u=s.width-o-a,d=this._parentNode.offsetHeight-i-l,p=this._parentNode.offsetWidth-o-a;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===p&&this.state.scaledWidth===u)||(this.setState({height:d,width:p,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:p}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=IP(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:i,onResize:l,style:s={},tagName:c="div",...u}=this.props,{height:d,scaledHeight:p,scaledWidth:f,width:h}=this.state,m={overflow:"visible"},g={};let v=!1;return r||(0===d&&(v=!0),m.height=0,g.height=d,g.scaledHeight=p),o||(0===h&&(v=!0),m.width=0,g.width=h,g.scaledWidth=f),a&&(v=!1),U.createElement(c,{ref:this._setRef,style:{...m,...s},...u},!v&&e(g))}}function TP(e){let{keyboard:t,hovering:n,updateKeyScroll:r,currentScrollIndex:o,isModal:a,constraints:i,selections:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,o=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const i=e.currentTarget.closest(".listbox-container"),s=a();switch(n){case SO.TAB:if(document.activeElement===i||!s&&!i.contains(document.activeElement))return;if(r){LO(i)||RO(i)||_O(e,t)}else{if(!(OO(i)||RO(i)||LO(i)))break}o();break;case SO.ENTER:case SO.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case SO.ESCAPE:_O(e,t),l.isActive()&&l.cancel()}},handleOnMouseEnter:()=>{n.current=!0},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current||(()=>{const e=(null==i?void 0:i.select)||(null==i?void 0:i.active),t=a();return e||t})())return;const{keyCode:t,ctrlKey:l=!1,shiftKey:s=!1}=e;switch(t){case SO.ARROW_UP:r({up:1});break;case SO.ARROW_DOWN:r({down:1});break;case SO.PAGE_UP:r({up:o.stop-o.start});break;case SO.PAGE_DOWN:r({down:o.stop-o.start});break;case SO.HOME:r({scrollPosition:l&&s?"overflowStart":"start"});break;case SO.END:r({scrollPosition:l&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const MP=rx("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function NP(e){let{text:t}=e;const{translator:n}=U.useContext(sS);return V.createElement(MP,null,n.get(t))}const qP={fontSize:"12px"},AP=rx(Hx)((e=>{let{theme:t,isLoading:n}=e;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:t.palette.custom.disabledBackground,opacity:1,color:t.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:n?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:t.palette.custom.disabledContrastText},"& i":{padding:"".concat(qL,"px")}}})),zP=rx(fk,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return l(l({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),DP=rx(zS)((e=>{let{styles:t}=e;return l(l({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function jP(e){let{translator:t,toggleLock:n,keyboard:r,isLoading:o}=e;const a=t.get("SelectionToolbar.ClickToUnlock");return V.createElement(AP,{title:a,tabIndex:r.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?V.createElement(OC,{size:16,variant:"indeterminate",color:"primary"}):V.createElement(fL,{disableRipple:!0,style:qP}),!o&&V.createElement(zS,{fontSize:"14px"},a))}var FP=e=>dL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));var $P=e=>dL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));var BP=e=>dL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));const WP="H",HP="C";var UP={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:a,keyboard:i}=e;switch(t.qGrouping){case WP:return{icon:$P,tooltip:"Listbox.DrillDown",onClick:void 0};case HP:{const e=n&&a,l=()=>{o||r.confirm(),n.getDimension(t.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")})).catch((()=>null))};return{icon:e?BP:FP,tooltip:"Listbox.Cyclic",onClick:e?l:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case SO.SPACE:case SO.ENTER:l();break;case SO.TAB:{if(!i.enabled)return;let n;n=e.shiftKey?i.focusSelection():RO(t)||LO(t),n||_O(e,i)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}}};const VP=rx(eS)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function GP(e){let{iconData:t,translator:n,iconStyle:r,disabled:o,keyboard:a}=e;if(!t)return;const{icon:i,tooltip:s,onClick:c,onKeyDown:u}=t,d=i,p=n.get(s);return c?V.createElement(VP,{variant:"outlined",onClick:c,tabIndex:a.innerTabStops?0:-1,title:p,size:"large",disableRipple:!0,disabled:o,onKeyDown:u,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},V.createElement(d,{style:r})):V.createElement(d,{title:p,size:"large",style:l(l({},r),{},{padding:"".concat(qL,"px")})})}const KP=500;let ZP=0;function XP(e){var t,n,r;let{layout:o,translator:i,styles:s,isRtl:c,showLock:u,showSearchIcon:d,constraints:p,onShowSearch:f,classes:h,containerRect:m,isPopover:g,showToolbar:v,showDetachedToolbarOnly:b,containerRef:y,model:x,selectionState:S,isDirectQuery:w,selections:E,keyboard:C,autoConfirm:k,app:R,disablePortal:L}=e;const[O,_]=U.useState(b),[I,P]=U.useState(null==o||null===(t=o.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked),[T,M]=U.useState(!1);U.useEffect((()=>{var e;P(null==o||null===(e=o.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==o||null===(n=o.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qLocked]);const N=U.useRef(null),q=UP.createDimensionIconData({dimInfo:null==o||null===(r=o.qListObject)||void 0===r?void 0:r.qDimensionInfo,app:R,selections:E,isPopover:g,active:!(null!=p&&p.active),keyboard:C}),A=u&&I,z=!u&&I,D=d||z||q,j=ML-(D?qL:0),F=c?ML-(D?qL:0):NL,$=(d?AL:0)+(z?AL:0)+(q?AL:0),B=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:a}=e;return()=>{const e=new Date;if(e-ZP<KP)return Promise.resolve();if(r)return()=>{};a(!0),ZP=e;const i=t?o.unlock:o.lock;return n(!t),i.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{a(!1)}),0)}))}}({isLocked:I,setLocked:P,settingLockedState:T,setSettingLockedState:M,model:x}),W=U_({layout:o,model:x,translator:i,selectionState:S,isDirectQuery:w,selections:E}),H=I||!u?void 0:[{key:"lock",type:void 0,label:i.get("SelectionToolbar.ClickToLock"),getSvgIconShape:hL,enabled:()=>!T&&!S.selectDisabled()&&OI(o),action:B}],G=null!=p&&p.active?V.createElement(mI,{title:i.get("Listbox.Search"),size:"large",style:l(l({},qP),{},{padding:"".concat(qL,"px")})}):V.createElement(PS,{onClick:f,tabIndex:-1,title:i.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},V.createElement(mI,{style:qP}));U.useEffect((()=>{if(!N.current||!m)return;const e=function(e){var t,n,r,o;let{containerRect:a,titleRef:i,iconsWidth:l,paddingLeft:s,paddingRight:c}=e;const u=s+c,d=a.width<(null!==(t=null==i||null===(n=i.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+l+u+2+128,p=(null==i||null===(r=i.current)||void 0===r?void 0:r.scrollWidth)>(null==i||null===(o=i.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!p)}({containerRect:m,titleRef:N,iconsWidth:$,paddingLeft:j,paddingRight:F});_(b||e)}),[$,j,F,N.current,b,Object.entries(m||{}).sort().join(",")]);const K=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:a,extraItems:i,selections:l,keyboard:s,autoConfirm:c,disablePortal:u}=e;return{autoConfirm:c,isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:i,more:{enabled:!o,actions:a,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"},disablePortal:u},selections:{show:n,api:l,onConfirm:()=>{null==s||s.focus()},onCancel:()=>{null==s||s.focus()}}}}({isDetached:!g&&O,showToolbar:v,containerRef:y,isPopover:g,isLocked:I,extraItems:H,listboxSelectionToolbarItems:W,selections:E,keyboard:C,autoConfirm:k,disablePortal:L}),Z=V.createElement(hI,a({isRtl:c,layout:o},K));if(b)return Z;const X=z?V.createElement(fL,{size:"large",style:l(l({},qP),{},{padding:"".concat(qL,"px")})}):void 0;return V.createElement(zP,{item:!0,container:!0,styles:s,isRtl:c,marginY:1,paddingLeft:"".concat(j,"px"),paddingRight:"".concat(F,"px"),className:"header-container"},A&&V.createElement(jP,{isLoading:T,translator:i,toggleLock:B,keyboard:C}),D&&V.createElement(fk,{item:!0,container:!0,alignItems:"center",width:$,className:"header-action-container"},X||d&&G,V.createElement(GP,{iconData:q,iconStyle:qP,disabled:E.isActive()&&g,translator:i,keyboard:C})),V.createElement(fk,{item:!0,xs:!0,minWidth:0,justifyContent:c?"flex-end":"flex-start",className:h.listBoxHeader},V.createElement(DP,{variant:"h6",noWrap:!0,ref:N,title:o.title,styles:s},o.title)),V.createElement(fk,{item:!0,display:"flex"},Z))}const QP="ListBoxInline",JP={listBoxHeader:"".concat(QP,"-listBoxHeader"),screenReaderOnly:"".concat(QP,"-screenReaderOnly"),listboxWrapper:"".concat(QP,"-listboxWrapper")},YP=rx(fk,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return l(l({},o.background),{},{["& .".concat(JP.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(JP.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(JP.listboxWrapper)]:{padding:n},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:r?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}));const eT=V.memo((function(e){var t,n,r,o;let{options:a,layout:i}=e;const{app:s,direction:c,frequencyMode:u,checkboxes:d,search:p=!0,focusSearch:f=!1,rangeSelect:h=!0,model:m,selections:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x,showGray:S=!0,scrollState:w,renderedCallback:E,toolbar:C=!0,isPopover:k=!1,showLock:R=!1,components:L,selectDisabled:O=(()=>!1),flags:_,disablePortal:I=!0}=a,P=Ry(),{translator:T,keyboardNavigation:M,themeApi:N,constraints:q}=U.useContext(sS),{checkboxes:A=d}=i||{},z=null==_?void 0:_.isEnabled("PS_22149_THEME_SELECTION_COLORS"),D=eP({app:s,themeApi:N,theme:P,components:L,checkboxes:A,themeSelectionColorsEnabled:z}),j=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==s?void 0:s.layout}),F=U.useRef(),$=U.useRef(),[B,W]=cL(),[H,G]=U.useState(!1),[K,Z]=U.useState(!1),X=U.useRef(!1),[Q,J]=U.useState({down:0,up:0,scrollPosition:""}),Y=e=>J((t=>l(l({},t),e))),[ee,te]=U.useState({start:0,stop:0}),[ne]=SI(s),[re]=U.useState((()=>RI({selectDisabled:O}))),oe=CO({containerRef:F,enabled:M}),ae=U.useCallback((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:s,appSelections:ne})),[s,ne]),ie=null==i?void 0:i.qListObject.qDimensionInfo.qError,le=ie&&q.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:se,handleOnMouseEnter:ce,handleOnMouseLeave:ue,globalKeyDown:de}=U.useMemo((()=>TP({keyboard:oe,hovering:X,updateKeyScroll:Y,containerRef:F,currentScrollIndex:ee,app:s,appSelections:ne,constraints:q,isModal:ae,selections:g})),[oe,X,Y,F,ee,s,ne,q,ae]);U.useEffect((()=>(document.addEventListener("keydown",de),()=>{document.removeEventListener("keydown",de)})),[de]),U.useEffect((()=>{!0===p&&Z(!0);const e=()=>{G(!0)},t=()=>{G(!1),"toggle"===p&&Z(!1)};return k&&(g.isActive()||(g.on("activated",e),g.on("deactivated",t)),G(k)),C&&g&&(g.isModal()||(g.on("activated",e),g.on("deactivated",t)),G(k||g.isActive())),()=>{g&&g.removeListener&&(g.removeListener("activated",e),g.removeListener("deactivated",t))}}),[C,g,k]);const{wildCardSearch:pe,searchEnabled:fe,autoConfirm:he=!1,layoutOptions:me={}}=null!=i?i:{},ge=null==i||null===(t=i.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked,ve=!1!==fe&&"toggle"===p&&!ge,be=(null==i||null===(n=i.title)||void 0===n?void 0:n.length)&&!1!==(null==i?void 0:i.showTitle),ye=C&&!be&&!k,xe=C&&be||k,Se="rtl"===c;if(!m||!i||!T)return null;const we=!0===p||"toggle"===p&&K&&!1!==fe,Ee=null!==(r=me.dense)&&void 0!==r&&r,Ce=()=>{Z(!K)},ke=()=>{"toggle"===p?Ce():$.current.focus()},Re=we&&("toggle"===p||f),Le="grid"===(null==me?void 0:me.dataLayout),Oe=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:a}=e;if(n){let e;e=c_({isGridMode:n,dense:r})>o?"0px":"2px",t="row"===a?"".concat(e," 4px"):"".concat(e," 6px ").concat(e," 4px")}else t=void 0;return t}({isGridMode:Le,dense:Ee,height:null===(o=F.current)||void 0===o?void 0:o.clientHeight,layoutOrder:me.layoutOrder});ie&&(null==E||E());const _e=xe?UL+DL:0,Ie=V.createElement(XP,{app:s,showSearchIcon:ve,onShowSearch:Ce,isPopover:k,showToolbar:H,isDirectQuery:j,autoConfirm:he,showDetachedToolbarOnly:ye,layout:i,translator:T,styles:D,isRtl:Se,showLock:R,constraints:q,classes:JP,containerRect:W,containerRef:F,model:m,selectionState:re,selections:g,keyboard:oe,disablePortal:I});return V.createElement(V.Fragment,null,ye&&Ie,V.createElement(YP,{className:"listbox-container",container:!0,tabIndex:oe.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Oe,styles:D,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:se,onMouseEnter:ce,onMouseLeave:ue,ref:e=>{F.current=e,B(e)},isGridMode:Le,"aria-label":oe.active?T.get("Listbox.ScreenReaderInstructions"):""},xe&&Ie,V.createElement(fk,{item:!0,container:!0,direction:"column",height:"100%",minHeight:_e,role:"region","aria-label":T.get("Listbox.ResultFilterLabel")},V.createElement(fk,{item:!0},V.createElement(xI,{ref:$,selections:g,selectionState:re,model:m,dense:Ee,keyboard:oe,visible:we,search:p,autoFocus:Re,beginSelectionOnFocus:!k,wildCardSearch:pe,searchEnabled:fe,direction:c,hide:ve&&Ce,styles:D})),V.createElement(fk,{item:!0,xs:!0,className:JP.listboxWrapper},ie?V.createElement(NP,{text:le}):V.createElement(PP,null,(e=>{let{height:t,width:n}=e;return V.createElement(F_,{model:m,app:s,constraints:q,layout:i,selections:g,selectionState:re,direction:c,frequencyMode:u,rangeSelect:h,checkboxes:A,height:t,width:n,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x,keyboard:oe,showGray:S,scrollState:w,keyScroll:{state:Q,reset:()=>J({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:ee,set:te},renderedCallback:E,onCtrlF:ke,isModal:ae,styles:D})}))))))}));function tT(e){let{options:t={}}=e;const{model:n}=t,[r]=lL(n);return V.createElement(eT,{options:t,layout:r})}function nT(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=U.useState(),[i]=eL(),{sessionModel:l}=r,s=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(r).filter((e=>s.includes(e)));if(c.length)throw new Error('Option "'.concat(c.join(", "),'" is not applicable for existing objects.'));return U.useEffect((()=>{Promise.resolve(l||async function(e){return i.get(e)||await t.getObject(e)}(n)).then((e=>{!function(e){i.get(e.id)||(i.set(e.id,e),e.once("closed",(()=>{i.clear(e.id)})))}(e),a(e)}))}),[]),o}const rT={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function oT(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const aT=["__DO_NOT_USE__"],iT=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return l(l(l({},s(e,aT)),n),t)};function lT(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:a,options:i,renderedCallback:s,flags:c}=e;const{isExistingObject:u,hasExternalSelectionsApi:d}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:r,options:i});u||Object.assign(i,{frequencyMode:oT(i.frequencyMode)});const[p,f]=U.useState(0);U.useEffect((()=>{if(p)throw new Error("Source or selection Api can not change after a listbox has been mounted");f(p+1)}),[u,d]);const h=u?nT({app:t,qId:r,options:i}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:a={}}=e;const[i,l]=U.useState(""),[s,c]=U.useState(!0),[u,d]=U.useState(),[p,f]=U.useState(),h=null!==(t=a.title)&&void 0!==t?t:p;let{histogram:m=!1,frequencyMode:g="N"}=a;i&&i.failedToFetchFieldDef&&(m=!1,g="N"),U.useEffect((()=>{const e=m||"N"!==g;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();f(t.qDim.title),"N"===t.qDim.qGrouping?l(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):l({multiFieldDim:!0}),c(!1)}catch(e){throw c(!1),l({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(c(!1),f(r))}),[]);const{dense:v,checkboxes:b,listLayout:y,properties:x={}}=a,S={dense:v};"horizontal"===y&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const w=U.useRef();w.current||(w.current=SP());const E=He(!0,{},rT,{qInfo:{qId:w.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:b,layoutOptions:S,title:h});let C;if(He(!0,E,x),r.qLibraryId?(E.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(E.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==g&&m)if(null!=i&&i.multiFieldDim)E.frequencyMax="fetch";else{const e=r.qLibraryId?i:C;E.frequencyMax={qValueExpression:q_(e)}}const[k]=tL(E,s?null:n,C,o);return U.useEffect((()=>{k&&d(k)}),[k]),u}({app:t,fieldIdentifier:n,stateName:o,options:i}),m=U.useRef(a),g=d?i.selectionsApi:kI(t,h,[m,".njs-action-toolbar-more",".njs-action-toolbar-popover"],i)[0],v=U.useMemo((()=>l(l({},i),{},{selections:g,model:h,app:t,renderedCallback:s,flags:c})),[i,g,h,t]);return g&&h?V.createElement(tT,{options:v}):null}const sT={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function cT(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={},flags:i}=e;const[l,s]=U.useState(!!a.show);return V.createElement(tP,{show:l,app:t,alignTo:{current:o},anchorOrigin:a.anchorOrigin,transformOrigin:a.transformOrigin,close:()=>{s(!1),a.onPopoverClose&&a.onPopoverClose()},fieldName:n,stateName:r,autoFocus:a.autoFocus,components:a.components,flags:i,sortCriteria:a.sortCriteria})}function uT(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function dT(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}const pT=e=>({qDef:{qFieldDefs:[e]}}),fT=e=>({qDef:{qDef:e}});function hT(e){let{dc:t,def:n,properties:r}=e;t.qDimensions=t.qDimensions||[],t.qMeasures=t.qMeasures||[],t.qInterColumnSortOrder=t.qInterColumnSortOrder||[],t.qInitialDataFetch=t.qInitialDataFetch||[],t.qColumnOrder=t.qColumnOrder||[],t.qExpansionState=t.qExpansionState||[];const o=r,a={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?pT(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||SP(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],t.qDimensions.length<a.maxDimensions()?(t.qDimensions.push(r),uT(t.qInterColumnSortOrder,t.qDimensions.length-1),n.dimensions.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];return dT(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?fT(e):l(l({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||SP(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<a.maxMeasures()?(t.qMeasures.push(r),uT(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),n.measures.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(e){const r=t.qMeasures.splice(e,1)[0];dT(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,o,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<a.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<a.maxMeasures()};return a}const mT=e=>({qDef:{qFieldDefs:[e]}});function gT(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,a={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?mT(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||SP(),r.qDef.qSortCriterias=t.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(r).forEach((e=>{t[e]=r[e]})),n.dimensions.added(r,o),r},removeDimension(e){const r=t;return delete t.qDef,delete t.qLibraryId,n.dimensions.removed(r,o,e),r},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===a.dimensions().length,canAddMeasure:()=>!1};return a}const vT=e=>({qDef:{qFieldDefs:[e]}}),bT=e=>{let t;return t="string"==typeof e?He(!0,{},rT,{qListObjectDef:vT(e)}):e.qListObjectDef?He(!0,{},rT,e):He(!0,{},rT,{qListObjectDef:e}),t};function yT(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=bT(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||SP(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var a,i;r.title=o.qDef.title||(null===(a=o.qDef.qFieldLabels)||void 0===a?void 0:a[0])||(null===(i=o.qDef.qFieldDefs)||void 0===i?void 0:i[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}};return r}function xT(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function ST(e,t){let{sn:n,properties:r,fields:o,children:a}=e;if(!o.length)return;const i=n.qae.data.targets[0];if(!i)return;const{propertyPath:l}=i,s=l.split("/");let c=r;for(let e=0;e<s.length;e++){const t=s[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?gT:e.match("/qChildListDef")?yT:hT}(l),d=u({dc:c,def:i,properties:r,children:a,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===xT(t)?await d.addMeasure(t):await d.addDimension(t)}}var wT={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let a=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==a[t]&&null!==a[t]||(a[t]=Number.isNaN(+r[e+1])?{}:[]),a=a[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?a[o]=n:delete a[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var ET={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(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}};const CT=2**53-1;function kT(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function RT(e,t){const n=He(!0,{},t,e);return wT.getValue(n,"qOtherTotalSpec.qOtherCounted")||wT.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),wT.getValue(n,"qOtherTotalSpec.qOtherLimit")||wT.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function LT(e,t){return He(!0,{},t,e)}function OT(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var _T={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===wT.getValue(e,t)&&wT.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:kT,importCommonProperties:function(e,t,n){const r="masterobject"===wT.getValue(t,"properties.qInfo.qType")?"masterobject":wT.getValue(n,"qInfo.qType");wT.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},createDefaultDimension:RT,createDefaultMeasure:LT,resolveValue:OT,getHypercubePath:function(e){const t=wT.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},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:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let a=n.qInterColumnSortOrder.length;if(a!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());a!==o;)a<o?(ET.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,ET.indexRemoved(n.qInterColumnSortOrder,a))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=He(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?wT.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||kT(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=He(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},a=n.measures||{max:0},i=OT(a.max,r.dimensions.length,CT),l=OT(a.min,r.dimensions.length,0);return{maxDimensions:OT(o.max,i,CT),minDimensions:OT(o.min,l,0),maxMeasures:i,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a}=e;const i=t.data[0];return i.dimensions.length>n&&n>0||i.measures.length>o&&o>0||i.excludedDimensions.length>0&&i.dimensions.length+i.excludedDimensions.length>r||i.excludedMeasures.length>0&&i.measures.length+i.excludedMeasures.length>a||!o&&i.measures.length>0||!n&&i.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a,newHyperCubeDef:i}=e;const l=t.data[0];i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.qHyperCubeDef||(i.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>a)&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(RT(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(RT(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(RT(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(RT(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(RT(i.excludedDimensions[l],a))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(LT(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(LT(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(LT(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(LT(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(LT(i.excludedMeasures[l],a))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=wT.getValue(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach((r=>{e.qDimensions.push(r),n.dimensions.added(r,t)}))}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=wT.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var IT={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,a=wT.getValue(o,n||""),i=a.qHyperCubeDef,l=r.data[0];if(i.qInterColumnSortOrder||(i.qInterColumnSortOrder=[]),l.dimensions.push(...i.qDimensions),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...i.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...i.qMeasures),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...i.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=i.qInterColumnSortOrder.concat(),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();ET.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete i.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=a.qHyperCubeDef,delete a.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(_T.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!wT.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:a}=e;const i={qChildren:[]},l=_T.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=wT.getValue(n,a||"").qHyperCubeDef,c=wT.getValue(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=_T.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=_T.getDefaultDimension(),defaultMeasure:m=_T.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,_T.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&_T.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),_T.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),_T.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),_T.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),_T.copyPropertyIfExist("qMaxStackedCells",s,c),_T.copyPropertyIfExist("qNoOfLeftDims",s,c),_T.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),_T.copyPropertyOrSetDefault("qMode",s,c,"S"),_T.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),_T.copyPropertyOrSetDefault("qSortbyYValue",s,c),_T.copyPropertyOrSetDefault("qIndentMode",s,c),_T.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),_T.importCommonProperties(l,t,n),_T.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),_T.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const PT=e=>wT.getValue(e,"data.targets.0.propertyPath"),TT=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return IT.exportProperties})(PT(e))},MT=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return IT.importProperties})(PT(e))},NT=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:a,viewDataMode:i=!1}=e;const s=a?{qProperty:a}:await n.getFullPropertyTree(),c=r.current.getQae(),u=TT(c);if(!u)throw new Error("Source chart does not support conversion");const d=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),p=d.qae,f=MT(p);if(!f)throw new Error("Target chart does not support conversion");return f({exportFormat:u({propertyTree:s,hypercubePath:_T.getHypercubePath(c),viewDataMode:i}),initialProperties:l({qInfo:{qType:o},visualization:o},wT.getValue(p,"properties.initial",{})),dataDefinition:wT.getValue(p,"data.targets.0.",{}),hypercubePath:_T.getHypercubePath(p),viewDataMode:i})},qT={hypercube:IT};var AT=e=>dL((e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function zT(e){let{d:t}=e;const n=Ry();let r="inherit",o=n.palette.success.main;t.missing?o=n.palette.warning.main:t.error&&(r="error",o=n.palette.error.main);const a={color:o},i=V.createElement(zS,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},V.createElement(wk,null,t.missing||t.error?V.createElement(AT,{style:a}):V.createElement(_L,{style:a})));return V.createElement(fk,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},V.createElement(fk,{item:!0},i),V.createElement(fk,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},V.createElement(zS,{noWrap:!0,component:"p"},V.createElement(zS,{component:"span",variant:"subtitle2",color:r},t.description),V.createElement(zS,{component:"span"}," "),V.createElement(zS,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function DT(e){let{data:t}=e;const n=Ry();return V.createElement(fk,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>V.createElement(zT,{d:e,key:t})));return r.length>0&&V.createElement(fk,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},V.createElement(zS,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function jT(e){let{title:t="Error",message:n="",data:r=[]}=e;return V.createElement(fk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},V.createElement(fk,{item:!0},V.createElement(AT,{style:{fontSize:"38px"}})),V.createElement(fk,{item:!0},V.createElement(zS,{variant:"h6",align:"center","data-tid":"error-title"},t)),V.createElement(fk,{item:!0},V.createElement(zS,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),V.createElement(DT,{data:r}))}const FT=["size"],$T="Progress",BT={root:"".concat($T,"-root"),front:"".concat($T,"-front"),back:"".concat($T,"-back")},WT=rx("div")((e=>{let{theme:t}=e;return{["&.".concat(BT.root)]:{position:"relative",display:"inline-block"},["& .".concat(BT.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(BT.back)]:{color:t.palette.divider}}})),HT={small:16,medium:32,large:64,xlarge:128};function UT(e){let{size:t="medium"}=e,n=s(e,FT);const r=HT[t];return V.createElement(WT,{className:BT.root},V.createElement(OC,a({variant:"determinate",value:100,className:BT.back,size:r,thickness:3},n)),V.createElement(OC,a({variant:"indeterminate",disableShrink:!0,className:BT.front,size:r,thickness:3},n)))}const VT=["cancel","translator"],GT=["retry","translator"],KT={stripes:"".concat("LongRunningQuery","-stripes")},ZT=rx(fk)((()=>({["& .".concat(KT.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})));function XT(e){let{cancel:t,translator:n}=e,r=s(e,VT);return V.createElement(V.Fragment,null,V.createElement(ZT,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},V.createElement(fk,{item:!0},V.createElement(UT,null)),V.createElement(fk,{item:!0},V.createElement(zS,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),V.createElement(fk,a({item:!0},r),V.createElement(eS,{variant:"contained",onClick:t},n.get("Cancel"))))}function QT(e){let{retry:t,translator:n}=e,r=s(e,GT);return V.createElement(V.Fragment,null,V.createElement(fk,{item:!0},V.createElement(AT,{style:{fontSize:"38px"}})),V.createElement(fk,{item:!0},V.createElement(zS,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),V.createElement(fk,{item:!0},V.createElement(eS,a({variant:"contained",onClick:t},r),n.get("Retry"))))}function JT(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=U.useContext(sS);return V.createElement(fk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:KT.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&V.createElement(XT,{cancel:r.cancel,translator:o,className:KT.cancel}),n&&V.createElement(QT,{retry:r.retry,translator:o,className:KT.retry}))}function YT(){return V.createElement(fk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},V.createElement(UT,{size:"large"}))}const eM="Header",tM={containerStyle:"".concat(eM,"-containerStyle"),containerTitleStyle:"".concat(eM,"-containerTitleStyle")},nM=rx(fk)((e=>{let{theme:t}=e;return{["&.".concat(tM.containerStyle)]:{flexGrow:0},["&.".concat(tM.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),rM="njs-cell-title",oM="njs-cell-sub-title";function aM(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:a,titleStyles:i={}}=e;const l=t.showTitles&&!!t.title,s=t.showTitles&&!!t.subtitle,c=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,d]=U.useState([]),[p,f]=cL(),[h,m]=U.useState(!1);U.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{d([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),U.useEffect((()=>{if(!f)return;const{width:e}=f;m(e<221)}),[f]);const g=l||s,v=[tM.containerStyle,...g?[tM.containerTitleStyle]:[]],b=(o||c)&&(h||!g),y=g&&!b&&!h,x=V.createElement(hI,{show:y,selections:{show:c,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:a,layout:t});return V.createElement(nM,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},V.createElement(fk,{item:!0,zeroMinWidth:!0,xs:!0},V.createElement(fk,{container:!0,wrap:"nowrap",direction:"column"},l&&V.createElement(zS,{variant:"h6",noWrap:!0,className:rM,style:i.main},t.title),s&&V.createElement(zS,{variant:"body2",noWrap:!0,className:oM,style:i.subTitle},t.subtitle))),V.createElement(fk,{item:!0},x))}const iM={itemStyle:"".concat("Footer","-itemStyle")},lM=rx(fk)((e=>{let{theme:t}=e;return{["& .".concat(iM.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),sM="njs-cell-footer";function cM(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?V.createElement(lM,{container:!0},V.createElement(fk,{item:!0,className:iM.itemStyle},V.createElement(zS,{noWrap:!0,variant:"body2",className:sM,style:n.footer},t.footnote))):null}class uM{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout((()=>{this.doNext()}),10)}async doNext(){const e=this.next;this.next=null,e?(await e(),this.scheduleNext()):this.stop()}schedule(e){this.next=e,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}const dM="njs-viz";function pM(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:i}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=U.useContext(sS),[h]=U.useState((()=>new uM)),[m,g]=U.useState(!1),[v,b]=U.useState(0),[y,x,S]=cL(),[w,E]=U.useState(null),C=U.useCallback((e=>{e&&E(e)}),[]);return U.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),U.useEffect((()=>{m&&w&&x&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),d.edit||e.push("edit"),i.app&&i.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:i.public.nebbie,context:l({constraints:d,interactions:p,theme:i.public.theme,appLayout:a,keyboardNavigation:f},s.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(a||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===v&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),b(v+1))}))})))}),[x,n,r,w,S,o,a,c,u,d,p,m,f]),V.createElement("div",{ref:y,"data-render-count":v,style:{position:"relative",height:"100%"},className:dM},V.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const fM=(e,t,n,r)=>{const o=U.useMemo((()=>{if(e&&t){const r=e.components?e.components.find((e=>"general"===e.key)):null,o={main:HI(r,"main",t,e.visualization),footer:HI(r,"footer",t,e.visualization),subTitle:HI(r,"subTitle",t,e.visualization)},a=BI(r,t,e.visualization),i=$I(r,n),l=function(e,t,n){const r=zI(null==e?void 0:e.borderColor,"","borderColor",t,n),o=(null==e?void 0:e.borderWidth)||qI("","borderWidth",t,n);return o&&r?"".concat(o," solid ").concat(r):void 0}(r,t,e.visualization),s=function(e,t,n){return(null==e?void 0:e.borderRadius)||qI("","borderRadius",t,n)}(r,t,e.visualization);return{titleStyles:o,bgColor:a,bgImage:i,border:l,borderRadius:s,boxShadow:WI(r,t,e.visualization)}}return{}}),[e,t,n,r]);return o},hM="njs-cell",mM=(e,t)=>{switch(t.type){case"LOADING":return l(l({},e),{},{loading:!0});case"LOADED":return l(l({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return l(l({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return l(l({},e),{},{longRunningQuery:!0});case"ERROR":return l(l({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function gM(e){let{delay:t=750}=e;const[n,r]=U.useState(!1);return U.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?V.createElement(YT,null):null}const vM=e=>!e.qError||7005===e.qError.qErrorCode,bM=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const a=!(!t||!t[e]),i=a&&t[e].qError&&7005===t[e].qError.qErrorCode,l=a&&!i&&t[e].qError,s=i&&t[e].qCalcCondMsg,c="".concat(l?r:i?s||o:a&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!a&&!l&&e>=t.length||i,error:l}})),yM=e=>e&&(Array.isArray(e)?e:[e])||[],xM=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:bM(o,yM(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:bM(a,yM(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},SM=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:a,aggMinD:i,aggMinM:l,hasLayoutErrors:s,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,a=0,i=!1,l=!1;const s=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),f=u.resolveLayout(n),h=yM(f.qDimensionInfo||f.qItems).filter(vM),m=yM(f.qMeasureInfo).filter(vM);if(o+=d,a+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){i=!0,l=7005===f.qError.qErrorCode;const t=l&&f.qCalcCondMsg?f.qCalcCondMsg:l?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");s.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:a,hasLayoutErrors:i,layoutErrors:s}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const i=o[n];if(!s&&a){const n=p||await r.getProperties();p=n;const o=xM(e,t,n,i);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,i]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,l]),v=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],b=s?c:v;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},wM=U.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:i,onMount:s,currentId:c,emitter:u,navigation:d}=e;const{app:p,types:f}=n,{nebbie:h}=n.public,{theme:m,translator:g,language:v,keyboardNavigation:b,disableCellPadding:y=!1}=U.useContext(sS),x=Ry(),[S,w,E]=cL(),[C,k]=U.useReducer(mM,{loading:!1,loaded:!1,longRunningQuery:!1,error:(R=i)?{title:R.message}:null,sn:null,visualization:null});var R;const[L,O]=U.useState(r),[_,{validating:I,canCancel:P,canRetry:T},M]=lL(L),[N]=sL(p),[q,A,z]=cL(),[D,j]=U.useState(o),[F,$]=U.useState(a),B="njs-cell-".concat(c),[W]=kI(p,L,["#".concat(B),".njs-action-toolbar-popover"]),[H,G]=U.useState(!1),K=U.useRef({enter:null,leave:null}),{titleStyles:Z,bgColor:X,bgImage:Q,border:J,borderRadius:Y,boxShadow:ee}=fM(_,n.public.theme,n.app,m),te=U.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});U.useEffect((()=>{wI(te.current)}),[]),te.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&z&&z.focus()},te.current.refocusContent=()=>{C.sn.component&&"function"==typeof C.sn.component.focus&&C.sn.component.focus()};U.useEffect((()=>{if(i)return void s();if(!N||!_)return;if(C.visualization===_.visualization&&C.sn)return void(async e=>{const[t,n]=await SM(g,_,e.generator.qae.data,L);k(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:C.sn,layout:_,model:L})})(C.sn);const e=f.getSupportedVersion(_.visualization,_.version);return(async(e,t)=>{k({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u,onMount:d,navigation:p}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o}),f=e.create({model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u,navigation:p});f&&(t({type:"LOADED",sn:f,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:k,types:f,visualization:e,version:t,model:L,app:p,selections:W,nebbie:h,focusHandler:te.current,emitter:u,onMount:s,navigation:d})})(_.visualization,e),()=>{}}),[f,C.sn,L,W,_,N,v]),U.useEffect((()=>{if(!I)return;const e=setTimeout((()=>k({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[I]),U.useImperativeHandle(t,(()=>({getQae:()=>C.sn.generator.qae,toggleFocus(e){"function"==typeof C.sn.component.focus&&(e?C.sn.component.focus():C.sn.component.blur())},setSnOptions:j,setSnPlugins:$,setModel:O,getImperativeHandle(){var e;return null!==(e=C.sn)&&void 0!==e&&e.component&&"function"==typeof C.sn.component.getImperativeHandle?C.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=w;let n=JSON.parse(JSON.stringify(_));return"function"==typeof C.sn.component.setSnapshotData&&(n=await C.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:g.language(),theme:x.name,appLayout:N,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof n.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return n.config.snapshot.capture(e)}})),[C.sn,A,w,_,x.name,N]);let ne=null;return C.loading&&!C.longRunningQuery?ne=V.createElement(gM,null):C.error?ne=V.createElement(jT,C.error):C.loaded&&(ne=V.createElement(pM,{key:_.visualization,sn:C.sn,halo:n,snOptions:D,snPlugins:F,layout:_,appLayout:N})),V.createElement(RS,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:X||"unset",backgroundImage:Q&&Q.url?"url(".concat(Q.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:Q&&Q.size,backgroundPosition:Q&&Q.pos,border:J,borderRadius:Y,boxShadow:ee,boxSizing:"border-box"},elevation:0,square:!0,className:hM,ref:S,id:B,onMouseEnter:()=>{K.current.leave&&clearTimeout(K.current.leave),K.enter||(K.current.enter=setTimeout((()=>{G(!0),K.current.enter=null}),250))},onMouseLeave:()=>{K.current.enter&&clearTimeout(K.current.enter),K.current.leave||(K.current.leave=setTimeout((()=>{G(!1),K.current.leave=null}),750))}},V.createElement(fk,{container:!0,direction:"column",gap:0,style:l(l({position:"relative",width:"100%",height:"100%"},y?{}:{padding:x.spacing(1)}),C.longRunningQuery?{opacity:"0.3"}:{})},E&&_&&C.sn&&V.createElement(aM,{layout:_,sn:C.sn,anchorEl:E,hovering:H,focusHandler:te.current,titleStyles:Z}," "),V.createElement(fk,{tabIndex:b?0:-1,onKeyDown:b?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:q},ne),E&&_&&C.sn&&V.createElement(cM,{layout:_,titleStyles:Z})),C.longRunningQuery&&V.createElement(JT,{canCancel:P,canRetry:T,api:M}))}));function EM(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function CM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const a=t[o];"object"!=typeof n[o]||"object"!=typeof a||Array.isArray(a)?function(e,t){return EM(e)&&EM(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(a,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...CM("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function kM(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach((e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error('Invalid plugin format: The plugin "'.concat(e.info.name,'" has no "fn" function'))}))}const RM=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},LM=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),OM=He.bind(null,!0),_M={},{isArray:IM}=Array;function PM(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function TM(e){return void 0===e}function MM(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function NM(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const a=isNaN(r)?{}:[];e[r||t]=TM(e[r||t])?a:e[t],e=e[r||t]})),e}function qM(e,t){let n=!0;if(PM(e)&&PM(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{qM(e[r],t[r])||(n=!1)})),n);if(IM(e)&&IM(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!qM(e[n],t[n]))return!1;return!0}return e===t}_M.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?OM({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);qM(a,i)||MM(t,o)||(TM(i)?r.push({op:"add",path:l,value:a}):PM(a)&&PM(i)?r=r.concat(_M.generate(i,a,l)):IM(a)&&IM(i)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let a=-1;function i(e,t,n){if(e[n]&&TM(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(qM(t,o))return r;if(!TM(t[0])&&TM(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)a=i(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===a?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(_M.generate(o[e],t[a],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)a=i(o,t[e].qInfo&&t[e].qInfo.qId),-1===a?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):a!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(a)}),o.splice(e,0,o.splice(a,1)[0]));return r}(i,a,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:a}))})),Object.keys(e).forEach((o=>{TM(t[o])&&!MM(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},_M.apply=function(e,t){t.forEach((t=>{let n=NM(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const a=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(IM(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(IM(o)&&IM(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(PM(o)&&PM(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!MM(i,e)&&delete i[e]})),OM(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=NM(e,t.from);IM(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(IM(n)?n.splice(+r,1):delete n[r]);var i}))},_M.clone=function(e){return OM({},e)},_M.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},_M.updateObject=function(e,t){Object.keys(e).length?_M.apply(e,_M.generate(e,t)):OM(e,t)};const AM=e=>t=>{const n=(r=l(l({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(ee.prototype).forEach((e=>{r[e]=ee.prototype[e]})),ee.init(r),r);var r;return n};let zM,DM;function jM(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function FM(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function $M(e){WM(e.__hooks.list,!0),e.__hooks.obsolete=!0,e.__hooks.list.length=0,e.__hooks.pendingEffects.length=0,e.__hooks.pendingLayoutEffects.length=0,e.__hooks.actions=null,e.__hooks.imperativeHandle=null,e.__hooks.resizer=null,e.__hooks.accessibility=null,e.__actionsDispatch=null,clearTimeout(e.__hooks.micro),cancelAnimationFrame(e.__hooks.macro)}async function BM(e){if(e.__hooks.obsolete)return Promise.resolve();DM=-1,zM=e,zM.__hooks.initiated&&zM.__hooks.list.length;try{zM.fn.call(null)}catch(e){console.error(e)}zM.__hooks.initiated=!0;const t=zM.__hooks;return GM(zM),DM=void 0,zM=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){WM(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){WM(e.pendingEffects),e.macro=null,function(e){if(e.pendingPromises.length||e.micro||e.macro)return;e.chain.promise=null,e.chain.resolve(!e.waitForData)}(e)}(e)}))}(t),t.chain.promise}function WM(e,t){try{e.forEach((e=>{"function"==typeof e.teardown&&e.teardown(),t||(e.teardown=e.value[0]())}))}catch(e){console.error(e)}e.length=0}function HM(e,t){try{return Promise.all(e.__hooks.snaps.map((e=>Promise.resolve(e.fn(t))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function UM(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function VM(e){return e.__hooks.imperativeHandle}function GM(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function KM(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,GM(e))}function ZM(e){if(void 0===zM)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=zM.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function XM(e){ZM(++DM);return zM.context[e]}function QM(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function JM(e){return{__hooked:!0,fn:e,initiate:FM,run:BM,teardown:$M,runSnaps:HM,runMenu:UM,focus:oN,blur:aN,observeActions:KM,getImperativeHandle:VM,updateRectOnNextRun:QM}}function YM(e){const t=ZM(++DM);if(!t.value){t.component=zM;const n=e=>{if(t.component.__hooks.obsolete)return;const n="function"==typeof e?e(t.value[0]):e;var r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout((()=>{r.__hooks.micro=null,BM(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function eN(e,t){const n=ZM(++DM);jM(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===zM.__hooks.pendingEffects.indexOf(n)&&zM.__hooks.pendingEffects.push(n))}function tN(e,t){const n=ZM(++DM);jM(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],zM.__hooks.pendingLayoutEffects.push(n))}function nN(e,t){const n=ZM(++DM);return jM(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function rN(){return XM("element")}function oN(e){const t=e.__hooks.accessibility;t.active||(t.active=!0,t&&t.setter&&t.setter({active:!0,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}function aN(e){const t=e.__hooks.accessibility;t&&t.active&&(t.active=!1,t&&t.setter&&t.setter({active:!1,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}const iN={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},lN=Object.keys(iN),sN=e=>(Object.keys(ee.prototype).forEach((t=>{e[t]=ee.prototype[t]})),ee.init(e),e);function cN(e,t){const n=l({},iN);sN(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==lN.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],a=AM(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=a(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=a(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:a,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function uN(e,t,n){"function"==typeof e.component&&(e.component=JM(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const a={},i=["appLayout","constraints","interactions"],s={},c={};t.model&&t.model.session||(s.select=!0,s.edit=!0,c.select=!1,c.edit=!1);const u={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:c,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(u,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}i.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(l(l({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(l(l({},r[e]),c))),t!==a[e]&&(n=!0,a[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==a.themeName&&(n=!0,a.themeName=this.context.theme.name()),this.context.translator.language()!==a.language&&(n=!0,a.language=u.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return i.forEach((e=>{a[e]=JSON.stringify(u.context[e])})),a.themeName=u.context.theme?u.context.theme.name():void 0,a.language=u.context.translator?u.context.translator.language():void 0,Object.assign(u,{selections:t.selections}),[u,null]}(e,t,n):cN(e,t),a=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];try{e.qae.properties.onChange.call({model:t.model},...r)}catch(e){}return t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const a=_M.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));_M.apply(o,i);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const l=_M.generate(a,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,l,r)}))},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},a.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){a.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const dN=()=>{};function pN(e,t){return void 0===e?()=>t:()=>e}function fN(e){const t=e||{};return{min:"function"==typeof t.min?t.min:pN(t.min,0),max:"function"==typeof t.max?t.max:pN(t.max,1e3),added:t.added||t.add||dN,description:t.description||dN,moved:t.moved||t.move||dN,removed:t.removed||t.remove||dN,replaced:t.replaced||t.replace||dN,isDefined:()=>!!e}}const hN=(e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o};function mN(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>hN(e,n,{}),dimensions:fN(e.dimensions),measures:fN(e.measures)}}function gN(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);return{properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(mN)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function vN(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:gN(n.qae),component:n.component||{},create:e=>uN(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const bN=(e,t,n)=>{if(!e)return Promise.resolve();let r=_M.generate(t,n);return He(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},yN=()=>{};function xN(){let e,{model:t,halo:n,navigation:r,initialError:o,onDestroy:a=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=yN,s=null,c=null,u=null,d=null;const p=new Promise((e=>{u=e})),f=new Promise((e=>{d=e})),h=e=>()=>{e&&e(),d()};let m={},g=[];const v=new ee,b={id:t.id,model:t,async destroy(){await a(),i(),i=yN},async convertTo(e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const o=await t.getLayout();if(RM(o)&&!r){const r=await NT({halo:n,model:t,cellRef:s,newType:e});return await LM(t,r.qProperty),r}const a=await t.getEffectiveProperties(),i=await NT({halo:n,model:t,cellRef:s,newType:e,properties:a}),l=i.qProperty;return await bN(t,a,l),i}return await NT({halo:n,model:t,cellRef:s,newType:e})},async toggleDataView(r){let o;if(e||!1===r)e&&!0!==r&&(o=t,await n.app.destroySessionObject(e),e=void 0);else{let r=n.config.context.dataViewType;const a=await t.getEffectiveProperties();if(!n.types.getSupportedVersion(r)){if(!n.types.getSupportedVersion("table"))throw new Error("No data view type registered");r="table"}const i=await NT({halo:n,model:t,cellRef:s,newType:r,properties:a,viewDataMode:!0});o=await n.app.createSessionObject(i.qProperty),e=o.id}o&&s.current.setModel(o)},addListener(e,t){v.addListener(e,t)},removeListener(e,t){v.removeListener(e,t)},getImperativeHandle:async()=>(await f,s.current.getImperativeHandle()),takeSnapshot:async()=>(await f,s.current.takeSnapshot()),__DO_NOT_USE__:{mount(e){if(c)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return c=e,[i,s]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,emitter:l,initialError:s,navigation:c}=e;const{root:u}=t,d=V.createRef(),p=SP(),f=Ip.createPortal(V.createElement(wM,{ref:d,halo:t,model:r,currentId:p,initialSnOptions:o,initialSnPlugins:a,initialError:s,onMount:i,emitter:l,navigation:c}),n,p),h=()=>{u.remove(f),r.removeListener("closed",h)};return r.on("closed",h),u.add(f),u.addCell(p,d),[h,d]}({halo:n,element:e,model:t,initialSnOptions:m,initialSnPlugins:g,initialError:o,onMount:u,emitter:v,navigation:r}),p},async applyProperties(e){const n=CM("/",e,await t.getEffectiveProperties());if(n.length)return t.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;c?(async()=>{await p,s.current.setSnOptions(l(l(l({},m),e),{onInitialRender:h(t)}))})():m=l(l(l({},m),e),{onInitialRender:h(t)})})(e)},plugins(e){(async e=>{kM(e),c?(async()=>{await p,s.current.setSnPlugins(e)})():g=e})(e)},exportImage:()=>s.current.exportImage(),takeSnapshot:()=>s.current.takeSnapshot(),getModel:()=>t,convert:{async toType(e){const r=await t.getEffectiveProperties(),o=await NT({halo:n,model:t,cellRef:s,newType:e,properties:r}),a=o.qProperty;return await bN(t,r,a),o},async revert(){await t.clearSoftPatches()}}}};return b}async function SN(e,t,n,r,o){const a=xN({model:e,halo:n,navigation:r,initialError:o,onDestroy:arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{}});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}async function wN(e,t,n,r){let{type:o,version:a,fields:i,properties:l,extendProperties:s}=e,c={};const u=[],{modelStore:d}=r;try{const e=t.types.get({name:o,version:a});c=await e.initialProperties(l,s);const n=await e.supernova();i&&await ST({sn:n,properties:c,fields:i,children:u},t),l&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},c)}catch(e){c=n?null:{qInfo:{qType:o},visualization:o}}if(!n){const e=await t.app.createObject(c);return u.length>0&&await e.setFullPropertyTree({qProperty:c,qChildren:u}),d.set(e.id,e),e}return c}const EN="njs-sheet";function CN(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}const kN=U.forwardRef(((e,t)=>{var n;let{model:r,halo:o,initialSnOptions:a,initialSnPlugins:i,initialError:l,onMount:s,unmount:c,navigation:u}=e;const{root:d}=o,[p,f]=U.useState(r),[h]=lL(p),{theme:m,modelStore:g}=U.useContext(sS),[v,b]=U.useState([]),[y,x]=U.useState(void 0),[S,w]=U.useState(void 0),[E,C]=U.useState("");null==u||null===(n=u.setCurrentSheetId)||void 0===n||n.call(u,p.id),U.useEffect((()=>{if(h){const e=JSON.stringify(h.cells);if(e===E)return;C(e);const t=async()=>{v.forEach((e=>{d.removeCell(e.currentId)}));const e=h.cells,{columns:t,rows:n}=h,r=await Promise.all(e.map((async e=>{let r;const a=new Promise((e=>{r=e})),i=v.find((t=>t.id===e.name));if(i)return i.bounds=CN(e,t,n),delete i.mountedPromise,i;const l=await async function(e,t,n){let{id:r,options:o,plugins:a,element:i}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),SN(d,{options:o,plugins:a,element:i},t)}({id:e.name},o,g);return{model:l.model,id:e.name,bounds:CN(e,t,n),cellRef:V.createRef(),currentId:SP(),mounted:r,mountedPromise:a}})));r.forEach((e=>d.addCell(e.currentId,e.cellRef))),b(r)};t()}}),[h]),U.useEffect((()=>{const e=()=>{p.removeListener("closed",e),c()};return p.on("closed",e),()=>p.removeListener("closed",e)}),[p]);const k=U.useMemo((()=>v?v.map((e=>function(e,t,n,r,o,a,i){const{x:l,y:s,width:c,height:u}=e.bounds;return V.createElement("div",{style:{left:"".concat(l,"%"),top:"".concat(s,"%"),width:"".concat(c,"%"),height:"".concat(u,"%"),position:"absolute"},key:e.model.id},V.createElement(wM,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:a,navigation:i}))}(e,o,a,i,l,e.mounted,u))):[]),[v]);U.useEffect((()=>{const e=null!=h&&h.components?h.components.find((e=>"general"===e.key)):null;x(BI(e,o.public.theme)),w($I(e,o.app))}),[h,o.public.theme,o.app,m]),U.useImperativeHandle(t,(()=>({setModel:f})),[]);const R=!h||Number.isNaN(h.height)?"100%":"".concat(Number(h.height),"%"),L=v.map((e=>e.mountedPromise)),O=L.filter((e=>!!e));return O.length&&Promise.all(L).then((()=>{s()})),V.createElement("div",{className:EN,style:{width:"100%",height:R,position:"relative",backgroundColor:y,backgroundImage:S&&S.url?"url(".concat(S.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:S&&S.size,backgroundPosition:S&&S.pos}},k)}));const RN=()=>{};function LN(){let{model:e,halo:t,navigation:n,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=RN,i=null,s=null,c=null;const u=new Promise((e=>{c=e}));let d={},p=[];const f={id:e.id,model:e,navigation:n,async destroy(){await o(),a(),a=RN},__DO_NOT_USE__:{mount(o){if(s)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return s=o,[a,i]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l,navigation:s}=e;const{root:c}=t,u=V.createRef();let d;const p=()=>{c.remove(d)};return d=Ip.createPortal(V.createElement(kN,{ref:u,halo:t,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i,unmount:p,navigation:s}),n,r.id),s.setSheetRef(u),c.add(d),[p,u]}({halo:t,element:o,model:e,initialSnOptions:d,initialSnPlugins:p,initialError:r,onMount:c,navigation:n}),u},async applyProperties(t){const n=CM("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{s?(async()=>{await u,i.current.setSnOptions(l(l({},d),e))})():d=l(l({},d),e)})(e)},plugins(e){(async e=>{kM(e),s?(async()=>{await u,i.current.setSnPlugins(e)})():p=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return f}async function ON(e,t,n){let{id:r,options:o,plugins:a,element:i,navigation:l}=e;const{modelStore:s,rpcRequestModelStore:c}=n,u="".concat(r);let d=c.get(u);d||(d=t.app.getObject(r),c.set(u,d));const p=await d;s.set(u,p);const f=l||("sheet"===p.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var a;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(a=o.anything)||void 0===a||null===(a=a.sense)||void 0===a?void 0:a.navigation;const i={model:n},l={goToSheet:async n=>{var r,o;if(!i.sheetRef)return;const{modelStore:a,rpcRequestModelStore:s}=t,c="".concat(n);let u,d=s.get(c);d||(d=e.app.getObject(n),s.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}a.set(c,u),null===(r=i.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),i.model=u,l.emit("sheetChanged")},setSheetRef:e=>{i.sheetRef=e},getCurrentSheetId:()=>!!i.model&&i.model.id};return wI(l),l}(t,n,p):void 0);return"sheet"===p.genericType?async function(e,t,n,r,o){const a=LN({model:e,halo:n,navigation:r,initialError:o,onDestroy:arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{}});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}(p,{options:o,plugins:a,element:i},t,f):SN(p,{options:o,plugins:a,element:i},t,f)}function _N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var IN=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}};const PN=Object.freeze({loose:!0}),TN=Object.freeze({});var MN=e=>e?"object"!=typeof e?PN:e:TN,NN={exports:{}};var qN={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const AN="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};var zN=AN;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=qN,a=zN,i=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[d,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=u++;a(e,o,t),c[e]=o,s[o]=t,i[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(d,"*")),f("MAINVERSION","(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")")),f("MAINVERSIONLOOSE","(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")")),f("PRERELEASEIDENTIFIER","(?:".concat(s[c.NUMERICIDENTIFIER],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[c.NUMERICIDENTIFIERLOOSE],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASE","(?:-(".concat(s[c.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIER],")*))")),f("PRERELEASELOOSE","(?:-?(".concat(s[c.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIERLOOSE],")*))")),f("BUILDIDENTIFIER","".concat(d,"+")),f("BUILD","(?:\\+(".concat(s[c.BUILDIDENTIFIER],"(?:\\.").concat(s[c.BUILDIDENTIFIER],")*))")),f("FULLPLAIN","v?".concat(s[c.MAINVERSION]).concat(s[c.PRERELEASE],"?").concat(s[c.BUILD],"?")),f("FULL","^".concat(s[c.FULLPLAIN],"$")),f("LOOSEPLAIN","[v=\\s]*".concat(s[c.MAINVERSIONLOOSE]).concat(s[c.PRERELEASELOOSE],"?").concat(s[c.BUILD],"?")),f("LOOSE","^".concat(s[c.LOOSEPLAIN],"$")),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE","".concat(s[c.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),f("XRANGEIDENTIFIER","".concat(s[c.NUMERICIDENTIFIER],"|x|X|\\*")),f("XRANGEPLAIN","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:".concat(s[c.PRERELEASE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[c.PRERELEASELOOSE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAIN],"$")),f("XRANGELOOSE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAINLOOSE],"$")),f("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),f("COERCE","".concat(s[c.COERCEPLAIN],"(?:$|[^\\d])")),f("COERCEFULL",s[c.COERCEPLAIN]+"(?:".concat(s[c.PRERELEASE],")?")+"(?:".concat(s[c.BUILD],")?")+"(?:$|[^\\d])"),f("COERCERTL",s[c.COERCE],!0),f("COERCERTLFULL",s[c.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM","(\\s*)".concat(s[c.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",f("TILDE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAIN],"$")),f("TILDELOOSE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("LONECARET","(?:\\^)"),f("CARETTRIM","(\\s*)".concat(s[c.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",f("CARET","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAIN],"$")),f("CARETLOOSE","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("COMPARATORLOOSE","^".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],")$|^$")),f("COMPARATOR","^".concat(s[c.GTLT],"\\s*(").concat(s[c.FULLPLAIN],")$|^$")),f("COMPARATORTRIM","(\\s*)".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],"|").concat(s[c.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE","^\\s*(".concat(s[c.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAIN],")")+"\\s*$"),f("HYPHENRANGELOOSE","^\\s*(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s*$"),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(NN,NN.exports);var DN=NN.exports;const jN=/^[0-9]+$/,FN=(e,t)=>{const n=jN.test(e),r=jN.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var $N={compareIdentifiers:FN,rcompareIdentifiers:(e,t)=>FN(t,e)};const BN=zN,{MAX_LENGTH:WN,MAX_SAFE_INTEGER:HN}=qN,{safeRe:UN,t:VN}=DN,GN=MN,{compareIdentifiers:KN}=$N;var ZN=class e{constructor(t,n){if(n=GN(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof t,'".'));if(t.length>WN)throw new TypeError("version is longer than ".concat(WN," characters"));BN("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?UN[VN.LOOSE]:UN[VN.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>HN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>HN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>HN||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<HN)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(BN("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),KN(this.major,t.major)||KN(this.minor,t.minor)||KN(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(BN("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return KN(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(BN("build compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return KN(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===KN(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}};const XN=ZN;var QN=(e,t,n)=>new XN(e,n).compare(new XN(t,n));const JN=QN;var YN=(e,t,n)=>0===JN(e,t,n);const eq=QN;var tq=(e,t,n)=>0!==eq(e,t,n);const nq=QN;var rq=(e,t,n)=>nq(e,t,n)>0;const oq=QN;var aq=(e,t,n)=>oq(e,t,n)>=0;const iq=QN;var lq=(e,t,n)=>iq(e,t,n)<0;const sq=QN;var cq=(e,t,n)=>sq(e,t,n)<=0;const uq=YN,dq=tq,pq=rq,fq=aq,hq=lq,mq=cq;var gq,vq,bq,yq,xq=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return uq(e,n,r);case"!=":return dq(e,n,r);case">":return pq(e,n,r);case">=":return fq(e,n,r);case"<":return hq(e,n,r);case"<=":return mq(e,n,r);default:throw new TypeError("Invalid operator: ".concat(t))}};function Sq(){if(yq)return bq;yq=1;const e=/\s+/g;class t{constructor(n,a){if(a=r(a),n instanceof t)return n.loose===!!a.loose&&n.includePrerelease===!!a.includePrerelease?n:new t(n.raw,a);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&f))+":"+e,r=n.get(t);if(r)return r;const i=this.options.loose,m=i?l[s.HYPHENRANGELOOSE]:l[s.HYPHENRANGE];e=e.replace(m,L(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(l[s.COMPARATORTRIM],c),a("comparator trim",e),e=e.replace(l[s.TILDETRIM],u),a("tilde trim",e),e=e.replace(l[s.CARETTRIM],d),a("caret trim",e);let g=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));i&&(g=g.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(l[s.COMPARATORLOOSE]))))),a("range list",g);const b=new Map,y=g.map((e=>new o(e,this.options)));for(const e of y){if(h(e))return[e];b.set(e.value,e)}b.size>1&&b.has("")&&b.delete("");const x=[...b.values()];return n.set(t,x),x}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}bq=t;const n=new IN,r=MN,o=function(){if(vq)return gq;vq=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),i("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],a=t.match(n);if(!a)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==a[1]?a[1]:"","="===this.operator&&(this.operator=""),a[2]?this.semver=new l(a[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(i("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new l(t,this.options)}catch(e){return!1}return a(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(e.value,r).test(this.value):""===e.operator?""===e.value||new s(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(a(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(a(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}gq=t;const n=MN,{safeRe:r,t:o}=DN,a=xq,i=zN,l=ZN,s=Sq();return gq}(),a=zN,i=ZN,{safeRe:l,t:s,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=DN,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:f}=qN,h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},v=(e,t)=>(a("comp",e,t),e=S(e,t),a("caret",e),e=y(e,t),a("tildes",e),e=E(e,t),a("xrange",e),e=k(e,t),a("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?l[s.TILDELOOSE]:l[s.TILDE];return e.replace(n,((t,n,r,o,i)=>{let l;return a("tilde",e,t,n,r,o,i),b(n)?l="":b(r)?l=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):b(o)?l=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):i?(a("replaceTilde pr",i),l=">=".concat(n,".").concat(r,".").concat(o,"-").concat(i," <").concat(n,".").concat(+r+1,".0-0")):l=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),a("tilde return",l),l}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{a("caret",e,t);const n=t.loose?l[s.CARETLOOSE]:l[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,i,l)=>{let s;return a("caret",e,t,n,o,i,l),b(n)?s="":b(o)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):b(i)?s="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):l?(a("replaceCaret pr",l),s="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(n,".").concat(o,".").concat(+i+1,"-0"):">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(+n+1,".0.0-0")):(a("no pr"),s="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(i).concat(r," <").concat(n,".").concat(o,".").concat(+i+1,"-0"):">=".concat(n,".").concat(o,".").concat(i).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(i," <").concat(+n+1,".0.0-0")),a("caret return",s),s}))},E=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?l[s.XRANGELOOSE]:l[s.XRANGE];return e.replace(n,((n,r,o,i,l,s)=>{a("xRange",e,n,r,o,i,l,s);const c=b(o),u=c||b(i),d=u||b(l),p=d;return"="===r&&p&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(i=0),l=0,">"===r?(r=">=",u?(o=+o+1,i=0,l=0):(i=+i+1,l=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),"<"===r&&(s="-0"),n="".concat(r+o,".").concat(i,".").concat(l).concat(s)):u?n=">=".concat(o,".0.0").concat(s," <").concat(+o+1,".0.0-0"):d&&(n=">=".concat(o,".").concat(i,".0").concat(s," <").concat(o,".").concat(+i+1,".0-0")),a("xRange return",n),n}))},k=(e,t)=>(a("replaceStars",e,t),e.trim().replace(l[s.STAR],"")),R=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),L=e=>(t,n,r,o,a,i,l,s,c,u,d,p)=>(n=b(r)?"":b(o)?">=".concat(r,".0.0").concat(e?"-0":""):b(a)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):i?">=".concat(n):">=".concat(n).concat(e?"-0":""),s=b(c)?"":b(u)?"<".concat(+c+1,".0.0-0"):b(d)?"<".concat(c,".").concat(+u+1,".0-0"):p?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(p):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(s),"".concat(n," ").concat(s).trim()),O=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(a(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return bq}const wq=Sq();var Eq=(e,t,n)=>{try{t=new wq(t,n)}catch(e){return!1}return t.test(e)},Cq=n(Eq);const kq={};function Rq(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=o,i={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||Cq(e,a.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!kq[a]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const i=(r||o.load)({name:e,version:t}),l=Promise.resolve(i);kq[a]=l.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))}))}return kq[a]}(i.name,i.version,t,o.load).then((e=>(n=n||vN(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=l({qInfo:{qType:i.name},visualization:i.name,version:i.version,showTitles:!0},JSON.parse(r));return t?(He(!0,n,e),n):l(l({},n),e)}))}};return i}function Lq(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,a)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=Rq({name:e,version:o},t,a),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function Oq(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=Lq(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>{if(r[e])return r[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(kq).forEach((t=>{t.split("__")[0]===e&&(kq[t]=void 0)}))}(e)}}}const _q={get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json()))},Iq={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,IM_1869_HIDE_DIM_MEA_LINE:!0,IM_1579_HIDE_DIM_MEA:!0,CLIENT_IM_3365:!0},snapshot:_q};Iq.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const Pq=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(l({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},Tq=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter(((e,t,n)=>n.indexOf(e)===t))};var Mq=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=X(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let a=l(l({},t.context),{},{translator:n.translator});const[i,s]=fS({app:e,context:a}),c=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=bt();return{setTheme:async o=>{let a=e.filter((e=>e.id===o))[0],i="dark"===o?"dark":"light";if(!a&&t&&(a={load:t}),a&&a.load)try{const e=await Promise.race([a.load(o),yt(xt,{__timedOut:!0})]);e.__timedOut||(i="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(i))}catch(e){}else r.internalAPI.setTheme({type:i},o),n.setMuiThemeName(i)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:i});a.themeApi=c.externalAPI;const u={galaxy:{translator:n.translator,flags:_N(t.flags),deviceType:St(t.context.deviceType),anything:t.anything},theme:c.externalAPI,translator:n.translator,nebbie:null},d={app:e,root:i,config:t,public:u,context:a,types:null},p=Oq({halo:d});t.types.forEach((e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let f=c.setTheme(t.context.theme),h=null,m=null;const g={render:async e=>(await f,e.id?ON(e,d,s):async function(e,t,n){let{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c,extendProperties:u,navigation:d}=e,p={};const f=[],{modelStore:h,subscribe:m}=n;let g;try{const e=t.types.get({name:r,version:o});p=await e.initialProperties(i,u);const n=await e.supernova();a&&await ST({sn:n,properties:p,fields:a,children:f},t),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},p)}catch(e){g=e,p={qInfo:{qType:r},visualization:r}}const v=await t.app.createSessionObject(p);f.length>0&&await v.setFullPropertyTree({qProperty:p,qChildren:f}),h.set(v.id,v);const b=m(v);return SN(v,{options:l,plugins:s,element:c},t,d,g,(async()=>{await t.app.destroySessionObject(v.id),b()}))}(e,d,s)),create:async e=>wN(e,d,!1,s),generateProperties:async e=>wN(e,d,!0,s),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=l(l(l({},a),t),{},{translator:n.translator}),t.theme&&(f=c.setTheme(t.theme),await f),t.language&&d.public.translator.language(t.language),i.context(a))},selections:async()=>(h||(h={mount(t){m||(m=function(e){let{element:t,app:n}=e;return Ip.createPortal(V.createElement(wP,{app:n}),t,SP())}({element:t,app:e}),i.add(m))},unmount(){m&&(i.remove(m),m=null)}}),h),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(a){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));const c=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise((r=>{this._instance=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={},renderedCallback:l,flags:s}=e;return Ip.createPortal(V.createElement(lT,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,options:i,renderedCallback:l,flags:s}),t,SP())}({element:a,app:e,fieldIdentifier:t,qId:n,options:iT(l({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r,flags:d.public.galaxy.flags}),i.add(this._instance)}))},unmount(){this._instance&&(i.remove(this._instance),this._instance=null)}};return wI(o),o},getRegisteredTypes:p.getList,__DO_NOT_USE__:{types:p,popover(t,n,r){g._popoverInstance&&(i.remove(g._popoverInstance),g._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=l({},sT);return He(!0,t,e),t}(l({onPopoverClose:()=>g.emit("fieldPopoverClose")},r));g._popoverInstance=V.createElement(cT,{element:t,key:SP(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$",flags:d.public.galaxy.flags}),i.add(g._popoverInstance)}}};return d.public.nebbie=g,d.types=p,wI(g),g}return r.createConfiguration=n=>e(((e,t)=>({context:Pq(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:l({},t.snapshot||e.snapshot),types:Tq(e.types,t.types),themes:Tq(e.themes,t.themes),flags:Pq(e.flags,t.flags),anything:Pq(e.anything,t.anything)}))(t,n)),r.config=t,r}(Iq);function Nq(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const qq=globalThis.crypto||{getRandomValues:()=>123456};function Aq(e){return t=>{const n=He({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^qq.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=He({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const zq=function(e){let{args:t=[],defaultValue:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof e?e(...t):void 0!==e?e:n},Dq=function(e){let{defaultValue:t,async:n=!0,delay:r=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];const l=zq(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},jq=["id","session"],Fq=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function $q(e){return!Fq.includes(e)}function Bq(e){const t=zq(e.getLayout);return t.qInfo&&t.qInfo.qId}function Wq(e,t){return e.reduce(((e,n)=>l(l({},e),function(e,t){let n=Bq(e);const{delay:r}=t,{id:o,session:a}=e,i=s(e,jq);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:l(l({id:n,session:zq(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(i).reduce(((e,t)=>{let[n,o]=t;return l(l({},e),{},{[n]:Dq(o,{async:$q(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function Hq(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Bq(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function Uq(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(Hq);const n=Wq(e,t);return async e=>Promise.resolve(n[e])}function Vq(){return()=>Promise.resolve({id:"app-layout"})}const Gq={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Nq,r=new Aq(n),o=new Uq(e,t),a=new Vq,i={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:a};return Promise.resolve(i)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},Kq={generator:vN,hook:JM,theme:bt,locale:K};e.EnigmaMocker=Gq,e.__DO_NOT_USE__=Kq,e.conversion=qT,e.embed=Mq,e.onContextMenu=function(e){const t=ZM(++DM);t.value||(t.value=1,zM.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=ZM(++DM);t.value||(t.value=1,zM.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=YM({action(){n._config.action.call(null)}});return n.component||(n.component=zM,zM.__hooks.actions.list.push(n)),nN((()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0}),t),n.action},e.useApp=function(){const e=XM("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return XM("appLayout")},e.useConstraints=function(){return XM("constraints")},e.useDeviceType=function(){return XM("deviceType")},e.useEffect=eN,e.useElement=rN,e.useEmbed=function(){return XM("nebbie")},e.useEmitter=function(){return XM("emitter")},e.useGlobal=function(){const e=XM("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=ZM(++DM);if(n.imperative||(n.imperative=!0),jM(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],zM.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return XM("interactions")},e.useKeyboard=function(){const e=XM("keyboardNavigation"),t=XM("focusHandler");if(!zM.__hooks.accessibility.exitFunction){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=this.__hooks.accessibility;n.enabled&&n.active&&(aN(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(zM);zM.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),oN(this))}.bind(zM);zM.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(zM);zM.__hooks.accessibility.focusSelectionFunction=r}const n=zM.__hooks.accessibility.focusFunction,r=zM.__hooks.accessibility.exitFunction,o=zM.__hooks.accessibility.focusSelectionFunction,[a,i]=YM({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return zM.__hooks.accessibility.setter=i,zM.__hooks.accessibility.enabled=e,eN((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return XM("layout")},e.useMemo=nN,e.useModel=function(){const e=XM("model");return e&&e.session?e:void 0},e.useNavigation=function(){return XM("navigation")},e.useOptions=function(){return XM("options")},e.usePlugins=function(){return XM("plugins")},e.usePromise=function(e,t){const[n,r]=YM((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=ZM(++DM);return o.component||(o.component=zM),tN((()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then((e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]},e.useRect=function(){const e=rN(),t=zM.__hooks.resizer,[n,r]=YM((()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}}));return t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r),t.update&&t.resize&&(t.update=!1,t.resize()),tN((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:a}=e.getBoundingClientRect(),i=t.current;i.width===o&&i.height===a&&i.left===n&&i.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:a})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n},e.useRenderState=function(){ZM(++DM);const e=zM.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return XM("selections")},e.useStaleLayout=function(){const e=XM("layout"),[t]=YM({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=YM,e.useTheme=function(){return XM("theme")},e.useTranslator=function(){return XM("translator")}}));
|
|
134
134
|
//# sourceMappingURL=stardust.js.map
|