@nebula.js/stardust 4.1.0 → 4.2.1
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 +869 -757
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +4 -4
- package/core/esm/index.js.map +1 -1
- package/core/package.json +1 -1
- package/dist/stardust.dev.js +2873 -4295
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +14 -14
- package/dist/stardust.js.map +1 -1
- package/package.json +12 -12
- package/types/index.d.ts +10 -10
package/dist/stardust.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v4.1
|
|
2
|
+
* @nebula.js/stardust v4.2.1
|
|
3
3
|
* Copyright (c) 2023 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?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(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function o(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=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},l.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.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 i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new T(r||[]);return o(a,"_invoke",{value:L(e,n,l)}),a}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,a,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(_([])));w&&w!==n&&r.call(w,a)&&(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,i,a,l){var s=d(e[o],e,i);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,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function L(e,t,n){var r=p;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=R(a,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var s=d(e,t,n);if("normal"===s.type){if(r=n.done?m:f,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=m,n.method="throw",n.arg=s.arg)}}}function R(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,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function _(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=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 i.next=i}}return{next:P}}function P(){return{value:t,done:!0}}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,i){void 0===i&&(i=Promise);var a=new k(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(E),c(E,s,"Generator"),c(E,a,(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.prototype={constructor:T,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(I),!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 i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.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 i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},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),I(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;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:_(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 L(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||E}function R(){}function O(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||E}L.prototype.isReactComponent={},L.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")},L.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},R.prototype=L.prototype;var I=O.prototype=new R;I.constructor=O,C(I,L.prototype),I.isPureReactComponent=!0;var T=Array.isArray,_=Object.prototype.hasOwnProperty,P={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)_.call(t,r)&&!N.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:i,ref:a,props:o,_owner:P.current}}function q(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var z=/\/+/g;function D(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 A(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case d:case p:a=!0}}if(a)return o=o(a=e),e=""===r?"."+D(a,0):r,T(o)?(n="",null!=e&&(n=e.replace(z,"$&/")+"/"),A(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||a&&a.key===o.key?"":(""+o.key).replace(z,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",T(e))for(var l=0;l<e.length;l++){var s=r+D(i=e[l],l);a+=A(i,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;!(i=e.next()).done;)a+=A(i=i.value,t,n,s=r+D(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function j(e,t,n){if(null==e)return e;var r=[],o=0;return A(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};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=L,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.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,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=P.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)_.call(t,s)&&!N.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:i,props:r,_owner:a}},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=M,u.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof: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=function(){throw Error("act(...) is not supported in production builds of React.")},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.2.0",c.exports=u;var H=c.exports,U=n(H),V=t({__proto__:null,default:U},[H]);const G=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 i;return i=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))}(i,o):i}};return o}({initial:e,fallback:t});return{translator:n}};var K={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_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_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_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_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 Z(e){const t=G({initial:e});return Object.keys(K).forEach((e=>{t.translator.add(K[e])})),{translator:t.translator}}var X={};function Q(){Q.init.call(this)}X.isObject=function(e){return"object"==typeof e&&null!==e},X.isNumber=function(e){return"number"==typeof e},X.isUndefined=function(e){return void 0===e},X.isFunction=function(e){return"function"==typeof e};var J=Q;Q.EventEmitter=Q,Q.prototype._events=void 0,Q.prototype._maxListeners=void 0,Q.defaultMaxListeners=10,Q.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Q.prototype.setMaxListeners=function(e){if(!X.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Q.prototype.emit=function(e){var t,n,r,o,i,a;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],X.isUndefined(n))return!1;if(X.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),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(X.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},Q.prototype.addListener=function(e,t){var n;if(!X.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,X.isFunction(t.listener)?t.listener:t),this._events[e]?X.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,X.isObject(this._events[e])&&!this._events[e].warned)&&((n=X.isUndefined(this._maxListeners)?Q.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,X.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),X.isFunction(console.trace)&&console.trace()));return this},Q.prototype.on=Q.prototype.addListener,Q.prototype.once=function(e,t){if(!X.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},Q.prototype.removeListener=function(e,t){var n,r,o,i;if(!X.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||X.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(X.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;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},Q.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],X.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},Q.prototype.listeners=function(e){return this._events&&this._events[e]?X.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Q.listenerCount=function(e,t){return e._events&&e._events[t]?X.isFunction(e._events[t])?1:e._events[t].length:0};var Y=n(J);function ee(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function te(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ne(){}var re=.7,oe=1/re,ie="\\s*([+-]?\\d+)\\s*",ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",se=/^#([0-9a-f]{3,8})$/,ce=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),ue=new RegExp(`^rgb\\(${le},${le},${le}\\)$`),de=new RegExp(`^rgba\\(${ie},${ie},${ie},${ae}\\)$`),pe=new RegExp(`^rgba\\(${le},${le},${le},${ae}\\)$`),fe=new RegExp(`^hsl\\(${ae},${le},${le}\\)$`),he=new RegExp(`^hsla\\(${ae},${le},${le},${ae}\\)$`),me={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 ge(){return this.rgb().formatHex()}function ve(){return this.rgb().formatRgb()}function be(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=se.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ye(t):3===n?new we(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?xe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?xe(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ce.exec(e))?new we(t[1],t[2],t[3],1):(t=ue.exec(e))?new we(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=de.exec(e))?xe(t[1],t[2],t[3],t[4]):(t=pe.exec(e))?xe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fe.exec(e))?Oe(t[1],t[2]/100,t[3]/100,1):(t=he.exec(e))?Oe(t[1],t[2]/100,t[3]/100,t[4]):me.hasOwnProperty(e)?ye(me[e]):"transparent"===e?new we(NaN,NaN,NaN,0):null}function ye(e){return new we(e>>16&255,e>>8&255,255&e,1)}function xe(e,t,n,r){return r<=0&&(e=t=n=NaN),new we(e,t,n,r)}function Se(e,t,n,r){return 1===arguments.length?((o=e)instanceof ne||(o=be(o)),o?new we((o=o.rgb()).r,o.g,o.b,o.opacity):new we):new we(e,t,n,null==r?1:r);var o}function we(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ee(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}`}function Ce(){const e=ke(this.opacity);return`${1===e?"rgb(":"rgba("}${Le(this.r)}, ${Le(this.g)}, ${Le(this.b)}${1===e?")":`, ${e})`}`}function ke(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 Re(e){return((e=Le(e))<16?"0":"")+e.toString(16)}function Oe(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 ne||(e=be(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),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Te(a,l,s,e.opacity)}function Te(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function _e(e){return(e=(e||0)%360)<0?e+360:e}function Pe(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)}ee(ne,be,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ge,formatHex:ge,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ie(this).formatHsl()},formatRgb:ve,toString:ve}),ee(we,Se,te(ne,{brighter(e){return e=null==e?oe:Math.pow(oe,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?re:Math.pow(re,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new we(Le(this.r),Le(this.g),Le(this.b),ke(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:Ee,formatHex:Ee,formatHex8:function(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}${Re(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ce,toString:Ce})),ee(Te,(function(e,t,n,r){return 1===arguments.length?Ie(e):new Te(e,t,n,null==r?1:r)}),te(ne,{brighter(e){return e=null==e?oe:Math.pow(oe,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?re:Math.pow(re,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 we(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(_e(this.h),Pe(this.s),Pe(this.l),ke(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=ke(this.opacity);return`${1===e?"hsl(":"hsla("}${_e(this.h)}, ${100*Pe(this.s)}%, ${100*Pe(this.l)}%${1===e?")":`, ${e})`}`}}));var Me=Object.prototype.hasOwnProperty,qe=Object.prototype.toString,ze=Object.defineProperty,De=Object.getOwnPropertyDescriptor,Ae=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===qe.call(e)},je=function(e){if(!e||"[object Object]"!==qe.call(e))return!1;var t,n=Me.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Me.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Me.call(e,t)},Fe=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},$e=function(e,t){if("__proto__"===t){if(!Me.call(e,t))return;if(De)return De(e,t).value}return e[t]},Be=function e(){var t,n,r,o,i,a,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=$e(l,n),l!==(o=$e(t,n))&&(u&&o&&(je(o)||(i=Ae(o)))?(i?(i=!1,a=r&&Ae(r)?r:[]):a=r&&je(r)?r:{},Fe(l,{name:n,newValue:e(u,a,o)})):void 0!==o&&Fe(l,{name:n,newValue:o}));return l},We=n(Be),He={fontSize:"13px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},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"]}]}},Ue={_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"},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:"dark",color:"@B98"},Ge={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Ke{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=be(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([be(e),be(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 i=this.colorParts[t][o],a=i[0],l=i[1];if(e===this.min)return l;if(e===this.max)return a;const s=function(e,t,n){return Se(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))}(a,l,r-o);return s}}function Ze(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Xe(e,t,n){const r=[],o=new Ke(t);r.push(e[0]),n||r.push(e[0]);let i=1;for(;i<e.length-1;i++)r.push(e[i]),r.push(e[i]);r.push(e[i]),n||r.push(e[i]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function Qe(e,t,n){const r=[];for(let o=0;o<t+1;o++){let i;switch(t){case 0:i=e.getColor(.5);break;default:{const r=Ze(1/t*o,t,n);i=e.getColor(r);break}}r.push(be(i).formatHex())}return r}function Je(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=Xe(e,n,!0),o=Xe(Qe(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(Qe(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function Ye(e,t){const n=[];let r,o;if(e){let i=e.length;for(;i>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),i--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function et(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 tt(e,t,n,r){let o;if(""===e)o=Ye(null,n);else{o=Ye(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=et(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function nt(e,t){const n=e.split(".");return{getStyle:(e,r)=>tt(e,r,n.concat(),t)}}function rt(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?rt(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function ot(e){const t=be(e).rgb(),{r:n,g:r,b:o}=t,[i,a,l]=[n,r,o].map((e=>e/255)),[s,c,u]=[i,a,l].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*s+.7152*c+.0722*u).toFixed(5)}nt.resolveRawTheme=e=>{const t=We(!0,{},e);return rt(t,t._variables),t.scales&&Je(t.scales,t.dataColors&&t.dataColors.nullColor),t};const it=1e3;function at(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(ot);return{getBestContrastColor(o){if(!t[o]){n>it&&(t={},n=0);const i=ot(o),a=r.map((e=>{return t=i,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),l=e[a.indexOf(Math.max(...a))];t[o]=l,n++}return t[o]}}}function lt(){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]=nt(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=be(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Ve:Ue;let r=Ge;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=We(!0,{},He,n,r),i=We(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return i.palettes.data&&i.palettes.data.length||(i.palettes.data=o.palettes.data),i.palettes.ui&&i.palettes.ui.length||(i.palettes.ui=o.palettes.ui),i.scales&&i.scales.length||(i.scales=o.scales),t(i)}(i,nt.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){return n=!!n,e.index<0||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)}}}(e);const l=o.getStyle("","","color"),s=ot(l);n=at([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(Y.prototype).forEach((e=>{o[e]=Y.prototype[e]})),Y.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const st=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),ct=5e3;function ut(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 dt={},pt={exports:{}},ft={},ht={exports:{}},mt={};
|
|
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(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function o(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=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},l.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.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 i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new T(r||[]);return o(a,"_invoke",{value:L(e,n,l)}),a}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,a,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(P([])));w&&w!==n&&r.call(w,a)&&(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,i,a,l){var s=d(e[o],e,i);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,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function L(e,t,n){var r=p;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=R(a,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var s=d(e,t,n);if("normal"===s.type){if(r=n.done?m:f,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=m,n.method="throw",n.arg=s.arg)}}}function R(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,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function P(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=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 i.next=i}}return{next:_}}function _(){return{value:t,done:!0}}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,i){void 0===i&&(i=Promise);var a=new k(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(E),c(E,s,"Generator"),c(E,a,(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,T.prototype={constructor:T,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(I),!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 i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.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 i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},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),I(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;I(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 L(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||E}function R(){}function O(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||E}L.prototype.isReactComponent={},L.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")},L.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},R.prototype=L.prototype;var I=O.prototype=new R;I.constructor=O,C(I,L.prototype),I.isPureReactComponent=!0;var T=Array.isArray,P=Object.prototype.hasOwnProperty,_={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)P.call(t,r)&&!N.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:i,ref:a,props:o,_owner:_.current}}function q(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var z=/\/+/g;function D(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 A(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case d:case p:a=!0}}if(a)return o=o(a=e),e=""===r?"."+D(a,0):r,T(o)?(n="",null!=e&&(n=e.replace(z,"$&/")+"/"),A(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||a&&a.key===o.key?"":(""+o.key).replace(z,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",T(e))for(var l=0;l<e.length;l++){var s=r+D(i=e[l],l);a+=A(i,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;!(i=e.next()).done;)a+=A(i=i.value,t,n,s=r+D(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function j(e,t,n){if(null==e)return e;var r=[],o=0;return A(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 B={current:null},W={transition:null},$={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:W,ReactCurrentOwner:_};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=L,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=$,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,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=_.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)&&!N.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:i,props:r,_owner:a}},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=M,u.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof: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=W.transition;W.transition={};try{e()}finally{W.transition=t}},u.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},u.useCallback=function(e,t){return B.current.useCallback(e,t)},u.useContext=function(e){return B.current.useContext(e)},u.useDebugValue=function(){},u.useDeferredValue=function(e){return B.current.useDeferredValue(e)},u.useEffect=function(e,t){return B.current.useEffect(e,t)},u.useId=function(){return B.current.useId()},u.useImperativeHandle=function(e,t,n){return B.current.useImperativeHandle(e,t,n)},u.useInsertionEffect=function(e,t){return B.current.useInsertionEffect(e,t)},u.useLayoutEffect=function(e,t){return B.current.useLayoutEffect(e,t)},u.useMemo=function(e,t){return B.current.useMemo(e,t)},u.useReducer=function(e,t,n){return B.current.useReducer(e,t,n)},u.useRef=function(e){return B.current.useRef(e)},u.useState=function(e){return B.current.useState(e)},u.useSyncExternalStore=function(e,t,n){return B.current.useSyncExternalStore(e,t,n)},u.useTransition=function(){return B.current.useTransition()},u.version="18.2.0",c.exports=u;var H=c.exports,U=n(H),V=t({__proto__:null,default:U},[H]);const G=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 i;return i=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))}(i,o):i}};return o}({initial:e,fallback:t});return{translator:n}};var K={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_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_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_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_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 Z(e){const t=G({initial:e});return Object.keys(K).forEach((e=>{t.translator.add(K[e])})),{translator:t.translator}}var X={};function Q(){Q.init.call(this)}X.isObject=function(e){return"object"==typeof e&&null!==e},X.isNumber=function(e){return"number"==typeof e},X.isUndefined=function(e){return void 0===e},X.isFunction=function(e){return"function"==typeof e};var J=Q;Q.EventEmitter=Q,Q.prototype._events=void 0,Q.prototype._maxListeners=void 0,Q.defaultMaxListeners=10,Q.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Q.prototype.setMaxListeners=function(e){if(!X.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Q.prototype.emit=function(e){var t,n,r,o,i,a;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],X.isUndefined(n))return!1;if(X.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),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(X.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},Q.prototype.addListener=function(e,t){var n;if(!X.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,X.isFunction(t.listener)?t.listener:t),this._events[e]?X.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,X.isObject(this._events[e])&&!this._events[e].warned)&&((n=X.isUndefined(this._maxListeners)?Q.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,X.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),X.isFunction(console.trace)&&console.trace()));return this},Q.prototype.on=Q.prototype.addListener,Q.prototype.once=function(e,t){if(!X.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},Q.prototype.removeListener=function(e,t){var n,r,o,i;if(!X.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||X.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(X.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;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},Q.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],X.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},Q.prototype.listeners=function(e){return this._events&&this._events[e]?X.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Q.listenerCount=function(e,t){return e._events&&e._events[t]?X.isFunction(e._events[t])?1:e._events[t].length:0};var Y=n(J);function ee(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function te(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ne(){}var re=.7,oe=1/re,ie="\\s*([+-]?\\d+)\\s*",ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",se=/^#([0-9a-f]{3,8})$/,ce=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),ue=new RegExp(`^rgb\\(${le},${le},${le}\\)$`),de=new RegExp(`^rgba\\(${ie},${ie},${ie},${ae}\\)$`),pe=new RegExp(`^rgba\\(${le},${le},${le},${ae}\\)$`),fe=new RegExp(`^hsl\\(${ae},${le},${le}\\)$`),he=new RegExp(`^hsla\\(${ae},${le},${le},${ae}\\)$`),me={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 ge(){return this.rgb().formatHex()}function ve(){return this.rgb().formatRgb()}function be(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=se.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ye(t):3===n?new we(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?xe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?xe(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ce.exec(e))?new we(t[1],t[2],t[3],1):(t=ue.exec(e))?new we(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=de.exec(e))?xe(t[1],t[2],t[3],t[4]):(t=pe.exec(e))?xe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fe.exec(e))?Oe(t[1],t[2]/100,t[3]/100,1):(t=he.exec(e))?Oe(t[1],t[2]/100,t[3]/100,t[4]):me.hasOwnProperty(e)?ye(me[e]):"transparent"===e?new we(NaN,NaN,NaN,0):null}function ye(e){return new we(e>>16&255,e>>8&255,255&e,1)}function xe(e,t,n,r){return r<=0&&(e=t=n=NaN),new we(e,t,n,r)}function Se(e,t,n,r){return 1===arguments.length?((o=e)instanceof ne||(o=be(o)),o?new we((o=o.rgb()).r,o.g,o.b,o.opacity):new we):new we(e,t,n,null==r?1:r);var o}function we(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ee(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}`}function Ce(){const e=ke(this.opacity);return`${1===e?"rgb(":"rgba("}${Le(this.r)}, ${Le(this.g)}, ${Le(this.b)}${1===e?")":`, ${e})`}`}function ke(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 Re(e){return((e=Le(e))<16?"0":"")+e.toString(16)}function Oe(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 ne||(e=be(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),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Te(a,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 _e(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)}ee(ne,be,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ge,formatHex:ge,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ie(this).formatHsl()},formatRgb:ve,toString:ve}),ee(we,Se,te(ne,{brighter(e){return e=null==e?oe:Math.pow(oe,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?re:Math.pow(re,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new we(Le(this.r),Le(this.g),Le(this.b),ke(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:Ee,formatHex:Ee,formatHex8:function(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}${Re(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ce,toString:Ce})),ee(Te,(function(e,t,n,r){return 1===arguments.length?Ie(e):new Te(e,t,n,null==r?1:r)}),te(ne,{brighter(e){return e=null==e?oe:Math.pow(oe,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?re:Math.pow(re,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 we(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),_e(this.s),_e(this.l),ke(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=ke(this.opacity);return`${1===e?"hsl(":"hsla("}${Pe(this.h)}, ${100*_e(this.s)}%, ${100*_e(this.l)}%${1===e?")":`, ${e})`}`}}));var Me=Object.prototype.hasOwnProperty,qe=Object.prototype.toString,ze=Object.defineProperty,De=Object.getOwnPropertyDescriptor,Ae=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===qe.call(e)},je=function(e){if(!e||"[object Object]"!==qe.call(e))return!1;var t,n=Me.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Me.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Me.call(e,t)},Fe=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(!Me.call(e,t))return;if(De)return De(e,t).value}return e[t]},We=function e(){var t,n,r,o,i,a,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&&(je(o)||(i=Ae(o)))?(i?(i=!1,a=r&&Ae(r)?r:[]):a=r&&je(r)?r:{},Fe(l,{name:n,newValue:e(u,a,o)})):void 0!==o&&Fe(l,{name:n,newValue:o}));return l},$e=n(We),He={fontSize:"13px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},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"]}]}},Ue={_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"},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:"dark",color:"@B98"},Ge={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Ke{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=be(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([be(e),be(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 i=this.colorParts[t][o],a=i[0],l=i[1];if(e===this.min)return l;if(e===this.max)return a;const s=function(e,t,n){return Se(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))}(a,l,r-o);return s}}function Ze(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Xe(e,t,n){const r=[],o=new Ke(t);r.push(e[0]),n||r.push(e[0]);let i=1;for(;i<e.length-1;i++)r.push(e[i]),r.push(e[i]);r.push(e[i]),n||r.push(e[i]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function Qe(e,t,n){const r=[];for(let o=0;o<t+1;o++){let i;switch(t){case 0:i=e.getColor(.5);break;default:{const r=Ze(1/t*o,t,n);i=e.getColor(r);break}}r.push(be(i).formatHex())}return r}function Je(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=Xe(e,n,!0),o=Xe(Qe(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(Qe(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function Ye(e,t){const n=[];let r,o;if(e){let i=e.length;for(;i>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),i--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function et(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 tt(e,t,n,r){let o;if(""===e)o=Ye(null,n);else{o=Ye(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=et(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function nt(e,t){const n=e.split(".");return{getStyle:(e,r)=>tt(e,r,n.concat(),t)}}function rt(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?rt(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function ot(e){const t=be(e).rgb(),{r:n,g:r,b:o}=t,[i,a,l]=[n,r,o].map((e=>e/255)),[s,c,u]=[i,a,l].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*s+.7152*c+.0722*u).toFixed(5)}nt.resolveRawTheme=e=>{const t=$e(!0,{},e);return rt(t,t._variables),t.scales&&Je(t.scales,t.dataColors&&t.dataColors.nullColor),t};const it=1e3;function at(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(ot);return{getBestContrastColor(o){if(!t[o]){n>it&&(t={},n=0);const i=ot(o),a=r.map((e=>{return t=i,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),l=e[a.indexOf(Math.max(...a))];t[o]=l,n++}return t[o]}}}function lt(){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]=nt(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=be(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Ve:Ue;let r=Ge;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=$e(!0,{},He,n,r),i=$e(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return i.palettes.data&&i.palettes.data.length||(i.palettes.data=o.palettes.data),i.palettes.ui&&i.palettes.ui.length||(i.palettes.ui=o.palettes.ui),i.scales&&i.scales.length||(i.scales=o.scales),t(i)}(i,nt.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){return n=!!n,e.index<0||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)}}}(e);const l=o.getStyle("","","color"),s=ot(l);n=at([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(Y.prototype).forEach((e=>{o[e]=Y.prototype[e]})),Y.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const st=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),ct=5e3;function ut(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 dt={},pt={exports:{}},ft={},ht={exports:{}},mt={};
|
|
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,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<i&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<i&&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 i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],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,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<i&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<i&&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 i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],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,_(S);else{var t=n(c);null!==t&&N(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,v(k),k=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!O());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var u=!0;else{var g=n(c);null!==g&&N(x,g.startTime-o),u=!1}return u}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,E=!1,C=null,k=-1,L=5,R=-1;function O(){return!(e.unstable_now()-R<L)}function I(){if(null!==C){var t=e.unstable_now();R=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(I)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,P=T.port2;T.port1.onmessage=I,w=function(){P.postMessage(null)}}else w=function(){g(I,0)};function _(e){C=e,E||(E=!0,w())}function N(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,_(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"):L=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(s)&&r===n(c)&&(m?(v(k),k=-1):m=!0,N(x,i-a))):(r.sortIndex=l,t(s,r),h||f||(h=!0,_(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}}}}(mt),ht.exports=mt;var gt=ht.exports,vt=H,bt=gt;
|
|
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 yt(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 xt=new Set,St={};function wt(e,t){Et(e,t),Et(e+"Capture",t)}function Et(e,t){for(St[e]=t,e=0;e<t.length;e++)xt.add(t[e])}var Ct=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),kt=Object.prototype.hasOwnProperty,Lt=/^[: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]*$/,Rt={},Ot={};function It(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Tt[e]=new It(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Tt[t]=new It(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Tt[e]=new It(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Tt[e]=new It(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){Tt[e]=new It(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Tt[e]=new It(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Tt[e]=new It(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Tt[e]=new It(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Tt[e]=new It(e,5,!1,e.toLowerCase(),null,!1,!1)}));var _t=/[\-:]([a-z])/g;function Pt(e){return e[1].toUpperCase()}function Nt(e,t,n,r){var o=Tt.hasOwnProperty(t)?Tt[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!!kt.call(Ot,e)||!kt.call(Rt,e)&&(Lt.test(e)?Ot[e]=!0:(Rt[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(_t,Pt);Tt[t]=new It(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(_t,Pt);Tt[t]=new It(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(_t,Pt);Tt[t]=new It(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Tt[e]=new It(e,1,!1,e.toLowerCase(),null,!1,!1)})),Tt.xlinkHref=new It("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Tt[e]=new It(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Mt=vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,qt=Symbol.for("react.element"),zt=Symbol.for("react.portal"),Dt=Symbol.for("react.fragment"),At=Symbol.for("react.strict_mode"),jt=Symbol.for("react.profiler"),Ft=Symbol.for("react.provider"),$t=Symbol.for("react.context"),Bt=Symbol.for("react.forward_ref"),Wt=Symbol.for("react.suspense"),Ht=Symbol.for("react.suspense_list"),Ut=Symbol.for("react.memo"),Vt=Symbol.for("react.lazy"),Gt=Symbol.for("react.offscreen"),Kt=Symbol.iterator;function Zt(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Kt&&e[Kt]||e["@@iterator"])?e:null}var Xt,Qt=Object.assign;function Jt(e){if(void 0===Xt)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Xt=t&&t[1]||""}return"\n"+Xt+e}var Yt=!1;function en(e,t){if(!e||Yt)return"";Yt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{Yt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Jt(e):""}function tn(e){switch(e.tag){case 5:return Jt(e.type);case 16:return Jt("Lazy");case 13:return Jt("Suspense");case 19:return Jt("SuspenseList");case 0:case 2:case 15:return e=en(e.type,!1);case 11:return e=en(e.type.render,!1);case 1:return e=en(e.type,!0);default:return""}}function nn(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 Dt:return"Fragment";case zt:return"Portal";case jt:return"Profiler";case At:return"StrictMode";case Wt:return"Suspense";case Ht:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case $t:return(e.displayName||"Context")+".Consumer";case Ft:return(e._context.displayName||"Context")+".Provider";case Bt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ut:return null!==(t=e.displayName||null)?t:nn(e.type)||"Memo";case Vt:t=e._payload,e=e._init;try{return nn(e(t))}catch(e){}}return null}function rn(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 nn(t);case 8:return t===At?"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 on(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function an(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ln(e){e._valueTracker||(e._valueTracker=function(e){var t=an(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function sn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=an(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function cn(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 un(e,t){var n=t.checked;return Qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function dn(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=on(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 pn(e,t){null!=(t=t.checked)&&Nt(e,"checked",t,!1)}function fn(e,t){pn(e,t);var n=on(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")?mn(e,t.type,n):t.hasOwnProperty("defaultValue")&&mn(e,t.type,on(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function hn(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 mn(e,t,n){"number"===t&&cn(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gn=Array.isArray;function vn(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=""+on(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 bn(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(yt(91));return Qt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yn(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(yt(92));if(gn(n)){if(1<n.length)throw Error(yt(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:on(n)}}function xn(e,t){var n=on(t.value),r=on(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 Sn(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function wn(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 En(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?wn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Cn,kn,Ln=(kn=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Cn=Cn||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Cn.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 kn(e,t)}))}:kn);function Rn(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 On={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},In=["Webkit","ms","Moz","O"];function Tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||On.hasOwnProperty(e)&&On[e]?(""+t).trim():t+"px"}function _n(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(On).forEach((function(e){In.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),On[t]=On[e]}))}));var Pn=Qt({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 Nn(e,t){if(t){if(Pn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(yt(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(yt(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(yt(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(yt(62))}}function Mn(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 qn=null;function zn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Dn=null,An=null,jn=null;function Fn(e){if(e=Ma(e)){if("function"!=typeof Dn)throw Error(yt(280));var t=e.stateNode;t&&(t=za(t),Dn(e.stateNode,e.type,t))}}function $n(e){An?jn?jn.push(e):jn=[e]:An=e}function Bn(){if(An){var e=An,t=jn;if(jn=An=null,Fn(e),t)for(e=0;e<t.length;e++)Fn(t[e])}}function Wn(e,t){return e(t)}function Hn(){}var Un=!1;function Vn(e,t,n){if(Un)return e(t,n);Un=!0;try{return Wn(e,t,n)}finally{Un=!1,(null!==An||null!==jn)&&(Hn(),Bn())}}function Gn(e,t){var n=e.stateNode;if(null===n)return null;var r=za(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(yt(231,t,typeof n));return n}var Kn=!1;if(Ct)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){Kn=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch(kn){Kn=!1}function Xn(e,t,n,r,o,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Qn=!1,Jn=null,Yn=!1,er=null,tr={onError:function(e){Qn=!0,Jn=e}};function nr(e,t,n,r,o,i,a,l,s){Qn=!1,Jn=null,Xn.apply(tr,arguments)}function rr(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 or(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 ir(e){if(rr(e)!==e)throw Error(yt(188))}function ar(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=rr(e)))throw Error(yt(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return ir(o),e;if(i===r)return ir(o),t;i=i.sibling}throw Error(yt(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(yt(189))}}if(n.alternate!==r)throw Error(yt(190))}if(3!==n.tag)throw Error(yt(188));return n.stateNode.current===n?e:t}(e),null!==e?lr(e):null}function lr(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=lr(e);if(null!==t)return t;e=e.sibling}return null}var sr=bt.unstable_scheduleCallback,cr=bt.unstable_cancelCallback,ur=bt.unstable_shouldYield,dr=bt.unstable_requestPaint,pr=bt.unstable_now,fr=bt.unstable_getCurrentPriorityLevel,hr=bt.unstable_ImmediatePriority,mr=bt.unstable_UserBlockingPriority,gr=bt.unstable_NormalPriority,vr=bt.unstable_LowPriority,br=bt.unstable_IdlePriority,yr=null,xr=null;var Sr=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(wr(e)/Er|0)|0},wr=Math.log,Er=Math.LN2;var Cr=64,kr=4194304;function Lr(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 Rr(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=Lr(l):0!==(i&=a)&&(r=Lr(i))}else 0!==(a=n&~o)?r=Lr(a):0!==i&&(r=Lr(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Sr(t)),r|=e[n],t&=~o;return r}function Or(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 Ir(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Tr(){var e=Cr;return 0==(4194240&(Cr<<=1))&&(Cr=64),e}function _r(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pr(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Sr(t)]=n}function Nr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Sr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Mr=0;function qr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var zr,Dr,Ar,jr,Fr,$r=!1,Br=[],Wr=null,Hr=null,Ur=null,Vr=new Map,Gr=new Map,Kr=[],Zr="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 Xr(e,t){switch(e){case"focusin":case"focusout":Wr=null;break;case"dragenter":case"dragleave":Hr=null;break;case"mouseover":case"mouseout":Ur=null;break;case"pointerover":case"pointerout":Vr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gr.delete(t.pointerId)}}function Qr(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Ma(t))&&Dr(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Jr(e){var t=Na(e.target);if(null!==t){var n=rr(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=or(n)))return e.blockedOn=t,void Fr(e.priority,(function(){Ar(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 Yr(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=uo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Ma(n))&&Dr(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);qn=r,n.target.dispatchEvent(r),qn=null,t.shift()}return!0}function eo(e,t,n){Yr(e)&&n.delete(t)}function to(){$r=!1,null!==Wr&&Yr(Wr)&&(Wr=null),null!==Hr&&Yr(Hr)&&(Hr=null),null!==Ur&&Yr(Ur)&&(Ur=null),Vr.forEach(eo),Gr.forEach(eo)}function no(e,t){e.blockedOn===t&&(e.blockedOn=null,$r||($r=!0,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,to)))}function ro(e){function t(t){return no(t,e)}if(0<Br.length){no(Br[0],e);for(var n=1;n<Br.length;n++){var r=Br[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Wr&&no(Wr,e),null!==Hr&&no(Hr,e),null!==Ur&&no(Ur,e),Vr.forEach(t),Gr.forEach(t),n=0;n<Kr.length;n++)(r=Kr[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Kr.length&&null===(n=Kr[0]).blockedOn;)Jr(n),null===n.blockedOn&&Kr.shift()}var oo=Mt.ReactCurrentBatchConfig,io=!0;function ao(e,t,n,r){var o=Mr,i=oo.transition;oo.transition=null;try{Mr=1,so(e,t,n,r)}finally{Mr=o,oo.transition=i}}function lo(e,t,n,r){var o=Mr,i=oo.transition;oo.transition=null;try{Mr=4,so(e,t,n,r)}finally{Mr=o,oo.transition=i}}function so(e,t,n,r){if(io){var o=uo(e,t,n,r);if(null===o)ia(e,t,r,co,n),Xr(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Wr=Qr(Wr,e,t,n,r,o),!0;case"dragenter":return Hr=Qr(Hr,e,t,n,r,o),!0;case"mouseover":return Ur=Qr(Ur,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Vr.set(i,Qr(Vr.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Gr.set(i,Qr(Gr.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Xr(e,r),4&t&&-1<Zr.indexOf(e)){for(;null!==o;){var i=Ma(o);if(null!==i&&zr(i),null===(i=uo(e,t,n,r))&&ia(e,t,r,co,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else ia(e,t,r,null,n)}}var co=null;function uo(e,t,n,r){if(co=null,null!==(e=Na(e=zn(r))))if(null===(t=rr(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=or(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 co=e,null}function po(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(fr()){case hr:return 1;case mr:return 4;case gr:case vr:return 16;case br:return 536870912;default:return 16}default:return 16}}var fo=null,ho=null,mo=null;function go(){if(mo)return mo;var e,t,n=ho,r=n.length,o="value"in fo?fo.value:fo.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return mo=o.slice(e,1<t?1-t:void 0)}function vo(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 bo(){return!0}function yo(){return!1}function xo(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?bo:yo,this.isPropagationStopped=yo,this}return Qt(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=bo)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=bo)},persist:function(){},isPersistent:bo}),t}var So,wo,Eo,Co={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ko=xo(Co),Lo=Qt({},Co,{view:0,detail:0}),Ro=xo(Lo),Oo=Qt({},Lo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fo,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!==Eo&&(Eo&&"mousemove"===e.type?(So=e.screenX-Eo.screenX,wo=e.screenY-Eo.screenY):wo=So=0,Eo=e),So)},movementY:function(e){return"movementY"in e?e.movementY:wo}}),Io=xo(Oo),To=xo(Qt({},Oo,{dataTransfer:0})),_o=xo(Qt({},Lo,{relatedTarget:0})),Po=xo(Qt({},Co,{animationName:0,elapsedTime:0,pseudoElement:0})),No=Qt({},Co,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Mo=xo(No),qo=xo(Qt({},Co,{data:0})),zo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Do={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"},Ao={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ao[e])&&!!t[e]}function Fo(){return jo}var $o=Qt({},Lo,{key:function(e){if(e.key){var t=zo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=vo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Do[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fo,charCode:function(e){return"keypress"===e.type?vo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?vo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Bo=xo($o),Wo=xo(Qt({},Oo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ho=xo(Qt({},Lo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fo})),Uo=xo(Qt({},Co,{propertyName:0,elapsedTime:0,pseudoElement:0})),Vo=Qt({},Oo,{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}),Go=xo(Vo),Ko=[9,13,27,32],Zo=Ct&&"CompositionEvent"in window,Xo=null;Ct&&"documentMode"in document&&(Xo=document.documentMode);var Qo=Ct&&"TextEvent"in window&&!Xo,Jo=Ct&&(!Zo||Xo&&8<Xo&&11>=Xo),Yo=String.fromCharCode(32),ei=!1;function ti(e,t){switch(e){case"keyup":return-1!==Ko.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ni(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ri=!1;var oi={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 ii(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!oi[e.type]:"textarea"===t}function ai(e,t,n,r){$n(r),0<(t=la(t,"onChange")).length&&(n=new ko("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var li=null,si=null;function ci(e){Yi(e,0)}function ui(e){if(sn(qa(e)))return e}function di(e,t){if("change"===e)return t}var pi=!1;if(Ct){var fi;if(Ct){var hi="oninput"in document;if(!hi){var mi=document.createElement("div");mi.setAttribute("oninput","return;"),hi="function"==typeof mi.oninput}fi=hi}else fi=!1;pi=fi&&(!document.documentMode||9<document.documentMode)}function gi(){li&&(li.detachEvent("onpropertychange",vi),si=li=null)}function vi(e){if("value"===e.propertyName&&ui(si)){var t=[];ai(t,si,e,zn(e)),Vn(ci,t)}}function bi(e,t,n){"focusin"===e?(gi(),si=n,(li=t).attachEvent("onpropertychange",vi)):"focusout"===e&&gi()}function yi(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return ui(si)}function xi(e,t){if("click"===e)return ui(t)}function Si(e,t){if("input"===e||"change"===e)return ui(t)}var wi="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Ei(e,t){if(wi(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(!kt.call(t,o)||!wi(e[o],t[o]))return!1}return!0}function Ci(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ki(e,t){var n,r=Ci(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=Ci(r)}}function Li(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Li(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Ri(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function Oi(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 Ii(e){var t=Ri(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Li(n.ownerDocument.documentElement,n)){if(null!==r&&Oi(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ki(n,i);var a=ki(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ti=Ct&&"documentMode"in document&&11>=document.documentMode,_i=null,Pi=null,Ni=null,Mi=!1;function qi(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Mi||null==_i||_i!==cn(r)||("selectionStart"in(r=_i)&&Oi(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},Ni&&Ei(Ni,r)||(Ni=r,0<(r=la(Pi,"onSelect")).length&&(t=new ko("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=_i)))}function zi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Di={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionend:zi("Transition","TransitionEnd")},Ai={},ji={};function Fi(e){if(Ai[e])return Ai[e];if(!Di[e])return e;var t,n=Di[e];for(t in n)if(n.hasOwnProperty(t)&&t in ji)return Ai[e]=n[t];return e}Ct&&(ji=document.createElement("div").style,"AnimationEvent"in window||(delete Di.animationend.animation,delete Di.animationiteration.animation,delete Di.animationstart.animation),"TransitionEvent"in window||delete Di.transitionend.transition);var $i=Fi("animationend"),Bi=Fi("animationiteration"),Wi=Fi("animationstart"),Hi=Fi("transitionend"),Ui=new Map,Vi="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 Gi(e,t){Ui.set(e,t),wt(t,[e])}for(var Ki=0;Ki<Vi.length;Ki++){var Zi=Vi[Ki];Gi(Zi.toLowerCase(),"on"+(Zi[0].toUpperCase()+Zi.slice(1)))}Gi($i,"onAnimationEnd"),Gi(Bi,"onAnimationIteration"),Gi(Wi,"onAnimationStart"),Gi("dblclick","onDoubleClick"),Gi("focusin","onFocus"),Gi("focusout","onBlur"),Gi(Hi,"onTransitionEnd"),Et("onMouseEnter",["mouseout","mouseover"]),Et("onMouseLeave",["mouseout","mouseover"]),Et("onPointerEnter",["pointerout","pointerover"]),Et("onPointerLeave",["pointerout","pointerover"]),wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wt("onBeforeInput",["compositionend","keypress","textInput","paste"]),wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xi="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(" "),Qi=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xi));function Ji(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(nr.apply(this,arguments),Qn){if(!Qn)throw Error(yt(198));var c=Jn;Qn=!1,Jn=null,Yn||(Yn=!0,er=c)}}(r,t,void 0,e),e.currentTarget=null}function Yi(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Ji(o,l,c),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,c=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Ji(o,l,c),i=s}}}if(Yn)throw e=er,Yn=!1,er=null,e}function ea(e,t){var n=t[Ta];void 0===n&&(n=t[Ta]=new Set);var r=e+"__bubble";n.has(r)||(oa(t,e,2,!1),n.add(r))}function ta(e,t,n){var r=0;t&&(r|=4),oa(n,e,r,t)}var na="_reactListening"+Math.random().toString(36).slice(2);function ra(e){if(!e[na]){e[na]=!0,xt.forEach((function(t){"selectionchange"!==t&&(Qi.has(t)||ta(t,!1,e),ta(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[na]||(t[na]=!0,ta("selectionchange",!1,t))}}function oa(e,t,n,r){switch(po(t)){case 1:var o=ao;break;case 4:o=lo;break;default:o=so}n=o.bind(null,t,n,e),o=void 0,!Kn||"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 ia(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=Na(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Vn((function(){var r=i,o=zn(n),a=[];e:{var l=Ui.get(e);if(void 0!==l){var s=ko,c=e;switch(e){case"keypress":if(0===vo(n))break e;case"keydown":case"keyup":s=Bo;break;case"focusin":c="focus",s=_o;break;case"focusout":c="blur",s=_o;break;case"beforeblur":case"afterblur":s=_o;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=Io;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=To;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ho;break;case $i:case Bi:case Wi:s=Po;break;case Hi:s=Uo;break;case"scroll":s=Ro;break;case"wheel":s=Go;break;case"copy":case"cut":case"paste":s=Mo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Wo}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=Gn(h,p))&&u.push(aa(h,m,f)))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),a.push({event:l,listeners:u}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===qn||!(c=n.relatedTarget||n.fromElement)||!Na(c)&&!c[Ia])&&(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)?Na(c):null)&&(c!==(d=rr(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=Io,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Wo,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:qa(s),f=null==c?l:qa(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,Na(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=sa(f))h++;for(f=0,m=p;m;m=sa(m))f++;for(;0<h-f;)u=sa(u),h--;for(;0<f-h;)p=sa(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=sa(u),p=sa(p)}u=null}else u=null;null!==s&&ca(a,l,s,u,!1),null!==c&&null!==d&&ca(a,d,c,u,!0)}if("select"===(s=(l=r?qa(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=di;else if(ii(l))if(pi)g=Si;else{g=yi;var v=bi}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=xi);switch(g&&(g=g(e,r))?ai(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&mn(l,"number",l.value)),v=r?qa(r):window,e){case"focusin":(ii(v)||"true"===v.contentEditable)&&(_i=v,Pi=r,Ni=null);break;case"focusout":Ni=Pi=_i=null;break;case"mousedown":Mi=!0;break;case"contextmenu":case"mouseup":case"dragend":Mi=!1,qi(a,n,o);break;case"selectionchange":if(Ti)break;case"keydown":case"keyup":qi(a,n,o)}var b;if(Zo)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 ri?ti(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Jo&&"ko"!==n.locale&&(ri||"onCompositionStart"!==y?"onCompositionEnd"===y&&ri&&(b=go()):(ho="value"in(fo=o)?fo.value:fo.textContent,ri=!0)),0<(v=la(r,y)).length&&(y=new qo(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=ni(n))&&(y.data=b))),(b=Qo?function(e,t){switch(e){case"compositionend":return ni(t);case"keypress":return 32!==t.which?null:(ei=!0,Yo);case"textInput":return(e=t.data)===Yo&&ei?null:e;default:return null}}(e,n):function(e,t){if(ri)return"compositionend"===e||!Zo&&ti(e,t)?(e=go(),mo=ho=fo=null,ri=!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 Jo&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=la(r,"onBeforeInput")).length&&(o=new qo("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Yi(a,t)}))}function aa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function la(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Gn(e,n))&&r.unshift(aa(e,i,o)),null!=(i=Gn(e,t))&&r.push(aa(e,i,o))),e=e.return}return r}function sa(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ca(e,t,n,r,o){for(var i=t._reactName,a=[];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=Gn(n,i))&&a.unshift(aa(n,s,l)):o||null!=(s=Gn(n,i))&&a.push(aa(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ua=/\r\n?/g,da=/\u0000|\uFFFD/g;function pa(e){return("string"==typeof e?e:""+e).replace(ua,"\n").replace(da,"")}function fa(e,t,n){if(t=pa(t),pa(e)!==t&&n)throw Error(yt(425))}function ha(){}var ma=null,ga=null;function va(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 ba="function"==typeof setTimeout?setTimeout:void 0,ya="function"==typeof clearTimeout?clearTimeout:void 0,xa="function"==typeof Promise?Promise:void 0,Sa="function"==typeof queueMicrotask?queueMicrotask:void 0!==xa?function(e){return xa.resolve(null).then(e).catch(wa)}:ba;function wa(e){setTimeout((function(){throw e}))}function Ea(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 ro(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);ro(t)}function Ca(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 ka(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 La=Math.random().toString(36).slice(2),Ra="__reactFiber$"+La,Oa="__reactProps$"+La,Ia="__reactContainer$"+La,Ta="__reactEvents$"+La,_a="__reactListeners$"+La,Pa="__reactHandles$"+La;function Na(e){var t=e[Ra];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ia]||n[Ra]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ka(e);null!==e;){if(n=e[Ra])return n;e=ka(e)}return t}n=(e=n).parentNode}return null}function Ma(e){return!(e=e[Ra]||e[Ia])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function qa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(yt(33))}function za(e){return e[Oa]||null}var Da=[],Aa=-1;function ja(e){return{current:e}}function Fa(e){0>Aa||(e.current=Da[Aa],Da[Aa]=null,Aa--)}function $a(e,t){Aa++,Da[Aa]=e.current,e.current=t}var Ba={},Wa=ja(Ba),Ha=ja(!1),Ua=Ba;function Va(e,t){var n=e.type.contextTypes;if(!n)return Ba;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ga(e){return null!=(e=e.childContextTypes)}function Ka(){Fa(Ha),Fa(Wa)}function Za(e,t,n){if(Wa.current!==Ba)throw Error(yt(168));$a(Wa,t),$a(Ha,n)}function Xa(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(yt(108,rn(e)||"Unknown",o));return Qt({},n,r)}function Qa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ba,Ua=Wa.current,$a(Wa,e),$a(Ha,Ha.current),!0}function Ja(e,t,n){var r=e.stateNode;if(!r)throw Error(yt(169));n?(e=Xa(e,t,Ua),r.__reactInternalMemoizedMergedChildContext=e,Fa(Ha),Fa(Wa),$a(Wa,e)):Fa(Ha),$a(Ha,n)}var Ya=null,el=!1,tl=!1;function nl(e){null===Ya?Ya=[e]:Ya.push(e)}function rl(){if(!tl&&null!==Ya){tl=!0;var e=0,t=Mr;try{var n=Ya;for(Mr=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ya=null,el=!1}catch(t){throw null!==Ya&&(Ya=Ya.slice(e+1)),sr(hr,rl),t}finally{Mr=t,tl=!1}}return null}var ol=[],il=0,al=null,ll=0,sl=[],cl=0,ul=null,dl=1,pl="";function fl(e,t){ol[il++]=ll,ol[il++]=al,al=e,ll=t}function hl(e,t,n){sl[cl++]=dl,sl[cl++]=pl,sl[cl++]=ul,ul=e;var r=dl;e=pl;var o=32-Sr(r)-1;r&=~(1<<o),n+=1;var i=32-Sr(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,dl=1<<32-Sr(t)+o|n<<o|r,pl=i+e}else dl=1<<i|n<<o|r,pl=e}function ml(e){null!==e.return&&(fl(e,1),hl(e,1,0))}function gl(e){for(;e===al;)al=ol[--il],ol[il]=null,ll=ol[--il],ol[il]=null;for(;e===ul;)ul=sl[--cl],sl[cl]=null,pl=sl[--cl],sl[cl]=null,dl=sl[--cl],sl[cl]=null}var vl=null,bl=null,yl=!1,xl=null;function Sl(e,t){var n=Vd(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 wl(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,vl=e,bl=Ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,vl=e,bl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==ul?{id:dl,overflow:pl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Vd(18,null,null,0)).stateNode=t,n.return=e,e.child=n,vl=e,bl=null,!0);default:return!1}}function El(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Cl(e){if(yl){var t=bl;if(t){var n=t;if(!wl(e,t)){if(El(e))throw Error(yt(418));t=Ca(n.nextSibling);var r=vl;t&&wl(e,t)?Sl(r,n):(e.flags=-4097&e.flags|2,yl=!1,vl=e)}}else{if(El(e))throw Error(yt(418));e.flags=-4097&e.flags|2,yl=!1,vl=e}}}function kl(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;vl=e}function Ll(e){if(e!==vl)return!1;if(!yl)return kl(e),yl=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!va(e.type,e.memoizedProps)),t&&(t=bl)){if(El(e))throw Rl(),Error(yt(418));for(;t;)Sl(e,t),t=Ca(t.nextSibling)}if(kl(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(yt(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){bl=Ca(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}bl=null}}else bl=vl?Ca(e.stateNode.nextSibling):null;return!0}function Rl(){for(var e=bl;e;)e=Ca(e.nextSibling)}function Ol(){bl=vl=null,yl=!1}function Il(e){null===xl?xl=[e]:xl.push(e)}var Tl=Mt.ReactCurrentBatchConfig;function _l(e,t){if(e&&e.defaultProps){for(var n in t=Qt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Pl=ja(null),Nl=null,Ml=null,ql=null;function zl(){ql=Ml=Nl=null}function Dl(e){var t=Pl.current;Fa(Pl),e._currentValue=t}function Al(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 jl(e,t){Nl=e,ql=Ml=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Mc=!0),e.firstContext=null)}function Fl(e){var t=e._currentValue;if(ql!==e)if(e={context:e,memoizedValue:t,next:null},null===Ml){if(null===Nl)throw Error(yt(308));Ml=e,Nl.dependencies={lanes:0,firstContext:e}}else Ml=Ml.next=e;return t}var $l=null;function Bl(e){null===$l?$l=[e]:$l.push(e)}function Wl(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Bl(t)):(n.next=o.next,o.next=n),t.interleaved=n,Hl(e,r)}function Hl(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 Ul=!1;function Vl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gl(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 Kl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zl(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Wu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Hl(e,n)}return null===(o=r.interleaved)?(t.next=t,Bl(r)):(t.next=o.next,o.next=t),r.interleaved=t,Hl(e,n)}function Xl(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,Nr(e,n)}}function Ql(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Jl(e,t,n,r){var o=e.updateQueue;Ul=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===a?i=c:a.next=c,a=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,u=c=s=null,l=i;;){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=Qt({},d,p);break e;case 2:Ul=!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,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Qu|=a,e.lanes=a,e.memoizedState=d}}function Yl(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(yt(191,o));o.call(r)}}}var es=(new vt.Component).refs;function ts(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Qt({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ns={isMounted:function(e){return!!(e=e._reactInternals)&&rr(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=md(),o=gd(e),i=Kl(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Zl(e,i,o))&&(vd(t,e,o,r),Xl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=md(),o=gd(e),i=Kl(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Zl(e,i,o))&&(vd(t,e,o,r),Xl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=md(),r=gd(e),o=Kl(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Zl(e,o,r))&&(vd(t,e,r,n),Xl(t,e,r))}};function rs(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Ei(n,r)||!Ei(o,i))}function os(e,t,n){var r=!1,o=Ba,i=t.contextType;return"object"==typeof i&&null!==i?i=Fl(i):(o=Ga(t)?Ua:Wa.current,i=(r=null!=(r=t.contextTypes))?Va(e,o):Ba),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ns,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function is(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&&ns.enqueueReplaceState(t,t.state,null)}function as(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=es,Vl(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Fl(i):(i=Ga(t)?Ua:Wa.current,o.context=Va(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ts(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ns.enqueueReplaceState(o,o.state,null),Jl(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ls(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(yt(309));var r=n.stateNode}if(!r)throw Error(yt(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===es&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(yt(284));if(!n._owner)throw Error(yt(290,e))}return e}function ss(e,t){throw e=Object.prototype.toString.call(t),Error(yt(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cs(e){return(0,e._init)(e._payload)}function us(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=Kd(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Jd(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===Dt?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Vt&&cs(i)===t.type)?((r=o(t,n.props)).ref=ls(e,t,n),r.return=e,r):((r=Zd(n.type,n.key,n.props,null,e.mode,r)).ref=ls(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=Yd(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,i){return null===t||7!==t.tag?((t=Xd(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Jd(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case qt:return(n=Zd(t.type,t.key,t.props,null,e.mode,n)).ref=ls(e,null,t),n.return=e,n;case zt:return(t=Yd(t,e.mode,n)).return=e,t;case Vt:return d(e,(0,t._init)(t._payload),n)}if(gn(t)||Zt(t))return(t=Xd(t,e.mode,n,null)).return=e,t;ss(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 qt:return n.key===o?s(e,t,n,r):null;case zt:return n.key===o?c(e,t,n,r):null;case Vt:return p(e,t,(o=n._init)(n._payload),r)}if(gn(n)||Zt(n))return null!==o?null:u(e,t,n,r,null);ss(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 qt:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case zt:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Vt:return f(e,t,n,(0,r._init)(r._payload),o)}if(gn(r)||Zt(r))return u(t,e=e.get(n)||null,r,o,null);ss(t,r)}return null}function h(o,a,l,s){for(var c=null,u=null,h=a,m=a=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),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===l.length)return n(o,h),yl&&fl(o,m),c;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(a=i(h,a,m),null===u?c=h:u.sibling=h,u=h);return yl&&fl(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),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach((function(e){return t(o,e)})),yl&&fl(o,m),c}function m(o,a,l,s){var c=Zt(l);if("function"!=typeof c)throw Error(yt(150));if(null==(l=c.call(l)))throw Error(yt(151));for(var u=c=null,h=a,m=a=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),a=i(b,a,m),null===u?c=b:u.sibling=b,u=b,h=g}if(v.done)return n(o,h),yl&&fl(o,m),c;if(null===h){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,s))&&(a=i(v,a,m),null===u?c=v:u.sibling=v,u=v);return yl&&fl(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),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v);return e&&h.forEach((function(e){return t(o,e)})),yl&&fl(o,m),c}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===Dt&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case qt:e:{for(var c=l.key,u=i;null!==u;){if(u.key===c){if((c=l.type)===Dt){if(7===u.tag){n(r,u.sibling),(i=o(u,l.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Vt&&cs(c)===u.type){n(r,u.sibling),(i=o(u,l.props)).ref=ls(r,u,l),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}l.type===Dt?((i=Xd(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=Zd(l.type,l.key,l.props,null,r.mode,s)).ref=ls(r,i,l),s.return=r,r=s)}return a(r);case zt:e:{for(u=l.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Yd(l,r.mode,s)).return=r,r=i}return a(r);case Vt:return e(r,i,(u=l._init)(l._payload),s)}if(gn(l))return h(r,i,l,s);if(Zt(l))return m(r,i,l,s);ss(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=Jd(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var ds=us(!0),ps=us(!1),fs={},hs=ja(fs),ms=ja(fs),gs=ja(fs);function vs(e){if(e===fs)throw Error(yt(174));return e}function bs(e,t){switch($a(gs,t),$a(ms,e),$a(hs,fs),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:En(null,"");break;default:t=En(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Fa(hs),$a(hs,t)}function ys(){Fa(hs),Fa(ms),Fa(gs)}function xs(e){vs(gs.current);var t=vs(hs.current),n=En(t,e.type);t!==n&&($a(ms,e),$a(hs,n))}function Ss(e){ms.current===e&&(Fa(hs),Fa(ms))}var ws=ja(0);function Es(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 Cs=[];function ks(){for(var e=0;e<Cs.length;e++)Cs[e]._workInProgressVersionPrimary=null;Cs.length=0}var Ls=Mt.ReactCurrentDispatcher,Rs=Mt.ReactCurrentBatchConfig,Os=0,Is=null,Ts=null,_s=null,Ps=!1,Ns=!1,Ms=0,qs=0;function zs(){throw Error(yt(321))}function Ds(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wi(e[n],t[n]))return!1;return!0}function As(e,t,n,r,o,i){if(Os=i,Is=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ls.current=null===e||null===e.memoizedState?Sc:wc,e=n(r,o),Ns){i=0;do{if(Ns=!1,Ms=0,25<=i)throw Error(yt(301));i+=1,_s=Ts=null,t.updateQueue=null,Ls.current=Ec,e=n(r,o)}while(Ns)}if(Ls.current=xc,t=null!==Ts&&null!==Ts.next,Os=0,_s=Ts=Is=null,Ps=!1,t)throw Error(yt(300));return e}function js(){var e=0!==Ms;return Ms=0,e}function Fs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===_s?Is.memoizedState=_s=e:_s=_s.next=e,_s}function $s(){if(null===Ts){var e=Is.alternate;e=null!==e?e.memoizedState:null}else e=Ts.next;var t=null===_s?Is.memoizedState:_s.next;if(null!==t)_s=t,Ts=e;else{if(null===e)throw Error(yt(310));e={memoizedState:(Ts=e).memoizedState,baseState:Ts.baseState,baseQueue:Ts.baseQueue,queue:Ts.queue,next:null},null===_s?Is.memoizedState=_s=e:_s=_s.next=e}return _s}function Bs(e,t){return"function"==typeof t?t(e):t}function Ws(e){var t=$s(),n=t.queue;if(null===n)throw Error(yt(311));n.lastRenderedReducer=e;var r=Ts,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,c=i;do{var u=c.lane;if((Os&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,a=r):s=s.next=d,Is.lanes|=u,Qu|=u}c=c.next}while(null!==c&&c!==i);null===s?a=r:s.next=l,wi(r,t.memoizedState)||(Mc=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,Is.lanes|=i,Qu|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Hs(e){var t=$s(),n=t.queue;if(null===n)throw Error(yt(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);wi(i,t.memoizedState)||(Mc=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Us(){}function Vs(e,t){var n=Is,r=$s(),o=t(),i=!wi(r.memoizedState,o);if(i&&(r.memoizedState=o,Mc=!0),r=r.queue,oc(Zs.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==_s&&1&_s.memoizedState.tag){if(n.flags|=2048,Ys(9,Ks.bind(null,n,r,o,t),void 0,null),null===Hu)throw Error(yt(349));0!=(30&Os)||Gs(n,t,o)}return o}function Gs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Is.updateQueue)?(t={lastEffect:null,stores:null},Is.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ks(e,t,n,r){t.value=n,t.getSnapshot=r,Xs(t)&&Qs(e)}function Zs(e,t,n){return n((function(){Xs(t)&&Qs(e)}))}function Xs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wi(e,n)}catch(e){return!0}}function Qs(e){var t=Hl(e,1);null!==t&&vd(t,e,1,-1)}function Js(e){var t=Fs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bs,lastRenderedState:e},t.queue=e,e=e.dispatch=gc.bind(null,Is,e),[t.memoizedState,e]}function Ys(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Is.updateQueue)?(t={lastEffect:null,stores:null},Is.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 ec(){return $s().memoizedState}function tc(e,t,n,r){var o=Fs();Is.flags|=e,o.memoizedState=Ys(1|t,n,void 0,void 0===r?null:r)}function nc(e,t,n,r){var o=$s();r=void 0===r?null:r;var i=void 0;if(null!==Ts){var a=Ts.memoizedState;if(i=a.destroy,null!==r&&Ds(r,a.deps))return void(o.memoizedState=Ys(t,n,i,r))}Is.flags|=e,o.memoizedState=Ys(1|t,n,i,r)}function rc(e,t){return tc(8390656,8,e,t)}function oc(e,t){return nc(2048,8,e,t)}function ic(e,t){return nc(4,2,e,t)}function ac(e,t){return nc(4,4,e,t)}function lc(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 sc(e,t,n){return n=null!=n?n.concat([e]):null,nc(4,4,lc.bind(null,t,e),n)}function cc(){}function uc(e,t){var n=$s();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ds(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function dc(e,t){var n=$s();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ds(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pc(e,t,n){return 0==(21&Os)?(e.baseState&&(e.baseState=!1,Mc=!0),e.memoizedState=n):(wi(n,t)||(n=Tr(),Is.lanes|=n,Qu|=n,e.baseState=!0),t)}function fc(e,t){var n=Mr;Mr=0!==n&&4>n?n:4,e(!0);var r=Rs.transition;Rs.transition={};try{e(!1),t()}finally{Mr=n,Rs.transition=r}}function hc(){return $s().memoizedState}function mc(e,t,n){var r=gd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vc(e))bc(t,n);else if(null!==(n=Wl(e,t,n,r))){vd(n,e,r,md()),yc(n,t,r)}}function gc(e,t,n){var r=gd(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vc(e))bc(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,wi(l,a)){var s=t.interleaved;return null===s?(o.next=o,Bl(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Wl(e,t,o,r))&&(vd(n,e,r,o=md()),yc(n,t,r))}}function vc(e){var t=e.alternate;return e===Is||null!==t&&t===Is}function bc(e,t){Ns=Ps=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yc(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Nr(e,n)}}var xc={readContext:Fl,useCallback:zs,useContext:zs,useEffect:zs,useImperativeHandle:zs,useInsertionEffect:zs,useLayoutEffect:zs,useMemo:zs,useReducer:zs,useRef:zs,useState:zs,useDebugValue:zs,useDeferredValue:zs,useTransition:zs,useMutableSource:zs,useSyncExternalStore:zs,useId:zs,unstable_isNewReconciler:!1},Sc={readContext:Fl,useCallback:function(e,t){return Fs().memoizedState=[e,void 0===t?null:t],e},useContext:Fl,useEffect:rc,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,tc(4194308,4,lc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tc(4194308,4,e,t)},useInsertionEffect:function(e,t){return tc(4,2,e,t)},useMemo:function(e,t){var n=Fs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fs();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=mc.bind(null,Is,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Fs().memoizedState=e},useState:Js,useDebugValue:cc,useDeferredValue:function(e){return Fs().memoizedState=e},useTransition:function(){var e=Js(!1),t=e[0];return e=fc.bind(null,e[1]),Fs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Is,o=Fs();if(yl){if(void 0===n)throw Error(yt(407));n=n()}else{if(n=t(),null===Hu)throw Error(yt(349));0!=(30&Os)||Gs(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,rc(Zs.bind(null,r,i,e),[e]),r.flags|=2048,Ys(9,Ks.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Fs(),t=Hu.identifierPrefix;if(yl){var n=pl;t=":"+t+"R"+(n=(dl&~(1<<32-Sr(dl)-1)).toString(32)+n),0<(n=Ms++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=qs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},wc={readContext:Fl,useCallback:uc,useContext:Fl,useEffect:oc,useImperativeHandle:sc,useInsertionEffect:ic,useLayoutEffect:ac,useMemo:dc,useReducer:Ws,useRef:ec,useState:function(){return Ws(Bs)},useDebugValue:cc,useDeferredValue:function(e){return pc($s(),Ts.memoizedState,e)},useTransition:function(){return[Ws(Bs)[0],$s().memoizedState]},useMutableSource:Us,useSyncExternalStore:Vs,useId:hc,unstable_isNewReconciler:!1},Ec={readContext:Fl,useCallback:uc,useContext:Fl,useEffect:oc,useImperativeHandle:sc,useInsertionEffect:ic,useLayoutEffect:ac,useMemo:dc,useReducer:Hs,useRef:ec,useState:function(){return Hs(Bs)},useDebugValue:cc,useDeferredValue:function(e){var t=$s();return null===Ts?t.memoizedState=e:pc(t,Ts.memoizedState,e)},useTransition:function(){return[Hs(Bs)[0],$s().memoizedState]},useMutableSource:Us,useSyncExternalStore:Vs,useId:hc,unstable_isNewReconciler:!1};function Cc(e,t){try{var n="",r=t;do{n+=tn(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 kc(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Lc(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Rc="function"==typeof WeakMap?WeakMap:Map;function Oc(e,t,n){(n=Kl(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){id||(id=!0,ad=r),Lc(0,t)},n}function Ic(e,t,n){(n=Kl(-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(){Lc(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){Lc(0,t),"function"!=typeof r&&(null===ld?ld=new Set([this]):ld.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Tc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Rc;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=Fd.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 Pc(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=Kl(-1,1)).tag=2,Zl(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Nc=Mt.ReactCurrentOwner,Mc=!1;function qc(e,t,n,r){t.child=null===e?ps(t,null,n,r):ds(t,e.child,n,r)}function zc(e,t,n,r,o){n=n.render;var i=t.ref;return jl(t,o),r=As(e,t,n,r,i,o),n=js(),null===e||Mc?(yl&&n&&ml(t),t.flags|=1,qc(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,iu(e,t,o))}function Dc(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Gd(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Zd(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ac(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Ei)(a,r)&&e.ref===t.ref)return iu(e,t,o)}return t.flags|=1,(e=Kd(i,r)).ref=t.ref,e.return=t,t.child=e}function Ac(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Ei(i,r)&&e.ref===t.ref){if(Mc=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,iu(e,t,o);0!=(131072&e.flags)&&(Mc=!0)}}return $c(e,t,n,r,o)}function jc(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$a(Ku,Gu),Gu|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$a(Ku,Gu),Gu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,$a(Ku,Gu),Gu|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,$a(Ku,Gu),Gu|=r;return qc(e,t,o,n),t.child}function Fc(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $c(e,t,n,r,o){var i=Ga(n)?Ua:Wa.current;return i=Va(t,i),jl(t,o),n=As(e,t,n,r,i,o),r=js(),null===e||Mc?(yl&&r&&ml(t),t.flags|=1,qc(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,iu(e,t,o))}function Bc(e,t,n,r,o){if(Ga(n)){var i=!0;Qa(t)}else i=!1;if(jl(t,o),null===t.stateNode)ou(e,t),os(t,n,r),as(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=Fl(c):c=Va(t,c=Ga(n)?Ua:Wa.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&is(t,a,r,c),Ul=!1;var p=t.memoizedState;a.state=p,Jl(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Ha.current||Ul?("function"==typeof u&&(ts(t,n,u,r),s=t.memoizedState),(l=Ul||rs(t,n,l,r,p,s,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Gl(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:_l(t.type,l),a.props=c,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Fl(s):s=Va(t,s=Ga(n)?Ua:Wa.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&is(t,a,r,s),Ul=!1,p=t.memoizedState,a.state=p,Jl(t,r,a,o);var h=t.memoizedState;l!==d||p!==h||Ha.current||Ul?("function"==typeof f&&(ts(t,n,f,r),h=t.memoizedState),(c=Ul||rs(t,n,c,r,p,h,s)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Wc(e,t,n,r,i,o)}function Wc(e,t,n,r,o,i){Fc(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Ja(t,n,!1),iu(e,t,i);r=t.stateNode,Nc.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ds(t,e.child,null,i),t.child=ds(t,null,l,i)):qc(e,t,l,i),t.memoizedState=r.state,o&&Ja(t,n,!0),t.child}function Hc(e){var t=e.stateNode;t.pendingContext?Za(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Za(0,t.context,!1),bs(e,t.containerInfo)}function Uc(e,t,n,r,o){return Ol(),Il(o),t.flags|=256,qc(e,t,n,r),t.child}var Vc,Gc,Kc,Zc,Xc={dehydrated:null,treeContext:null,retryLane:0};function Qc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Jc(e,t,n){var r,o=t.pendingProps,i=ws.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),$a(ws,1&i),null===e)return Cl(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Qd(l,o,0,null),e=Xd(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Qc(n),t.memoizedState=Xc,e):Yc(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,eu(e,t,a,r=kc(Error(yt(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Qd({mode:"visible",children:r.children},o,0,null),(i=Xd(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&ds(t,e.child,null,a),t.child.memoizedState=Qc(a),t.memoizedState=Xc,i);if(0==(1&t.mode))return eu(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,eu(e,t,a,r=kc(i=Error(yt(419)),r,void 0))}if(l=0!=(a&e.childLanes),Mc||l){if(null!==(r=Hu)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Hl(e,o),vd(r,e,o,-1))}return Td(),eu(e,t,a,r=kc(Error(yt(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Bd.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,bl=Ca(o.nextSibling),vl=t,yl=!0,xl=null,null!==e&&(sl[cl++]=dl,sl[cl++]=pl,sl[cl++]=ul,dl=e.id,pl=e.overflow,ul=t),t=Yc(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Kd(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?a=Kd(r,a):(a=Xd(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Qc(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Xc,o}return e=(a=e.child).sibling,o=Kd(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Yc(e,t){return(t=Qd({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function eu(e,t,n,r){return null!==r&&Il(r),ds(t,e.child,null,n),(e=Yc(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tu(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Al(e.return,t,n)}function nu(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function ru(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(qc(e,t,r.children,n),0!=(2&(r=ws.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&&tu(e,n,t);else if(19===e.tag)tu(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($a(ws,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===Es(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),nu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Es(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}nu(t,!0,n,null,i);break;case"together":nu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ou(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function iu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Qu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(yt(153));if(null!==t.child){for(n=Kd(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Kd(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function au(e,t){if(!yl)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 lu(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 su(e,t,n){var r=t.pendingProps;switch(gl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lu(t),null;case 1:case 17:return Ga(t.type)&&Ka(),lu(t),null;case 3:return r=t.stateNode,ys(),Fa(Ha),Fa(Wa),ks(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ll(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==xl&&(Sd(xl),xl=null))),Gc(e,t),lu(t),null;case 5:Ss(t);var o=vs(gs.current);if(n=t.type,null!==e&&null!=t.stateNode)Kc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(yt(166));return lu(t),null}if(e=vs(hs.current),Ll(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ra]=t,r[Oa]=i,e=0!=(1&t.mode),n){case"dialog":ea("cancel",r),ea("close",r);break;case"iframe":case"object":case"embed":ea("load",r);break;case"video":case"audio":for(o=0;o<Xi.length;o++)ea(Xi[o],r);break;case"source":ea("error",r);break;case"img":case"image":case"link":ea("error",r),ea("load",r);break;case"details":ea("toggle",r);break;case"input":dn(r,i),ea("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ea("invalid",r);break;case"textarea":yn(r,i),ea("invalid",r)}for(var a in Nn(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&fa(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&fa(r.textContent,l,e),o=["children",""+l]):St.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&ea("scroll",r)}switch(n){case"input":ln(r),hn(r,i,!0);break;case"textarea":ln(r),Sn(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=ha)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=wn(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ra]=t,e[Oa]=r,Vc(e,t,!1,!1),t.stateNode=e;e:{switch(a=Mn(n,r),n){case"dialog":ea("cancel",e),ea("close",e),o=r;break;case"iframe":case"object":case"embed":ea("load",e),o=r;break;case"video":case"audio":for(o=0;o<Xi.length;o++)ea(Xi[o],e);o=r;break;case"source":ea("error",e),o=r;break;case"img":case"image":case"link":ea("error",e),ea("load",e),o=r;break;case"details":ea("toggle",e),o=r;break;case"input":dn(e,r),o=un(e,r),ea("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Qt({},r,{value:void 0}),ea("invalid",e);break;case"textarea":yn(e,r),o=bn(e,r),ea("invalid",e)}for(i in Nn(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?_n(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&Ln(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&Rn(e,s):"number"==typeof s&&Rn(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(St.hasOwnProperty(i)?null!=s&&"onScroll"===i&&ea("scroll",e):null!=s&&Nt(e,i,s,a))}switch(n){case"input":ln(e),hn(e,r,!1);break;case"textarea":ln(e),Sn(e);break;case"option":null!=r.value&&e.setAttribute("value",""+on(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?vn(e,!!r.multiple,i,!1):null!=r.defaultValue&&vn(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ha)}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 lu(t),null;case 6:if(e&&null!=t.stateNode)Zc(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(yt(166));if(n=vs(gs.current),vs(hs.current),Ll(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ra]=t,(i=r.nodeValue!==n)&&null!==(e=vl))switch(e.tag){case 3:fa(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&fa(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Ra]=t,t.stateNode=r}return lu(t),null;case 13:if(Fa(ws),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(yl&&null!==bl&&0!=(1&t.mode)&&0==(128&t.flags))Rl(),Ol(),t.flags|=98560,i=!1;else if(i=Ll(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(yt(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(yt(317));i[Ra]=t}else Ol(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;lu(t),i=!1}else null!==xl&&(Sd(xl),xl=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ws.current)?0===Zu&&(Zu=3):Td())),null!==t.updateQueue&&(t.flags|=4),lu(t),null);case 4:return ys(),Gc(e,t),null===e&&ra(t.stateNode.containerInfo),lu(t),null;case 10:return Dl(t.type._context),lu(t),null;case 19:if(Fa(ws),null===(i=t.memoizedState))return lu(t),null;if(r=0!=(128&t.flags),null===(a=i.rendering))if(r)au(i,!1);else{if(0!==Zu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=Es(e))){for(t.flags|=128,au(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $a(ws,1&ws.current|2),t.child}e=e.sibling}null!==i.tail&&pr()>rd&&(t.flags|=128,r=!0,au(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Es(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),au(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!yl)return lu(t),null}else 2*pr()-i.renderingStartTime>rd&&1073741824!==n&&(t.flags|=128,r=!0,au(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pr(),t.sibling=null,n=ws.current,$a(ws,r?1&n|2:1&n),t):(lu(t),null);case 22:case 23:return Ld(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Gu)&&(lu(t),6&t.subtreeFlags&&(t.flags|=8192)):lu(t),null;case 24:case 25:return null}throw Error(yt(156,t.tag))}function cu(e,t){switch(gl(t),t.tag){case 1:return Ga(t.type)&&Ka(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ys(),Fa(Ha),Fa(Wa),ks(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ss(t),null;case 13:if(Fa(ws),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(yt(340));Ol()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Fa(ws),null;case 4:return ys(),null;case 10:return Dl(t.type._context),null;case 22:case 23:return Ld(),null;default:return null}}Vc=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}},Gc=function(){},Kc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,vs(hs.current);var i,a=null;switch(n){case"input":o=un(e,o),r=un(e,r),a=[];break;case"select":o=Qt({},o,{value:void 0}),r=Qt({},r,{value:void 0}),a=[];break;case"textarea":o=bn(e,o),r=bn(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ha)}for(c in Nn(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(St.hasOwnProperty(c)?a||(a=[]):(a=a||[]).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(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(St.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&ea("scroll",e),a||l===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Zc=function(e,t,n,r){n!==r&&(t.flags|=4)};var uu=!1,du=!1,pu="function"==typeof WeakSet?WeakSet:Set,fu=null;function hu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){jd(e,t,n)}else n.current=null}function mu(e,t,n){try{n()}catch(n){jd(e,t,n)}}var gu=!1;function vu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&mu(t,n,i)}o=o.next}while(o!==r)}}function bu(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 yu(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 xu(e){var t=e.alternate;null!==t&&(e.alternate=null,xu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Ra],delete t[Oa],delete t[Ta],delete t[_a],delete t[Pa])),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 Su(e){return 5===e.tag||3===e.tag||4===e.tag}function wu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Su(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 Eu(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=ha));else if(4!==r&&null!==(e=e.child))for(Eu(e,t,n),e=e.sibling;null!==e;)Eu(e,t,n),e=e.sibling}function Cu(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(Cu(e,t,n),e=e.sibling;null!==e;)Cu(e,t,n),e=e.sibling}var ku=null,Lu=!1;function Ru(e,t,n){for(n=n.child;null!==n;)Ou(e,t,n),n=n.sibling}function Ou(e,t,n){if(xr&&"function"==typeof xr.onCommitFiberUnmount)try{xr.onCommitFiberUnmount(yr,n)}catch(e){}switch(n.tag){case 5:du||hu(n,t);case 6:var r=ku,o=Lu;ku=null,Ru(e,t,n),Lu=o,null!==(ku=r)&&(Lu?(e=ku,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ku.removeChild(n.stateNode));break;case 18:null!==ku&&(Lu?(e=ku,n=n.stateNode,8===e.nodeType?Ea(e.parentNode,n):1===e.nodeType&&Ea(e,n),ro(e)):Ea(ku,n.stateNode));break;case 4:r=ku,o=Lu,ku=n.stateNode.containerInfo,Lu=!0,Ru(e,t,n),ku=r,Lu=o;break;case 0:case 11:case 14:case 15:if(!du&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&mu(n,t,a),o=o.next}while(o!==r)}Ru(e,t,n);break;case 1:if(!du&&(hu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){jd(n,t,e)}Ru(e,t,n);break;case 21:Ru(e,t,n);break;case 22:1&n.mode?(du=(r=du)||null!==n.memoizedState,Ru(e,t,n),du=r):Ru(e,t,n);break;default:Ru(e,t,n)}}function Iu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new pu),t.forEach((function(t){var r=Wd.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Tu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:ku=l.stateNode,Lu=!1;break e;case 3:case 4:ku=l.stateNode.containerInfo,Lu=!0;break e}l=l.return}if(null===ku)throw Error(yt(160));Ou(i,a,o),ku=null,Lu=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){jd(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(Tu(t,e),Pu(e),4&r){try{vu(3,e,e.return),bu(3,e)}catch(t){jd(e,e.return,t)}try{vu(5,e,e.return)}catch(t){jd(e,e.return,t)}}break;case 1:Tu(t,e),Pu(e),512&r&&null!==n&&hu(n,n.return);break;case 5:if(Tu(t,e),Pu(e),512&r&&null!==n&&hu(n,n.return),32&e.flags){var o=e.stateNode;try{Rn(o,"")}catch(t){jd(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&pn(o,i),Mn(l,a);var c=Mn(l,i);for(a=0;a<s.length;a+=2){var u=s[a],d=s[a+1];"style"===u?_n(o,d):"dangerouslySetInnerHTML"===u?Ln(o,d):"children"===u?Rn(o,d):Nt(o,u,d,c)}switch(l){case"input":fn(o,i);break;case"textarea":xn(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?vn(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?vn(o,!!i.multiple,i.defaultValue,!0):vn(o,!!i.multiple,i.multiple?[]:"",!1))}o[Oa]=i}catch(t){jd(e,e.return,t)}}break;case 6:if(Tu(t,e),Pu(e),4&r){if(null===e.stateNode)throw Error(yt(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){jd(e,e.return,t)}}break;case 3:if(Tu(t,e),Pu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{ro(t.containerInfo)}catch(t){jd(e,e.return,t)}break;case 4:default:Tu(t,e),Pu(e);break;case 13:Tu(t,e),Pu(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(nd=pr())),4&r&&Iu(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(du=(c=du)||u,Tu(t,e),du=c):Tu(t,e),Pu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(fu=e,u=e.child;null!==u;){for(d=fu=u;null!==fu;){switch(f=(p=fu).child,p.tag){case 0:case 11:case 14:case 15:vu(4,p,p.return);break;case 1:hu(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){jd(r,n,e)}}break;case 5:hu(p,p.return);break;case 22:if(null!==p.memoizedState){zu(d);continue}}null!==f?(f.return=p,fu=f):zu(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(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=Tn("display",a))}catch(t){jd(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){jd(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:Tu(t,e),Pu(e),4&r&&Iu(e);case 21:}}function Pu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Su(n)){var r=n;break e}n=n.return}throw Error(yt(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(Rn(o,""),r.flags&=-33),Cu(e,wu(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;Eu(e,wu(e),i);break;default:throw Error(yt(161))}}catch(t){jd(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Nu(e,t,n){fu=e,Mu(e)}function Mu(e,t,n){for(var r=0!=(1&e.mode);null!==fu;){var o=fu,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||uu;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||du;l=uu;var c=du;if(uu=a,(du=s)&&!c)for(fu=o;null!==fu;)s=(a=fu).child,22===a.tag&&null!==a.memoizedState?Du(o):null!==s?(s.return=a,fu=s):Du(o);for(;null!==i;)fu=i,Mu(i),i=i.sibling;fu=o,uu=l,du=c}qu(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,fu=i):qu(e)}}function qu(e){for(;null!==fu;){var t=fu;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:du||bu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!du)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:_l(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Yl(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Yl(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&ro(d)}}}break;default:throw Error(yt(163))}du||512&t.flags&&yu(t)}catch(e){jd(t,t.return,e)}}if(t===e){fu=null;break}if(null!==(n=t.sibling)){n.return=t.return,fu=n;break}fu=t.return}}function zu(e){for(;null!==fu;){var t=fu;if(t===e){fu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,fu=n;break}fu=t.return}}function Du(e){for(;null!==fu;){var t=fu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bu(4,t)}catch(e){jd(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){jd(t,o,e)}}var i=t.return;try{yu(t)}catch(e){jd(t,i,e)}break;case 5:var a=t.return;try{yu(t)}catch(e){jd(t,a,e)}}}catch(e){jd(t,t.return,e)}if(t===e){fu=null;break}var l=t.sibling;if(null!==l){l.return=t.return,fu=l;break}fu=t.return}}var Au,ju=Math.ceil,Fu=Mt.ReactCurrentDispatcher,$u=Mt.ReactCurrentOwner,Bu=Mt.ReactCurrentBatchConfig,Wu=0,Hu=null,Uu=null,Vu=0,Gu=0,Ku=ja(0),Zu=0,Xu=null,Qu=0,Ju=0,Yu=0,ed=null,td=null,nd=0,rd=1/0,od=null,id=!1,ad=null,ld=null,sd=!1,cd=null,ud=0,dd=0,pd=null,fd=-1,hd=0;function md(){return 0!=(6&Wu)?pr():-1!==fd?fd:fd=pr()}function gd(e){return 0==(1&e.mode)?1:0!=(2&Wu)&&0!==Vu?Vu&-Vu:null!==Tl.transition?(0===hd&&(hd=Tr()),hd):0!==(e=Mr)?e:e=void 0===(e=window.event)?16:po(e.type)}function vd(e,t,n,r){if(50<dd)throw dd=0,pd=null,Error(yt(185));Pr(e,n,r),0!=(2&Wu)&&e===Hu||(e===Hu&&(0==(2&Wu)&&(Ju|=n),4===Zu&&wd(e,Vu)),bd(e,r),1===n&&0===Wu&&0==(1&t.mode)&&(rd=pr()+500,el&&rl()))}function bd(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Sr(i),l=1<<a,s=o[a];-1===s?0!=(l&n)&&0==(l&r)||(o[a]=Or(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=Rr(e,e===Hu?Vu:0);if(0===r)null!==n&&cr(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&cr(n),1===t)0===e.tag?function(e){el=!0,nl(e)}(Ed.bind(null,e)):nl(Ed.bind(null,e)),Sa((function(){0==(6&Wu)&&rl()})),n=null;else{switch(qr(r)){case 1:n=hr;break;case 4:n=mr;break;case 16:default:n=gr;break;case 536870912:n=br}n=Hd(n,yd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yd(e,t){if(fd=-1,hd=0,0!=(6&Wu))throw Error(yt(327));var n=e.callbackNode;if(Dd()&&e.callbackNode!==n)return null;var r=Rr(e,e===Hu?Vu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=_d(e,r);else{t=r;var o=Wu;Wu|=2;var i=Id();for(Hu===e&&Vu===t||(od=null,rd=pr()+500,Rd(e,t));;)try{Nd();break}catch(t){Od(e,t)}zl(),Fu.current=i,Wu=o,null!==Uu?t=0:(Hu=null,Vu=0,t=Zu)}if(0!==t){if(2===t&&(0!==(o=Ir(e))&&(r=o,t=xd(e,o))),1===t)throw n=Xu,Rd(e,0),wd(e,r),bd(e,pr()),n;if(6===t)wd(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!wi(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=_d(e,r))&&(0!==(i=Ir(e))&&(r=i,t=xd(e,i))),1===t))throw n=Xu,Rd(e,0),wd(e,r),bd(e,pr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(yt(345));case 2:case 5:zd(e,td,od);break;case 3:if(wd(e,r),(130023424&r)===r&&10<(t=nd+500-pr())){if(0!==Rr(e,0))break;if(((o=e.suspendedLanes)&r)!==r){md(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ba(zd.bind(null,e,td,od),t);break}zd(e,td,od);break;case 4:if(wd(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Sr(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=pr()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ju(r/1960))-r)){e.timeoutHandle=ba(zd.bind(null,e,td,od),r);break}zd(e,td,od);break;default:throw Error(yt(329))}}}return bd(e,pr()),e.callbackNode===n?yd.bind(null,e):null}function xd(e,t){var n=ed;return e.current.memoizedState.isDehydrated&&(Rd(e,t).flags|=256),2!==(e=_d(e,t))&&(t=td,td=n,null!==t&&Sd(t)),e}function Sd(e){null===td?td=e:td.push.apply(td,e)}function wd(e,t){for(t&=~Yu,t&=~Ju,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Sr(t),r=1<<n;e[n]=-1,t&=~r}}function Ed(e){if(0!=(6&Wu))throw Error(yt(327));Dd();var t=Rr(e,0);if(0==(1&t))return bd(e,pr()),null;var n=_d(e,t);if(0!==e.tag&&2===n){var r=Ir(e);0!==r&&(t=r,n=xd(e,r))}if(1===n)throw n=Xu,Rd(e,0),wd(e,t),bd(e,pr()),n;if(6===n)throw Error(yt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zd(e,td,od),bd(e,pr()),null}function Cd(e,t){var n=Wu;Wu|=1;try{return e(t)}finally{0===(Wu=n)&&(rd=pr()+500,el&&rl())}}function kd(e){null!==cd&&0===cd.tag&&0==(6&Wu)&&Dd();var t=Wu;Wu|=1;var n=Bu.transition,r=Mr;try{if(Bu.transition=null,Mr=1,e)return e()}finally{Mr=r,Bu.transition=n,0==(6&(Wu=t))&&rl()}}function Ld(){Gu=Ku.current,Fa(Ku)}function Rd(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ya(n)),null!==Uu)for(n=Uu.return;null!==n;){var r=n;switch(gl(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ka();break;case 3:ys(),Fa(Ha),Fa(Wa),ks();break;case 5:Ss(r);break;case 4:ys();break;case 13:case 19:Fa(ws);break;case 10:Dl(r.type._context);break;case 22:case 23:Ld()}n=n.return}if(Hu=e,Uu=e=Kd(e.current,null),Vu=Gu=t,Zu=0,Xu=null,Yu=Ju=Qu=0,td=ed=null,null!==$l){for(t=0;t<$l.length;t++)if(null!==(r=(n=$l[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}$l=null}return e}function Od(e,t){for(;;){var n=Uu;try{if(zl(),Ls.current=xc,Ps){for(var r=Is.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Ps=!1}if(Os=0,_s=Ts=Is=null,Ns=!1,Ms=0,$u.current=null,null===n||null===n.return){Zu=1,Xu=t,Uu=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Vu,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(a);if(null!==f){f.flags&=-257,Pc(f,a,l,0,t),1&f.mode&&Tc(i,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)){Tc(i,c,t),Td();break e}s=Error(yt(426))}else if(yl&&1&l.mode){var g=_c(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Pc(g,a,l,0,t),Il(Cc(s,l));break e}}i=s=Cc(s,l),4!==Zu&&(Zu=2),null===ed?ed=[i]:ed.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ql(i,Oc(0,s,t));break e;case 1:l=s;var v=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===ld||!ld.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Ql(i,Ic(i,l,t));break e}}i=i.return}while(null!==i)}qd(n)}catch(e){t=e,Uu===n&&null!==n&&(Uu=n=n.return);continue}break}}function Id(){var e=Fu.current;return Fu.current=xc,null===e?xc:e}function Td(){0!==Zu&&3!==Zu&&2!==Zu||(Zu=4),null===Hu||0==(268435455&Qu)&&0==(268435455&Ju)||wd(Hu,Vu)}function _d(e,t){var n=Wu;Wu|=2;var r=Id();for(Hu===e&&Vu===t||(od=null,Rd(e,t));;)try{Pd();break}catch(t){Od(e,t)}if(zl(),Wu=n,Fu.current=r,null!==Uu)throw Error(yt(261));return Hu=null,Vu=0,Zu}function Pd(){for(;null!==Uu;)Md(Uu)}function Nd(){for(;null!==Uu&&!ur();)Md(Uu)}function Md(e){var t=Au(e.alternate,e,Gu);e.memoizedProps=e.pendingProps,null===t?qd(e):Uu=t,$u.current=null}function qd(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=su(n,t,Gu)))return void(Uu=n)}else{if(null!==(n=cu(n,t)))return n.flags&=32767,void(Uu=n);if(null===e)return Zu=6,void(Uu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Uu=t);Uu=t=e}while(null!==t);0===Zu&&(Zu=5)}function zd(e,t,n){var r=Mr,o=Bu.transition;try{Bu.transition=null,Mr=1,function(e,t,n,r){do{Dd()}while(null!==cd);if(0!=(6&Wu))throw Error(yt(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(yt(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Sr(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Hu&&(Uu=Hu=null,Vu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||sd||(sd=!0,Hd(gr,(function(){return Dd(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Bu.transition,Bu.transition=null;var a=Mr;Mr=1;var l=Wu;Wu|=4,$u.current=null,function(e,t){if(ma=io,Oi(e=Ri())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,s=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++c===o&&(l=a),p===i&&++u===r&&(s=a),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ga={focusedElem:e,selectionRange:n},io=!1,fu=t;null!==fu;)if(e=(t=fu).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,fu=e;else for(;null!==fu;){t=fu;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:_l(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(yt(163))}}catch(e){jd(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,fu=e;break}fu=t.return}h=gu,gu=!1}(e,n),_u(n,e),Ii(ga),io=!!ma,ga=ma=null,e.current=n,Nu(n),dr(),Wu=l,Mr=a,Bu.transition=i}else e.current=n;if(sd&&(sd=!1,cd=e,ud=o),i=e.pendingLanes,0===i&&(ld=null),function(e){if(xr&&"function"==typeof xr.onCommitFiberRoot)try{xr.onCommitFiberRoot(yr,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),bd(e,pr()),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(id)throw id=!1,e=ad,ad=null,e;0!=(1&ud)&&0!==e.tag&&Dd(),i=e.pendingLanes,0!=(1&i)?e===pd?dd++:(dd=0,pd=e):dd=0,rl()}(e,t,n,r)}finally{Bu.transition=o,Mr=r}return null}function Dd(){if(null!==cd){var e=qr(ud),t=Bu.transition,n=Mr;try{if(Bu.transition=null,Mr=16>e?16:e,null===cd)var r=!1;else{if(e=cd,cd=null,ud=0,0!=(6&Wu))throw Error(yt(331));var o=Wu;for(Wu|=4,fu=e.current;null!==fu;){var i=fu,a=i.child;if(0!=(16&fu.flags)){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var c=l[s];for(fu=c;null!==fu;){var u=fu;switch(u.tag){case 0:case 11:case 15:vu(8,u,i)}var d=u.child;if(null!==d)d.return=u,fu=d;else for(;null!==fu;){var p=(u=fu).sibling,f=u.return;if(xu(u),u===c){fu=null;break}if(null!==p){p.return=f,fu=p;break}fu=f}}}var h=i.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)}}fu=i}}if(0!=(2064&i.subtreeFlags)&&null!==a)a.return=i,fu=a;else e:for(;null!==fu;){if(0!=(2048&(i=fu).flags))switch(i.tag){case 0:case 11:case 15:vu(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,fu=v;break e}fu=i.return}}var b=e.current;for(fu=b;null!==fu;){var y=(a=fu).child;if(0!=(2064&a.subtreeFlags)&&null!==y)y.return=a,fu=y;else e:for(a=b;null!==fu;){if(0!=(2048&(l=fu).flags))try{switch(l.tag){case 0:case 11:case 15:bu(9,l)}}catch(e){jd(l,l.return,e)}if(l===a){fu=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,fu=x;break e}fu=l.return}}if(Wu=o,rl(),xr&&"function"==typeof xr.onPostCommitFiberRoot)try{xr.onPostCommitFiberRoot(yr,e)}catch(e){}r=!0}return r}finally{Mr=n,Bu.transition=t}}return!1}function Ad(e,t,n){e=Zl(e,t=Oc(0,t=Cc(n,t),1),1),t=md(),null!==e&&(Pr(e,1,t),bd(e,t))}function jd(e,t,n){if(3===e.tag)Ad(e,e,n);else for(;null!==t;){if(3===t.tag){Ad(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ld||!ld.has(r))){t=Zl(t,e=Ic(t,e=Cc(n,e),1),1),e=md(),null!==t&&(Pr(t,1,e),bd(t,e));break}}t=t.return}}function Fd(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=md(),e.pingedLanes|=e.suspendedLanes&n,Hu===e&&(Vu&n)===n&&(4===Zu||3===Zu&&(130023424&Vu)===Vu&&500>pr()-nd?Rd(e,0):Yu|=n),bd(e,t)}function $d(e,t){0===t&&(0==(1&e.mode)?t=1:(t=kr,0==(130023424&(kr<<=1))&&(kr=4194304)));var n=md();null!==(e=Hl(e,t))&&(Pr(e,t,n),bd(e,n))}function Bd(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),$d(e,n)}function Wd(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(yt(314))}null!==r&&r.delete(t),$d(e,n)}function Hd(e,t){return sr(e,t)}function Ud(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 Vd(e,t,n,r){return new Ud(e,t,n,r)}function Gd(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Kd(e,t){var n=e.alternate;return null===n?((n=Vd(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 Zd(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Gd(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Dt:return Xd(n.children,o,i,t);case At:a=8,o|=8;break;case jt:return(e=Vd(12,n,t,2|o)).elementType=jt,e.lanes=i,e;case Wt:return(e=Vd(13,n,t,o)).elementType=Wt,e.lanes=i,e;case Ht:return(e=Vd(19,n,t,o)).elementType=Ht,e.lanes=i,e;case Gt:return Qd(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ft:a=10;break e;case $t:a=9;break e;case Bt:a=11;break e;case Ut:a=14;break e;case Vt:a=16,r=null;break e}throw Error(yt(130,null==e?e:typeof e,""))}return(t=Vd(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Xd(e,t,n,r){return(e=Vd(7,e,r,t)).lanes=n,e}function Qd(e,t,n,r){return(e=Vd(22,e,r,t)).elementType=Gt,e.lanes=n,e.stateNode={isHidden:!1},e}function Jd(e,t,n){return(e=Vd(6,e,null,t)).lanes=n,e}function Yd(e,t,n){return(t=Vd(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ep(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=_r(0),this.expirationTimes=_r(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_r(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function tp(e,t,n,r,o,i,a,l,s){return e=new ep(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Vd(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vl(i),e}function np(e){if(!e)return Ba;e:{if(rr(e=e._reactInternals)!==e||1!==e.tag)throw Error(yt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ga(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(yt(171))}if(1===e.tag){var n=e.type;if(Ga(n))return Xa(e,n,t)}return t}function rp(e,t,n,r,o,i,a,l,s){return(e=tp(n,r,!0,e,0,i,0,l,s)).context=np(null),n=e.current,(i=Kl(r=md(),o=gd(n))).callback=null!=t?t:null,Zl(n,i,o),e.current.lanes=o,Pr(e,o,r),bd(e,r),e}function op(e,t,n,r){var o=t.current,i=md(),a=gd(o);return n=np(n),null===t.context?t.context=n:t.pendingContext=n,(t=Kl(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Zl(o,t,a))&&(vd(e,o,a,i),Xl(e,o,a)),a}function ip(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ap(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function lp(e,t){ap(e,t),(e=e.alternate)&&ap(e,t)}Au=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ha.current)Mc=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Mc=!1,function(e,t,n){switch(t.tag){case 3:Hc(t),Ol();break;case 5:xs(t);break;case 1:Ga(t.type)&&Qa(t);break;case 4:bs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;$a(Pl,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?($a(ws,1&ws.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Jc(e,t,n):($a(ws,1&ws.current),null!==(e=iu(e,t,n))?e.sibling:null);$a(ws,1&ws.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return ru(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),$a(ws,ws.current),r)break;return null;case 22:case 23:return t.lanes=0,jc(e,t,n)}return iu(e,t,n)}(e,t,n);Mc=0!=(131072&e.flags)}else Mc=!1,yl&&0!=(1048576&t.flags)&&hl(t,ll,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ou(e,t),e=t.pendingProps;var o=Va(t,Wa.current);jl(t,n),o=As(null,t,r,e,o,n);var i=js();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,Ga(r)?(i=!0,Qa(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Vl(t),o.updater=ns,t.stateNode=o,o._reactInternals=t,as(t,r,e,n),t=Wc(null,t,r,!0,i,n)):(t.tag=0,yl&&i&&ml(t),qc(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ou(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Gd(e)?1:0;if(null!=e){if((e=e.$$typeof)===Bt)return 11;if(e===Ut)return 14}return 2}(r),e=_l(r,e),o){case 0:t=$c(null,t,r,e,n);break e;case 1:t=Bc(null,t,r,e,n);break e;case 11:t=zc(null,t,r,e,n);break e;case 14:t=Dc(null,t,r,_l(r.type,e),n);break e}throw Error(yt(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,$c(e,t,r,o=t.elementType===r?o:_l(r,o),n);case 1:return r=t.type,o=t.pendingProps,Bc(e,t,r,o=t.elementType===r?o:_l(r,o),n);case 3:e:{if(Hc(t),null===e)throw Error(yt(387));r=t.pendingProps,o=(i=t.memoizedState).element,Gl(e,t),Jl(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Uc(e,t,r,n,o=Cc(Error(yt(423)),t));break e}if(r!==o){t=Uc(e,t,r,n,o=Cc(Error(yt(424)),t));break e}for(bl=Ca(t.stateNode.containerInfo.firstChild),vl=t,yl=!0,xl=null,n=ps(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Ol(),r===o){t=iu(e,t,n);break e}qc(e,t,r,n)}t=t.child}return t;case 5:return xs(t),null===e&&Cl(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,va(r,o)?a=null:null!==i&&va(r,i)&&(t.flags|=32),Fc(e,t),qc(e,t,a,n),t.child;case 6:return null===e&&Cl(t),null;case 13:return Jc(e,t,n);case 4:return bs(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ds(t,null,r,n):qc(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,zc(e,t,r,o=t.elementType===r?o:_l(r,o),n);case 7:return qc(e,t,t.pendingProps,n),t.child;case 8:case 12:return qc(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,$a(Pl,r._currentValue),r._currentValue=a,null!==i)if(wi(i.value,a)){if(i.children===o.children&&!Ha.current){t=iu(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=Kl(-1,n&-n)).tag=2;var c=i.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}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Al(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(yt(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Al(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}qc(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jl(t,n),r=r(o=Fl(o)),t.flags|=1,qc(e,t,r,n),t.child;case 14:return o=_l(r=t.type,t.pendingProps),Dc(e,t,r,o=_l(r.type,o),n);case 15:return Ac(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_l(r,o),ou(e,t),t.tag=1,Ga(r)?(e=!0,Qa(t)):e=!1,jl(t,n),os(t,r,o),as(t,r,o,n),Wc(null,t,r,!0,e,n);case 19:return ru(e,t,n);case 22:return jc(e,t,n)}throw Error(yt(156,t.tag))};var sp="function"==typeof reportError?reportError:function(e){console.error(e)};function cp(e){this._internalRoot=e}function up(e){this._internalRoot=e}function dp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function pp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function fp(){}function hp(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=ip(a);l.call(e)}}op(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=ip(a);i.call(e)}}var a=rp(t,r,e,0,null,!1,0,"",fp);return e._reactRootContainer=a,e[Ia]=a.current,ra(8===e.nodeType?e.parentNode:e),kd(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=ip(s);l.call(e)}}var s=tp(e,0,!1,null,0,!1,0,"",fp);return e._reactRootContainer=s,e[Ia]=s.current,ra(8===e.nodeType?e.parentNode:e),kd((function(){op(t,s,n,r)})),s}(n,t,e,o,r);return ip(a)}up.prototype.render=cp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(yt(409));op(e,t,null,null)},up.prototype.unmount=cp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;kd((function(){op(null,e,null,null)})),t[Ia]=null}},up.prototype.unstable_scheduleHydration=function(e){if(e){var t=jr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kr.length&&0!==t&&t<Kr[n].priority;n++);Kr.splice(n,0,e),0===n&&Jr(e)}},zr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Lr(t.pendingLanes);0!==n&&(Nr(t,1|n),bd(t,pr()),0==(6&Wu)&&(rd=pr()+500,rl()))}break;case 13:kd((function(){var t=Hl(e,1);if(null!==t){var n=md();vd(t,e,1,n)}})),lp(e,1)}},Dr=function(e){if(13===e.tag){var t=Hl(e,134217728);if(null!==t)vd(t,e,134217728,md());lp(e,134217728)}},Ar=function(e){if(13===e.tag){var t=gd(e),n=Hl(e,t);if(null!==n)vd(n,e,t,md());lp(e,t)}},jr=function(){return Mr},Fr=function(e,t){var n=Mr;try{return Mr=e,t()}finally{Mr=n}},Dn=function(e,t,n){switch(t){case"input":if(fn(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=za(r);if(!o)throw Error(yt(90));sn(r),fn(r,o)}}}break;case"textarea":xn(e,n);break;case"select":null!=(t=n.value)&&vn(e,!!n.multiple,t,!1)}},Wn=Cd,Hn=kd;var mp={usingClientEntryPoint:!1,Events:[Ma,qa,za,$n,Bn,Cd]},gp={findFiberByHostInstance:Na,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vp={bundleType:gp.bundleType,version:gp.version,rendererPackageName:gp.rendererPackageName,rendererConfig:gp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Mt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ar(e))?null:e.stateNode},findFiberByHostInstance:gp.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bp.isDisabled&&bp.supportsFiber)try{yr=bp.inject(vp),xr=bp}catch(kn){}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mp,ft.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!dp(t))throw Error(yt(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:zt,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},ft.createRoot=function(e,t){if(!dp(e))throw Error(yt(299));var n=!1,r="",o=sp;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=tp(e,1,!1,null,0,n,0,r,o),e[Ia]=t.current,ra(8===e.nodeType?e.parentNode:e),new cp(t)},ft.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(yt(188));throw e=Object.keys(e).join(","),Error(yt(268,e))}return e=null===(e=ar(t))?null:e.stateNode},ft.flushSync=function(e){return kd(e)},ft.hydrate=function(e,t,n){if(!pp(t))throw Error(yt(200));return hp(null,e,t,!0,n)},ft.hydrateRoot=function(e,t,n){if(!dp(e))throw Error(yt(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=sp;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=rp(t,null,e,1,null!=n?n:null,o,0,i,a),e[Ia]=t.current,ra(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 up(t)},ft.render=function(e,t,n){if(!pp(t))throw Error(yt(200));return hp(null,e,t,!1,n)},ft.unmountComponentAtNode=function(e){if(!pp(e))throw Error(yt(40));return!!e._reactRootContainer&&(kd((function(){hp(null,null,e,!1,(function(){e._reactRootContainer=null,e[Ia]=null}))})),!0)},ft.unstable_batchedUpdates=Cd,ft.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pp(n))throw Error(yt(200));if(null==e||void 0===e._reactInternals)throw Error(yt(38));return hp(e,t,n,!1,r)},ft.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),pt.exports=ft;var yp=pt.exports,xp=n(yp),Sp=yp;function wp(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Ep(e){if(!wp(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Ep(e[n])})),t}function Cp(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return wp(e)&&wp(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(wp(t[o])&&o in e&&wp(e[o])?r[o]=Cp(e[o],t[o],n):n.clone?r[o]=wp(t[o])?Ep(t[o]):t[o]:r[o]=t[o])})),r}function kp(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."}dt.createRoot=Sp.createRoot,dt.hydrateRoot=Sp.hydrateRoot;var Lp,Rp={exports:{}},Op={},Ip=Symbol.for("react.element"),Tp=Symbol.for("react.portal"),_p=Symbol.for("react.fragment"),Pp=Symbol.for("react.strict_mode"),Np=Symbol.for("react.profiler"),Mp=Symbol.for("react.provider"),qp=Symbol.for("react.context"),zp=Symbol.for("react.server_context"),Dp=Symbol.for("react.forward_ref"),Ap=Symbol.for("react.suspense"),jp=Symbol.for("react.suspense_list"),Fp=Symbol.for("react.memo"),$p=Symbol.for("react.lazy"),Bp=Symbol.for("react.offscreen");function Wp(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ip:switch(e=e.type){case _p:case Np:case Pp:case Ap:case jp:return e;default:switch(e=e&&e.$$typeof){case zp:case qp:case Dp:case $p:case Fp:case Mp:return e;default:return t}}case Tp:return t}}}Lp=Symbol.for("react.module.reference"),Op.ContextConsumer=qp,Op.ContextProvider=Mp,Op.Element=Ip,Op.ForwardRef=Dp,Op.Fragment=_p,Op.Lazy=$p,Op.Memo=Fp,Op.Portal=Tp,Op.Profiler=Np,Op.StrictMode=Pp,Op.Suspense=Ap,Op.SuspenseList=jp,Op.isAsyncMode=function(){return!1},Op.isConcurrentMode=function(){return!1},Op.isContextConsumer=function(e){return Wp(e)===qp},Op.isContextProvider=function(e){return Wp(e)===Mp},Op.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ip},Op.isForwardRef=function(e){return Wp(e)===Dp},Op.isFragment=function(e){return Wp(e)===_p},Op.isLazy=function(e){return Wp(e)===$p},Op.isMemo=function(e){return Wp(e)===Fp},Op.isPortal=function(e){return Wp(e)===Tp},Op.isProfiler=function(e){return Wp(e)===Np},Op.isStrictMode=function(e){return Wp(e)===Pp},Op.isSuspense=function(e){return Wp(e)===Ap},Op.isSuspenseList=function(e){return Wp(e)===jp},Op.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===_p||e===Np||e===Pp||e===Ap||e===jp||e===Bp||"object"==typeof e&&null!==e&&(e.$$typeof===$p||e.$$typeof===Fp||e.$$typeof===Mp||e.$$typeof===qp||e.$$typeof===Dp||e.$$typeof===Lp||void 0!==e.getModuleId)},Op.typeOf=Wp,Rp.exports=Op;var Hp=Rp.exports;function Up(e){if("string"!=typeof e)throw new Error(kp(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Vp(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Gp(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Kp(e,t){return H.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function Zp(e){return e&&e.ownerDocument||document}function Xp(e){return Zp(e).defaultView||window}function Qp(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Jp="undefined"!=typeof window?H.useLayoutEffect:H.useEffect;let Yp=0;const ef=V["useId".toString()];function tf(e){if(void 0!==ef){const t=ef();return null!=e?e:t}return function(e){const[t,n]=H.useState(e),r=e||t;return H.useEffect((()=>{null==t&&(Yp+=1,n(`mui-${Yp}`))}),[t]),r}(e)}function nf({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=H.useRef(void 0!==e),[i,a]=H.useState(t);return[o?e:i,H.useCallback((e=>{o||a(e)}),[])]}function rf(e){const t=H.useRef(e);return Jp((()=>{t.current=e})),H.useCallback(((...e)=>(0,t.current)(...e)),[])}function of(...e){return H.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Qp(e,t)}))}),e)}let af,lf=!0,sf=!1;const cf={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 uf(e){e.metaKey||e.altKey||e.ctrlKey||(lf=!0)}function df(){lf=!1}function pf(){"hidden"===this.visibilityState&&sf&&(lf=!0)}function ff(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return lf||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!cf[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function hf(){const e=H.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",uf,!0),t.addEventListener("mousedown",df,!0),t.addEventListener("pointerdown",df,!0),t.addEventListener("touchstart",df,!0),t.addEventListener("visibilitychange",pf,!0))}),[]),t=H.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ff(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(sf=!0,window.clearTimeout(af),af=window.setTimeout((()=>{sf=!1}),100),t.current=!1,!0)},ref:e}}function mf(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var gf=e=>{const t=H.useRef({});return H.useEffect((()=>{t.current=e})),t.current};function vf(e,t){const n={...t};return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]={...e[r],...n[r]};else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]={...i},Object.keys(o).forEach((e=>{n[r][e]=vf(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function bf(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const yf=e=>e;var xf=(()=>{let e=yf;return{configure(t){e=t},generate:t=>e(t),reset(){e=yf}}})();const Sf={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function wf(e,t,n="Mui"){const r=Sf[t];return r?`${n}-${r}`:`${xf.generate(e)}-${t}`}function Ef(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=wf(e,t,n)})),r}var Cf="$$material";function kf(){return kf=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},kf.apply(this,arguments)}function Lf(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Rf=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Of=Lf((function(e){return Rf.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var If=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}(),Tf="-ms-",_f="-moz-",Pf="-webkit-",Nf="comm",Mf="rule",qf="decl",zf="@keyframes",Df=Math.abs,Af=String.fromCharCode,jf=Object.assign;function Ff(e){return e.trim()}function $f(e,t,n){return e.replace(t,n)}function Bf(e,t){return e.indexOf(t)}function Wf(e,t){return 0|e.charCodeAt(t)}function Hf(e,t,n){return e.slice(t,n)}function Uf(e){return e.length}function Vf(e){return e.length}function Gf(e,t){return t.push(e),e}var Kf=1,Zf=1,Xf=0,Qf=0,Jf=0,Yf="";function eh(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Kf,column:Zf,length:a,return:""}}function th(e,t){return jf(eh("",null,null,"",null,null,0),e,{length:-e.length},t)}function nh(){return Jf=Qf<Xf?Wf(Yf,Qf++):0,Zf++,10===Jf&&(Zf=1,Kf++),Jf}function rh(){return Wf(Yf,Qf)}function oh(){return Qf}function ih(e,t){return Hf(Yf,e,t)}function ah(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 lh(e){return Kf=Zf=1,Xf=Uf(Yf=e),Qf=0,[]}function sh(e){return Yf="",e}function ch(e){return Ff(ih(Qf-1,ph(91===e?e+2:40===e?e+1:e)))}function uh(e){for(;(Jf=rh())&&Jf<33;)nh();return ah(e)>2||ah(Jf)>3?"":" "}function dh(e,t){for(;--t&&nh()&&!(Jf<48||Jf>102||Jf>57&&Jf<65||Jf>70&&Jf<97););return ih(e,oh()+(t<6&&32==rh()&&32==nh()))}function ph(e){for(;nh();)switch(Jf){case e:return Qf;case 34:case 39:34!==e&&39!==e&&ph(Jf);break;case 40:41===e&&ph(e);break;case 92:nh()}return Qf}function fh(e,t){for(;nh()&&e+Jf!==57&&(e+Jf!==84||47!==rh()););return"/*"+ih(t,Qf-1)+"*"+Af(47===e?e:nh())}function hh(e){for(;!ah(rh());)nh();return ih(e,Qf)}function mh(e){return sh(gh("",null,null,null,[""],e=lh(e),0,[0],e))}function gh(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=i,w=r,E=y;g;)switch(h=b,b=nh()){case 40:if(108!=h&&58==Wf(E,d-1)){-1!=Bf(E+=$f(ch(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=ch(b);break;case 9:case 10:case 13:case 32:E+=uh(h);break;case 92:E+=dh(oh()-1,7);continue;case 47:switch(rh()){case 42:case 47:Gf(bh(fh(nh(),oh()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Uf(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=$f(E,/\f/g,"")),f>0&&Uf(E)-d&&Gf(f>32?yh(E+";",r,n,d-1):yh($f(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Gf(w=vh(E,t,n,c,u,o,l,y,x=[],S=[],d),i),123===b)if(0===u)gh(E,t,w,w,x,i,d,l,S);else switch(99===p&&110===Wf(E,3)?100:p){case 100:case 108:case 109:case 115:gh(e,w,w,r&&Gf(vh(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:gh(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=v=1,y=E="",d=a;break;case 58:d=1+Uf(E),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==(Jf=Qf>0?Wf(Yf,--Qf):0,Zf--,10===Jf&&(Zf=1,Kf--),Jf))continue;switch(E+=Af(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Uf(E)-1)*v,v=1;break;case 64:45===rh()&&(E+=ch(nh())),p=rh(),u=d=Uf(y=E+=hh(oh())),b++;break;case 45:45===h&&2==Uf(E)&&(m=0)}}return i}function vh(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,p=0===o?i:[""],f=Vf(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Hf(e,d+1,d=Df(m=a[h])),y=e;v<f;++v)(y=Ff(m>0?p[v]+" "+b:$f(b,/&\f/g,p[v])))&&(s[g++]=y);return eh(e,t,n,0===o?Mf:l,s,c,u)}function bh(e,t,n){return eh(e,t,n,Nf,Af(Jf),Hf(e,2,-2),0)}function yh(e,t,n,r){return eh(e,t,n,qf,Hf(e,0,r),Hf(e,r+1,-1),r)}function xh(e,t){for(var n="",r=Vf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Sh(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case qf:return e.return=e.return||e.value;case Nf:return"";case zf:return e.return=e.value+"{"+xh(e.children,r)+"}";case Mf:e.value=e.props.join(",")}return Uf(n=xh(e.children,r))?e.return=e.value+"{"+n+"}":""}function wh(e){var t=Vf(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}var Eh=function(e,t,n){for(var r=0,o=0;r=o,o=rh(),38===r&&12===o&&(t[n]=1),!ah(o);)nh();return ih(e,Qf)},Ch=function(e,t){return sh(function(e,t){var n=-1,r=44;do{switch(ah(r)){case 0:38===r&&12===rh()&&(t[n]=1),e[n]+=Eh(Qf-1,t,n);break;case 2:e[n]+=ch(r);break;case 4:if(44===r){e[++n]=58===rh()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Af(r)}}while(r=nh());return e}(lh(e),t))},kh=new WeakMap,Lh=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)||kh.get(n))&&!r){kh.set(e,!0);for(var o=[],i=Ch(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[c]):a[c]+" "+i[l]}}},Rh=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Oh(e,t){switch(function(e,t){return 45^Wf(e,0)?(((t<<2^Wf(e,0))<<2^Wf(e,1))<<2^Wf(e,2))<<2^Wf(e,3):0}(e,t)){case 5103:return Pf+"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 Pf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pf+e+_f+e+Tf+e+e;case 6828:case 4268:return Pf+e+Tf+e+e;case 6165:return Pf+e+Tf+"flex-"+e+e;case 5187:return Pf+e+$f(e,/(\w+).+(:[^]+)/,Pf+"box-$1$2"+Tf+"flex-$1$2")+e;case 5443:return Pf+e+Tf+"flex-item-"+$f(e,/flex-|-self/,"")+e;case 4675:return Pf+e+Tf+"flex-line-pack"+$f(e,/align-content|flex-|-self/,"")+e;case 5548:return Pf+e+Tf+$f(e,"shrink","negative")+e;case 5292:return Pf+e+Tf+$f(e,"basis","preferred-size")+e;case 6060:return Pf+"box-"+$f(e,"-grow","")+Pf+e+Tf+$f(e,"grow","positive")+e;case 4554:return Pf+$f(e,/([^-])(transform)/g,"$1"+Pf+"$2")+e;case 6187:return $f($f($f(e,/(zoom-|grab)/,Pf+"$1"),/(image-set)/,Pf+"$1"),e,"")+e;case 5495:case 3959:return $f(e,/(image-set\([^]*)/,Pf+"$1$`$1");case 4968:return $f($f(e,/(.+:)(flex-)?(.*)/,Pf+"box-pack:$3"+Tf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pf+e+e;case 4095:case 3583:case 4068:case 2532:return $f(e,/(.+)-inline(.+)/,Pf+"$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(Uf(e)-1-t>6)switch(Wf(e,t+1)){case 109:if(45!==Wf(e,t+4))break;case 102:return $f(e,/(.+:)(.+)-([^]+)/,"$1"+Pf+"$2-$3$1"+_f+(108==Wf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Bf(e,"stretch")?Oh($f(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Wf(e,t+1))break;case 6444:switch(Wf(e,Uf(e)-3-(~Bf(e,"!important")&&10))){case 107:return $f(e,":",":"+Pf)+e;case 101:return $f(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Pf+(45===Wf(e,14)?"inline-":"")+"box$3$1"+Pf+"$2$3$1"+Tf+"$2box$3")+e}break;case 5936:switch(Wf(e,t+11)){case 114:return Pf+e+Tf+$f(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pf+e+Tf+$f(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pf+e+Tf+$f(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Pf+e+Tf+e+e}return e}var Ih="undefined"!=typeof document,Th=Ih?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 Lf((function(){var e={};return function(t){return e[t]}}))})),_h=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qf:e.return=Oh(e.value,e.length);break;case zf:return xh([th(e,{value:$f(e.value,"@","@"+Pf)})],r);case Mf:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xh([th(e,{props:[$f(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return xh([th(e,{props:[$f(t,/:(plac\w+)/,":"+Pf+"input-$1")]}),th(e,{props:[$f(t,/:(plac\w+)/,":-moz-$1")]}),th(e,{props:[$f(t,/:(plac\w+)/,Tf+"input-$1")]})],r)}return""}))}}],Ph=function(e){var t=e.key;if(Ih&&"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,i=e.stylisPlugins||_h,a={},l=[];Ih&&(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++)a[t[n]]=!0;l.push(e)})));var s,c=[Lh,Rh];if(Ih){var u,d=[Sh,(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=wh(c.concat(i,d));o=function(e,t,n,r){u=n,function(e){xh(mh(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[Sh],h=wh(c.concat(i,f)),m=Th(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return xh(mh(e),h)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),i):r?void(v.inserted[o]=i):i}}var v={key:t,sheet:new If({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return v.sheet.hydrate(l),v},Nh=Hp,Mh={};Mh[Nh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Mh[Nh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var qh="undefined"!=typeof document;var zh=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===qh&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Dh=function(e,t,n){zh(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);qh||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!qh&&0!==o.length)return o}};var Ah={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},jh=/[A-Z]|^ms/g,Fh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$h=function(e){return 45===e.charCodeAt(1)},Bh=function(e){return null!=e&&"boolean"!=typeof e},Wh=Lf((function(e){return $h(e)?e:e.replace(jh,"-$&").toLowerCase()})),Hh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Fh,(function(e,t,n){return Vh={name:t,styles:n,next:Vh},t}))}return 1===Ah[e]||$h(e)||"number"!=typeof t||0===t?t:t+"px"};function Uh(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Vh={name:n.name,styles:n.styles,next:Vh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Vh={name:r.name,styles:r.styles,next:Vh},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Uh(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Bh(a)&&(r+=Wh(i)+":"+Hh(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Uh(e,t,a);switch(i){case"animation":case"animationName":r+=Wh(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)Bh(a[s])&&(r+=Wh(i)+":"+Hh(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Vh,i=n(e);return Vh=o,Uh(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Vh,Gh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Kh=function(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="";Vh=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Uh(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Uh(n,t,e[a]),r&&(o+=i[a]);Gh.lastIndex=0;for(var l,s="";null!==(l=Gh.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:Vh}},Zh="undefined"!=typeof document,Xh=function(e){return e()},Qh=!!V.useInsertionEffect&&V.useInsertionEffect,Jh=Zh&&Qh||Xh,Yh=Qh||H.useLayoutEffect,em="undefined"!=typeof document,tm=H.createContext("undefined"!=typeof HTMLElement?Ph({key:"css"}):null),nm=tm.Provider,rm=function(e){return H.forwardRef((function(t,n){var r=H.useContext(tm);return e(t,r,n)}))};em||(rm=function(e){return function(t){var n=H.useContext(tm);return null===n?(n=Ph({key:"css"}),H.createElement(tm.Provider,{value:n},e(t,n))):e(t,n)}});var om=H.createContext({}),im=rm((function(e,t){var n=e.styles,r=Kh([n],void 0,H.useContext(om));if(!em){for(var o,i=r.name,a=r.styles,l=r.next;void 0!==l;)i+=" "+l.name,a+=l.styles,l=l.next;var s=!0===t.compat,c=t.insert("",{name:i,styles:a},t.sheet,s);return s?null:H.createElement("style",((o={})["data-emotion"]=t.key+"-global "+i,o.dangerouslySetInnerHTML={__html:c},o.nonce=t.sheet.nonce,o))}var u=H.useRef();return Yh((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),u.current=[n,o],function(){n.flush()}}),[t]),Yh((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Dh(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function am(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Kh(t)}var lm=function(){var e=am.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_"}}},sm=Of,cm=function(e){return"theme"!==e},um=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?sm:cm},dm=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},pm="undefined"!=typeof document,fm=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;zh(t,n,r);var o=Jh((function(){return Dh(t,n,r)}));if(!pm&&void 0!==o){for(var i,a=n.name,l=n.next;void 0!==l;)a+=" "+l.name,l=l.next;return H.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},hm=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=dm(t,n,i),s=l||um(a),c=!s("as");return function(){var u=arguments,d=i&&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=rm((function(e,t,n){var r,i,u,p,f=c&&e.as||a,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=H.useContext(om)}"string"==typeof e.className?(r=t.registered,i=m,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==r[e]?i.push(r[e]+";"):p+=e+" "})),h=p):null!=e.className&&(h=e.className+" ");var b=Kh(d.concat(m),t.registered,g);h+=t.key+"-"+b.name,void 0!==o&&(h+=" "+o);var y=c&&void 0===l?um(f):s,x={};for(var S in e)c&&"as"===S||y(S)&&(x[S]=e[S]);return x.className=h,x.ref=n,H.createElement(H.Fragment,null,H.createElement(fm,{cache:t,serialized:b,isStringTag:"string"==typeof f}),H.createElement(f,x))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,kf({},n,r,{shouldForwardProp:dm(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){hm[e]=hm(e)}));var mm=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}(),gm="-ms-",vm="-moz-",bm="-webkit-",ym="comm",xm="rule",Sm="decl",wm="@keyframes",Em=Math.abs,Cm=String.fromCharCode,km=Object.assign;function Lm(e){return e.trim()}function Rm(e,t,n){return e.replace(t,n)}function Om(e,t){return e.indexOf(t)}function Im(e,t){return 0|e.charCodeAt(t)}function Tm(e,t,n){return e.slice(t,n)}function _m(e){return e.length}function Pm(e){return e.length}function Nm(e,t){return t.push(e),e}var Mm=1,qm=1,zm=0,Dm=0,Am=0,jm="";function Fm(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Mm,column:qm,length:a,return:""}}function $m(e,t){return km(Fm("",null,null,"",null,null,0),e,{length:-e.length},t)}function Bm(){return Am=Dm>0?Im(jm,--Dm):0,qm--,10===Am&&(qm=1,Mm--),Am}function Wm(){return Am=Dm<zm?Im(jm,Dm++):0,qm++,10===Am&&(qm=1,Mm++),Am}function Hm(){return Im(jm,Dm)}function Um(){return Dm}function Vm(e,t){return Tm(jm,e,t)}function Gm(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 Km(e){return Mm=qm=1,zm=_m(jm=e),Dm=0,[]}function Zm(e){return jm="",e}function Xm(e){return Lm(Vm(Dm-1,Ym(91===e?e+2:40===e?e+1:e)))}function Qm(e){for(;(Am=Hm())&&Am<33;)Wm();return Gm(e)>2||Gm(Am)>3?"":" "}function Jm(e,t){for(;--t&&Wm()&&!(Am<48||Am>102||Am>57&&Am<65||Am>70&&Am<97););return Vm(e,Um()+(t<6&&32==Hm()&&32==Wm()))}function Ym(e){for(;Wm();)switch(Am){case e:return Dm;case 34:case 39:34!==e&&39!==e&&Ym(Am);break;case 40:41===e&&Ym(e);break;case 92:Wm()}return Dm}function eg(e,t){for(;Wm()&&e+Am!==57&&(e+Am!==84||47!==Hm()););return"/*"+Vm(t,Dm-1)+"*"+Cm(47===e?e:Wm())}function tg(e){for(;!Gm(Hm());)Wm();return Vm(e,Dm)}function ng(e){return Zm(rg("",null,null,null,[""],e=Km(e),0,[0],e))}function rg(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=i,w=r,E=y;g;)switch(h=b,b=Wm()){case 40:if(108!=h&&58==Im(E,d-1)){-1!=Om(E+=Rm(Xm(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=Xm(b);break;case 9:case 10:case 13:case 32:E+=Qm(h);break;case 92:E+=Jm(Um()-1,7);continue;case 47:switch(Hm()){case 42:case 47:Nm(ig(eg(Wm(),Um()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=_m(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=Rm(E,/\f/g,"")),f>0&&_m(E)-d&&Nm(f>32?ag(E+";",r,n,d-1):ag(Rm(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Nm(w=og(E,t,n,c,u,o,l,y,x=[],S=[],d),i),123===b)if(0===u)rg(E,t,w,w,x,i,d,l,S);else switch(99===p&&110===Im(E,3)?100:p){case 100:case 109:case 115:rg(e,w,w,r&&Nm(og(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:rg(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=v=1,y=E="",d=a;break;case 58:d=1+_m(E),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Bm())continue;switch(E+=Cm(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(_m(E)-1)*v,v=1;break;case 64:45===Hm()&&(E+=Xm(Wm())),p=Hm(),u=d=_m(y=E+=tg(Um())),b++;break;case 45:45===h&&2==_m(E)&&(m=0)}}return i}function og(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,p=0===o?i:[""],f=Pm(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Tm(e,d+1,d=Em(m=a[h])),y=e;v<f;++v)(y=Lm(m>0?p[v]+" "+b:Rm(b,/&\f/g,p[v])))&&(s[g++]=y);return Fm(e,t,n,0===o?xm:l,s,c,u)}function ig(e,t,n){return Fm(e,t,n,ym,Cm(Am),Tm(e,2,-2),0)}function ag(e,t,n,r){return Fm(e,t,n,Sm,Tm(e,0,r),Tm(e,r+1,-1),r)}function lg(e,t){for(var n="",r=Pm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function sg(e,t,n,r){switch(e.type){case"@import":case Sm:return e.return=e.return||e.value;case ym:return"";case wm:return e.return=e.value+"{"+lg(e.children,r)+"}";case xm:e.value=e.props.join(",")}return _m(n=lg(e.children,r))?e.return=e.value+"{"+n+"}":""}function cg(e){var t=Pm(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}var ug=function(e,t,n){for(var r=0,o=0;r=o,o=Hm(),38===r&&12===o&&(t[n]=1),!Gm(o);)Wm();return Vm(e,Dm)},dg=function(e,t){return Zm(function(e,t){var n=-1,r=44;do{switch(Gm(r)){case 0:38===r&&12===Hm()&&(t[n]=1),e[n]+=ug(Dm-1,t,n);break;case 2:e[n]+=Xm(r);break;case 4:if(44===r){e[++n]=58===Hm()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Cm(r)}}while(r=Wm());return e}(Km(e),t))},pg=new WeakMap,fg=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)||pg.get(n))&&!r){pg.set(e,!0);for(var o=[],i=dg(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[c]):a[c]+" "+i[l]}}},hg=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function mg(e,t){switch(function(e,t){return 45^Im(e,0)?(((t<<2^Im(e,0))<<2^Im(e,1))<<2^Im(e,2))<<2^Im(e,3):0}(e,t)){case 5103:return bm+"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 bm+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bm+e+vm+e+gm+e+e;case 6828:case 4268:return bm+e+gm+e+e;case 6165:return bm+e+gm+"flex-"+e+e;case 5187:return bm+e+Rm(e,/(\w+).+(:[^]+)/,bm+"box-$1$2"+gm+"flex-$1$2")+e;case 5443:return bm+e+gm+"flex-item-"+Rm(e,/flex-|-self/,"")+e;case 4675:return bm+e+gm+"flex-line-pack"+Rm(e,/align-content|flex-|-self/,"")+e;case 5548:return bm+e+gm+Rm(e,"shrink","negative")+e;case 5292:return bm+e+gm+Rm(e,"basis","preferred-size")+e;case 6060:return bm+"box-"+Rm(e,"-grow","")+bm+e+gm+Rm(e,"grow","positive")+e;case 4554:return bm+Rm(e,/([^-])(transform)/g,"$1"+bm+"$2")+e;case 6187:return Rm(Rm(Rm(e,/(zoom-|grab)/,bm+"$1"),/(image-set)/,bm+"$1"),e,"")+e;case 5495:case 3959:return Rm(e,/(image-set\([^]*)/,bm+"$1$`$1");case 4968:return Rm(Rm(e,/(.+:)(flex-)?(.*)/,bm+"box-pack:$3"+gm+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bm+e+e;case 4095:case 3583:case 4068:case 2532:return Rm(e,/(.+)-inline(.+)/,bm+"$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(_m(e)-1-t>6)switch(Im(e,t+1)){case 109:if(45!==Im(e,t+4))break;case 102:return Rm(e,/(.+:)(.+)-([^]+)/,"$1"+bm+"$2-$3$1"+vm+(108==Im(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Om(e,"stretch")?mg(Rm(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Im(e,t+1))break;case 6444:switch(Im(e,_m(e)-3-(~Om(e,"!important")&&10))){case 107:return Rm(e,":",":"+bm)+e;case 101:return Rm(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bm+(45===Im(e,14)?"inline-":"")+"box$3$1"+bm+"$2$3$1"+gm+"$2box$3")+e}break;case 5936:switch(Im(e,t+11)){case 114:return bm+e+gm+Rm(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bm+e+gm+Rm(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bm+e+gm+Rm(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bm+e+gm+e+e}return e}var gg="undefined"!=typeof document,vg=gg?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]}}))})),bg=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Sm:e.return=mg(e.value,e.length);break;case wm:return lg([$m(e,{value:Rm(e.value,"@","@"+bm)})],r);case xm:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lg([$m(e,{props:[Rm(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return lg([$m(e,{props:[Rm(t,/:(plac\w+)/,":"+bm+"input-$1")]}),$m(e,{props:[Rm(t,/:(plac\w+)/,":-moz-$1")]}),$m(e,{props:[Rm(t,/:(plac\w+)/,gm+"input-$1")]})],r)}return""}))}}],yg={exports:{}},xg={},Sg=H,wg=Symbol.for("react.element"),Eg=Symbol.for("react.fragment"),Cg=Object.prototype.hasOwnProperty,kg=Sg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Lg={key:!0,ref:!0,__self:!0,__source:!0};function Rg(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Cg.call(t,r)&&!Lg.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:wg,type:e,key:i,ref:a,props:o,_owner:kg.current}}xg.Fragment=Eg,xg.jsx=Rg,xg.jsxs=Rg,yg.exports=xg;var Og=yg.exports;let Ig;function Tg(e){const{injectFirst:t,children:n}=e;return t&&Ig?Og.jsx(nm,{value:Ig,children:n}):n}function _g(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 Og.jsx(im,{styles:r})}
|
|
26
|
+
*/function yt(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 xt=new Set,St={};function wt(e,t){Et(e,t),Et(e+"Capture",t)}function Et(e,t){for(St[e]=t,e=0;e<t.length;e++)xt.add(t[e])}var Ct=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),kt=Object.prototype.hasOwnProperty,Lt=/^[: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]*$/,Rt={},Ot={};function It(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Tt[e]=new It(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Tt[t]=new It(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Tt[e]=new It(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Tt[e]=new It(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){Tt[e]=new It(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Tt[e]=new It(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Tt[e]=new It(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Tt[e]=new It(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Tt[e]=new It(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Pt=/[\-:]([a-z])/g;function _t(e){return e[1].toUpperCase()}function Nt(e,t,n,r){var o=Tt.hasOwnProperty(t)?Tt[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!!kt.call(Ot,e)||!kt.call(Rt,e)&&(Lt.test(e)?Ot[e]=!0:(Rt[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(Pt,_t);Tt[t]=new It(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(Pt,_t);Tt[t]=new It(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(Pt,_t);Tt[t]=new It(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Tt[e]=new It(e,1,!1,e.toLowerCase(),null,!1,!1)})),Tt.xlinkHref=new It("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Tt[e]=new It(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Mt=vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,qt=Symbol.for("react.element"),zt=Symbol.for("react.portal"),Dt=Symbol.for("react.fragment"),At=Symbol.for("react.strict_mode"),jt=Symbol.for("react.profiler"),Ft=Symbol.for("react.provider"),Bt=Symbol.for("react.context"),Wt=Symbol.for("react.forward_ref"),$t=Symbol.for("react.suspense"),Ht=Symbol.for("react.suspense_list"),Ut=Symbol.for("react.memo"),Vt=Symbol.for("react.lazy"),Gt=Symbol.for("react.offscreen"),Kt=Symbol.iterator;function Zt(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Kt&&e[Kt]||e["@@iterator"])?e:null}var Xt,Qt=Object.assign;function Jt(e){if(void 0===Xt)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Xt=t&&t[1]||""}return"\n"+Xt+e}var Yt=!1;function en(e,t){if(!e||Yt)return"";Yt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{Yt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Jt(e):""}function tn(e){switch(e.tag){case 5:return Jt(e.type);case 16:return Jt("Lazy");case 13:return Jt("Suspense");case 19:return Jt("SuspenseList");case 0:case 2:case 15:return e=en(e.type,!1);case 11:return e=en(e.type.render,!1);case 1:return e=en(e.type,!0);default:return""}}function nn(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 Dt:return"Fragment";case zt:return"Portal";case jt:return"Profiler";case At:return"StrictMode";case $t:return"Suspense";case Ht:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Bt:return(e.displayName||"Context")+".Consumer";case Ft:return(e._context.displayName||"Context")+".Provider";case Wt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ut:return null!==(t=e.displayName||null)?t:nn(e.type)||"Memo";case Vt:t=e._payload,e=e._init;try{return nn(e(t))}catch(e){}}return null}function rn(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 nn(t);case 8:return t===At?"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 on(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function an(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ln(e){e._valueTracker||(e._valueTracker=function(e){var t=an(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function sn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=an(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function cn(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 un(e,t){var n=t.checked;return Qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function dn(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=on(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 pn(e,t){null!=(t=t.checked)&&Nt(e,"checked",t,!1)}function fn(e,t){pn(e,t);var n=on(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")?mn(e,t.type,n):t.hasOwnProperty("defaultValue")&&mn(e,t.type,on(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function hn(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 mn(e,t,n){"number"===t&&cn(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gn=Array.isArray;function vn(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=""+on(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 bn(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(yt(91));return Qt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yn(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(yt(92));if(gn(n)){if(1<n.length)throw Error(yt(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:on(n)}}function xn(e,t){var n=on(t.value),r=on(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 Sn(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function wn(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 En(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?wn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Cn,kn,Ln=(kn=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Cn=Cn||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Cn.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 kn(e,t)}))}:kn);function Rn(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 On={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},In=["Webkit","ms","Moz","O"];function Tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||On.hasOwnProperty(e)&&On[e]?(""+t).trim():t+"px"}function Pn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(On).forEach((function(e){In.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),On[t]=On[e]}))}));var _n=Qt({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 Nn(e,t){if(t){if(_n[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(yt(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(yt(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(yt(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(yt(62))}}function Mn(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 qn=null;function zn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Dn=null,An=null,jn=null;function Fn(e){if(e=Ma(e)){if("function"!=typeof Dn)throw Error(yt(280));var t=e.stateNode;t&&(t=za(t),Dn(e.stateNode,e.type,t))}}function Bn(e){An?jn?jn.push(e):jn=[e]:An=e}function Wn(){if(An){var e=An,t=jn;if(jn=An=null,Fn(e),t)for(e=0;e<t.length;e++)Fn(t[e])}}function $n(e,t){return e(t)}function Hn(){}var Un=!1;function Vn(e,t,n){if(Un)return e(t,n);Un=!0;try{return $n(e,t,n)}finally{Un=!1,(null!==An||null!==jn)&&(Hn(),Wn())}}function Gn(e,t){var n=e.stateNode;if(null===n)return null;var r=za(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(yt(231,t,typeof n));return n}var Kn=!1;if(Ct)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){Kn=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch(kn){Kn=!1}function Xn(e,t,n,r,o,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Qn=!1,Jn=null,Yn=!1,er=null,tr={onError:function(e){Qn=!0,Jn=e}};function nr(e,t,n,r,o,i,a,l,s){Qn=!1,Jn=null,Xn.apply(tr,arguments)}function rr(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 or(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 ir(e){if(rr(e)!==e)throw Error(yt(188))}function ar(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=rr(e)))throw Error(yt(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return ir(o),e;if(i===r)return ir(o),t;i=i.sibling}throw Error(yt(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(yt(189))}}if(n.alternate!==r)throw Error(yt(190))}if(3!==n.tag)throw Error(yt(188));return n.stateNode.current===n?e:t}(e),null!==e?lr(e):null}function lr(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=lr(e);if(null!==t)return t;e=e.sibling}return null}var sr=bt.unstable_scheduleCallback,cr=bt.unstable_cancelCallback,ur=bt.unstable_shouldYield,dr=bt.unstable_requestPaint,pr=bt.unstable_now,fr=bt.unstable_getCurrentPriorityLevel,hr=bt.unstable_ImmediatePriority,mr=bt.unstable_UserBlockingPriority,gr=bt.unstable_NormalPriority,vr=bt.unstable_LowPriority,br=bt.unstable_IdlePriority,yr=null,xr=null;var Sr=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(wr(e)/Er|0)|0},wr=Math.log,Er=Math.LN2;var Cr=64,kr=4194304;function Lr(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 Rr(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=Lr(l):0!==(i&=a)&&(r=Lr(i))}else 0!==(a=n&~o)?r=Lr(a):0!==i&&(r=Lr(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Sr(t)),r|=e[n],t&=~o;return r}function Or(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 Ir(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Tr(){var e=Cr;return 0==(4194240&(Cr<<=1))&&(Cr=64),e}function Pr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _r(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Sr(t)]=n}function Nr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Sr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Mr=0;function qr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var zr,Dr,Ar,jr,Fr,Br=!1,Wr=[],$r=null,Hr=null,Ur=null,Vr=new Map,Gr=new Map,Kr=[],Zr="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 Xr(e,t){switch(e){case"focusin":case"focusout":$r=null;break;case"dragenter":case"dragleave":Hr=null;break;case"mouseover":case"mouseout":Ur=null;break;case"pointerover":case"pointerout":Vr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gr.delete(t.pointerId)}}function Qr(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Ma(t))&&Dr(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Jr(e){var t=Na(e.target);if(null!==t){var n=rr(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=or(n)))return e.blockedOn=t,void Fr(e.priority,(function(){Ar(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 Yr(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=uo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Ma(n))&&Dr(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);qn=r,n.target.dispatchEvent(r),qn=null,t.shift()}return!0}function eo(e,t,n){Yr(e)&&n.delete(t)}function to(){Br=!1,null!==$r&&Yr($r)&&($r=null),null!==Hr&&Yr(Hr)&&(Hr=null),null!==Ur&&Yr(Ur)&&(Ur=null),Vr.forEach(eo),Gr.forEach(eo)}function no(e,t){e.blockedOn===t&&(e.blockedOn=null,Br||(Br=!0,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,to)))}function ro(e){function t(t){return no(t,e)}if(0<Wr.length){no(Wr[0],e);for(var n=1;n<Wr.length;n++){var r=Wr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==$r&&no($r,e),null!==Hr&&no(Hr,e),null!==Ur&&no(Ur,e),Vr.forEach(t),Gr.forEach(t),n=0;n<Kr.length;n++)(r=Kr[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Kr.length&&null===(n=Kr[0]).blockedOn;)Jr(n),null===n.blockedOn&&Kr.shift()}var oo=Mt.ReactCurrentBatchConfig,io=!0;function ao(e,t,n,r){var o=Mr,i=oo.transition;oo.transition=null;try{Mr=1,so(e,t,n,r)}finally{Mr=o,oo.transition=i}}function lo(e,t,n,r){var o=Mr,i=oo.transition;oo.transition=null;try{Mr=4,so(e,t,n,r)}finally{Mr=o,oo.transition=i}}function so(e,t,n,r){if(io){var o=uo(e,t,n,r);if(null===o)ia(e,t,r,co,n),Xr(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return $r=Qr($r,e,t,n,r,o),!0;case"dragenter":return Hr=Qr(Hr,e,t,n,r,o),!0;case"mouseover":return Ur=Qr(Ur,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Vr.set(i,Qr(Vr.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Gr.set(i,Qr(Gr.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Xr(e,r),4&t&&-1<Zr.indexOf(e)){for(;null!==o;){var i=Ma(o);if(null!==i&&zr(i),null===(i=uo(e,t,n,r))&&ia(e,t,r,co,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else ia(e,t,r,null,n)}}var co=null;function uo(e,t,n,r){if(co=null,null!==(e=Na(e=zn(r))))if(null===(t=rr(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=or(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 co=e,null}function po(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(fr()){case hr:return 1;case mr:return 4;case gr:case vr:return 16;case br:return 536870912;default:return 16}default:return 16}}var fo=null,ho=null,mo=null;function go(){if(mo)return mo;var e,t,n=ho,r=n.length,o="value"in fo?fo.value:fo.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return mo=o.slice(e,1<t?1-t:void 0)}function vo(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 bo(){return!0}function yo(){return!1}function xo(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?bo:yo,this.isPropagationStopped=yo,this}return Qt(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=bo)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=bo)},persist:function(){},isPersistent:bo}),t}var So,wo,Eo,Co={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ko=xo(Co),Lo=Qt({},Co,{view:0,detail:0}),Ro=xo(Lo),Oo=Qt({},Lo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fo,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!==Eo&&(Eo&&"mousemove"===e.type?(So=e.screenX-Eo.screenX,wo=e.screenY-Eo.screenY):wo=So=0,Eo=e),So)},movementY:function(e){return"movementY"in e?e.movementY:wo}}),Io=xo(Oo),To=xo(Qt({},Oo,{dataTransfer:0})),Po=xo(Qt({},Lo,{relatedTarget:0})),_o=xo(Qt({},Co,{animationName:0,elapsedTime:0,pseudoElement:0})),No=Qt({},Co,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Mo=xo(No),qo=xo(Qt({},Co,{data:0})),zo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Do={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"},Ao={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ao[e])&&!!t[e]}function Fo(){return jo}var Bo=Qt({},Lo,{key:function(e){if(e.key){var t=zo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=vo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Do[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fo,charCode:function(e){return"keypress"===e.type?vo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?vo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Wo=xo(Bo),$o=xo(Qt({},Oo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ho=xo(Qt({},Lo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fo})),Uo=xo(Qt({},Co,{propertyName:0,elapsedTime:0,pseudoElement:0})),Vo=Qt({},Oo,{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}),Go=xo(Vo),Ko=[9,13,27,32],Zo=Ct&&"CompositionEvent"in window,Xo=null;Ct&&"documentMode"in document&&(Xo=document.documentMode);var Qo=Ct&&"TextEvent"in window&&!Xo,Jo=Ct&&(!Zo||Xo&&8<Xo&&11>=Xo),Yo=String.fromCharCode(32),ei=!1;function ti(e,t){switch(e){case"keyup":return-1!==Ko.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ni(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ri=!1;var oi={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 ii(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!oi[e.type]:"textarea"===t}function ai(e,t,n,r){Bn(r),0<(t=la(t,"onChange")).length&&(n=new ko("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var li=null,si=null;function ci(e){Yi(e,0)}function ui(e){if(sn(qa(e)))return e}function di(e,t){if("change"===e)return t}var pi=!1;if(Ct){var fi;if(Ct){var hi="oninput"in document;if(!hi){var mi=document.createElement("div");mi.setAttribute("oninput","return;"),hi="function"==typeof mi.oninput}fi=hi}else fi=!1;pi=fi&&(!document.documentMode||9<document.documentMode)}function gi(){li&&(li.detachEvent("onpropertychange",vi),si=li=null)}function vi(e){if("value"===e.propertyName&&ui(si)){var t=[];ai(t,si,e,zn(e)),Vn(ci,t)}}function bi(e,t,n){"focusin"===e?(gi(),si=n,(li=t).attachEvent("onpropertychange",vi)):"focusout"===e&&gi()}function yi(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return ui(si)}function xi(e,t){if("click"===e)return ui(t)}function Si(e,t){if("input"===e||"change"===e)return ui(t)}var wi="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Ei(e,t){if(wi(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(!kt.call(t,o)||!wi(e[o],t[o]))return!1}return!0}function Ci(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ki(e,t){var n,r=Ci(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=Ci(r)}}function Li(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Li(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Ri(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function Oi(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 Ii(e){var t=Ri(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Li(n.ownerDocument.documentElement,n)){if(null!==r&&Oi(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ki(n,i);var a=ki(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ti=Ct&&"documentMode"in document&&11>=document.documentMode,Pi=null,_i=null,Ni=null,Mi=!1;function qi(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Mi||null==Pi||Pi!==cn(r)||("selectionStart"in(r=Pi)&&Oi(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},Ni&&Ei(Ni,r)||(Ni=r,0<(r=la(_i,"onSelect")).length&&(t=new ko("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pi)))}function zi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Di={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionend:zi("Transition","TransitionEnd")},Ai={},ji={};function Fi(e){if(Ai[e])return Ai[e];if(!Di[e])return e;var t,n=Di[e];for(t in n)if(n.hasOwnProperty(t)&&t in ji)return Ai[e]=n[t];return e}Ct&&(ji=document.createElement("div").style,"AnimationEvent"in window||(delete Di.animationend.animation,delete Di.animationiteration.animation,delete Di.animationstart.animation),"TransitionEvent"in window||delete Di.transitionend.transition);var Bi=Fi("animationend"),Wi=Fi("animationiteration"),$i=Fi("animationstart"),Hi=Fi("transitionend"),Ui=new Map,Vi="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 Gi(e,t){Ui.set(e,t),wt(t,[e])}for(var Ki=0;Ki<Vi.length;Ki++){var Zi=Vi[Ki];Gi(Zi.toLowerCase(),"on"+(Zi[0].toUpperCase()+Zi.slice(1)))}Gi(Bi,"onAnimationEnd"),Gi(Wi,"onAnimationIteration"),Gi($i,"onAnimationStart"),Gi("dblclick","onDoubleClick"),Gi("focusin","onFocus"),Gi("focusout","onBlur"),Gi(Hi,"onTransitionEnd"),Et("onMouseEnter",["mouseout","mouseover"]),Et("onMouseLeave",["mouseout","mouseover"]),Et("onPointerEnter",["pointerout","pointerover"]),Et("onPointerLeave",["pointerout","pointerover"]),wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wt("onBeforeInput",["compositionend","keypress","textInput","paste"]),wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xi="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(" "),Qi=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xi));function Ji(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(nr.apply(this,arguments),Qn){if(!Qn)throw Error(yt(198));var c=Jn;Qn=!1,Jn=null,Yn||(Yn=!0,er=c)}}(r,t,void 0,e),e.currentTarget=null}function Yi(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Ji(o,l,c),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,c=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Ji(o,l,c),i=s}}}if(Yn)throw e=er,Yn=!1,er=null,e}function ea(e,t){var n=t[Ta];void 0===n&&(n=t[Ta]=new Set);var r=e+"__bubble";n.has(r)||(oa(t,e,2,!1),n.add(r))}function ta(e,t,n){var r=0;t&&(r|=4),oa(n,e,r,t)}var na="_reactListening"+Math.random().toString(36).slice(2);function ra(e){if(!e[na]){e[na]=!0,xt.forEach((function(t){"selectionchange"!==t&&(Qi.has(t)||ta(t,!1,e),ta(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[na]||(t[na]=!0,ta("selectionchange",!1,t))}}function oa(e,t,n,r){switch(po(t)){case 1:var o=ao;break;case 4:o=lo;break;default:o=so}n=o.bind(null,t,n,e),o=void 0,!Kn||"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 ia(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=Na(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Vn((function(){var r=i,o=zn(n),a=[];e:{var l=Ui.get(e);if(void 0!==l){var s=ko,c=e;switch(e){case"keypress":if(0===vo(n))break e;case"keydown":case"keyup":s=Wo;break;case"focusin":c="focus",s=Po;break;case"focusout":c="blur",s=Po;break;case"beforeblur":case"afterblur":s=Po;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=Io;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=To;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ho;break;case Bi:case Wi:case $i:s=_o;break;case Hi:s=Uo;break;case"scroll":s=Ro;break;case"wheel":s=Go;break;case"copy":case"cut":case"paste":s=Mo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=$o}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=Gn(h,p))&&u.push(aa(h,m,f)))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),a.push({event:l,listeners:u}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===qn||!(c=n.relatedTarget||n.fromElement)||!Na(c)&&!c[Ia])&&(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)?Na(c):null)&&(c!==(d=rr(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=Io,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=$o,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:qa(s),f=null==c?l:qa(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,Na(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=sa(f))h++;for(f=0,m=p;m;m=sa(m))f++;for(;0<h-f;)u=sa(u),h--;for(;0<f-h;)p=sa(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=sa(u),p=sa(p)}u=null}else u=null;null!==s&&ca(a,l,s,u,!1),null!==c&&null!==d&&ca(a,d,c,u,!0)}if("select"===(s=(l=r?qa(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=di;else if(ii(l))if(pi)g=Si;else{g=yi;var v=bi}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=xi);switch(g&&(g=g(e,r))?ai(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&mn(l,"number",l.value)),v=r?qa(r):window,e){case"focusin":(ii(v)||"true"===v.contentEditable)&&(Pi=v,_i=r,Ni=null);break;case"focusout":Ni=_i=Pi=null;break;case"mousedown":Mi=!0;break;case"contextmenu":case"mouseup":case"dragend":Mi=!1,qi(a,n,o);break;case"selectionchange":if(Ti)break;case"keydown":case"keyup":qi(a,n,o)}var b;if(Zo)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 ri?ti(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Jo&&"ko"!==n.locale&&(ri||"onCompositionStart"!==y?"onCompositionEnd"===y&&ri&&(b=go()):(ho="value"in(fo=o)?fo.value:fo.textContent,ri=!0)),0<(v=la(r,y)).length&&(y=new qo(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=ni(n))&&(y.data=b))),(b=Qo?function(e,t){switch(e){case"compositionend":return ni(t);case"keypress":return 32!==t.which?null:(ei=!0,Yo);case"textInput":return(e=t.data)===Yo&&ei?null:e;default:return null}}(e,n):function(e,t){if(ri)return"compositionend"===e||!Zo&&ti(e,t)?(e=go(),mo=ho=fo=null,ri=!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 Jo&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=la(r,"onBeforeInput")).length&&(o=new qo("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Yi(a,t)}))}function aa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function la(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Gn(e,n))&&r.unshift(aa(e,i,o)),null!=(i=Gn(e,t))&&r.push(aa(e,i,o))),e=e.return}return r}function sa(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ca(e,t,n,r,o){for(var i=t._reactName,a=[];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=Gn(n,i))&&a.unshift(aa(n,s,l)):o||null!=(s=Gn(n,i))&&a.push(aa(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ua=/\r\n?/g,da=/\u0000|\uFFFD/g;function pa(e){return("string"==typeof e?e:""+e).replace(ua,"\n").replace(da,"")}function fa(e,t,n){if(t=pa(t),pa(e)!==t&&n)throw Error(yt(425))}function ha(){}var ma=null,ga=null;function va(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 ba="function"==typeof setTimeout?setTimeout:void 0,ya="function"==typeof clearTimeout?clearTimeout:void 0,xa="function"==typeof Promise?Promise:void 0,Sa="function"==typeof queueMicrotask?queueMicrotask:void 0!==xa?function(e){return xa.resolve(null).then(e).catch(wa)}:ba;function wa(e){setTimeout((function(){throw e}))}function Ea(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 ro(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);ro(t)}function Ca(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 ka(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 La=Math.random().toString(36).slice(2),Ra="__reactFiber$"+La,Oa="__reactProps$"+La,Ia="__reactContainer$"+La,Ta="__reactEvents$"+La,Pa="__reactListeners$"+La,_a="__reactHandles$"+La;function Na(e){var t=e[Ra];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ia]||n[Ra]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ka(e);null!==e;){if(n=e[Ra])return n;e=ka(e)}return t}n=(e=n).parentNode}return null}function Ma(e){return!(e=e[Ra]||e[Ia])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function qa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(yt(33))}function za(e){return e[Oa]||null}var Da=[],Aa=-1;function ja(e){return{current:e}}function Fa(e){0>Aa||(e.current=Da[Aa],Da[Aa]=null,Aa--)}function Ba(e,t){Aa++,Da[Aa]=e.current,e.current=t}var Wa={},$a=ja(Wa),Ha=ja(!1),Ua=Wa;function Va(e,t){var n=e.type.contextTypes;if(!n)return Wa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ga(e){return null!=(e=e.childContextTypes)}function Ka(){Fa(Ha),Fa($a)}function Za(e,t,n){if($a.current!==Wa)throw Error(yt(168));Ba($a,t),Ba(Ha,n)}function Xa(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(yt(108,rn(e)||"Unknown",o));return Qt({},n,r)}function Qa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wa,Ua=$a.current,Ba($a,e),Ba(Ha,Ha.current),!0}function Ja(e,t,n){var r=e.stateNode;if(!r)throw Error(yt(169));n?(e=Xa(e,t,Ua),r.__reactInternalMemoizedMergedChildContext=e,Fa(Ha),Fa($a),Ba($a,e)):Fa(Ha),Ba(Ha,n)}var Ya=null,el=!1,tl=!1;function nl(e){null===Ya?Ya=[e]:Ya.push(e)}function rl(){if(!tl&&null!==Ya){tl=!0;var e=0,t=Mr;try{var n=Ya;for(Mr=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ya=null,el=!1}catch(t){throw null!==Ya&&(Ya=Ya.slice(e+1)),sr(hr,rl),t}finally{Mr=t,tl=!1}}return null}var ol=[],il=0,al=null,ll=0,sl=[],cl=0,ul=null,dl=1,pl="";function fl(e,t){ol[il++]=ll,ol[il++]=al,al=e,ll=t}function hl(e,t,n){sl[cl++]=dl,sl[cl++]=pl,sl[cl++]=ul,ul=e;var r=dl;e=pl;var o=32-Sr(r)-1;r&=~(1<<o),n+=1;var i=32-Sr(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,dl=1<<32-Sr(t)+o|n<<o|r,pl=i+e}else dl=1<<i|n<<o|r,pl=e}function ml(e){null!==e.return&&(fl(e,1),hl(e,1,0))}function gl(e){for(;e===al;)al=ol[--il],ol[il]=null,ll=ol[--il],ol[il]=null;for(;e===ul;)ul=sl[--cl],sl[cl]=null,pl=sl[--cl],sl[cl]=null,dl=sl[--cl],sl[cl]=null}var vl=null,bl=null,yl=!1,xl=null;function Sl(e,t){var n=Vd(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 wl(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,vl=e,bl=Ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,vl=e,bl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==ul?{id:dl,overflow:pl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Vd(18,null,null,0)).stateNode=t,n.return=e,e.child=n,vl=e,bl=null,!0);default:return!1}}function El(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Cl(e){if(yl){var t=bl;if(t){var n=t;if(!wl(e,t)){if(El(e))throw Error(yt(418));t=Ca(n.nextSibling);var r=vl;t&&wl(e,t)?Sl(r,n):(e.flags=-4097&e.flags|2,yl=!1,vl=e)}}else{if(El(e))throw Error(yt(418));e.flags=-4097&e.flags|2,yl=!1,vl=e}}}function kl(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;vl=e}function Ll(e){if(e!==vl)return!1;if(!yl)return kl(e),yl=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!va(e.type,e.memoizedProps)),t&&(t=bl)){if(El(e))throw Rl(),Error(yt(418));for(;t;)Sl(e,t),t=Ca(t.nextSibling)}if(kl(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(yt(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){bl=Ca(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}bl=null}}else bl=vl?Ca(e.stateNode.nextSibling):null;return!0}function Rl(){for(var e=bl;e;)e=Ca(e.nextSibling)}function Ol(){bl=vl=null,yl=!1}function Il(e){null===xl?xl=[e]:xl.push(e)}var Tl=Mt.ReactCurrentBatchConfig;function Pl(e,t){if(e&&e.defaultProps){for(var n in t=Qt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var _l=ja(null),Nl=null,Ml=null,ql=null;function zl(){ql=Ml=Nl=null}function Dl(e){var t=_l.current;Fa(_l),e._currentValue=t}function Al(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 jl(e,t){Nl=e,ql=Ml=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Mc=!0),e.firstContext=null)}function Fl(e){var t=e._currentValue;if(ql!==e)if(e={context:e,memoizedValue:t,next:null},null===Ml){if(null===Nl)throw Error(yt(308));Ml=e,Nl.dependencies={lanes:0,firstContext:e}}else Ml=Ml.next=e;return t}var Bl=null;function Wl(e){null===Bl?Bl=[e]:Bl.push(e)}function $l(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Wl(t)):(n.next=o.next,o.next=n),t.interleaved=n,Hl(e,r)}function Hl(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 Ul=!1;function Vl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gl(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 Kl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zl(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&$u)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Hl(e,n)}return null===(o=r.interleaved)?(t.next=t,Wl(r)):(t.next=o.next,o.next=t),r.interleaved=t,Hl(e,n)}function Xl(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,Nr(e,n)}}function Ql(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Jl(e,t,n,r){var o=e.updateQueue;Ul=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===a?i=c:a.next=c,a=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,u=c=s=null,l=i;;){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=Qt({},d,p);break e;case 2:Ul=!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,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Qu|=a,e.lanes=a,e.memoizedState=d}}function Yl(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(yt(191,o));o.call(r)}}}var es=(new vt.Component).refs;function ts(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Qt({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ns={isMounted:function(e){return!!(e=e._reactInternals)&&rr(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=md(),o=gd(e),i=Kl(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Zl(e,i,o))&&(vd(t,e,o,r),Xl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=md(),o=gd(e),i=Kl(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Zl(e,i,o))&&(vd(t,e,o,r),Xl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=md(),r=gd(e),o=Kl(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Zl(e,o,r))&&(vd(t,e,r,n),Xl(t,e,r))}};function rs(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Ei(n,r)||!Ei(o,i))}function os(e,t,n){var r=!1,o=Wa,i=t.contextType;return"object"==typeof i&&null!==i?i=Fl(i):(o=Ga(t)?Ua:$a.current,i=(r=null!=(r=t.contextTypes))?Va(e,o):Wa),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ns,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function is(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&&ns.enqueueReplaceState(t,t.state,null)}function as(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=es,Vl(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Fl(i):(i=Ga(t)?Ua:$a.current,o.context=Va(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ts(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ns.enqueueReplaceState(o,o.state,null),Jl(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ls(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(yt(309));var r=n.stateNode}if(!r)throw Error(yt(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===es&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(yt(284));if(!n._owner)throw Error(yt(290,e))}return e}function ss(e,t){throw e=Object.prototype.toString.call(t),Error(yt(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cs(e){return(0,e._init)(e._payload)}function us(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=Kd(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Jd(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===Dt?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Vt&&cs(i)===t.type)?((r=o(t,n.props)).ref=ls(e,t,n),r.return=e,r):((r=Zd(n.type,n.key,n.props,null,e.mode,r)).ref=ls(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=Yd(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,i){return null===t||7!==t.tag?((t=Xd(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Jd(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case qt:return(n=Zd(t.type,t.key,t.props,null,e.mode,n)).ref=ls(e,null,t),n.return=e,n;case zt:return(t=Yd(t,e.mode,n)).return=e,t;case Vt:return d(e,(0,t._init)(t._payload),n)}if(gn(t)||Zt(t))return(t=Xd(t,e.mode,n,null)).return=e,t;ss(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 qt:return n.key===o?s(e,t,n,r):null;case zt:return n.key===o?c(e,t,n,r):null;case Vt:return p(e,t,(o=n._init)(n._payload),r)}if(gn(n)||Zt(n))return null!==o?null:u(e,t,n,r,null);ss(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 qt:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case zt:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Vt:return f(e,t,n,(0,r._init)(r._payload),o)}if(gn(r)||Zt(r))return u(t,e=e.get(n)||null,r,o,null);ss(t,r)}return null}function h(o,a,l,s){for(var c=null,u=null,h=a,m=a=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),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===l.length)return n(o,h),yl&&fl(o,m),c;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(a=i(h,a,m),null===u?c=h:u.sibling=h,u=h);return yl&&fl(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),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach((function(e){return t(o,e)})),yl&&fl(o,m),c}function m(o,a,l,s){var c=Zt(l);if("function"!=typeof c)throw Error(yt(150));if(null==(l=c.call(l)))throw Error(yt(151));for(var u=c=null,h=a,m=a=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),a=i(b,a,m),null===u?c=b:u.sibling=b,u=b,h=g}if(v.done)return n(o,h),yl&&fl(o,m),c;if(null===h){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,s))&&(a=i(v,a,m),null===u?c=v:u.sibling=v,u=v);return yl&&fl(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),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v);return e&&h.forEach((function(e){return t(o,e)})),yl&&fl(o,m),c}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===Dt&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case qt:e:{for(var c=l.key,u=i;null!==u;){if(u.key===c){if((c=l.type)===Dt){if(7===u.tag){n(r,u.sibling),(i=o(u,l.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Vt&&cs(c)===u.type){n(r,u.sibling),(i=o(u,l.props)).ref=ls(r,u,l),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}l.type===Dt?((i=Xd(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=Zd(l.type,l.key,l.props,null,r.mode,s)).ref=ls(r,i,l),s.return=r,r=s)}return a(r);case zt:e:{for(u=l.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Yd(l,r.mode,s)).return=r,r=i}return a(r);case Vt:return e(r,i,(u=l._init)(l._payload),s)}if(gn(l))return h(r,i,l,s);if(Zt(l))return m(r,i,l,s);ss(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=Jd(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var ds=us(!0),ps=us(!1),fs={},hs=ja(fs),ms=ja(fs),gs=ja(fs);function vs(e){if(e===fs)throw Error(yt(174));return e}function bs(e,t){switch(Ba(gs,t),Ba(ms,e),Ba(hs,fs),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:En(null,"");break;default:t=En(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Fa(hs),Ba(hs,t)}function ys(){Fa(hs),Fa(ms),Fa(gs)}function xs(e){vs(gs.current);var t=vs(hs.current),n=En(t,e.type);t!==n&&(Ba(ms,e),Ba(hs,n))}function Ss(e){ms.current===e&&(Fa(hs),Fa(ms))}var ws=ja(0);function Es(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 Cs=[];function ks(){for(var e=0;e<Cs.length;e++)Cs[e]._workInProgressVersionPrimary=null;Cs.length=0}var Ls=Mt.ReactCurrentDispatcher,Rs=Mt.ReactCurrentBatchConfig,Os=0,Is=null,Ts=null,Ps=null,_s=!1,Ns=!1,Ms=0,qs=0;function zs(){throw Error(yt(321))}function Ds(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wi(e[n],t[n]))return!1;return!0}function As(e,t,n,r,o,i){if(Os=i,Is=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ls.current=null===e||null===e.memoizedState?Sc:wc,e=n(r,o),Ns){i=0;do{if(Ns=!1,Ms=0,25<=i)throw Error(yt(301));i+=1,Ps=Ts=null,t.updateQueue=null,Ls.current=Ec,e=n(r,o)}while(Ns)}if(Ls.current=xc,t=null!==Ts&&null!==Ts.next,Os=0,Ps=Ts=Is=null,_s=!1,t)throw Error(yt(300));return e}function js(){var e=0!==Ms;return Ms=0,e}function Fs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ps?Is.memoizedState=Ps=e:Ps=Ps.next=e,Ps}function Bs(){if(null===Ts){var e=Is.alternate;e=null!==e?e.memoizedState:null}else e=Ts.next;var t=null===Ps?Is.memoizedState:Ps.next;if(null!==t)Ps=t,Ts=e;else{if(null===e)throw Error(yt(310));e={memoizedState:(Ts=e).memoizedState,baseState:Ts.baseState,baseQueue:Ts.baseQueue,queue:Ts.queue,next:null},null===Ps?Is.memoizedState=Ps=e:Ps=Ps.next=e}return Ps}function Ws(e,t){return"function"==typeof t?t(e):t}function $s(e){var t=Bs(),n=t.queue;if(null===n)throw Error(yt(311));n.lastRenderedReducer=e;var r=Ts,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,c=i;do{var u=c.lane;if((Os&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,a=r):s=s.next=d,Is.lanes|=u,Qu|=u}c=c.next}while(null!==c&&c!==i);null===s?a=r:s.next=l,wi(r,t.memoizedState)||(Mc=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,Is.lanes|=i,Qu|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Hs(e){var t=Bs(),n=t.queue;if(null===n)throw Error(yt(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);wi(i,t.memoizedState)||(Mc=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Us(){}function Vs(e,t){var n=Is,r=Bs(),o=t(),i=!wi(r.memoizedState,o);if(i&&(r.memoizedState=o,Mc=!0),r=r.queue,oc(Zs.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==Ps&&1&Ps.memoizedState.tag){if(n.flags|=2048,Ys(9,Ks.bind(null,n,r,o,t),void 0,null),null===Hu)throw Error(yt(349));0!=(30&Os)||Gs(n,t,o)}return o}function Gs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Is.updateQueue)?(t={lastEffect:null,stores:null},Is.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ks(e,t,n,r){t.value=n,t.getSnapshot=r,Xs(t)&&Qs(e)}function Zs(e,t,n){return n((function(){Xs(t)&&Qs(e)}))}function Xs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wi(e,n)}catch(e){return!0}}function Qs(e){var t=Hl(e,1);null!==t&&vd(t,e,1,-1)}function Js(e){var t=Fs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:e},t.queue=e,e=e.dispatch=gc.bind(null,Is,e),[t.memoizedState,e]}function Ys(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Is.updateQueue)?(t={lastEffect:null,stores:null},Is.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 ec(){return Bs().memoizedState}function tc(e,t,n,r){var o=Fs();Is.flags|=e,o.memoizedState=Ys(1|t,n,void 0,void 0===r?null:r)}function nc(e,t,n,r){var o=Bs();r=void 0===r?null:r;var i=void 0;if(null!==Ts){var a=Ts.memoizedState;if(i=a.destroy,null!==r&&Ds(r,a.deps))return void(o.memoizedState=Ys(t,n,i,r))}Is.flags|=e,o.memoizedState=Ys(1|t,n,i,r)}function rc(e,t){return tc(8390656,8,e,t)}function oc(e,t){return nc(2048,8,e,t)}function ic(e,t){return nc(4,2,e,t)}function ac(e,t){return nc(4,4,e,t)}function lc(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 sc(e,t,n){return n=null!=n?n.concat([e]):null,nc(4,4,lc.bind(null,t,e),n)}function cc(){}function uc(e,t){var n=Bs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ds(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function dc(e,t){var n=Bs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ds(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pc(e,t,n){return 0==(21&Os)?(e.baseState&&(e.baseState=!1,Mc=!0),e.memoizedState=n):(wi(n,t)||(n=Tr(),Is.lanes|=n,Qu|=n,e.baseState=!0),t)}function fc(e,t){var n=Mr;Mr=0!==n&&4>n?n:4,e(!0);var r=Rs.transition;Rs.transition={};try{e(!1),t()}finally{Mr=n,Rs.transition=r}}function hc(){return Bs().memoizedState}function mc(e,t,n){var r=gd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vc(e))bc(t,n);else if(null!==(n=$l(e,t,n,r))){vd(n,e,r,md()),yc(n,t,r)}}function gc(e,t,n){var r=gd(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vc(e))bc(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,wi(l,a)){var s=t.interleaved;return null===s?(o.next=o,Wl(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=$l(e,t,o,r))&&(vd(n,e,r,o=md()),yc(n,t,r))}}function vc(e){var t=e.alternate;return e===Is||null!==t&&t===Is}function bc(e,t){Ns=_s=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yc(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Nr(e,n)}}var xc={readContext:Fl,useCallback:zs,useContext:zs,useEffect:zs,useImperativeHandle:zs,useInsertionEffect:zs,useLayoutEffect:zs,useMemo:zs,useReducer:zs,useRef:zs,useState:zs,useDebugValue:zs,useDeferredValue:zs,useTransition:zs,useMutableSource:zs,useSyncExternalStore:zs,useId:zs,unstable_isNewReconciler:!1},Sc={readContext:Fl,useCallback:function(e,t){return Fs().memoizedState=[e,void 0===t?null:t],e},useContext:Fl,useEffect:rc,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,tc(4194308,4,lc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tc(4194308,4,e,t)},useInsertionEffect:function(e,t){return tc(4,2,e,t)},useMemo:function(e,t){var n=Fs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fs();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=mc.bind(null,Is,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Fs().memoizedState=e},useState:Js,useDebugValue:cc,useDeferredValue:function(e){return Fs().memoizedState=e},useTransition:function(){var e=Js(!1),t=e[0];return e=fc.bind(null,e[1]),Fs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Is,o=Fs();if(yl){if(void 0===n)throw Error(yt(407));n=n()}else{if(n=t(),null===Hu)throw Error(yt(349));0!=(30&Os)||Gs(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,rc(Zs.bind(null,r,i,e),[e]),r.flags|=2048,Ys(9,Ks.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Fs(),t=Hu.identifierPrefix;if(yl){var n=pl;t=":"+t+"R"+(n=(dl&~(1<<32-Sr(dl)-1)).toString(32)+n),0<(n=Ms++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=qs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},wc={readContext:Fl,useCallback:uc,useContext:Fl,useEffect:oc,useImperativeHandle:sc,useInsertionEffect:ic,useLayoutEffect:ac,useMemo:dc,useReducer:$s,useRef:ec,useState:function(){return $s(Ws)},useDebugValue:cc,useDeferredValue:function(e){return pc(Bs(),Ts.memoizedState,e)},useTransition:function(){return[$s(Ws)[0],Bs().memoizedState]},useMutableSource:Us,useSyncExternalStore:Vs,useId:hc,unstable_isNewReconciler:!1},Ec={readContext:Fl,useCallback:uc,useContext:Fl,useEffect:oc,useImperativeHandle:sc,useInsertionEffect:ic,useLayoutEffect:ac,useMemo:dc,useReducer:Hs,useRef:ec,useState:function(){return Hs(Ws)},useDebugValue:cc,useDeferredValue:function(e){var t=Bs();return null===Ts?t.memoizedState=e:pc(t,Ts.memoizedState,e)},useTransition:function(){return[Hs(Ws)[0],Bs().memoizedState]},useMutableSource:Us,useSyncExternalStore:Vs,useId:hc,unstable_isNewReconciler:!1};function Cc(e,t){try{var n="",r=t;do{n+=tn(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 kc(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Lc(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Rc="function"==typeof WeakMap?WeakMap:Map;function Oc(e,t,n){(n=Kl(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){id||(id=!0,ad=r),Lc(0,t)},n}function Ic(e,t,n){(n=Kl(-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(){Lc(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){Lc(0,t),"function"!=typeof r&&(null===ld?ld=new Set([this]):ld.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Tc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Rc;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=Fd.bind(null,e,t,n),t.then(e,e))}function Pc(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 _c(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=Kl(-1,1)).tag=2,Zl(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Nc=Mt.ReactCurrentOwner,Mc=!1;function qc(e,t,n,r){t.child=null===e?ps(t,null,n,r):ds(t,e.child,n,r)}function zc(e,t,n,r,o){n=n.render;var i=t.ref;return jl(t,o),r=As(e,t,n,r,i,o),n=js(),null===e||Mc?(yl&&n&&ml(t),t.flags|=1,qc(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,iu(e,t,o))}function Dc(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Gd(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Zd(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ac(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Ei)(a,r)&&e.ref===t.ref)return iu(e,t,o)}return t.flags|=1,(e=Kd(i,r)).ref=t.ref,e.return=t,t.child=e}function Ac(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Ei(i,r)&&e.ref===t.ref){if(Mc=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,iu(e,t,o);0!=(131072&e.flags)&&(Mc=!0)}}return Bc(e,t,n,r,o)}function jc(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ba(Ku,Gu),Gu|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ba(Ku,Gu),Gu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ba(Ku,Gu),Gu|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ba(Ku,Gu),Gu|=r;return qc(e,t,o,n),t.child}function Fc(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bc(e,t,n,r,o){var i=Ga(n)?Ua:$a.current;return i=Va(t,i),jl(t,o),n=As(e,t,n,r,i,o),r=js(),null===e||Mc?(yl&&r&&ml(t),t.flags|=1,qc(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,iu(e,t,o))}function Wc(e,t,n,r,o){if(Ga(n)){var i=!0;Qa(t)}else i=!1;if(jl(t,o),null===t.stateNode)ou(e,t),os(t,n,r),as(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=Fl(c):c=Va(t,c=Ga(n)?Ua:$a.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&is(t,a,r,c),Ul=!1;var p=t.memoizedState;a.state=p,Jl(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Ha.current||Ul?("function"==typeof u&&(ts(t,n,u,r),s=t.memoizedState),(l=Ul||rs(t,n,l,r,p,s,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Gl(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Pl(t.type,l),a.props=c,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Fl(s):s=Va(t,s=Ga(n)?Ua:$a.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&is(t,a,r,s),Ul=!1,p=t.memoizedState,a.state=p,Jl(t,r,a,o);var h=t.memoizedState;l!==d||p!==h||Ha.current||Ul?("function"==typeof f&&(ts(t,n,f,r),h=t.memoizedState),(c=Ul||rs(t,n,c,r,p,h,s)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return $c(e,t,n,r,i,o)}function $c(e,t,n,r,o,i){Fc(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Ja(t,n,!1),iu(e,t,i);r=t.stateNode,Nc.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ds(t,e.child,null,i),t.child=ds(t,null,l,i)):qc(e,t,l,i),t.memoizedState=r.state,o&&Ja(t,n,!0),t.child}function Hc(e){var t=e.stateNode;t.pendingContext?Za(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Za(0,t.context,!1),bs(e,t.containerInfo)}function Uc(e,t,n,r,o){return Ol(),Il(o),t.flags|=256,qc(e,t,n,r),t.child}var Vc,Gc,Kc,Zc,Xc={dehydrated:null,treeContext:null,retryLane:0};function Qc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Jc(e,t,n){var r,o=t.pendingProps,i=ws.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Ba(ws,1&i),null===e)return Cl(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Qd(l,o,0,null),e=Xd(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Qc(n),t.memoizedState=Xc,e):Yc(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,eu(e,t,a,r=kc(Error(yt(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Qd({mode:"visible",children:r.children},o,0,null),(i=Xd(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&ds(t,e.child,null,a),t.child.memoizedState=Qc(a),t.memoizedState=Xc,i);if(0==(1&t.mode))return eu(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,eu(e,t,a,r=kc(i=Error(yt(419)),r,void 0))}if(l=0!=(a&e.childLanes),Mc||l){if(null!==(r=Hu)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Hl(e,o),vd(r,e,o,-1))}return Td(),eu(e,t,a,r=kc(Error(yt(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Wd.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,bl=Ca(o.nextSibling),vl=t,yl=!0,xl=null,null!==e&&(sl[cl++]=dl,sl[cl++]=pl,sl[cl++]=ul,dl=e.id,pl=e.overflow,ul=t),t=Yc(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Kd(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?a=Kd(r,a):(a=Xd(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Qc(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Xc,o}return e=(a=e.child).sibling,o=Kd(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Yc(e,t){return(t=Qd({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function eu(e,t,n,r){return null!==r&&Il(r),ds(t,e.child,null,n),(e=Yc(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tu(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Al(e.return,t,n)}function nu(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function ru(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(qc(e,t,r.children,n),0!=(2&(r=ws.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&&tu(e,n,t);else if(19===e.tag)tu(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(Ba(ws,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===Es(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),nu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Es(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}nu(t,!0,n,null,i);break;case"together":nu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ou(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function iu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Qu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(yt(153));if(null!==t.child){for(n=Kd(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Kd(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function au(e,t){if(!yl)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 lu(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 su(e,t,n){var r=t.pendingProps;switch(gl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lu(t),null;case 1:case 17:return Ga(t.type)&&Ka(),lu(t),null;case 3:return r=t.stateNode,ys(),Fa(Ha),Fa($a),ks(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ll(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==xl&&(Sd(xl),xl=null))),Gc(e,t),lu(t),null;case 5:Ss(t);var o=vs(gs.current);if(n=t.type,null!==e&&null!=t.stateNode)Kc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(yt(166));return lu(t),null}if(e=vs(hs.current),Ll(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ra]=t,r[Oa]=i,e=0!=(1&t.mode),n){case"dialog":ea("cancel",r),ea("close",r);break;case"iframe":case"object":case"embed":ea("load",r);break;case"video":case"audio":for(o=0;o<Xi.length;o++)ea(Xi[o],r);break;case"source":ea("error",r);break;case"img":case"image":case"link":ea("error",r),ea("load",r);break;case"details":ea("toggle",r);break;case"input":dn(r,i),ea("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ea("invalid",r);break;case"textarea":yn(r,i),ea("invalid",r)}for(var a in Nn(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&fa(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&fa(r.textContent,l,e),o=["children",""+l]):St.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&ea("scroll",r)}switch(n){case"input":ln(r),hn(r,i,!0);break;case"textarea":ln(r),Sn(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=ha)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=wn(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ra]=t,e[Oa]=r,Vc(e,t,!1,!1),t.stateNode=e;e:{switch(a=Mn(n,r),n){case"dialog":ea("cancel",e),ea("close",e),o=r;break;case"iframe":case"object":case"embed":ea("load",e),o=r;break;case"video":case"audio":for(o=0;o<Xi.length;o++)ea(Xi[o],e);o=r;break;case"source":ea("error",e),o=r;break;case"img":case"image":case"link":ea("error",e),ea("load",e),o=r;break;case"details":ea("toggle",e),o=r;break;case"input":dn(e,r),o=un(e,r),ea("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Qt({},r,{value:void 0}),ea("invalid",e);break;case"textarea":yn(e,r),o=bn(e,r),ea("invalid",e)}for(i in Nn(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?Pn(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&Ln(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&Rn(e,s):"number"==typeof s&&Rn(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(St.hasOwnProperty(i)?null!=s&&"onScroll"===i&&ea("scroll",e):null!=s&&Nt(e,i,s,a))}switch(n){case"input":ln(e),hn(e,r,!1);break;case"textarea":ln(e),Sn(e);break;case"option":null!=r.value&&e.setAttribute("value",""+on(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?vn(e,!!r.multiple,i,!1):null!=r.defaultValue&&vn(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ha)}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 lu(t),null;case 6:if(e&&null!=t.stateNode)Zc(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(yt(166));if(n=vs(gs.current),vs(hs.current),Ll(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ra]=t,(i=r.nodeValue!==n)&&null!==(e=vl))switch(e.tag){case 3:fa(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&fa(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Ra]=t,t.stateNode=r}return lu(t),null;case 13:if(Fa(ws),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(yl&&null!==bl&&0!=(1&t.mode)&&0==(128&t.flags))Rl(),Ol(),t.flags|=98560,i=!1;else if(i=Ll(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(yt(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(yt(317));i[Ra]=t}else Ol(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;lu(t),i=!1}else null!==xl&&(Sd(xl),xl=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ws.current)?0===Zu&&(Zu=3):Td())),null!==t.updateQueue&&(t.flags|=4),lu(t),null);case 4:return ys(),Gc(e,t),null===e&&ra(t.stateNode.containerInfo),lu(t),null;case 10:return Dl(t.type._context),lu(t),null;case 19:if(Fa(ws),null===(i=t.memoizedState))return lu(t),null;if(r=0!=(128&t.flags),null===(a=i.rendering))if(r)au(i,!1);else{if(0!==Zu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=Es(e))){for(t.flags|=128,au(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ba(ws,1&ws.current|2),t.child}e=e.sibling}null!==i.tail&&pr()>rd&&(t.flags|=128,r=!0,au(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Es(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),au(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!yl)return lu(t),null}else 2*pr()-i.renderingStartTime>rd&&1073741824!==n&&(t.flags|=128,r=!0,au(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pr(),t.sibling=null,n=ws.current,Ba(ws,r?1&n|2:1&n),t):(lu(t),null);case 22:case 23:return Ld(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Gu)&&(lu(t),6&t.subtreeFlags&&(t.flags|=8192)):lu(t),null;case 24:case 25:return null}throw Error(yt(156,t.tag))}function cu(e,t){switch(gl(t),t.tag){case 1:return Ga(t.type)&&Ka(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ys(),Fa(Ha),Fa($a),ks(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ss(t),null;case 13:if(Fa(ws),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(yt(340));Ol()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Fa(ws),null;case 4:return ys(),null;case 10:return Dl(t.type._context),null;case 22:case 23:return Ld(),null;default:return null}}Vc=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}},Gc=function(){},Kc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,vs(hs.current);var i,a=null;switch(n){case"input":o=un(e,o),r=un(e,r),a=[];break;case"select":o=Qt({},o,{value:void 0}),r=Qt({},r,{value:void 0}),a=[];break;case"textarea":o=bn(e,o),r=bn(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ha)}for(c in Nn(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(St.hasOwnProperty(c)?a||(a=[]):(a=a||[]).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(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(St.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&ea("scroll",e),a||l===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Zc=function(e,t,n,r){n!==r&&(t.flags|=4)};var uu=!1,du=!1,pu="function"==typeof WeakSet?WeakSet:Set,fu=null;function hu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){jd(e,t,n)}else n.current=null}function mu(e,t,n){try{n()}catch(n){jd(e,t,n)}}var gu=!1;function vu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&mu(t,n,i)}o=o.next}while(o!==r)}}function bu(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 yu(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 xu(e){var t=e.alternate;null!==t&&(e.alternate=null,xu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Ra],delete t[Oa],delete t[Ta],delete t[Pa],delete t[_a])),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 Su(e){return 5===e.tag||3===e.tag||4===e.tag}function wu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Su(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 Eu(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=ha));else if(4!==r&&null!==(e=e.child))for(Eu(e,t,n),e=e.sibling;null!==e;)Eu(e,t,n),e=e.sibling}function Cu(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(Cu(e,t,n),e=e.sibling;null!==e;)Cu(e,t,n),e=e.sibling}var ku=null,Lu=!1;function Ru(e,t,n){for(n=n.child;null!==n;)Ou(e,t,n),n=n.sibling}function Ou(e,t,n){if(xr&&"function"==typeof xr.onCommitFiberUnmount)try{xr.onCommitFiberUnmount(yr,n)}catch(e){}switch(n.tag){case 5:du||hu(n,t);case 6:var r=ku,o=Lu;ku=null,Ru(e,t,n),Lu=o,null!==(ku=r)&&(Lu?(e=ku,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ku.removeChild(n.stateNode));break;case 18:null!==ku&&(Lu?(e=ku,n=n.stateNode,8===e.nodeType?Ea(e.parentNode,n):1===e.nodeType&&Ea(e,n),ro(e)):Ea(ku,n.stateNode));break;case 4:r=ku,o=Lu,ku=n.stateNode.containerInfo,Lu=!0,Ru(e,t,n),ku=r,Lu=o;break;case 0:case 11:case 14:case 15:if(!du&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&mu(n,t,a),o=o.next}while(o!==r)}Ru(e,t,n);break;case 1:if(!du&&(hu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){jd(n,t,e)}Ru(e,t,n);break;case 21:Ru(e,t,n);break;case 22:1&n.mode?(du=(r=du)||null!==n.memoizedState,Ru(e,t,n),du=r):Ru(e,t,n);break;default:Ru(e,t,n)}}function Iu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new pu),t.forEach((function(t){var r=$d.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Tu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:ku=l.stateNode,Lu=!1;break e;case 3:case 4:ku=l.stateNode.containerInfo,Lu=!0;break e}l=l.return}if(null===ku)throw Error(yt(160));Ou(i,a,o),ku=null,Lu=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){jd(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Pu(t,e),t=t.sibling}function Pu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tu(t,e),_u(e),4&r){try{vu(3,e,e.return),bu(3,e)}catch(t){jd(e,e.return,t)}try{vu(5,e,e.return)}catch(t){jd(e,e.return,t)}}break;case 1:Tu(t,e),_u(e),512&r&&null!==n&&hu(n,n.return);break;case 5:if(Tu(t,e),_u(e),512&r&&null!==n&&hu(n,n.return),32&e.flags){var o=e.stateNode;try{Rn(o,"")}catch(t){jd(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&pn(o,i),Mn(l,a);var c=Mn(l,i);for(a=0;a<s.length;a+=2){var u=s[a],d=s[a+1];"style"===u?Pn(o,d):"dangerouslySetInnerHTML"===u?Ln(o,d):"children"===u?Rn(o,d):Nt(o,u,d,c)}switch(l){case"input":fn(o,i);break;case"textarea":xn(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?vn(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?vn(o,!!i.multiple,i.defaultValue,!0):vn(o,!!i.multiple,i.multiple?[]:"",!1))}o[Oa]=i}catch(t){jd(e,e.return,t)}}break;case 6:if(Tu(t,e),_u(e),4&r){if(null===e.stateNode)throw Error(yt(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){jd(e,e.return,t)}}break;case 3:if(Tu(t,e),_u(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{ro(t.containerInfo)}catch(t){jd(e,e.return,t)}break;case 4:default:Tu(t,e),_u(e);break;case 13:Tu(t,e),_u(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(nd=pr())),4&r&&Iu(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(du=(c=du)||u,Tu(t,e),du=c):Tu(t,e),_u(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(fu=e,u=e.child;null!==u;){for(d=fu=u;null!==fu;){switch(f=(p=fu).child,p.tag){case 0:case 11:case 14:case 15:vu(4,p,p.return);break;case 1:hu(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){jd(r,n,e)}}break;case 5:hu(p,p.return);break;case 22:if(null!==p.memoizedState){zu(d);continue}}null!==f?(f.return=p,fu=f):zu(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(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=Tn("display",a))}catch(t){jd(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){jd(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:Tu(t,e),_u(e),4&r&&Iu(e);case 21:}}function _u(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Su(n)){var r=n;break e}n=n.return}throw Error(yt(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(Rn(o,""),r.flags&=-33),Cu(e,wu(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;Eu(e,wu(e),i);break;default:throw Error(yt(161))}}catch(t){jd(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Nu(e,t,n){fu=e,Mu(e)}function Mu(e,t,n){for(var r=0!=(1&e.mode);null!==fu;){var o=fu,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||uu;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||du;l=uu;var c=du;if(uu=a,(du=s)&&!c)for(fu=o;null!==fu;)s=(a=fu).child,22===a.tag&&null!==a.memoizedState?Du(o):null!==s?(s.return=a,fu=s):Du(o);for(;null!==i;)fu=i,Mu(i),i=i.sibling;fu=o,uu=l,du=c}qu(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,fu=i):qu(e)}}function qu(e){for(;null!==fu;){var t=fu;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:du||bu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!du)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Pl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Yl(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Yl(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&ro(d)}}}break;default:throw Error(yt(163))}du||512&t.flags&&yu(t)}catch(e){jd(t,t.return,e)}}if(t===e){fu=null;break}if(null!==(n=t.sibling)){n.return=t.return,fu=n;break}fu=t.return}}function zu(e){for(;null!==fu;){var t=fu;if(t===e){fu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,fu=n;break}fu=t.return}}function Du(e){for(;null!==fu;){var t=fu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bu(4,t)}catch(e){jd(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){jd(t,o,e)}}var i=t.return;try{yu(t)}catch(e){jd(t,i,e)}break;case 5:var a=t.return;try{yu(t)}catch(e){jd(t,a,e)}}}catch(e){jd(t,t.return,e)}if(t===e){fu=null;break}var l=t.sibling;if(null!==l){l.return=t.return,fu=l;break}fu=t.return}}var Au,ju=Math.ceil,Fu=Mt.ReactCurrentDispatcher,Bu=Mt.ReactCurrentOwner,Wu=Mt.ReactCurrentBatchConfig,$u=0,Hu=null,Uu=null,Vu=0,Gu=0,Ku=ja(0),Zu=0,Xu=null,Qu=0,Ju=0,Yu=0,ed=null,td=null,nd=0,rd=1/0,od=null,id=!1,ad=null,ld=null,sd=!1,cd=null,ud=0,dd=0,pd=null,fd=-1,hd=0;function md(){return 0!=(6&$u)?pr():-1!==fd?fd:fd=pr()}function gd(e){return 0==(1&e.mode)?1:0!=(2&$u)&&0!==Vu?Vu&-Vu:null!==Tl.transition?(0===hd&&(hd=Tr()),hd):0!==(e=Mr)?e:e=void 0===(e=window.event)?16:po(e.type)}function vd(e,t,n,r){if(50<dd)throw dd=0,pd=null,Error(yt(185));_r(e,n,r),0!=(2&$u)&&e===Hu||(e===Hu&&(0==(2&$u)&&(Ju|=n),4===Zu&&wd(e,Vu)),bd(e,r),1===n&&0===$u&&0==(1&t.mode)&&(rd=pr()+500,el&&rl()))}function bd(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Sr(i),l=1<<a,s=o[a];-1===s?0!=(l&n)&&0==(l&r)||(o[a]=Or(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=Rr(e,e===Hu?Vu:0);if(0===r)null!==n&&cr(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&cr(n),1===t)0===e.tag?function(e){el=!0,nl(e)}(Ed.bind(null,e)):nl(Ed.bind(null,e)),Sa((function(){0==(6&$u)&&rl()})),n=null;else{switch(qr(r)){case 1:n=hr;break;case 4:n=mr;break;case 16:default:n=gr;break;case 536870912:n=br}n=Hd(n,yd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yd(e,t){if(fd=-1,hd=0,0!=(6&$u))throw Error(yt(327));var n=e.callbackNode;if(Dd()&&e.callbackNode!==n)return null;var r=Rr(e,e===Hu?Vu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Pd(e,r);else{t=r;var o=$u;$u|=2;var i=Id();for(Hu===e&&Vu===t||(od=null,rd=pr()+500,Rd(e,t));;)try{Nd();break}catch(t){Od(e,t)}zl(),Fu.current=i,$u=o,null!==Uu?t=0:(Hu=null,Vu=0,t=Zu)}if(0!==t){if(2===t&&(0!==(o=Ir(e))&&(r=o,t=xd(e,o))),1===t)throw n=Xu,Rd(e,0),wd(e,r),bd(e,pr()),n;if(6===t)wd(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!wi(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=Pd(e,r))&&(0!==(i=Ir(e))&&(r=i,t=xd(e,i))),1===t))throw n=Xu,Rd(e,0),wd(e,r),bd(e,pr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(yt(345));case 2:case 5:zd(e,td,od);break;case 3:if(wd(e,r),(130023424&r)===r&&10<(t=nd+500-pr())){if(0!==Rr(e,0))break;if(((o=e.suspendedLanes)&r)!==r){md(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ba(zd.bind(null,e,td,od),t);break}zd(e,td,od);break;case 4:if(wd(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Sr(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=pr()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ju(r/1960))-r)){e.timeoutHandle=ba(zd.bind(null,e,td,od),r);break}zd(e,td,od);break;default:throw Error(yt(329))}}}return bd(e,pr()),e.callbackNode===n?yd.bind(null,e):null}function xd(e,t){var n=ed;return e.current.memoizedState.isDehydrated&&(Rd(e,t).flags|=256),2!==(e=Pd(e,t))&&(t=td,td=n,null!==t&&Sd(t)),e}function Sd(e){null===td?td=e:td.push.apply(td,e)}function wd(e,t){for(t&=~Yu,t&=~Ju,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Sr(t),r=1<<n;e[n]=-1,t&=~r}}function Ed(e){if(0!=(6&$u))throw Error(yt(327));Dd();var t=Rr(e,0);if(0==(1&t))return bd(e,pr()),null;var n=Pd(e,t);if(0!==e.tag&&2===n){var r=Ir(e);0!==r&&(t=r,n=xd(e,r))}if(1===n)throw n=Xu,Rd(e,0),wd(e,t),bd(e,pr()),n;if(6===n)throw Error(yt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zd(e,td,od),bd(e,pr()),null}function Cd(e,t){var n=$u;$u|=1;try{return e(t)}finally{0===($u=n)&&(rd=pr()+500,el&&rl())}}function kd(e){null!==cd&&0===cd.tag&&0==(6&$u)&&Dd();var t=$u;$u|=1;var n=Wu.transition,r=Mr;try{if(Wu.transition=null,Mr=1,e)return e()}finally{Mr=r,Wu.transition=n,0==(6&($u=t))&&rl()}}function Ld(){Gu=Ku.current,Fa(Ku)}function Rd(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ya(n)),null!==Uu)for(n=Uu.return;null!==n;){var r=n;switch(gl(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ka();break;case 3:ys(),Fa(Ha),Fa($a),ks();break;case 5:Ss(r);break;case 4:ys();break;case 13:case 19:Fa(ws);break;case 10:Dl(r.type._context);break;case 22:case 23:Ld()}n=n.return}if(Hu=e,Uu=e=Kd(e.current,null),Vu=Gu=t,Zu=0,Xu=null,Yu=Ju=Qu=0,td=ed=null,null!==Bl){for(t=0;t<Bl.length;t++)if(null!==(r=(n=Bl[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Bl=null}return e}function Od(e,t){for(;;){var n=Uu;try{if(zl(),Ls.current=xc,_s){for(var r=Is.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}_s=!1}if(Os=0,Ps=Ts=Is=null,Ns=!1,Ms=0,Bu.current=null,null===n||null===n.return){Zu=1,Xu=t,Uu=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Vu,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=Pc(a);if(null!==f){f.flags&=-257,_c(f,a,l,0,t),1&f.mode&&Tc(i,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)){Tc(i,c,t),Td();break e}s=Error(yt(426))}else if(yl&&1&l.mode){var g=Pc(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),_c(g,a,l,0,t),Il(Cc(s,l));break e}}i=s=Cc(s,l),4!==Zu&&(Zu=2),null===ed?ed=[i]:ed.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ql(i,Oc(0,s,t));break e;case 1:l=s;var v=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===ld||!ld.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Ql(i,Ic(i,l,t));break e}}i=i.return}while(null!==i)}qd(n)}catch(e){t=e,Uu===n&&null!==n&&(Uu=n=n.return);continue}break}}function Id(){var e=Fu.current;return Fu.current=xc,null===e?xc:e}function Td(){0!==Zu&&3!==Zu&&2!==Zu||(Zu=4),null===Hu||0==(268435455&Qu)&&0==(268435455&Ju)||wd(Hu,Vu)}function Pd(e,t){var n=$u;$u|=2;var r=Id();for(Hu===e&&Vu===t||(od=null,Rd(e,t));;)try{_d();break}catch(t){Od(e,t)}if(zl(),$u=n,Fu.current=r,null!==Uu)throw Error(yt(261));return Hu=null,Vu=0,Zu}function _d(){for(;null!==Uu;)Md(Uu)}function Nd(){for(;null!==Uu&&!ur();)Md(Uu)}function Md(e){var t=Au(e.alternate,e,Gu);e.memoizedProps=e.pendingProps,null===t?qd(e):Uu=t,Bu.current=null}function qd(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=su(n,t,Gu)))return void(Uu=n)}else{if(null!==(n=cu(n,t)))return n.flags&=32767,void(Uu=n);if(null===e)return Zu=6,void(Uu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Uu=t);Uu=t=e}while(null!==t);0===Zu&&(Zu=5)}function zd(e,t,n){var r=Mr,o=Wu.transition;try{Wu.transition=null,Mr=1,function(e,t,n,r){do{Dd()}while(null!==cd);if(0!=(6&$u))throw Error(yt(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(yt(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Sr(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Hu&&(Uu=Hu=null,Vu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||sd||(sd=!0,Hd(gr,(function(){return Dd(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Wu.transition,Wu.transition=null;var a=Mr;Mr=1;var l=$u;$u|=4,Bu.current=null,function(e,t){if(ma=io,Oi(e=Ri())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,s=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++c===o&&(l=a),p===i&&++u===r&&(s=a),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ga={focusedElem:e,selectionRange:n},io=!1,fu=t;null!==fu;)if(e=(t=fu).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,fu=e;else for(;null!==fu;){t=fu;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:Pl(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(yt(163))}}catch(e){jd(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,fu=e;break}fu=t.return}h=gu,gu=!1}(e,n),Pu(n,e),Ii(ga),io=!!ma,ga=ma=null,e.current=n,Nu(n),dr(),$u=l,Mr=a,Wu.transition=i}else e.current=n;if(sd&&(sd=!1,cd=e,ud=o),i=e.pendingLanes,0===i&&(ld=null),function(e){if(xr&&"function"==typeof xr.onCommitFiberRoot)try{xr.onCommitFiberRoot(yr,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),bd(e,pr()),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(id)throw id=!1,e=ad,ad=null,e;0!=(1&ud)&&0!==e.tag&&Dd(),i=e.pendingLanes,0!=(1&i)?e===pd?dd++:(dd=0,pd=e):dd=0,rl()}(e,t,n,r)}finally{Wu.transition=o,Mr=r}return null}function Dd(){if(null!==cd){var e=qr(ud),t=Wu.transition,n=Mr;try{if(Wu.transition=null,Mr=16>e?16:e,null===cd)var r=!1;else{if(e=cd,cd=null,ud=0,0!=(6&$u))throw Error(yt(331));var o=$u;for($u|=4,fu=e.current;null!==fu;){var i=fu,a=i.child;if(0!=(16&fu.flags)){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var c=l[s];for(fu=c;null!==fu;){var u=fu;switch(u.tag){case 0:case 11:case 15:vu(8,u,i)}var d=u.child;if(null!==d)d.return=u,fu=d;else for(;null!==fu;){var p=(u=fu).sibling,f=u.return;if(xu(u),u===c){fu=null;break}if(null!==p){p.return=f,fu=p;break}fu=f}}}var h=i.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)}}fu=i}}if(0!=(2064&i.subtreeFlags)&&null!==a)a.return=i,fu=a;else e:for(;null!==fu;){if(0!=(2048&(i=fu).flags))switch(i.tag){case 0:case 11:case 15:vu(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,fu=v;break e}fu=i.return}}var b=e.current;for(fu=b;null!==fu;){var y=(a=fu).child;if(0!=(2064&a.subtreeFlags)&&null!==y)y.return=a,fu=y;else e:for(a=b;null!==fu;){if(0!=(2048&(l=fu).flags))try{switch(l.tag){case 0:case 11:case 15:bu(9,l)}}catch(e){jd(l,l.return,e)}if(l===a){fu=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,fu=x;break e}fu=l.return}}if($u=o,rl(),xr&&"function"==typeof xr.onPostCommitFiberRoot)try{xr.onPostCommitFiberRoot(yr,e)}catch(e){}r=!0}return r}finally{Mr=n,Wu.transition=t}}return!1}function Ad(e,t,n){e=Zl(e,t=Oc(0,t=Cc(n,t),1),1),t=md(),null!==e&&(_r(e,1,t),bd(e,t))}function jd(e,t,n){if(3===e.tag)Ad(e,e,n);else for(;null!==t;){if(3===t.tag){Ad(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ld||!ld.has(r))){t=Zl(t,e=Ic(t,e=Cc(n,e),1),1),e=md(),null!==t&&(_r(t,1,e),bd(t,e));break}}t=t.return}}function Fd(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=md(),e.pingedLanes|=e.suspendedLanes&n,Hu===e&&(Vu&n)===n&&(4===Zu||3===Zu&&(130023424&Vu)===Vu&&500>pr()-nd?Rd(e,0):Yu|=n),bd(e,t)}function Bd(e,t){0===t&&(0==(1&e.mode)?t=1:(t=kr,0==(130023424&(kr<<=1))&&(kr=4194304)));var n=md();null!==(e=Hl(e,t))&&(_r(e,t,n),bd(e,n))}function Wd(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Bd(e,n)}function $d(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(yt(314))}null!==r&&r.delete(t),Bd(e,n)}function Hd(e,t){return sr(e,t)}function Ud(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 Vd(e,t,n,r){return new Ud(e,t,n,r)}function Gd(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Kd(e,t){var n=e.alternate;return null===n?((n=Vd(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 Zd(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Gd(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Dt:return Xd(n.children,o,i,t);case At:a=8,o|=8;break;case jt:return(e=Vd(12,n,t,2|o)).elementType=jt,e.lanes=i,e;case $t:return(e=Vd(13,n,t,o)).elementType=$t,e.lanes=i,e;case Ht:return(e=Vd(19,n,t,o)).elementType=Ht,e.lanes=i,e;case Gt:return Qd(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ft:a=10;break e;case Bt:a=9;break e;case Wt:a=11;break e;case Ut:a=14;break e;case Vt:a=16,r=null;break e}throw Error(yt(130,null==e?e:typeof e,""))}return(t=Vd(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Xd(e,t,n,r){return(e=Vd(7,e,r,t)).lanes=n,e}function Qd(e,t,n,r){return(e=Vd(22,e,r,t)).elementType=Gt,e.lanes=n,e.stateNode={isHidden:!1},e}function Jd(e,t,n){return(e=Vd(6,e,null,t)).lanes=n,e}function Yd(e,t,n){return(t=Vd(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ep(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=Pr(0),this.expirationTimes=Pr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pr(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function tp(e,t,n,r,o,i,a,l,s){return e=new ep(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Vd(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vl(i),e}function np(e){if(!e)return Wa;e:{if(rr(e=e._reactInternals)!==e||1!==e.tag)throw Error(yt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ga(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(yt(171))}if(1===e.tag){var n=e.type;if(Ga(n))return Xa(e,n,t)}return t}function rp(e,t,n,r,o,i,a,l,s){return(e=tp(n,r,!0,e,0,i,0,l,s)).context=np(null),n=e.current,(i=Kl(r=md(),o=gd(n))).callback=null!=t?t:null,Zl(n,i,o),e.current.lanes=o,_r(e,o,r),bd(e,r),e}function op(e,t,n,r){var o=t.current,i=md(),a=gd(o);return n=np(n),null===t.context?t.context=n:t.pendingContext=n,(t=Kl(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Zl(o,t,a))&&(vd(e,o,a,i),Xl(e,o,a)),a}function ip(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ap(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function lp(e,t){ap(e,t),(e=e.alternate)&&ap(e,t)}Au=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ha.current)Mc=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Mc=!1,function(e,t,n){switch(t.tag){case 3:Hc(t),Ol();break;case 5:xs(t);break;case 1:Ga(t.type)&&Qa(t);break;case 4:bs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ba(_l,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ba(ws,1&ws.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Jc(e,t,n):(Ba(ws,1&ws.current),null!==(e=iu(e,t,n))?e.sibling:null);Ba(ws,1&ws.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return ru(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ba(ws,ws.current),r)break;return null;case 22:case 23:return t.lanes=0,jc(e,t,n)}return iu(e,t,n)}(e,t,n);Mc=0!=(131072&e.flags)}else Mc=!1,yl&&0!=(1048576&t.flags)&&hl(t,ll,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ou(e,t),e=t.pendingProps;var o=Va(t,$a.current);jl(t,n),o=As(null,t,r,e,o,n);var i=js();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,Ga(r)?(i=!0,Qa(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Vl(t),o.updater=ns,t.stateNode=o,o._reactInternals=t,as(t,r,e,n),t=$c(null,t,r,!0,i,n)):(t.tag=0,yl&&i&&ml(t),qc(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ou(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Gd(e)?1:0;if(null!=e){if((e=e.$$typeof)===Wt)return 11;if(e===Ut)return 14}return 2}(r),e=Pl(r,e),o){case 0:t=Bc(null,t,r,e,n);break e;case 1:t=Wc(null,t,r,e,n);break e;case 11:t=zc(null,t,r,e,n);break e;case 14:t=Dc(null,t,r,Pl(r.type,e),n);break e}throw Error(yt(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Bc(e,t,r,o=t.elementType===r?o:Pl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Wc(e,t,r,o=t.elementType===r?o:Pl(r,o),n);case 3:e:{if(Hc(t),null===e)throw Error(yt(387));r=t.pendingProps,o=(i=t.memoizedState).element,Gl(e,t),Jl(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Uc(e,t,r,n,o=Cc(Error(yt(423)),t));break e}if(r!==o){t=Uc(e,t,r,n,o=Cc(Error(yt(424)),t));break e}for(bl=Ca(t.stateNode.containerInfo.firstChild),vl=t,yl=!0,xl=null,n=ps(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Ol(),r===o){t=iu(e,t,n);break e}qc(e,t,r,n)}t=t.child}return t;case 5:return xs(t),null===e&&Cl(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,va(r,o)?a=null:null!==i&&va(r,i)&&(t.flags|=32),Fc(e,t),qc(e,t,a,n),t.child;case 6:return null===e&&Cl(t),null;case 13:return Jc(e,t,n);case 4:return bs(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ds(t,null,r,n):qc(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,zc(e,t,r,o=t.elementType===r?o:Pl(r,o),n);case 7:return qc(e,t,t.pendingProps,n),t.child;case 8:case 12:return qc(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ba(_l,r._currentValue),r._currentValue=a,null!==i)if(wi(i.value,a)){if(i.children===o.children&&!Ha.current){t=iu(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=Kl(-1,n&-n)).tag=2;var c=i.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}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Al(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(yt(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Al(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}qc(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jl(t,n),r=r(o=Fl(o)),t.flags|=1,qc(e,t,r,n),t.child;case 14:return o=Pl(r=t.type,t.pendingProps),Dc(e,t,r,o=Pl(r.type,o),n);case 15:return Ac(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pl(r,o),ou(e,t),t.tag=1,Ga(r)?(e=!0,Qa(t)):e=!1,jl(t,n),os(t,r,o),as(t,r,o,n),$c(null,t,r,!0,e,n);case 19:return ru(e,t,n);case 22:return jc(e,t,n)}throw Error(yt(156,t.tag))};var sp="function"==typeof reportError?reportError:function(e){console.error(e)};function cp(e){this._internalRoot=e}function up(e){this._internalRoot=e}function dp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function pp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function fp(){}function hp(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=ip(a);l.call(e)}}op(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=ip(a);i.call(e)}}var a=rp(t,r,e,0,null,!1,0,"",fp);return e._reactRootContainer=a,e[Ia]=a.current,ra(8===e.nodeType?e.parentNode:e),kd(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=ip(s);l.call(e)}}var s=tp(e,0,!1,null,0,!1,0,"",fp);return e._reactRootContainer=s,e[Ia]=s.current,ra(8===e.nodeType?e.parentNode:e),kd((function(){op(t,s,n,r)})),s}(n,t,e,o,r);return ip(a)}up.prototype.render=cp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(yt(409));op(e,t,null,null)},up.prototype.unmount=cp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;kd((function(){op(null,e,null,null)})),t[Ia]=null}},up.prototype.unstable_scheduleHydration=function(e){if(e){var t=jr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kr.length&&0!==t&&t<Kr[n].priority;n++);Kr.splice(n,0,e),0===n&&Jr(e)}},zr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Lr(t.pendingLanes);0!==n&&(Nr(t,1|n),bd(t,pr()),0==(6&$u)&&(rd=pr()+500,rl()))}break;case 13:kd((function(){var t=Hl(e,1);if(null!==t){var n=md();vd(t,e,1,n)}})),lp(e,1)}},Dr=function(e){if(13===e.tag){var t=Hl(e,134217728);if(null!==t)vd(t,e,134217728,md());lp(e,134217728)}},Ar=function(e){if(13===e.tag){var t=gd(e),n=Hl(e,t);if(null!==n)vd(n,e,t,md());lp(e,t)}},jr=function(){return Mr},Fr=function(e,t){var n=Mr;try{return Mr=e,t()}finally{Mr=n}},Dn=function(e,t,n){switch(t){case"input":if(fn(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=za(r);if(!o)throw Error(yt(90));sn(r),fn(r,o)}}}break;case"textarea":xn(e,n);break;case"select":null!=(t=n.value)&&vn(e,!!n.multiple,t,!1)}},$n=Cd,Hn=kd;var mp={usingClientEntryPoint:!1,Events:[Ma,qa,za,Bn,Wn,Cd]},gp={findFiberByHostInstance:Na,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vp={bundleType:gp.bundleType,version:gp.version,rendererPackageName:gp.rendererPackageName,rendererConfig:gp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Mt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ar(e))?null:e.stateNode},findFiberByHostInstance:gp.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bp.isDisabled&&bp.supportsFiber)try{yr=bp.inject(vp),xr=bp}catch(kn){}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mp,ft.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!dp(t))throw Error(yt(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:zt,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},ft.createRoot=function(e,t){if(!dp(e))throw Error(yt(299));var n=!1,r="",o=sp;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=tp(e,1,!1,null,0,n,0,r,o),e[Ia]=t.current,ra(8===e.nodeType?e.parentNode:e),new cp(t)},ft.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(yt(188));throw e=Object.keys(e).join(","),Error(yt(268,e))}return e=null===(e=ar(t))?null:e.stateNode},ft.flushSync=function(e){return kd(e)},ft.hydrate=function(e,t,n){if(!pp(t))throw Error(yt(200));return hp(null,e,t,!0,n)},ft.hydrateRoot=function(e,t,n){if(!dp(e))throw Error(yt(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=sp;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=rp(t,null,e,1,null!=n?n:null,o,0,i,a),e[Ia]=t.current,ra(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 up(t)},ft.render=function(e,t,n){if(!pp(t))throw Error(yt(200));return hp(null,e,t,!1,n)},ft.unmountComponentAtNode=function(e){if(!pp(e))throw Error(yt(40));return!!e._reactRootContainer&&(kd((function(){hp(null,null,e,!1,(function(){e._reactRootContainer=null,e[Ia]=null}))})),!0)},ft.unstable_batchedUpdates=Cd,ft.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pp(n))throw Error(yt(200));if(null==e||void 0===e._reactInternals)throw Error(yt(38));return hp(e,t,n,!1,r)},ft.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),pt.exports=ft;var yp=pt.exports,xp=n(yp),Sp=yp;function wp(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Ep(e){if(!wp(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Ep(e[n])})),t}function Cp(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return wp(e)&&wp(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(wp(t[o])&&o in e&&wp(e[o])?r[o]=Cp(e[o],t[o],n):n.clone?r[o]=wp(t[o])?Ep(t[o]):t[o]:r[o]=t[o])})),r}function kp(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."}dt.createRoot=Sp.createRoot,dt.hydrateRoot=Sp.hydrateRoot;var Lp,Rp={exports:{}},Op={},Ip=Symbol.for("react.element"),Tp=Symbol.for("react.portal"),Pp=Symbol.for("react.fragment"),_p=Symbol.for("react.strict_mode"),Np=Symbol.for("react.profiler"),Mp=Symbol.for("react.provider"),qp=Symbol.for("react.context"),zp=Symbol.for("react.server_context"),Dp=Symbol.for("react.forward_ref"),Ap=Symbol.for("react.suspense"),jp=Symbol.for("react.suspense_list"),Fp=Symbol.for("react.memo"),Bp=Symbol.for("react.lazy"),Wp=Symbol.for("react.offscreen");function $p(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ip:switch(e=e.type){case Pp:case Np:case _p:case Ap:case jp:return e;default:switch(e=e&&e.$$typeof){case zp:case qp:case Dp:case Bp:case Fp:case Mp:return e;default:return t}}case Tp:return t}}}Lp=Symbol.for("react.module.reference"),Op.ContextConsumer=qp,Op.ContextProvider=Mp,Op.Element=Ip,Op.ForwardRef=Dp,Op.Fragment=Pp,Op.Lazy=Bp,Op.Memo=Fp,Op.Portal=Tp,Op.Profiler=Np,Op.StrictMode=_p,Op.Suspense=Ap,Op.SuspenseList=jp,Op.isAsyncMode=function(){return!1},Op.isConcurrentMode=function(){return!1},Op.isContextConsumer=function(e){return $p(e)===qp},Op.isContextProvider=function(e){return $p(e)===Mp},Op.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ip},Op.isForwardRef=function(e){return $p(e)===Dp},Op.isFragment=function(e){return $p(e)===Pp},Op.isLazy=function(e){return $p(e)===Bp},Op.isMemo=function(e){return $p(e)===Fp},Op.isPortal=function(e){return $p(e)===Tp},Op.isProfiler=function(e){return $p(e)===Np},Op.isStrictMode=function(e){return $p(e)===_p},Op.isSuspense=function(e){return $p(e)===Ap},Op.isSuspenseList=function(e){return $p(e)===jp},Op.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Pp||e===Np||e===_p||e===Ap||e===jp||e===Wp||"object"==typeof e&&null!==e&&(e.$$typeof===Bp||e.$$typeof===Fp||e.$$typeof===Mp||e.$$typeof===qp||e.$$typeof===Dp||e.$$typeof===Lp||void 0!==e.getModuleId)},Op.typeOf=$p,Rp.exports=Op;var Hp=Rp.exports;function Up(e){if("string"!=typeof e)throw new Error(kp(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Vp(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Gp(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Kp(e,t){return H.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function Zp(e){return e&&e.ownerDocument||document}function Xp(e){return Zp(e).defaultView||window}function Qp(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Jp="undefined"!=typeof window?H.useLayoutEffect:H.useEffect;let Yp=0;const ef=V["useId".toString()];function tf(e){if(void 0!==ef){const t=ef();return null!=e?e:t}return function(e){const[t,n]=H.useState(e),r=e||t;return H.useEffect((()=>{null==t&&(Yp+=1,n(`mui-${Yp}`))}),[t]),r}(e)}function nf({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=H.useRef(void 0!==e),[i,a]=H.useState(t);return[o?e:i,H.useCallback((e=>{o||a(e)}),[])]}function rf(e){const t=H.useRef(e);return Jp((()=>{t.current=e})),H.useCallback(((...e)=>(0,t.current)(...e)),[])}function of(...e){return H.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Qp(e,t)}))}),e)}let af,lf=!0,sf=!1;const cf={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 uf(e){e.metaKey||e.altKey||e.ctrlKey||(lf=!0)}function df(){lf=!1}function pf(){"hidden"===this.visibilityState&&sf&&(lf=!0)}function ff(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return lf||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!cf[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function hf(){const e=H.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",uf,!0),t.addEventListener("mousedown",df,!0),t.addEventListener("pointerdown",df,!0),t.addEventListener("touchstart",df,!0),t.addEventListener("visibilitychange",pf,!0))}),[]),t=H.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ff(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(sf=!0,window.clearTimeout(af),af=window.setTimeout((()=>{sf=!1}),100),t.current=!1,!0)},ref:e}}function mf(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var gf=e=>{const t=H.useRef({});return H.useEffect((()=>{t.current=e})),t.current};function vf(e,t){const n={...t};return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]={...e[r],...n[r]};else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]={...i},Object.keys(o).forEach((e=>{n[r][e]=vf(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function bf(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const yf=e=>e;var xf=(()=>{let e=yf;return{configure(t){e=t},generate:t=>e(t),reset(){e=yf}}})();const Sf={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function wf(e,t,n="Mui"){const r=Sf[t];return r?`${n}-${r}`:`${xf.generate(e)}-${t}`}function Ef(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=wf(e,t,n)})),r}var Cf="$$material";function kf(){return kf=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},kf.apply(this,arguments)}function Lf(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Rf(){return Rf=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},Rf.apply(this,arguments)}function Of(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var If=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Tf=Of((function(e){return If.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Pf=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}(),_f="-ms-",Nf="-moz-",Mf="-webkit-",qf="comm",zf="rule",Df="decl",Af="@keyframes",jf=Math.abs,Ff=String.fromCharCode,Bf=Object.assign;function Wf(e){return e.trim()}function $f(e,t,n){return e.replace(t,n)}function Hf(e,t){return e.indexOf(t)}function Uf(e,t){return 0|e.charCodeAt(t)}function Vf(e,t,n){return e.slice(t,n)}function Gf(e){return e.length}function Kf(e){return e.length}function Zf(e,t){return t.push(e),e}var Xf=1,Qf=1,Jf=0,Yf=0,eh=0,th="";function nh(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Xf,column:Qf,length:a,return:""}}function rh(e,t){return Bf(nh("",null,null,"",null,null,0),e,{length:-e.length},t)}function oh(){return eh=Yf>0?Uf(th,--Yf):0,Qf--,10===eh&&(Qf=1,Xf--),eh}function ih(){return eh=Yf<Jf?Uf(th,Yf++):0,Qf++,10===eh&&(Qf=1,Xf++),eh}function ah(){return Uf(th,Yf)}function lh(){return Yf}function sh(e,t){return Vf(th,e,t)}function ch(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 uh(e){return Xf=Qf=1,Jf=Gf(th=e),Yf=0,[]}function dh(e){return th="",e}function ph(e){return Wf(sh(Yf-1,mh(91===e?e+2:40===e?e+1:e)))}function fh(e){for(;(eh=ah())&&eh<33;)ih();return ch(e)>2||ch(eh)>3?"":" "}function hh(e,t){for(;--t&&ih()&&!(eh<48||eh>102||eh>57&&eh<65||eh>70&&eh<97););return sh(e,lh()+(t<6&&32==ah()&&32==ih()))}function mh(e){for(;ih();)switch(eh){case e:return Yf;case 34:case 39:34!==e&&39!==e&&mh(eh);break;case 40:41===e&&mh(e);break;case 92:ih()}return Yf}function gh(e,t){for(;ih()&&e+eh!==57&&(e+eh!==84||47!==ah()););return"/*"+sh(t,Yf-1)+"*"+Ff(47===e?e:ih())}function vh(e){for(;!ch(ah());)ih();return sh(e,Yf)}function bh(e){return dh(yh("",null,null,null,[""],e=uh(e),0,[0],e))}function yh(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=i,w=r,E=y;g;)switch(h=b,b=ih()){case 40:if(108!=h&&58==Uf(E,d-1)){-1!=Hf(E+=$f(ph(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=ph(b);break;case 9:case 10:case 13:case 32:E+=fh(h);break;case 92:E+=hh(lh()-1,7);continue;case 47:switch(ah()){case 42:case 47:Zf(Sh(gh(ih(),lh()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Gf(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=$f(E,/\f/g,"")),f>0&&Gf(E)-d&&Zf(f>32?wh(E+";",r,n,d-1):wh($f(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Zf(w=xh(E,t,n,c,u,o,l,y,x=[],S=[],d),i),123===b)if(0===u)yh(E,t,w,w,x,i,d,l,S);else switch(99===p&&110===Uf(E,3)?100:p){case 100:case 108:case 109:case 115:yh(e,w,w,r&&Zf(xh(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:yh(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=v=1,y=E="",d=a;break;case 58:d=1+Gf(E),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==oh())continue;switch(E+=Ff(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Gf(E)-1)*v,v=1;break;case 64:45===ah()&&(E+=ph(ih())),p=ah(),u=d=Gf(y=E+=vh(lh())),b++;break;case 45:45===h&&2==Gf(E)&&(m=0)}}return i}function xh(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,p=0===o?i:[""],f=Kf(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Vf(e,d+1,d=jf(m=a[h])),y=e;v<f;++v)(y=Wf(m>0?p[v]+" "+b:$f(b,/&\f/g,p[v])))&&(s[g++]=y);return nh(e,t,n,0===o?zf:l,s,c,u)}function Sh(e,t,n){return nh(e,t,n,qf,Ff(eh),Vf(e,2,-2),0)}function wh(e,t,n,r){return nh(e,t,n,Df,Vf(e,0,r),Vf(e,r+1,-1),r)}function Eh(e,t){for(var n="",r=Kf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ch(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Df:return e.return=e.return||e.value;case qf:return"";case Af:return e.return=e.value+"{"+Eh(e.children,r)+"}";case zf:e.value=e.props.join(",")}return Gf(n=Eh(e.children,r))?e.return=e.value+"{"+n+"}":""}function kh(e){var t=Kf(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}var Lh=function(e,t,n){for(var r=0,o=0;r=o,o=ah(),38===r&&12===o&&(t[n]=1),!ch(o);)ih();return sh(e,Yf)},Rh=function(e,t){return dh(function(e,t){var n=-1,r=44;do{switch(ch(r)){case 0:38===r&&12===ah()&&(t[n]=1),e[n]+=Lh(Yf-1,t,n);break;case 2:e[n]+=ph(r);break;case 4:if(44===r){e[++n]=58===ah()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ff(r)}}while(r=ih());return e}(uh(e),t))},Oh=new WeakMap,Ih=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)||Oh.get(n))&&!r){Oh.set(e,!0);for(var o=[],i=Rh(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[c]):a[c]+" "+i[l]}}},Th=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ph(e,t){switch(function(e,t){return 45^Uf(e,0)?(((t<<2^Uf(e,0))<<2^Uf(e,1))<<2^Uf(e,2))<<2^Uf(e,3):0}(e,t)){case 5103:return Mf+"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 Mf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Mf+e+Nf+e+_f+e+e;case 6828:case 4268:return Mf+e+_f+e+e;case 6165:return Mf+e+_f+"flex-"+e+e;case 5187:return Mf+e+$f(e,/(\w+).+(:[^]+)/,Mf+"box-$1$2"+_f+"flex-$1$2")+e;case 5443:return Mf+e+_f+"flex-item-"+$f(e,/flex-|-self/,"")+e;case 4675:return Mf+e+_f+"flex-line-pack"+$f(e,/align-content|flex-|-self/,"")+e;case 5548:return Mf+e+_f+$f(e,"shrink","negative")+e;case 5292:return Mf+e+_f+$f(e,"basis","preferred-size")+e;case 6060:return Mf+"box-"+$f(e,"-grow","")+Mf+e+_f+$f(e,"grow","positive")+e;case 4554:return Mf+$f(e,/([^-])(transform)/g,"$1"+Mf+"$2")+e;case 6187:return $f($f($f(e,/(zoom-|grab)/,Mf+"$1"),/(image-set)/,Mf+"$1"),e,"")+e;case 5495:case 3959:return $f(e,/(image-set\([^]*)/,Mf+"$1$`$1");case 4968:return $f($f(e,/(.+:)(flex-)?(.*)/,Mf+"box-pack:$3"+_f+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Mf+e+e;case 4095:case 3583:case 4068:case 2532:return $f(e,/(.+)-inline(.+)/,Mf+"$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(Gf(e)-1-t>6)switch(Uf(e,t+1)){case 109:if(45!==Uf(e,t+4))break;case 102:return $f(e,/(.+:)(.+)-([^]+)/,"$1"+Mf+"$2-$3$1"+Nf+(108==Uf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Hf(e,"stretch")?Ph($f(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Uf(e,t+1))break;case 6444:switch(Uf(e,Gf(e)-3-(~Hf(e,"!important")&&10))){case 107:return $f(e,":",":"+Mf)+e;case 101:return $f(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Mf+(45===Uf(e,14)?"inline-":"")+"box$3$1"+Mf+"$2$3$1"+_f+"$2box$3")+e}break;case 5936:switch(Uf(e,t+11)){case 114:return Mf+e+_f+$f(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Mf+e+_f+$f(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Mf+e+_f+$f(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Mf+e+_f+e+e}return e}var _h="undefined"!=typeof document,Nh=_h?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 Of((function(){var e={};return function(t){return e[t]}}))})),Mh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Df:e.return=Ph(e.value,e.length);break;case Af:return Eh([rh(e,{value:$f(e.value,"@","@"+Mf)})],r);case zf:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Eh([rh(e,{props:[$f(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Eh([rh(e,{props:[$f(t,/:(plac\w+)/,":"+Mf+"input-$1")]}),rh(e,{props:[$f(t,/:(plac\w+)/,":-moz-$1")]}),rh(e,{props:[$f(t,/:(plac\w+)/,_f+"input-$1")]})],r)}return""}))}}],qh=function(e){var t=e.key;if(_h&&"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,i=e.stylisPlugins||Mh,a={},l=[];_h&&(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++)a[t[n]]=!0;l.push(e)})));var s,c=[Ih,Th];if(_h){var u,d=[Ch,(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=kh(c.concat(i,d));o=function(e,t,n,r){u=n,function(e){Eh(bh(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[Ch],h=kh(c.concat(i,f)),m=Nh(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return Eh(bh(e),h)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),i):r?void(v.inserted[o]=i):i}}var v={key:t,sheet:new Pf({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return v.sheet.hydrate(l),v},zh=Hp,Dh={};Dh[zh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Dh[zh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Ah="undefined"!=typeof document;var jh=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Ah&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Fh=function(e,t,n){jh(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);Ah||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!Ah&&0!==o.length)return o}};var Bh={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=/[A-Z]|^ms/g,$h=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hh=function(e){return 45===e.charCodeAt(1)},Uh=function(e){return null!=e&&"boolean"!=typeof e},Vh=Of((function(e){return Hh(e)?e:e.replace(Wh,"-$&").toLowerCase()})),Gh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($h,(function(e,t,n){return Zh={name:t,styles:n,next:Zh},t}))}return 1===Bh[e]||Hh(e)||"number"!=typeof t||0===t?t:t+"px"};function Kh(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Zh={name:n.name,styles:n.styles,next:Zh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Zh={name:r.name,styles:r.styles,next:Zh},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Kh(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Uh(a)&&(r+=Vh(i)+":"+Gh(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Kh(e,t,a);switch(i){case"animation":case"animationName":r+=Vh(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)Uh(a[s])&&(r+=Vh(i)+":"+Gh(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Zh,i=n(e);return Zh=o,Kh(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Zh,Xh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Qh=function(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="";Zh=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Kh(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Kh(n,t,e[a]),r&&(o+=i[a]);Xh.lastIndex=0;for(var l,s="";null!==(l=Xh.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:Zh}},Jh="undefined"!=typeof document,Yh=function(e){return e()},em=!!V.useInsertionEffect&&V.useInsertionEffect,tm=Jh&&em||Yh,nm=em||H.useLayoutEffect,rm="undefined"!=typeof document,om=H.createContext("undefined"!=typeof HTMLElement?qh({key:"css"}):null),im=om.Provider,am=function(e){return H.forwardRef((function(t,n){var r=H.useContext(om);return e(t,r,n)}))};rm||(am=function(e){return function(t){var n=H.useContext(om);return null===n?(n=qh({key:"css"}),H.createElement(om.Provider,{value:n},e(t,n))):e(t,n)}});var lm=H.createContext({}),sm=am((function(e,t){var n=e.styles,r=Qh([n],void 0,H.useContext(lm));if(!rm){for(var o,i=r.name,a=r.styles,l=r.next;void 0!==l;)i+=" "+l.name,a+=l.styles,l=l.next;var s=!0===t.compat,c=t.insert("",{name:i,styles:a},t.sheet,s);return s?null:H.createElement("style",((o={})["data-emotion"]=t.key+"-global "+i,o.dangerouslySetInnerHTML={__html:c},o.nonce=t.sheet.nonce,o))}var u=H.useRef();return nm((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),u.current=[n,o],function(){n.flush()}}),[t]),nm((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Fh(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function cm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qh(t)}var um=function(){var e=cm.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_"}}},dm=Tf,pm=function(e){return"theme"!==e},fm=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?dm:pm},hm=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},mm="undefined"!=typeof document,gm=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;jh(t,n,r);var o=tm((function(){return Fh(t,n,r)}));if(!mm&&void 0!==o){for(var i,a=n.name,l=n.next;void 0!==l;)a+=" "+l.name,l=l.next;return H.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},vm=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=hm(t,n,i),s=l||fm(a),c=!s("as");return function(){var u=arguments,d=i&&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=am((function(e,t,n){var r,i,u,p,f=c&&e.as||a,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=H.useContext(lm)}"string"==typeof e.className?(r=t.registered,i=m,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==r[e]?i.push(r[e]+";"):p+=e+" "})),h=p):null!=e.className&&(h=e.className+" ");var b=Qh(d.concat(m),t.registered,g);h+=t.key+"-"+b.name,void 0!==o&&(h+=" "+o);var y=c&&void 0===l?fm(f):s,x={};for(var S in e)c&&"as"===S||y(S)&&(x[S]=e[S]);return x.className=h,x.ref=n,H.createElement(H.Fragment,null,H.createElement(gm,{cache:t,serialized:b,isStringTag:"string"==typeof f}),H.createElement(f,x))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Rf({},n,r,{shouldForwardProp:hm(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){vm[e]=vm(e)}));var bm={exports:{}},ym={},xm=H,Sm=Symbol.for("react.element"),wm=Symbol.for("react.fragment"),Em=Object.prototype.hasOwnProperty,Cm=xm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,km={key:!0,ref:!0,__self:!0,__source:!0};function Lm(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Em.call(t,r)&&!km.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:Sm,type:e,key:i,ref:a,props:o,_owner:Cm.current}}ym.Fragment=wm,ym.jsx=Lm,ym.jsxs=Lm,bm.exports=ym;var Rm=bm.exports;let Om;function Im(e){const{injectFirst:t,children:n}=e;return t&&Om?Rm.jsx(im,{value:Om,children:n}):n}function Tm(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 Rm.jsx(sm,{styles:r})}
|
|
27
27
|
/**
|
|
28
|
-
* @mui/styled-engine v5.
|
|
28
|
+
* @mui/styled-engine v5.13.2
|
|
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 Pg(e,t){return hm(e,t)}"object"==typeof document&&(Ig=function(e){var t=e.key;if(gg&&"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,i=e.stylisPlugins||bg,a={},l=[];gg&&(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++)a[t[n]]=!0;l.push(e)})));var s,c=[fg,hg];if(gg){var u,d=[sg,(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=cg(c.concat(i,d));o=function(e,t,n,r){u=n,function(e){lg(ng(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[sg],h=cg(c.concat(i,f)),m=vg(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return lg(ng(e),h)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),i):r?void(v.inserted[o]=i):i}}var v={key:t,sheet:new mm({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return v.sheet.hydrate(l),v}({key:"css",prepend:!0}));const Ng=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)=>({...e,[t.key]:t.val})),{})};function Mg(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=Ng(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return{keys:a,values:i,up:l,down:s,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}var qg={borderRadius:4};function zg(e,t){return t?Cp(e,t,{clone:!1}):e}const Dg={xs:0,sm:600,md:900,lg:1200,xl:1536},Ag={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Dg[e]}px)`};function jg(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Ag;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Ag;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Dg).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Fg({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function $g(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 Bg(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:$g(e,n)||r,t&&(o=t(o,r,e)),o}function Wg(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=$g(e.theme,r)||{};return jg(e,i,(e=>{let r=Bg(a,o,e);return e===r&&"string"==typeof e&&(r=Bg(a,o,`${t}${"default"===e?"":Up(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Hg={m:"margin",p:"padding"},Ug={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Vg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Gg=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Vg[e])return[e];e=Vg[e]}const[t,n]=e.split(""),r=Hg[t],o=Ug[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Kg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Xg(e,t,n,r){var o;const i=null!=(o=$g(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Qg(e){return Xg(e,"spacing",8)}function Jg(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 Yg(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Jg(t,n),e)),{})}(Gg(n),r);return jg(e,e[n],o)}function ev(e,t){const n=Qg(e.theme);return Object.keys(e).map((r=>Yg(e,t,r,n))).reduce(zg,{})}function tv(e){return ev(e,Kg)}function nv(e){return ev(e,Zg)}function rv(e=8){if(e.mui)return e;const t=Qg({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 ov(...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]?zg(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function iv(e){return"number"!=typeof e?e:`${e}px solid`}tv.propTypes={},tv.filterProps=Kg,nv.propTypes={},nv.filterProps=Zg;const av=Wg({prop:"border",themeKey:"borders",transform:iv}),lv=Wg({prop:"borderTop",themeKey:"borders",transform:iv}),sv=Wg({prop:"borderRight",themeKey:"borders",transform:iv}),cv=Wg({prop:"borderBottom",themeKey:"borders",transform:iv}),uv=Wg({prop:"borderLeft",themeKey:"borders",transform:iv}),dv=Wg({prop:"borderColor",themeKey:"palette"}),pv=Wg({prop:"borderTopColor",themeKey:"palette"}),fv=Wg({prop:"borderRightColor",themeKey:"palette"}),hv=Wg({prop:"borderBottomColor",themeKey:"palette"}),mv=Wg({prop:"borderLeftColor",themeKey:"palette"}),gv=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Xg(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Jg(t,e)});return jg(e,e.borderRadius,n)}return null};gv.propTypes={},gv.filterProps=["borderRadius"],ov(av,lv,sv,cv,uv,dv,pv,fv,hv,mv,gv);const vv=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Xg(e.theme,"spacing",8),n=e=>({gap:Jg(t,e)});return jg(e,e.gap,n)}return null};vv.propTypes={},vv.filterProps=["gap"];const bv=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Xg(e.theme,"spacing",8),n=e=>({columnGap:Jg(t,e)});return jg(e,e.columnGap,n)}return null};bv.propTypes={},bv.filterProps=["columnGap"];const yv=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Xg(e.theme,"spacing",8),n=e=>({rowGap:Jg(t,e)});return jg(e,e.rowGap,n)}return null};yv.propTypes={},yv.filterProps=["rowGap"];function xv(e,t){return"grey"===t?t:e}ov(vv,bv,yv,Wg({prop:"gridColumn"}),Wg({prop:"gridRow"}),Wg({prop:"gridAutoFlow"}),Wg({prop:"gridAutoColumns"}),Wg({prop:"gridAutoRows"}),Wg({prop:"gridTemplateColumns"}),Wg({prop:"gridTemplateRows"}),Wg({prop:"gridTemplateAreas"}),Wg({prop:"gridArea"}));function Sv(e){return e<=1&&0!==e?100*e+"%":e}ov(Wg({prop:"color",themeKey:"palette",transform:xv}),Wg({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xv}),Wg({prop:"backgroundColor",themeKey:"palette",transform:xv}));const wv=Wg({prop:"width",transform:Sv}),Ev=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||Dg[t]||Sv(t)}};return jg(e,e.maxWidth,t)}return null};Ev.filterProps=["maxWidth"];const Cv=Wg({prop:"minWidth",transform:Sv}),kv=Wg({prop:"height",transform:Sv}),Lv=Wg({prop:"maxHeight",transform:Sv}),Rv=Wg({prop:"minHeight",transform:Sv});Wg({prop:"size",cssProperty:"width",transform:Sv}),Wg({prop:"size",cssProperty:"height",transform:Sv});ov(wv,Ev,Cv,kv,Lv,Rv,Wg({prop:"boxSizing"}));var Ov={border:{themeKey:"borders",transform:iv},borderTop:{themeKey:"borders",transform:iv},borderRight:{themeKey:"borders",transform:iv},borderBottom:{themeKey:"borders",transform:iv},borderLeft:{themeKey:"borders",transform:iv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gv},color:{themeKey:"palette",transform:xv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xv},backgroundColor:{themeKey:"palette",transform:xv},p:{style:nv},pt:{style:nv},pr:{style:nv},pb:{style:nv},pl:{style:nv},px:{style:nv},py:{style:nv},padding:{style:nv},paddingTop:{style:nv},paddingRight:{style:nv},paddingBottom:{style:nv},paddingLeft:{style:nv},paddingX:{style:nv},paddingY:{style:nv},paddingInline:{style:nv},paddingInlineStart:{style:nv},paddingInlineEnd:{style:nv},paddingBlock:{style:nv},paddingBlockStart:{style:nv},paddingBlockEnd:{style:nv},m:{style:tv},mt:{style:tv},mr:{style:tv},mb:{style:tv},ml:{style:tv},mx:{style:tv},my:{style:tv},margin:{style:tv},marginTop:{style:tv},marginRight:{style:tv},marginBottom:{style:tv},marginLeft:{style:tv},marginX:{style:tv},marginY:{style:tv},marginInline:{style:tv},marginInlineStart:{style:tv},marginInlineEnd:{style:tv},marginBlock:{style:tv},marginBlockStart:{style:tv},marginBlockEnd:{style:tv},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:vv},rowGap:{style:yv},columnGap:{style:bv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Sv},maxWidth:{style:Ev},minWidth:{transform:Sv},height:{transform:Sv},maxHeight:{transform:Sv},minHeight:{transform:Sv},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Iv=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:c}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=$g(n,l)||{};if(c)return c(o);return jg(o,t,(t=>{let n=Bg(u,s,t);return t===n&&"string"==typeof t&&(n=Bg(u,s,`${e}${"default"===t?"":Up(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Ov;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],c=i,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(a[n])s=zg(s,e(n,o,i,a));else{const e=jg({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=zg(s,e):s[n]=t({sx:o,theme:i})}else s=zg(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Iv.filterProps=["sx"];var Tv=Iv;function _v(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let l=Cp({breakpoints:Mg(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:rv(o),shape:{...qg,...i}},a);return l=t.reduce(((e,t)=>Cp(e,t)),l),l.unstable_sxConfig={...Ov,...null==a?void 0:a.unstable_sxConfig},l.unstable_sx=function(e){return Tv({sx:e,theme:this})},l}function Pv(e=null){const t=H.useContext(om);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Nv=_v();function Mv(e=Nv){return Pv(e)}function qv({styles:e,themeId:t,defaultTheme:n={}}){const r=Mv(n),o="function"==typeof e?e(t&&r[t]||r):e;return Og.jsx(_g,{styles:o})}const zv=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Ov;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Dv(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=zv(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return wp(n)?{...r,...n}:r}:{...r,...t},{...o,sx:i}}function Av(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Av(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function jv(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Av(e))&&(r&&(r+=" "),r+=t);return r}function Fv(e){return 0===e.length}function $v(e){const{variant:t,...n}=e;let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Fv(r)?e[t]:Up(e[t]):`${Fv(r)?t:Up(t)}${Up(e[t].toString())}`})),r}function Bv(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Wv=_v();function Hv({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Uv({props:e,name:t,defaultTheme:n,themeId:r}){let o=Mv(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?vf(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function Vv(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Gv(e){if(e.type)return e;if("#"===e.charAt(0))return Gv(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(kp(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(kp(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Kv(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 Zv(e){let t="hsl"===(e=Gv(e)).type||"hsla"===e.type?Gv(function(e){e=Gv(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Kv({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Xv(e,t){return e=Gv(e),t=Vv(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Kv(e)}var Qv=H.createContext(null);function Jv(){return H.useContext(Qv)}var Yv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function eb(e){const{children:t,theme:n}=e,r=Jv(),o=H.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return{...e,...t}}(r,n);return null!=e&&(e[Yv]=null!==r),e}),[n,r]);return Og.jsx(Qv.Provider,{value:o,children:t})}const tb={};function nb(e,t,n,r=!1){return H.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}}),[e,t,n,r])}function rb(e){const{children:t,theme:n,themeId:r}=e,o=Pv(tb),i=Jv()||tb,a=nb(r,o,n),l=nb(r,i,n,!0);return Og.jsx(eb,{theme:l,children:Og.jsx(om.Provider,{value:a,children:t})})}var ob={black:"#000",white:"#fff"};var ib={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var ab={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var lb={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var sb={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var cb={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var ub={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var db={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const pb={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:ob.white,default:ob.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}},fb={text:{primary:ob.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:ob.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 hb(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Gv(e),t=Vv(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 Kv(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Gv(e),t=Vv(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 Kv(e)}(e.main,i)))}function mb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||function(e="light"){return"dark"===e?{main:cb[200],light:cb[50],dark:cb[400]}:{main:cb[700],light:cb[400],dark:cb[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ab[200],light:ab[50],dark:ab[400]}:{main:ab[500],light:ab[300],dark:ab[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:lb[500],light:lb[300],dark:lb[700]}:{main:lb[700],light:lb[400],dark:lb[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ub[400],light:ub[300],dark:ub[700]}:{main:ub[700],light:ub[500],dark:ub[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:db[400],light:db[300],dark:db[700]}:{main:db[800],light:db[500],dark:db[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:sb[400],light:sb[300],dark:sb[700]}:{main:"#ed6c02",light:sb[500],dark:sb[900]}}(t);function d(e){const t=function(e,t){const n=Zv(e),r=Zv(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,fb.text.primary)>=n?fb.text.primary:pb.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(kp(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(kp(12,t?` (${t})`:"",JSON.stringify(e.main)));return hb(e,"light",o,r),hb(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:fb,light:pb};return Cp({common:{...ob},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:ib,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r,...f[t]},o)}const gb={textTransform:"uppercase"},vb='"Roboto", "Helvetica", "Arial", sans-serif';function bb(e,t){const{fontFamily:n=vb,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:s=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,p=r/14,f=u||(e=>e/s*p+"rem"),h=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:f(t),lineHeight:r,...n===vb?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...c};var a},m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,gb),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,gb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Cp({htmlFontSize:s,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...m},d,{clone:!1})}function yb(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var xb=["none",yb(0,2,1,-1,0,1,1,0,0,1,3,0),yb(0,3,1,-2,0,2,2,0,0,1,5,0),yb(0,3,3,-2,0,3,4,0,0,1,8,0),yb(0,2,4,-1,0,4,5,0,0,1,10,0),yb(0,3,5,-1,0,5,8,0,0,1,14,0),yb(0,3,5,-1,0,6,10,0,0,1,18,0),yb(0,4,5,-2,0,7,10,1,0,2,16,1),yb(0,5,5,-3,0,8,10,1,0,3,14,2),yb(0,5,6,-3,0,9,12,1,0,3,16,2),yb(0,6,6,-3,0,10,14,1,0,4,18,3),yb(0,6,7,-4,0,11,15,1,0,4,20,3),yb(0,7,8,-4,0,12,17,2,0,5,22,4),yb(0,7,8,-4,0,13,19,2,0,5,24,4),yb(0,7,9,-4,0,14,21,2,0,5,26,4),yb(0,8,9,-5,0,15,22,2,0,6,28,5),yb(0,8,10,-5,0,16,24,2,0,6,30,5),yb(0,8,11,-5,0,17,26,2,0,6,32,5),yb(0,9,11,-5,0,18,28,2,0,7,34,6),yb(0,9,12,-6,0,19,29,2,0,7,36,6),yb(0,10,13,-6,0,20,31,3,0,8,38,7),yb(0,10,13,-6,0,21,33,3,0,8,40,7),yb(0,10,14,-6,0,22,35,3,0,8,42,7),yb(0,11,14,-7,0,23,36,3,0,9,44,8),yb(0,11,15,-7,0,24,38,3,0,9,46,8)];const Sb={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)"},wb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Eb(e){return`${Math.round(e)}ms`}function Cb(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function kb(e){const t={...Sb,...e.easing},n={...wb,...e.duration};return{getAutoHeightDuration:Cb,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...l}=r;return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Eb(o)} ${i} ${"string"==typeof a?a:Eb(a)}`)).join(",")},...e,easing:t,duration:n}}var Lb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Rb(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:l={},shape:s,...c}=e;if(e.vars)throw new Error(kp(18));const u=mb(i),d=_v(e);let p=Cp(d,{mixins:(f=d.breakpoints,h=r,{toolbar:{minHeight:56,[f.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[f.up("sm")]:{minHeight:64}},...h}),palette:u,shadows:xb.slice(),typography:bb(u,l),transitions:kb(a),zIndex:{...Lb}});var f,h;return p=Cp(p,c),p=t.reduce(((e,t)=>Cp(e,t)),p),p.unstable_sxConfig={...Ov,...null==c?void 0:c.unstable_sxConfig},p.unstable_sx=function(e){return Tv({sx:e,theme:this})},p}var Ob=Rb();function Ib(){const e=Mv(Ob);return e[Cf]||e}function Tb({props:e,name:t}){return Uv({props:e,name:t,defaultTheme:Ob,themeId:Cf})}const _b=e=>Bv(e)&&"classes"!==e,Pb=function(e={}){const{themeId:t,defaultTheme:n=Wv,rootShouldForwardProp:r=Bv,slotShouldForwardProp:o=Bv}=e,i=e=>Tv({...e,theme:Hv({...e,defaultTheme:n,themeId:t})});return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d,...p}=a,f=void 0!==c?c:s&&"Root"!==s||!1,h=u||!1;let m=Bv;"Root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=Pg(e,{shouldForwardProp:m,label:undefined,...p}),v=(r,...o)=>{const a=o?o.map((e=>"function"==typeof e&&e.__emotion_real!==e?r=>e({...r,theme:Hv({...r,defaultTheme:n,themeId:t})}):e)):[];let s=r;l&&d&&a.push((e=>{const r=Hv({...e,defaultTheme:n,themeId:t}),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,r);if(o){const t={};return Object.entries(o).forEach((([n,o])=>{t[n]="function"==typeof o?o({...e,theme:r}):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const r=Hv({...e,defaultTheme:n,themeId:t});return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,l=[],s=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return s&&s.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&l.push(t[$v(n.props)])})),l})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=$v(e.props);r[t]=e.style})),r})(l,r),r,l)})),h||a.push(i);const c=a.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>r({...e,theme:Hv({...e,defaultTheme:n,themeId:t})}));const u=g(s,...a);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Cf,defaultTheme:Ob,rootShouldForwardProp:_b});var Nb=Pb;function Mb({theme:e,...t}){const n=e[Cf];return Og.jsx(rb,{...t,themeId:n?Cf:void 0,theme:n||e})}var qb=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function zb(e){return"string"==typeof e}function Db(e,t,n){return void 0===e||zb(e)?t:{...t,ownerState:{...t.ownerState,...n}}}const Ab={disableDefaultClasses:!1},jb=H.createContext(Ab);function Fb(e){const{disableDefaultClasses:t}=H.useContext(jb);return n=>t?"":e(n)}function $b(e,t){return"function"==typeof e?e(t):e}function Bb(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Wb(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=jv(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),t={...null==n?void 0:n.style,...null==o?void 0:o.style,...null==r?void 0:r.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}({...o,...r}),l=Bb(r),s=Bb(o),c=t(a),u=jv(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d={...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={...c,...n,...s,...l};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function Hb(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,...i}=e,a=$b(r,o),{props:l,internalRef:s}=Wb({...i,externalSlotProps:a});return Db(n,{...l,ref:of(s,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)},o)}const Ub=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Vb(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ub)).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 Gb(){return!0}function Kb(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Vb,isEnabled:a=Gb,open:l}=e,s=H.useRef(!1),c=H.useRef(null),u=H.useRef(null),d=H.useRef(null),p=H.useRef(null),f=H.useRef(!1),h=H.useRef(null),m=of(t.ref,h),g=H.useRef(null);H.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),H.useEffect((()=>{if(!l||!h.current)return;const e=Zp(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]),H.useEffect((()=>{if(!l||!h.current)return;const e=Zp(h.current),t=t=>{const{current:n}=h;if(null!==n)if(e.hasFocus()&&!r&&a()&&!s.current){if(!n.contains(e.activeElement)){if(t&&p.current!==t.target||e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=i(h.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else s.current=!1},n=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Og.jsxs(H.Fragment,{children:[Og.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),H.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)}}),Og.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}var Zb="top",Xb="bottom",Qb="right",Jb="left",Yb="auto",ey=[Zb,Xb,Qb,Jb],ty="start",ny="end",ry="clippingParents",oy="viewport",iy="popper",ay="reference",ly=ey.reduce((function(e,t){return e.concat([t+"-"+ty,t+"-"+ny])}),[]),sy=[].concat(ey,[Yb]).reduce((function(e,t){return e.concat([t,t+"-"+ty,t+"-"+ny])}),[]),cy=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function uy(e){return e?(e.nodeName||"").toLowerCase():null}function dy(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function py(e){return e instanceof dy(e).Element||e instanceof Element}function fy(e){return e instanceof dy(e).HTMLElement||e instanceof HTMLElement}function hy(e){return"undefined"!=typeof ShadowRoot&&(e instanceof dy(e).ShadowRoot||e instanceof ShadowRoot)}var my={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];fy(o)&&uy(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]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});fy(r)&&uy(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function gy(e){return e.split("-")[0]}var vy=Math.max,by=Math.min,yy=Math.round;function xy(){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 Sy(){return!/^((?!chrome|android).)*safari/i.test(xy())}function wy(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&fy(e)&&(o=e.offsetWidth>0&&yy(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&yy(r.height)/e.offsetHeight||1);var a=(py(e)?dy(e):window).visualViewport,l=!Sy()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Ey(e){var t=wy(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 Cy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ky(e){return dy(e).getComputedStyle(e)}function Ly(e){return["table","td","th"].indexOf(uy(e))>=0}function Ry(e){return((py(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oy(e){return"html"===uy(e)?e:e.assignedSlot||e.parentNode||(hy(e)?e.host:null)||Ry(e)}function Iy(e){return fy(e)&&"fixed"!==ky(e).position?e.offsetParent:null}function Ty(e){for(var t=dy(e),n=Iy(e);n&&Ly(n)&&"static"===ky(n).position;)n=Iy(n);return n&&("html"===uy(n)||"body"===uy(n)&&"static"===ky(n).position)?t:n||function(e){var t=/firefox/i.test(xy());if(/Trident/i.test(xy())&&fy(e)&&"fixed"===ky(e).position)return null;var n=Oy(e);for(hy(n)&&(n=n.host);fy(n)&&["html","body"].indexOf(uy(n))<0;){var r=ky(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 _y(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Py(e,t,n){return vy(e,by(t,n))}function Ny(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function My(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var qy={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=gy(n.placement),s=_y(l),c=[Jb,Qb].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return Ny("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:My(e,ey))}(o.padding,n),d=Ey(i),p="y"===s?Zb:Jb,f="y"===s?Xb:Qb,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],m=a[s]-n.rects.reference[s],g=Ty(i),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=Py(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)))&&Cy(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zy(e){return e.split("-")[1]}var Dy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ay(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.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=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Jb,x=Zb,S=window;if(c){var w=Ty(n),E="clientHeight",C="clientWidth";if(w===dy(n)&&"static"!==ky(w=Ry(n)).position&&"absolute"===l&&(E="scrollHeight",C="scrollWidth"),o===Zb||(o===Jb||o===Qb)&&i===ny)x=Xb,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===Jb||(o===Zb||o===Xb)&&i===ny)y=Qb,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[C])-r.width,f*=s?1:-1}var k,L=Object.assign({position:l},c&&Dy),R=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:yy(n*o)/o||0,y:yy(r*o)/o||0}}({x:f,y:m},dy(n)):{x:f,y:m};return f=R.x,m=R.y,s?Object.assign({},L,((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({},L,((t={})[x]=b?m+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var jy={passive:!0};var Fy={left:"right",right:"left",bottom:"top",top:"bottom"};function $y(e){return e.replace(/left|right|bottom|top/g,(function(e){return Fy[e]}))}var By={start:"end",end:"start"};function Wy(e){return e.replace(/start|end/g,(function(e){return By[e]}))}function Hy(e){var t=dy(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Uy(e){return wy(Ry(e)).left+Hy(e).scrollLeft}function Vy(e){var t=ky(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Gy(e){return["html","body","#document"].indexOf(uy(e))>=0?e.ownerDocument.body:fy(e)&&Vy(e)?e:Gy(Oy(e))}function Ky(e,t){var n;void 0===t&&(t=[]);var r=Gy(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=dy(r),a=o?[i].concat(i.visualViewport||[],Vy(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Ky(Oy(a)))}function Zy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xy(e,t,n){return t===oy?Zy(function(e,t){var n=dy(e),r=Ry(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=Sy();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Uy(e),y:s}}(e,n)):py(t)?function(e,t){var n=wy(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):Zy(function(e){var t,n=Ry(e),r=Hy(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=vy(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=vy(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Uy(e),s=-r.scrollTop;return"rtl"===ky(o||n).direction&&(l+=vy(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Ry(e)))}function Qy(e,t,n,r){var o="clippingParents"===t?function(e){var t=Ky(Oy(e)),n=["absolute","fixed"].indexOf(ky(e).position)>=0&&fy(e)?Ty(e):e;return py(n)?t.filter((function(e){return py(e)&&Cy(e,n)&&"body"!==uy(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=Xy(e,n,r);return t.top=vy(o.top,t.top),t.right=by(o.right,t.right),t.bottom=by(o.bottom,t.bottom),t.left=vy(o.left,t.left),t}),Xy(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Jy(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?gy(o):null,a=o?zy(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case Zb:t={x:l,y:n.y-r.height};break;case Xb:t={x:l,y:n.y+n.height};break;case Qb:t={x:n.x+n.width,y:s};break;case Jb:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?_y(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ty:t[c]=t[c]-(n[u]/2-r[u]/2);break;case ny:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Yy(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?ry:l,c=n.rootBoundary,u=void 0===c?oy:c,d=n.elementContext,p=void 0===d?iy:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=Ny("number"!=typeof g?g:My(g,ey)),b=p===iy?ay:iy,y=e.rects.popper,x=e.elements[h?b:p],S=Qy(py(x)?x:x.contextElement||Ry(e.elements.popper),s,u,a),w=wy(e.elements.reference),E=Jy({reference:w,element:y,strategy:"absolute",placement:o}),C=Zy(Object.assign({},y,E)),k=p===iy?C:w,L={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},R=e.modifiersData.offset;if(p===iy&&R){var O=R[o];Object.keys(L).forEach((function(e){var t=[Qb,Xb].indexOf(e)>=0?1:-1,n=[Zb,Xb].indexOf(e)>=0?"y":"x";L[e]+=O[n]*t}))}return L}function ex(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?sy:s,u=zy(r),d=u?l?ly:ly.filter((function(e){return zy(e)===u})):ey,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]=Yy(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[gy(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var tx={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,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,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=gy(g),b=s||(v===g||!h?[$y(g)]:function(e){if(gy(e)===Yb)return[];var t=$y(e);return[Wy(e),t,Wy(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(gy(n)===Yb?ex(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 L=y[k],R=gy(L),O=zy(L)===ty,I=[Zb,Xb].indexOf(R)>=0,T=I?"width":"height",_=Yy(t,{placement:L,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),P=I?O?Qb:Jb:O?Xb:Zb;x[T]>S[T]&&(P=$y(P));var N=$y(P),M=[];if(i&&M.push(_[R]<=0),l&&M.push(_[P]<=0,_[N]<=0),M.every((function(e){return e}))){C=L,E=!1;break}w.set(L,M)}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"},z=h?3:1;z>0;z--){if("break"===q(z))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function nx(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 rx(e){return[Zb,Qb,Xb,Jb].some((function(t){return e[t]>=0}))}var ox={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=sy.reduce((function(e,n){return e[n]=function(e,t,n){var r=gy(e),o=[Jb,Zb].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Jb,Qb].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[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]=a}};var ix={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,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=Yy(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=gy(t.placement),b=zy(t.placement),y=!b,x=_y(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,L="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(i){var I,T="y"===x?Zb:Jb,_="y"===x?Xb:Qb,P="y"===x?"height":"width",N=w[x],M=N+g[T],q=N-g[_],z=f?-C[P]/2:0,D=b===ty?E[P]:C[P],A=b===ty?-C[P]:-E[P],j=t.elements.arrow,F=f&&j?Ey(j):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=$[T],W=$[_],H=Py(0,E[P],F[P]),U=y?E[P]/2-z-H-B-L.mainAxis:D-H-B-L.mainAxis,V=y?-E[P]/2+z+H+W+L.mainAxis:A+H+W+L.mainAxis,G=t.elements.arrow&&Ty(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(I=null==R?void 0:R[x])?I:0,X=N+V-Z,Q=Py(f?by(M,N+U-Z-K):M,N,f?vy(q,X):q);w[x]=Q,O[x]=Q-N}if(l){var J,Y="x"===x?Zb:Jb,ee="x"===x?Xb:Qb,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ie=-1!==[Zb,Jb].indexOf(v),ae=null!=(J=null==R?void 0:R[S])?J:0,le=ie?re:te-E[ne]-C[ne]-ae+L.altAxis,se=ie?te+E[ne]+C[ne]-ae-L.altAxis:oe,ce=f&&ie?function(e,t,n){var r=Py(e,t,n);return r>n?n:r}(le,te,se):Py(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function ax(e,t,n){void 0===n&&(n=!1);var r=fy(t),o=fy(t)&&function(e){var t=e.getBoundingClientRect(),n=yy(t.width)/e.offsetWidth||1,r=yy(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Ry(t),a=wy(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==uy(t)||Vy(i))&&(l=function(e){return e!==dy(e)&&fy(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Hy(e);var t}(t)),fy(t)?((s=wy(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Uy(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function lx(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 sx={placement:"bottom",modifiers:[],strategy:"absolute"};function cx(){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 ux(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?sx:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},sx,i),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({},i,l.options,o),l.scrollParents={reference:py(e)?Ky(e):e.contextElement?Ky(e.contextElement):[],popper:Ky(t)};var a,c,p=function(e){var t=lx(e);return cy.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,l.options.modifiers),c=a.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 i=o({state:l,name:t,instance:u,options:r}),a=function(){};s.push(i||a)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(cx(t,n)){l.rects={reference:ax(t,Ty(n),"fixed"===l.options.strategy),popper:Ey(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],i=o.fn,a=o.options,s=void 0===a?{}:a,d=o.name;"function"==typeof i&&(l=i({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 a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!cx(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 dx=ux({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,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=dy(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,jy)})),l&&s.addEventListener("resize",n.update,jy),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,jy)})),l&&s.removeEventListener("resize",n.update,jy)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Jy({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,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,c={placement:gy(t.placement),variation:zy(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,Ay(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ay(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:{}},my,ox,tx,ix,qy,{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,i=t.modifiersData.preventOverflow,a=Yy(t,{elementContext:"reference"}),l=Yy(t,{altBoundary:!0}),s=nx(a,r),c=nx(l,o,i),u=rx(s),d=rx(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})}}]});var px=H.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=H.useState(null),l=of(H.isValidElement(n)?n.ref:null,t);if(Jp((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Jp((()=>{if(i&&!o)return Qp(t,i),()=>{Qp(t,null)}}),[t,i,o]),o){if(H.isValidElement(n)){const e={ref:l};return H.cloneElement(n,e)}return Og.jsx(H.Fragment,{children:n})}return Og.jsx(H.Fragment,{children:i?yp.createPortal(n,i):i})}));function fx(e){return wf("MuiPopper",e)}function hx(e){return"function"==typeof e?e():e}Ef("MuiPopper",["root"]);const mx={},gx=H.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:l,open:s,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h,ownerState:m,...g}=e,v=H.useRef(null),b=of(v,t),y=H.useRef(null),x=of(y,d),S=H.useRef(x);Jp((()=>{S.current=x}),[x]),H.useImperativeHandle(d,(()=>y.current),[]);const w=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,i),[E,C]=H.useState(w),[k,L]=H.useState(hx(r));H.useEffect((()=>{y.current&&y.current.forceUpdate()})),H.useEffect((()=>{r&&L(hx(r))}),[r]),Jp((()=>{if(!k||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=dx(k,v.current,{placement:w,...u,modifiers:e});return S.current(t),()=>{t.destroy(),S.current(null)}}),[k,a,l,s,u,w]);const R={placement:E};null!==h&&(R.TransitionProps=h);const O=bf({root:["root"]},Fb(fx)),I=null!=(n=f.root)?n:"div",T=Hb({elementType:I,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:O.root});return Og.jsx(I,{...T,children:"function"==typeof o?o(R):o})})),vx=H.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=mx,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={},...v}=e,[b,y]=H.useState(!0);if(!l&&!c&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=hx(n);x=e&&void 0!==e.nodeType?Zp(e).body:Zp(null).body}const S=c||!l||h&&!b?void 0:"none",w=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return Og.jsx(px,{disablePortal:a,container:x,children:Og.jsx(gx,{anchorEl:n,direction:i,disablePortal:a,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g,...v,style:{position:"fixed",top:0,left:0,display:S,...f},TransitionProps:w,children:r})})}));var bx=vx;function yx(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function xx(e){return parseInt(Xp(e).getComputedStyle(e).paddingRight,10)||0}function Sx(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&yx(e,o)}))}function wx(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Ex(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Zp(e);return t.body===e?Xp(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=mf(Zp(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${xx(r)+e}px`;const t=Zp(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${xx(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Zp(r).body;else{const t=r.parentElement,n=Xp(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)}))}}function Cx(e){return wf("MuiModal",e)}Ef("MuiModal",["root","hidden","backdrop"]);const kx=new class{constructor(){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&&yx(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);Sx(t,e.mount,e.modalRef,r,!0);const o=wx(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=wx(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Ex(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=wx(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&&yx(e.modalRef,t),Sx(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&&yx(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},Lx=H.forwardRef((function(e,t){var n,r;const{children:o,closeAfterTransition:i=!1,container:a,disableAutoFocus:l=!1,disableEnforceFocus:s=!1,disableEscapeKeyDown:c=!1,disablePortal:u=!1,disableRestoreFocus:d=!1,disableScrollLock:p=!1,hideBackdrop:f=!1,keepMounted:h=!1,manager:m=kx,onBackdropClick:g,onClose:v,onKeyDown:b,open:y,onTransitionEnter:x,onTransitionExited:S,slotProps:w={},slots:E={},...C}=e,k=m,[L,R]=H.useState(!y),O=H.useRef({}),I=H.useRef(null),T=H.useRef(null),_=of(T,t),P=function(e){return!!e&&e.props.hasOwnProperty("in")}(o),N=null==(n=e["aria-hidden"])||n,M=()=>(O.current.modalRef=T.current,O.current.mountNode=I.current,O.current),q=()=>{k.mount(M(),{disableScrollLock:p}),T.current&&(T.current.scrollTop=0)},z=rf((()=>{const e=function(e){return"function"==typeof e?e():e}(a)||Zp(I.current).body;k.add(M(),e),T.current&&q()})),D=H.useCallback((()=>k.isTopModal(M())),[k]),A=rf((e=>{I.current=e,e&&T.current&&(y&&D()?q():yx(T.current,N))})),j=H.useCallback((()=>{k.remove(M(),N)}),[k,N]);H.useEffect((()=>()=>{j()}),[j]),H.useEffect((()=>{y?z():P&&i||j()}),[y,j,P,i,z]);const F={...e,closeAfterTransition:i,disableAutoFocus:l,disableEnforceFocus:s,disableEscapeKeyDown:c,disablePortal:u,disableRestoreFocus:d,disableScrollLock:p,exited:L,hideBackdrop:f,keepMounted:h},$=(e=>{const{open:t,exited:n}=e;return bf({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Fb(Cx))})(F),B=()=>{R(!1),x&&x()},W=()=>{R(!0),S&&S(),i&&j()},U={};void 0===o.props.tabIndex&&(U.tabIndex="-1"),P&&(U.onEnter=Vp(B,o.props.onEnter),U.onExited=Vp(W,o.props.onExited));const V=null!=(r=E.root)?r:"div",G=Hb({elementType:V,externalSlotProps:w.root,externalForwardedProps:C,additionalProps:{ref:_,role:"presentation",onKeyDown:e=>{b&&b(e),"Escape"===e.key&&D()&&(c||(e.stopPropagation(),v&&v(e,"escapeKeyDown")))}},className:$.root,ownerState:F}),K=E.backdrop,Z=Hb({elementType:K,externalSlotProps:w.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(g&&g(e),v&&v(e,"backdropClick"))},open:y},className:$.backdrop,ownerState:F});return h||y||P&&!L?Og.jsx(px,{ref:A,container:a,disablePortal:u,children:Og.jsxs(V,{...G,children:[!f&&K?Og.jsx(K,{...Z}):null,Og.jsx(Kb,{disableEnforceFocus:s,disableAutoFocus:l,disableRestoreFocus:d,isEnabled:D,open:y,children:H.cloneElement(o,U)})]})}):null}));var Rx=Lx;function Ox(e){return parseInt(e,10)||0}const Ix={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Tx(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const _x=H.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a,...l}=e,{current:s}=H.useRef(null!=a),c=H.useRef(null),u=of(t,c),d=H.useRef(null),p=H.useRef(0),[f,h]=H.useState({outerHeightStyle:0}),m=H.useCallback((()=>{const t=c.current,n=Xp(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=Ox(n.paddingBottom)+Ox(n.paddingTop),s=Ox(n.borderBottomWidth)+Ox(n.borderTopWidth),u=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=H.useCallback((()=>{const e=m();Tx(e)||h((t=>g(t,e)))}),[m]);H.useEffect((()=>{const e=Gp((()=>{p.current=0,c.current&&(()=>{const e=m();Tx(e)||yp.flushSync((()=>{h((t=>g(t,e)))}))})()}));let t;const n=c.current,r=Xp(n);return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),r.removeEventListener("resize",e),t&&t.disconnect()}})),Jp((()=>{v()})),H.useEffect((()=>{p.current=0}),[a]);return Og.jsxs(H.Fragment,{children:[Og.jsx("textarea",{value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:u,rows:o,style:{height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0,...i},...l}),Og.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:{...Ix,...i,padding:0}})]})}));var Px=_x;function Nx(){return Nx=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},Nx.apply(this,arguments)}function Mx(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function qx(e,t){return qx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qx(e,t)}function zx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qx(e,t)}var Dx=!1,Ax=U.createContext(null),jx="unmounted",Fx="exited",$x="entering",Bx="entered",Wx="exiting",Hx=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Fx,r.appearStatus=$x):o=Bx:o=t.unmountOnExit||t.mountOnEnter?jx:Fx,r.state={status:o},r.nextCallback=null,r}zx(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===jx?{status:Fx}: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!==$x&&n!==Bx&&(t=$x):n!==$x&&n!==Bx||(t=Wx)}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===$x){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:xp.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fx&&this.setState({status:jx})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[xp.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Dx?this.safeSetState({status:Bx},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:$x},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Bx},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:xp.findDOMNode(this);t&&!Dx?(this.props.onExit(r),this.safeSetState({status:Wx},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Fx},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Fx},(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:xp.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===jx)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=Mx(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return U.createElement(Ax.Provider,{value:null},"function"==typeof n?n(e,r):U.cloneElement(U.Children.only(n),r))},t}(U.Component);function Ux(){}Hx.contextType=Ax,Hx.propTypes={},Hx.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ux,onEntering:Ux,onEntered:Ux,onExit:Ux,onExiting:Ux,onExited:Ux},Hx.UNMOUNTED=jx,Hx.EXITED=Fx,Hx.ENTERING=$x,Hx.ENTERED=Bx,Hx.EXITING=Wx;var Vx=Hx;function Gx(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kx(e,t){var n=Object.create(null);return e&&H.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&H.isValidElement(e)?t(e):e}(e)})),n}function Zx(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Xx(e,t,n){var r=Kx(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(H.isValidElement(a)){var l=i in t,s=i in r,c=t[i],u=H.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&H.isValidElement(c)&&(o[i]=H.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:Zx(a,"exit",e),enter:Zx(a,"enter",e)})):o[i]=H.cloneElement(a,{in:!1}):o[i]=H.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Zx(a,"exit",e),enter:Zx(a,"enter",e)})}})),o}var Qx=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Jx=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Gx(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}zx(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Kx(n.children,(function(e){return H.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Zx(e,"appear",n),enter:Zx(e,"enter",n),exit:Zx(e,"exit",n)})}))):Xx(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Kx(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Nx({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Mx(e,["component","childFactory"]),o=this.state.contextValue,i=Qx(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?U.createElement(Ax.Provider,{value:o},i):U.createElement(Ax.Provider,{value:o},U.createElement(t,r,i))},t}(U.Component);Jx.propTypes={},Jx.defaultProps={component:"div",childFactory:function(e){return e}};var Yx=Jx;var eS=Ef("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);let tS,nS,rS,oS,iS=e=>e;const aS=lm(tS||(tS=iS`
|
|
33
|
+
*/function Pm(e,t){return vm(e,t)}"object"==typeof document&&(Om=qh({key:"css",prepend:!0}));function _m(){return _m=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},_m.apply(this,arguments)}function Nm(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const Mm=["values","unit","step"],qm=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)=>_m({},e,{[t.key]:t.val})),{})};function zm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Nm(e,Mm),i=qm(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return _m({keys:a,values:i,up:l,down:s,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var Dm={borderRadius:4};function Am(e,t){return t?Cp(e,t,{clone:!1}):e}const jm={xs:0,sm:600,md:900,lg:1200,xl:1536},Fm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${jm[e]}px)`};function Bm(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Fm;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Fm;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||jm).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(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 i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function $m(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 Hm(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:$m(e,n)||r,t&&(o=t(o,r,e)),o}function Um(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=$m(e.theme,r)||{};return Bm(e,i,(e=>{let r=Hm(a,o,e);return e===r&&"string"==typeof e&&(r=Hm(a,o,`${t}${"default"===e?"":Up(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Vm={m:"margin",p:"padding"},Gm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Km={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Zm=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Km[e])return[e];e=Km[e]}const[t,n]=e.split(""),r=Vm[t],o=Gm[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Xm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Qm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Jm(e,t,n,r){var o;const i=null!=(o=$m(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Ym(e){return Jm(e,"spacing",8)}function eg(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 tg(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=eg(t,n),e)),{})}(Zm(n),r);return Bm(e,e[n],o)}function ng(e,t){const n=Ym(e.theme);return Object.keys(e).map((r=>tg(e,t,r,n))).reduce(Am,{})}function rg(e){return ng(e,Xm)}function og(e){return ng(e,Qm)}function ig(e=8){if(e.mui)return e;const t=Ym({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 ag(...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]?Am(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function lg(e){return"number"!=typeof e?e:`${e}px solid`}rg.propTypes={},rg.filterProps=Xm,og.propTypes={},og.filterProps=Qm;const sg=Um({prop:"border",themeKey:"borders",transform:lg}),cg=Um({prop:"borderTop",themeKey:"borders",transform:lg}),ug=Um({prop:"borderRight",themeKey:"borders",transform:lg}),dg=Um({prop:"borderBottom",themeKey:"borders",transform:lg}),pg=Um({prop:"borderLeft",themeKey:"borders",transform:lg}),fg=Um({prop:"borderColor",themeKey:"palette"}),hg=Um({prop:"borderTopColor",themeKey:"palette"}),mg=Um({prop:"borderRightColor",themeKey:"palette"}),gg=Um({prop:"borderBottomColor",themeKey:"palette"}),vg=Um({prop:"borderLeftColor",themeKey:"palette"}),bg=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Jm(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:eg(t,e)});return Bm(e,e.borderRadius,n)}return null};bg.propTypes={},bg.filterProps=["borderRadius"],ag(sg,cg,ug,dg,pg,fg,hg,mg,gg,vg,bg);const yg=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Jm(e.theme,"spacing",8),n=e=>({gap:eg(t,e)});return Bm(e,e.gap,n)}return null};yg.propTypes={},yg.filterProps=["gap"];const xg=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Jm(e.theme,"spacing",8),n=e=>({columnGap:eg(t,e)});return Bm(e,e.columnGap,n)}return null};xg.propTypes={},xg.filterProps=["columnGap"];const Sg=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Jm(e.theme,"spacing",8),n=e=>({rowGap:eg(t,e)});return Bm(e,e.rowGap,n)}return null};Sg.propTypes={},Sg.filterProps=["rowGap"];function wg(e,t){return"grey"===t?t:e}ag(yg,xg,Sg,Um({prop:"gridColumn"}),Um({prop:"gridRow"}),Um({prop:"gridAutoFlow"}),Um({prop:"gridAutoColumns"}),Um({prop:"gridAutoRows"}),Um({prop:"gridTemplateColumns"}),Um({prop:"gridTemplateRows"}),Um({prop:"gridTemplateAreas"}),Um({prop:"gridArea"}));function Eg(e){return e<=1&&0!==e?100*e+"%":e}ag(Um({prop:"color",themeKey:"palette",transform:wg}),Um({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:wg}),Um({prop:"backgroundColor",themeKey:"palette",transform:wg}));const Cg=Um({prop:"width",transform:Eg}),kg=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||jm[t]||Eg(t)}};return Bm(e,e.maxWidth,t)}return null};kg.filterProps=["maxWidth"];const Lg=Um({prop:"minWidth",transform:Eg}),Rg=Um({prop:"height",transform:Eg}),Og=Um({prop:"maxHeight",transform:Eg}),Ig=Um({prop:"minHeight",transform:Eg});Um({prop:"size",cssProperty:"width",transform:Eg}),Um({prop:"size",cssProperty:"height",transform:Eg});ag(Cg,kg,Lg,Rg,Og,Ig,Um({prop:"boxSizing"}));var Tg={border:{themeKey:"borders",transform:lg},borderTop:{themeKey:"borders",transform:lg},borderRight:{themeKey:"borders",transform:lg},borderBottom:{themeKey:"borders",transform:lg},borderLeft:{themeKey:"borders",transform:lg},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bg},color:{themeKey:"palette",transform:wg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:wg},backgroundColor:{themeKey:"palette",transform:wg},p:{style:og},pt:{style:og},pr:{style:og},pb:{style:og},pl:{style:og},px:{style:og},py:{style:og},padding:{style:og},paddingTop:{style:og},paddingRight:{style:og},paddingBottom:{style:og},paddingLeft:{style:og},paddingX:{style:og},paddingY:{style:og},paddingInline:{style:og},paddingInlineStart:{style:og},paddingInlineEnd:{style:og},paddingBlock:{style:og},paddingBlockStart:{style:og},paddingBlockEnd:{style:og},m:{style:rg},mt:{style:rg},mr:{style:rg},mb:{style:rg},ml:{style:rg},mx:{style:rg},my:{style:rg},margin:{style:rg},marginTop:{style:rg},marginRight:{style:rg},marginBottom:{style:rg},marginLeft:{style:rg},marginX:{style:rg},marginY:{style:rg},marginInline:{style:rg},marginInlineStart:{style:rg},marginInlineEnd:{style:rg},marginBlock:{style:rg},marginBlockStart:{style:rg},marginBlockEnd:{style:rg},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:yg},rowGap:{style:Sg},columnGap:{style:xg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Eg},maxWidth:{style:kg},minWidth:{transform:Eg},height:{transform:Eg},maxHeight:{transform:Eg},minHeight:{transform:Eg},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Pg=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:c}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=$m(n,l)||{};if(c)return c(o);return Bm(o,t,(t=>{let n=Hm(u,s,t);return t===n&&"string"==typeof t&&(n=Hm(u,s,`${e}${"default"===t?"":Up(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Tg;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],c=i,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(a[n])s=Am(s,e(n,o,i,a));else{const e=Bm({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Am(s,e):s[n]=t({sx:o,theme:i})}else s=Am(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Pg.filterProps=["sx"];var _g=Pg;const Ng=["breakpoints","palette","spacing","shape"];function Mg(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Nm(e,Ng),l=zm(n),s=ig(o);let c=Cp({breakpoints:l,direction:"ltr",components:{},palette:_m({mode:"light"},r),spacing:s,shape:_m({},Dm,i)},a);return c=t.reduce(((e,t)=>Cp(e,t)),c),c.unstable_sxConfig=_m({},Tg,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return _g({sx:e,theme:this})},c}function qg(e=null){const t=H.useContext(lm);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const zg=Mg();function Dg(e=zg){return qg(e)}function Ag({styles:e,themeId:t,defaultTheme:n={}}){const r=Dg(n),o="function"==typeof e?e(t&&r[t]||r):e;return Rm.jsx(Tm,{styles:o})}const jg=["sx"],Fg=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Tg;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Bg(e){const{sx:t}=e,n=Nm(e,jg),{systemProps:r,otherProps:o}=Fg(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return wp(n)?_m({},r,n):r}:_m({},r,t),_m({},o,{sx:i})}function Wg(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Wg(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function $g(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Wg(e))&&(r&&(r+=" "),r+=t);return r}const Hg=["className","component"];const Ug=["variant"];function Vg(e){return 0===e.length}function Gg(e){const{variant:t}=e,n=Nm(e,Ug);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Vg(r)?e[t]:Up(e[t]):`${Vg(r)?t:Up(t)}${Up(e[t].toString())}`})),r}const Kg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Zg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Xg=Mg();function Qg({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Jg({props:e,name:t,defaultTheme:n,themeId:r}){let o=Dg(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?vf(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function Yg(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function ev(e){if(e.type)return e;if("#"===e.charAt(0))return ev(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(kp(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(kp(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function tv(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 nv(e){let t="hsl"===(e=ev(e)).type||"hsla"===e.type?ev(function(e){e=ev(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),tv({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function rv(e,t){return e=ev(e),t=Yg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,tv(e)}var ov=H.createContext(null);function iv(){return H.useContext(ov)}var av="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function lv(e){const{children:t,theme:n}=e,r=iv(),o=H.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return{...e,...t}}(r,n);return null!=e&&(e[av]=null!==r),e}),[n,r]);return Rm.jsx(ov.Provider,{value:o,children:t})}const sv={};function cv(e,t,n,r=!1){return H.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?_m({},t,{[e]:i}):i;return r?()=>a:a}return _m({},t,e?{[e]:n}:n)}),[e,t,n,r])}function uv(e){const{children:t,theme:n,themeId:r}=e,o=qg(sv),i=iv()||sv,a=cv(r,o,n),l=cv(r,i,n,!0);return Rm.jsx(lv,{theme:l,children:Rm.jsx(lm.Provider,{value:a,children:t})})}const dv=["defaultProps","mixins","overrides","palette","props","styleOverrides"],pv=["type","mode"];var fv={black:"#000",white:"#fff"};var hv={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var mv={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var gv={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var vv={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var bv={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var yv={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var xv={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const Sv=["mode","contrastThreshold","tonalOffset"],wv={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:fv.white,default:fv.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}},Ev={text:{primary:fv.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:fv.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 Cv(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=ev(e),t=Yg(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 tv(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=ev(e),t=Yg(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 tv(e)}(e.main,i)))}function kv(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Lf(e,Sv),i=e.primary||function(e="light"){return"dark"===e?{main:bv[200],light:bv[50],dark:bv[400]}:{main:bv[700],light:bv[400],dark:bv[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:mv[200],light:mv[50],dark:mv[400]}:{main:mv[500],light:mv[300],dark:mv[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:gv[500],light:gv[300],dark:gv[700]}:{main:gv[700],light:gv[400],dark:gv[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:yv[400],light:yv[300],dark:yv[700]}:{main:yv[700],light:yv[500],dark:yv[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:xv[400],light:xv[300],dark:xv[700]}:{main:xv[800],light:xv[500],dark:xv[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:vv[400],light:vv[300],dark:vv[700]}:{main:"#ed6c02",light:vv[500],dark:vv[900]}}(t);function d(e){const t=function(e,t){const n=nv(e),r=nv(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Ev.text.primary)>=n?Ev.text.primary:wv.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=kf({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(kp(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(kp(12,t?` (${t})`:"",JSON.stringify(e.main)));return Cv(e,"light",o,r),Cv(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ev,light:wv};return Cp(kf({common:kf({},fv),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:hv,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Lv=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Rv={textTransform:"uppercase"},Ov='"Roboto", "Helvetica", "Arial", sans-serif';function Iv(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ov,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Lf(n,Lv),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>{return kf({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Ov?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Rv),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Rv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Cp(kf({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Tv(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Pv=["none",Tv(0,2,1,-1,0,1,1,0,0,1,3,0),Tv(0,3,1,-2,0,2,2,0,0,1,5,0),Tv(0,3,3,-2,0,3,4,0,0,1,8,0),Tv(0,2,4,-1,0,4,5,0,0,1,10,0),Tv(0,3,5,-1,0,5,8,0,0,1,14,0),Tv(0,3,5,-1,0,6,10,0,0,1,18,0),Tv(0,4,5,-2,0,7,10,1,0,2,16,1),Tv(0,5,5,-3,0,8,10,1,0,3,14,2),Tv(0,5,6,-3,0,9,12,1,0,3,16,2),Tv(0,6,6,-3,0,10,14,1,0,4,18,3),Tv(0,6,7,-4,0,11,15,1,0,4,20,3),Tv(0,7,8,-4,0,12,17,2,0,5,22,4),Tv(0,7,8,-4,0,13,19,2,0,5,24,4),Tv(0,7,9,-4,0,14,21,2,0,5,26,4),Tv(0,8,9,-5,0,15,22,2,0,6,28,5),Tv(0,8,10,-5,0,16,24,2,0,6,30,5),Tv(0,8,11,-5,0,17,26,2,0,6,32,5),Tv(0,9,11,-5,0,18,28,2,0,7,34,6),Tv(0,9,12,-6,0,19,29,2,0,7,36,6),Tv(0,10,13,-6,0,20,31,3,0,8,38,7),Tv(0,10,13,-6,0,21,33,3,0,8,40,7),Tv(0,10,14,-6,0,22,35,3,0,8,42,7),Tv(0,11,14,-7,0,23,36,3,0,9,44,8),Tv(0,11,15,-7,0,24,38,3,0,9,46,8)];const _v=["duration","easing","delay"],Nv={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)"},Mv={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qv(e){return`${Math.round(e)}ms`}function zv(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Dv(e){const t=kf({},Nv,e.easing),n=kf({},Mv,e.duration);return kf({getAutoHeightDuration:zv,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Lf(r,_v),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:qv(o)} ${i} ${"string"==typeof a?a:qv(a)}`)).join(",")}},e,{easing:t,duration:n})}var Av={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const jv=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fv(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Lf(e,jv);if(e.vars)throw new Error(kp(18));const l=kv(r),s=Mg(e);let c=Cp(s,{mixins:(u=s.breakpoints,d=n,kf({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Pv.slice(),typography:Iv(l,i),transitions:Dv(o),zIndex:kf({},Av)});var u,d;return c=Cp(c,a),c=t.reduce(((e,t)=>Cp(e,t)),c),c.unstable_sxConfig=kf({},Tg,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return _g({sx:e,theme:this})},c}var Bv=Fv();function Wv(){const e=Dg(Bv);return e[Cf]||e}function $v({props:e,name:t}){return Jg({props:e,name:t,defaultTheme:Bv,themeId:Cf})}const Hv=e=>Zg(e)&&"classes"!==e,Uv=function(e={}){const{themeId:t,defaultTheme:n=Xg,rootShouldForwardProp:r=Zg,slotShouldForwardProp:o=Zg}=e,i=e=>_g(_m({},e,{theme:Qg(_m({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d}=a,p=Nm(a,Kg),f=void 0!==c?c:s&&"Root"!==s||!1,h=u||!1;let m=Zg;"Root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=Pm(e,_m({shouldForwardProp:m,label:undefined},p)),v=(r,...o)=>{const a=o?o.map((e=>"function"==typeof e&&e.__emotion_real!==e?r=>e(_m({},r,{theme:Qg(_m({},r,{defaultTheme:n,themeId:t}))})):e)):[];let s=r;l&&d&&a.push((e=>{const r=Qg(_m({},e,{defaultTheme:n,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,r);if(o){const t={};return Object.entries(o).forEach((([n,o])=>{t[n]="function"==typeof o?o(_m({},e,{theme:r})):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const r=Qg(_m({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,l=[],s=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return s&&s.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&l.push(t[Gg(n.props)])})),l})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=Gg(e.props);r[t]=e.style})),r})(l,r),r,l)})),h||a.push(i);const c=a.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>r(_m({},e,{theme:Qg(_m({},e,{defaultTheme:n,themeId:t}))})));const u=g(s,...a);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Cf,defaultTheme:Bv,rootShouldForwardProp:Hv});var Vv=Uv;const Gv=["theme"];function Kv(e){let{theme:t}=e,n=Lf(e,Gv);const r=t[Cf];return Rm.jsx(uv,kf({},n,{themeId:r?Cf:void 0,theme:r||t}))}var Zv=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Xv(){return Xv=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},Xv.apply(this,arguments)}function Qv(e){return"string"==typeof e}function Jv(e,t,n){return void 0===e||Qv(e)?t:Xv({},t,{ownerState:Xv({},t.ownerState,n)})}const Yv={disableDefaultClasses:!1},eb=H.createContext(Yv);function tb(e){const{disableDefaultClasses:t}=H.useContext(eb);return n=>t?"":e(n)}function nb(e,t){return"function"==typeof e?e(t):e}function rb(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function 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}function ib(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=$g(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),t=Xv({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Xv({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(Xv({},o,r)),l=ob(r),s=ob(o),c=t(a),u=$g(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Xv({},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=Xv({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}const ab=["elementType","externalSlotProps","ownerState"];function lb(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=rb(e,ab),a=nb(r,o),{props:l,internalRef:s}=ib(Xv({},i,{externalSlotProps:a}));return Jv(n,Xv({},l,{ref:of(s,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const sb=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cb(e){const t=[],n=[];return Array.from(e.querySelectorAll(sb)).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 ub(){return!0}function db(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=cb,isEnabled:a=ub,open:l}=e,s=H.useRef(!1),c=H.useRef(null),u=H.useRef(null),d=H.useRef(null),p=H.useRef(null),f=H.useRef(!1),h=H.useRef(null),m=of(t.ref,h),g=H.useRef(null);H.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),H.useEffect((()=>{if(!l||!h.current)return;const e=Zp(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]),H.useEffect((()=>{if(!l||!h.current)return;const e=Zp(h.current),t=t=>{const{current:n}=h;if(null!==n)if(e.hasFocus()&&!r&&a()&&!s.current){if(!n.contains(e.activeElement)){if(t&&p.current!==t.target||e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=i(h.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else s.current=!1},n=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Rm.jsxs(H.Fragment,{children:[Rm.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),H.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)}}),Rm.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}var pb="top",fb="bottom",hb="right",mb="left",gb="auto",vb=[pb,fb,hb,mb],bb="start",yb="end",xb="clippingParents",Sb="viewport",wb="popper",Eb="reference",Cb=vb.reduce((function(e,t){return e.concat([t+"-"+bb,t+"-"+yb])}),[]),kb=[].concat(vb,[gb]).reduce((function(e,t){return e.concat([t,t+"-"+bb,t+"-"+yb])}),[]),Lb=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Rb(e){return e?(e.nodeName||"").toLowerCase():null}function Ob(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ib(e){return e instanceof Ob(e).Element||e instanceof Element}function Tb(e){return e instanceof Ob(e).HTMLElement||e instanceof HTMLElement}function Pb(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ob(e).ShadowRoot||e instanceof ShadowRoot)}var _b={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];Tb(o)&&Rb(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]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Tb(r)&&Rb(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Nb(e){return e.split("-")[0]}var Mb=Math.max,qb=Math.min,zb=Math.round;function Db(){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 Ab(){return!/^((?!chrome|android).)*safari/i.test(Db())}function jb(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Tb(e)&&(o=e.offsetWidth>0&&zb(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zb(r.height)/e.offsetHeight||1);var a=(Ib(e)?Ob(e):window).visualViewport,l=!Ab()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Fb(e){var t=jb(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 Bb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wb(e){return Ob(e).getComputedStyle(e)}function $b(e){return["table","td","th"].indexOf(Rb(e))>=0}function Hb(e){return((Ib(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ub(e){return"html"===Rb(e)?e:e.assignedSlot||e.parentNode||(Pb(e)?e.host:null)||Hb(e)}function Vb(e){return Tb(e)&&"fixed"!==Wb(e).position?e.offsetParent:null}function Gb(e){for(var t=Ob(e),n=Vb(e);n&&$b(n)&&"static"===Wb(n).position;)n=Vb(n);return n&&("html"===Rb(n)||"body"===Rb(n)&&"static"===Wb(n).position)?t:n||function(e){var t=/firefox/i.test(Db());if(/Trident/i.test(Db())&&Tb(e)&&"fixed"===Wb(e).position)return null;var n=Ub(e);for(Pb(n)&&(n=n.host);Tb(n)&&["html","body"].indexOf(Rb(n))<0;){var r=Wb(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 Kb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zb(e,t,n){return Mb(e,qb(t,n))}function Xb(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Qb(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Jb={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Nb(n.placement),s=Kb(l),c=[mb,hb].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return Xb("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Qb(e,vb))}(o.padding,n),d=Fb(i),p="y"===s?pb:mb,f="y"===s?fb:hb,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],m=a[s]-n.rects.reference[s],g=Gb(i),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=Zb(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)))&&Bb(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yb(e){return e.split("-")[1]}var ey={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ty(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.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=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=mb,x=pb,S=window;if(c){var w=Gb(n),E="clientHeight",C="clientWidth";if(w===Ob(n)&&"static"!==Wb(w=Hb(n)).position&&"absolute"===l&&(E="scrollHeight",C="scrollWidth"),o===pb||(o===mb||o===hb)&&i===yb)x=fb,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===mb||(o===pb||o===fb)&&i===yb)y=hb,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[C])-r.width,f*=s?1:-1}var k,L=Object.assign({position:l},c&&ey),R=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zb(n*o)/o||0,y:zb(r*o)/o||0}}({x:f,y:m},Ob(n)):{x:f,y:m};return f=R.x,m=R.y,s?Object.assign({},L,((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({},L,((t={})[x]=b?m+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var ny={passive:!0};var ry={left:"right",right:"left",bottom:"top",top:"bottom"};function oy(e){return e.replace(/left|right|bottom|top/g,(function(e){return ry[e]}))}var iy={start:"end",end:"start"};function ay(e){return e.replace(/start|end/g,(function(e){return iy[e]}))}function ly(e){var t=Ob(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function sy(e){return jb(Hb(e)).left+ly(e).scrollLeft}function cy(e){var t=Wb(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function uy(e){return["html","body","#document"].indexOf(Rb(e))>=0?e.ownerDocument.body:Tb(e)&&cy(e)?e:uy(Ub(e))}function dy(e,t){var n;void 0===t&&(t=[]);var r=uy(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ob(r),a=o?[i].concat(i.visualViewport||[],cy(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(dy(Ub(a)))}function py(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fy(e,t,n){return t===Sb?py(function(e,t){var n=Ob(e),r=Hb(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=Ab();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+sy(e),y:s}}(e,n)):Ib(t)?function(e,t){var n=jb(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):py(function(e){var t,n=Hb(e),r=ly(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Mb(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Mb(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+sy(e),s=-r.scrollTop;return"rtl"===Wb(o||n).direction&&(l+=Mb(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Hb(e)))}function hy(e,t,n,r){var o="clippingParents"===t?function(e){var t=dy(Ub(e)),n=["absolute","fixed"].indexOf(Wb(e).position)>=0&&Tb(e)?Gb(e):e;return Ib(n)?t.filter((function(e){return Ib(e)&&Bb(e,n)&&"body"!==Rb(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=fy(e,n,r);return t.top=Mb(o.top,t.top),t.right=qb(o.right,t.right),t.bottom=qb(o.bottom,t.bottom),t.left=Mb(o.left,t.left),t}),fy(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function my(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Nb(o):null,a=o?Yb(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case pb:t={x:l,y:n.y-r.height};break;case fb:t={x:l,y:n.y+n.height};break;case hb:t={x:n.x+n.width,y:s};break;case mb:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?Kb(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case bb:t[c]=t[c]-(n[u]/2-r[u]/2);break;case yb:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function gy(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?xb:l,c=n.rootBoundary,u=void 0===c?Sb:c,d=n.elementContext,p=void 0===d?wb:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=Xb("number"!=typeof g?g:Qb(g,vb)),b=p===wb?Eb:wb,y=e.rects.popper,x=e.elements[h?b:p],S=hy(Ib(x)?x:x.contextElement||Hb(e.elements.popper),s,u,a),w=jb(e.elements.reference),E=my({reference:w,element:y,strategy:"absolute",placement:o}),C=py(Object.assign({},y,E)),k=p===wb?C:w,L={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},R=e.modifiersData.offset;if(p===wb&&R){var O=R[o];Object.keys(L).forEach((function(e){var t=[hb,fb].indexOf(e)>=0?1:-1,n=[pb,fb].indexOf(e)>=0?"y":"x";L[e]+=O[n]*t}))}return L}function vy(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?kb:s,u=Yb(r),d=u?l?Cb:Cb.filter((function(e){return Yb(e)===u})):vb,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]=gy(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Nb(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var by={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,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,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=Nb(g),b=s||(v===g||!h?[oy(g)]:function(e){if(Nb(e)===gb)return[];var t=oy(e);return[ay(e),t,ay(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(Nb(n)===gb?vy(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 L=y[k],R=Nb(L),O=Yb(L)===bb,I=[pb,fb].indexOf(R)>=0,T=I?"width":"height",P=gy(t,{placement:L,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),_=I?O?hb:mb:O?fb:pb;x[T]>S[T]&&(_=oy(_));var N=oy(_),M=[];if(i&&M.push(P[R]<=0),l&&M.push(P[_]<=0,P[N]<=0),M.every((function(e){return e}))){C=L,E=!1;break}w.set(L,M)}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"},z=h?3:1;z>0;z--){if("break"===q(z))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function yy(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 xy(e){return[pb,hb,fb,mb].some((function(t){return e[t]>=0}))}var Sy={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=kb.reduce((function(e,n){return e[n]=function(e,t,n){var r=Nb(e),o=[mb,pb].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[mb,hb].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[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]=a}};var wy={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,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=gy(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=Nb(t.placement),b=Yb(t.placement),y=!b,x=Kb(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,L="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(i){var I,T="y"===x?pb:mb,P="y"===x?fb:hb,_="y"===x?"height":"width",N=w[x],M=N+g[T],q=N-g[P],z=f?-C[_]/2:0,D=b===bb?E[_]:C[_],A=b===bb?-C[_]:-E[_],j=t.elements.arrow,F=f&&j?Fb(j):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=B[T],$=B[P],H=Zb(0,E[_],F[_]),U=y?E[_]/2-z-H-W-L.mainAxis:D-H-W-L.mainAxis,V=y?-E[_]/2+z+H+$+L.mainAxis:A+H+$+L.mainAxis,G=t.elements.arrow&&Gb(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(I=null==R?void 0:R[x])?I:0,X=N+V-Z,Q=Zb(f?qb(M,N+U-Z-K):M,N,f?Mb(q,X):q);w[x]=Q,O[x]=Q-N}if(l){var J,Y="x"===x?pb:mb,ee="x"===x?fb:hb,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ie=-1!==[pb,mb].indexOf(v),ae=null!=(J=null==R?void 0:R[S])?J:0,le=ie?re:te-E[ne]-C[ne]-ae+L.altAxis,se=ie?te+E[ne]+C[ne]-ae-L.altAxis:oe,ce=f&&ie?function(e,t,n){var r=Zb(e,t,n);return r>n?n:r}(le,te,se):Zb(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function Ey(e,t,n){void 0===n&&(n=!1);var r=Tb(t),o=Tb(t)&&function(e){var t=e.getBoundingClientRect(),n=zb(t.width)/e.offsetWidth||1,r=zb(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Hb(t),a=jb(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==Rb(t)||cy(i))&&(l=function(e){return e!==Ob(e)&&Tb(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:ly(e);var t}(t)),Tb(t)?((s=jb(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=sy(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function Cy(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 ky={placement:"bottom",modifiers:[],strategy:"absolute"};function Ly(){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 Ry(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ky:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},ky,i),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({},i,l.options,o),l.scrollParents={reference:Ib(e)?dy(e):e.contextElement?dy(e.contextElement):[],popper:dy(t)};var a,c,p=function(e){var t=Cy(e);return Lb.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,l.options.modifiers),c=a.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 i=o({state:l,name:t,instance:u,options:r}),a=function(){};s.push(i||a)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(Ly(t,n)){l.rects={reference:Ey(t,Gb(n),"fixed"===l.options.strategy),popper:Fb(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],i=o.fn,a=o.options,s=void 0===a?{}:a,d=o.name;"function"==typeof i&&(l=i({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 a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!Ly(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 Oy=Ry({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,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=Ob(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,ny)})),l&&s.addEventListener("resize",n.update,ny),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ny)})),l&&s.removeEventListener("resize",n.update,ny)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=my({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,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,c={placement:Nb(t.placement),variation:Yb(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,ty(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ty(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:{}},_b,Sy,by,wy,Jb,{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,i=t.modifiersData.preventOverflow,a=gy(t,{elementContext:"reference"}),l=gy(t,{altBoundary:!0}),s=yy(a,r),c=yy(l,o,i),u=xy(s),d=xy(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})}}]});var Iy=H.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=H.useState(null),l=of(H.isValidElement(n)?n.ref:null,t);if(Jp((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Jp((()=>{if(i&&!o)return Qp(t,i),()=>{Qp(t,null)}}),[t,i,o]),o){if(H.isValidElement(n)){const e={ref:l};return H.cloneElement(n,e)}return Rm.jsx(H.Fragment,{children:n})}return Rm.jsx(H.Fragment,{children:i?yp.createPortal(n,i):i})}));function Ty(e){return wf("MuiPopper",e)}Ef("MuiPopper",["root"]);const Py=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],_y=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Ny(e){return"function"==typeof e?e():e}const My={},qy=H.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:l,open:s,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h}=e,m=rb(e,Py),g=H.useRef(null),v=of(g,t),b=H.useRef(null),y=of(b,d),x=H.useRef(y);Jp((()=>{x.current=y}),[y]),H.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,i),[w,E]=H.useState(S),[C,k]=H.useState(Ny(r));H.useEffect((()=>{b.current&&b.current.forceUpdate()})),H.useEffect((()=>{r&&k(Ny(r))}),[r]),Jp((()=>{if(!C||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{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=Oy(C,g.current,Xv({placement:S},u,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[C,a,l,s,u,S]);const L={placement:w};null!==h&&(L.TransitionProps=h);const R=bf({root:["root"]},tb(Ty)),O=null!=(n=f.root)?n:"div",I=lb({elementType:O,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:R.root});return Rm.jsx(O,Xv({},I,{children:"function"==typeof o?o(L):o}))})),zy=H.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=My,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,v=rb(e,_y),[b,y]=H.useState(!0);if(!l&&!c&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=Ny(n);x=e&&void 0!==e.nodeType?Zp(e).body:Zp(null).body}const S=c||!l||h&&!b?void 0:"none",w=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return Rm.jsx(Iy,{disablePortal:a,container:x,children:Rm.jsx(qy,Xv({anchorEl:n,direction:i,disablePortal:a,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},v,{style:Xv({position:"fixed",top:0,left:0,display:S},f),TransitionProps:w,children:r}))})}));var Dy=zy;function Ay(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function jy(e){return parseInt(Xp(e).getComputedStyle(e).paddingRight,10)||0}function Fy(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Ay(e,o)}))}function By(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Wy(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Zp(e);return t.body===e?Xp(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=mf(Zp(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${jy(r)+e}px`;const t=Zp(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${jy(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Zp(r).body;else{const t=r.parentElement,n=Xp(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)}))}}function $y(e){return wf("MuiModal",e)}Ef("MuiModal",["root","hidden","backdrop"]);const Hy=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"];const Uy=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&&Ay(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);Fy(t,e.mount,e.modalRef,r,!0);const o=By(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=By(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Wy(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=By(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&&Ay(e.modalRef,t),Fy(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&&Ay(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},Vy=H.forwardRef((function(e,t){var n,r;const{children:o,closeAfterTransition:i=!1,container:a,disableAutoFocus:l=!1,disableEnforceFocus:s=!1,disableEscapeKeyDown:c=!1,disablePortal:u=!1,disableRestoreFocus:d=!1,disableScrollLock:p=!1,hideBackdrop:f=!1,keepMounted:h=!1,manager:m=Uy,onBackdropClick:g,onClose:v,onKeyDown:b,open:y,onTransitionEnter:x,onTransitionExited:S,slotProps:w={},slots:E={}}=e,C=rb(e,Hy),k=m,[L,R]=H.useState(!y),O=H.useRef({}),I=H.useRef(null),T=H.useRef(null),P=of(T,t),_=function(e){return!!e&&e.props.hasOwnProperty("in")}(o),N=null==(n=e["aria-hidden"])||n,M=()=>(O.current.modalRef=T.current,O.current.mountNode=I.current,O.current),q=()=>{k.mount(M(),{disableScrollLock:p}),T.current&&(T.current.scrollTop=0)},z=rf((()=>{const e=function(e){return"function"==typeof e?e():e}(a)||Zp(I.current).body;k.add(M(),e),T.current&&q()})),D=H.useCallback((()=>k.isTopModal(M())),[k]),A=rf((e=>{I.current=e,e&&T.current&&(y&&D()?q():Ay(T.current,N))})),j=H.useCallback((()=>{k.remove(M(),N)}),[k,N]);H.useEffect((()=>()=>{j()}),[j]),H.useEffect((()=>{y?z():_&&i||j()}),[y,j,_,i,z]);const F=Xv({},e,{closeAfterTransition:i,disableAutoFocus:l,disableEnforceFocus:s,disableEscapeKeyDown:c,disablePortal:u,disableRestoreFocus:d,disableScrollLock:p,exited:L,hideBackdrop:f,keepMounted:h}),B=(e=>{const{open:t,exited:n}=e;return bf({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},tb($y))})(F),W=()=>{R(!1),x&&x()},$=()=>{R(!0),S&&S(),i&&j()},U={};void 0===o.props.tabIndex&&(U.tabIndex="-1"),_&&(U.onEnter=Vp(W,o.props.onEnter),U.onExited=Vp($,o.props.onExited));const V=null!=(r=E.root)?r:"div",G=lb({elementType:V,externalSlotProps:w.root,externalForwardedProps:C,additionalProps:{ref:P,role:"presentation",onKeyDown:e=>{b&&b(e),"Escape"===e.key&&D()&&(c||(e.stopPropagation(),v&&v(e,"escapeKeyDown")))}},className:B.root,ownerState:F}),K=E.backdrop,Z=lb({elementType:K,externalSlotProps:w.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(g&&g(e),v&&v(e,"backdropClick"))},open:y},className:B.backdrop,ownerState:F});return h||y||_&&!L?Rm.jsx(Iy,{ref:A,container:a,disablePortal:u,children:Rm.jsxs(V,Xv({},G,{children:[!f&&K?Rm.jsx(K,Xv({},Z)):null,Rm.jsx(db,{disableEnforceFocus:s,disableAutoFocus:l,disableRestoreFocus:d,isEnabled:D,open:y,children:H.cloneElement(o,U)})]}))}):null}));var Gy=Vy;const Ky=["onChange","maxRows","minRows","style","value"];function Zy(e){return parseInt(e,10)||0}const Xy={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Qy(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Jy=H.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=rb(e,Ky),{current:s}=H.useRef(null!=a),c=H.useRef(null),u=of(t,c),d=H.useRef(null),p=H.useRef(0),[f,h]=H.useState({outerHeightStyle:0}),m=H.useCallback((()=>{const t=c.current,n=Xp(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=Zy(n.paddingBottom)+Zy(n.paddingTop),s=Zy(n.borderBottomWidth)+Zy(n.borderTopWidth),u=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=H.useCallback((()=>{const e=m();Qy(e)||h((t=>g(t,e)))}),[m]);H.useEffect((()=>{const e=Gp((()=>{p.current=0,c.current&&(()=>{const e=m();Qy(e)||yp.flushSync((()=>{h((t=>g(t,e)))}))})()}));let t;const n=c.current,r=Xp(n);return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),r.removeEventListener("resize",e),t&&t.disconnect()}})),Jp((()=>{v()})),H.useEffect((()=>{p.current=0}),[a]);return Rm.jsxs(H.Fragment,{children:[Rm.jsx("textarea",Xv({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:u,rows:o,style:Xv({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Rm.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Xv({},Xy,i,{padding:0})})]})}));var Yy=Jy;function ex(){return ex=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},ex.apply(this,arguments)}function tx(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function nx(e,t){return nx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nx(e,t)}function rx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,nx(e,t)}var ox=!1,ix=U.createContext(null),ax="unmounted",lx="exited",sx="entering",cx="entered",ux="exiting",dx=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=lx,r.appearStatus=sx):o=cx:o=t.unmountOnExit||t.mountOnEnter?ax:lx,r.state={status:o},r.nextCallback=null,r}rx(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ax?{status:lx}: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!==sx&&n!==cx&&(t=sx):n!==sx&&n!==cx||(t=ux)}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===sx){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:xp.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lx&&this.setState({status:ax})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[xp.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||ox?this.safeSetState({status:cx},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:sx},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:cx},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:xp.findDOMNode(this);t&&!ox?(this.props.onExit(r),this.safeSetState({status:ux},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:lx},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:lx},(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:xp.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ax)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=tx(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return U.createElement(ix.Provider,{value:null},"function"==typeof n?n(e,r):U.cloneElement(U.Children.only(n),r))},t}(U.Component);function px(){}dx.contextType=ix,dx.propTypes={},dx.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:px,onEntering:px,onEntered:px,onExit:px,onExiting:px,onExited:px},dx.UNMOUNTED=ax,dx.EXITED=lx,dx.ENTERING=sx,dx.ENTERED=cx,dx.EXITING=ux;var fx=dx;function hx(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mx(e,t){var n=Object.create(null);return e&&H.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&H.isValidElement(e)?t(e):e}(e)})),n}function gx(e,t,n){return null!=n[t]?n[t]:e.props[t]}function vx(e,t,n){var r=mx(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(H.isValidElement(a)){var l=i in t,s=i in r,c=t[i],u=H.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&H.isValidElement(c)&&(o[i]=H.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:gx(a,"exit",e),enter:gx(a,"enter",e)})):o[i]=H.cloneElement(a,{in:!1}):o[i]=H.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:gx(a,"exit",e),enter:gx(a,"enter",e)})}})),o}var bx=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},yx=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(hx(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}rx(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,mx(n.children,(function(e){return H.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:gx(e,"appear",n),enter:gx(e,"enter",n),exit:gx(e,"exit",n)})}))):vx(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=mx(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ex({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=tx(e,["component","childFactory"]),o=this.state.contextValue,i=bx(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?U.createElement(ix.Provider,{value:o},i):U.createElement(ix.Provider,{value:o},U.createElement(t,r,i))},t}(U.Component);yx.propTypes={},yx.defaultProps={component:"div",childFactory:function(e){return e}};var xx=yx;var Sx=Ef("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const wx=["center","classes","className"];let Ex,Cx,kx,Lx,Rx=e=>e;const Ox=um(Ex||(Ex=Rx`
|
|
34
34
|
0% {
|
|
35
35
|
transform: scale(0);
|
|
36
36
|
opacity: 0.1;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
transform: scale(1);
|
|
41
41
|
opacity: 0.3;
|
|
42
42
|
}
|
|
43
|
-
`)),
|
|
43
|
+
`)),Ix=um(Cx||(Cx=Rx`
|
|
44
44
|
0% {
|
|
45
45
|
opacity: 1;
|
|
46
46
|
}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
100% {
|
|
49
49
|
opacity: 0;
|
|
50
50
|
}
|
|
51
|
-
`)),
|
|
51
|
+
`)),Tx=um(kx||(kx=Rx`
|
|
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
|
-
`)),
|
|
63
|
+
`)),Px=Vv("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_x=Vv((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:c}=e,[u,d]=H.useState(!1),p=$g(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=$g(n.child,u&&n.childLeaving,r&&n.childPulsate);return l||u||d(!0),H.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,c);return()=>{clearTimeout(e)}}}),[s,l,c]),Rm.jsx("span",{className:p,style:f,children:Rm.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Lx||(Lx=Rx`
|
|
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
|
-
`),eS.rippleVisible,aS,550,(({theme:e})=>e.transitions.easing.easeInOut),eS.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),eS.child,eS.childLeaving,lS,550,(({theme:e})=>e.transitions.easing.easeInOut),eS.childPulsate,sS,(({theme:e})=>e.transitions.easing.easeInOut)),dS=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i,...a}=n,[l,s]=H.useState([]),c=H.useRef(0),u=H.useRef(null);H.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=H.useRef(!1),p=H.useRef(null),f=H.useRef(null),h=H.useRef(null);H.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const m=H.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Og.jsx(uS,{classes:{ripple:jv(o.ripple,eS.ripple),rippleVisible:jv(o.rippleVisible,eS.rippleVisible),ripplePulsate:jv(o.ripplePulsate,eS.ripplePulsate),child:jv(o.child,eS.child),childLeaving:jv(o.childLeaving,eS.childLeaving),childPulsate:jv(o.childPulsate,eS.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=H.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||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(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-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.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m]),v=H.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=H.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return H.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Og.jsx(cS,{className:jv(eS.root,o.root,i),ref:h,...a,children:Og.jsx(Yx,{component:null,exit:!0,children:l})})}));var pS=dS;function fS(e){return wf("MuiButtonBase",e)}var hS=Ef("MuiButtonBase",["root","disabled","focusVisible"]);const mS=Nb("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"},[`&.${hS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gS=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:p,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:b,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:E,onMouseUp:C,onTouchEnd:k,onTouchMove:L,onTouchStart:R,tabIndex:O=0,TouchRippleProps:I,touchRippleRef:T,type:_,...P}=n,N=H.useRef(null),M=H.useRef(null),q=of(M,T),{isFocusVisibleRef:z,onFocus:D,onBlur:A,ref:j}=hf(),[F,$]=H.useState(!1);s&&F&&$(!1),H.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),N.current.focus()}})),[]);const[B,W]=H.useState(!1);H.useEffect((()=>{W(!0)}),[]);const U=B&&!c&&!s;function V(e,t,n=u){return rf((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}H.useEffect((()=>{F&&d&&!c&&B&&M.current.pulsate()}),[c,d,F,B]);const G=V("start",w),K=V("stop",g),Z=V("stop",v),X=V("stop",C),Q=V("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=V("start",R),Y=V("stop",k),ee=V("stop",L),te=V("stop",(e=>{A(e),!1===z.current&&$(!1),h&&h(e)}),!1),ne=rf((e=>{N.current||(N.current=e.currentTarget),D(e),!0===z.current&&($(!0),y&&y(e)),b&&b(e)})),re=()=>{const e=N.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},oe=H.useRef(!1),ie=rf((e=>{d&&!oe.current&&F&&M.current&&" "===e.key&&(oe.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ae=rf((e=>{d&&" "===e.key&&M.current&&F&&!e.defaultPrevented&&(oe.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let le=l;"button"===le&&(P.href||P.to)&&(le=f);const se={};"button"===le?(se.type=void 0===_?"button":_,se.disabled=s):(P.href||P.to||(se.role="button"),s&&(se["aria-disabled"]=s));const ce=of(t,j,N),ue={...n,centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:F},de=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=bf({root:["root",t&&"disabled",n&&"focusVisible"]},fS,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Og.jsxs(mS,{as:le,className:jv(de.root,a),ownerState:ue,onBlur:te,onClick:m,onContextMenu:K,onFocus:ne,onKeyDown:ie,onKeyUp:ae,onMouseDown:G,onMouseLeave:Q,onMouseUp:X,onDragLeave:Z,onTouchEnd:Y,onTouchMove:ee,onTouchStart:J,ref:ce,tabIndex:s?-1:O,type:_,...se,...P,children:[i,U?Og.jsx(pS,{ref:q,center:o,...I}):null]})}));var vS=gS;function bS(e){return wf("MuiButton",e)}var yS=Ef("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var xS=H.createContext({});const SS=e=>({..."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}}}),wS=Nb(vS,{shouldForwardProp:e=>_b(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Up(n.color)}`],t[`size${Up(n.size)}`],t[`${n.variant}Size${Up(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...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":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Xv(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})`:Xv(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})`:Xv(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},..."contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},..."contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}},"&:active":{..."contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}},[`&.${yS.focusVisible}`]:{..."contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}},[`&.${yS.disabled}`]:{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 ${Xv(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"},[`&.${yS.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yS.disabled}`]:{boxShadow:"none"}})),ES=Nb("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Up(n.size)}`]]}})((({ownerState:e})=>({display:"inherit",marginRight:8,marginLeft:-4,..."small"===e.size&&{marginLeft:-2},...SS(e)}))),CS=Nb("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Up(n.size)}`]]}})((({ownerState:e})=>({display:"inherit",marginRight:-4,marginLeft:8,..."small"===e.size&&{marginRight:-2},...SS(e)}))),kS=H.forwardRef((function(e,t){const n=H.useContext(xS),r=Tb({props:vf(n,e),name:"MuiButton"}),{children:o,color:i="primary",component:a="button",className:l,disabled:s=!1,disableElevation:c=!1,disableFocusRipple:u=!1,endIcon:d,focusVisibleClassName:p,fullWidth:f=!1,size:h="medium",startIcon:m,type:g,variant:v="text",...b}=r,y={...r,color:i,component:a,disabled:s,disableElevation:c,disableFocusRipple:u,fullWidth:f,size:h,type:g,variant:v},x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,l=bf({root:["root",i,`${i}${Up(t)}`,`size${Up(o)}`,`${i}Size${Up(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Up(o)}`],endIcon:["endIcon",`iconSize${Up(o)}`]},bS,a);return{...a,...l}})(y),S=m&&Og.jsx(ES,{className:x.startIcon,ownerState:y,children:m}),w=d&&Og.jsx(CS,{className:x.endIcon,ownerState:y,children:d});return Og.jsxs(wS,{ownerState:y,className:jv(n.className,x.root,l),component:a,disabled:s,focusRipple:!u,focusVisibleClassName:jv(x.focusVisible,p),ref:t,type:g,...b,classes:x,children:[S,o,w]})}));var LS=kS,RS={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 OS="#009845",IS="#3F8AB3",TS="#ffffff",_S="#404040",PS="#333333",NS="#1A1A1A",MS={mode:"light",palette:{primary:{main:_S,contrastText:TS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:_S,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},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:TS,default:TS,lightest:TS,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:IS,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:OS,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:TS,alternativeContrastText:_S,excludedContrastText:_S},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)"}}},qS={mode:"dark",palette:{primary:{main:PS,contrastText:TS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:TS,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:TS,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:_S,lighter:PS,darker:"#262626",darkest:NS},custom:{focusBorder:IS,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:OS,alternative:PS,excluded:NS,mainContrastText:TS,alternativeContrastText:TS,excludedContrastText:TS},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)"}}},zS={},DS=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(yS.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(yS.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(yS.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(yS.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function AS(e){let t=MS,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=qS));const r=JSON.stringify(t);if(zS[r])return zS[r];const o={palette:i(i({type:t.mode},RS.palette),t.palette),typography:i({},RS.typography),shadows:RS.shadows,props:i({},RS.props),shape:i({},RS.shape)};return zS[r]=Rb(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={},...l}=e,s={...l,components:{}};Object.keys(t).forEach((e=>{const n=s.components[e]||{};n.defaultProps=t[e],s.components[e]=n})),Object.keys(i).forEach((e=>{const t=s.components[e]||{};t.defaultProps=i[e],s.components[e]=t})),Object.keys(a).forEach((e=>{const t=s.components[e]||{};t.styleOverrides=a[e],s.components[e]=t})),Object.keys(r).forEach((e=>{const t=s.components[e]||{};t.styleOverrides=r[e],s.components[e]=t})),s.spacing=rv(e.spacing);const c=Mg(e.breakpoints||{}),u=s.spacing;s.mixins={gutters:(e={})=>({paddingLeft:u(2),paddingRight:u(2),...e,[c.up("sm")]:{paddingLeft:u(3),paddingRight:u(3),...e[c.up("sm")]}}),...n};const{type:d,mode:p,...f}=o,h=p||d||"light";return s.palette={text:{hint:"dark"===h?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:h,type:h,...f},s}(i(i({},o),{},{overrides:DS(o)}))),zS[r].name=n,zS[r]}xf.configure((e=>"njs-".concat("8048","-").concat(e.replace("Mui",""))));var jS=U.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),FS=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]=H.useState(t);return H.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[r]},r]};const[$S,BS]=FS({}),[WS,HS]=FS({}),[US,VS]=FS({}),[GS,KS]=FS({});function ZS(e){if(!e.session)return[];const[t]=$S(),n=e?e.id:null;let r=t.get(n);return H.useEffect((()=>{e&&!r&&(r=function(e){let{app:t}=e;const n="".concat(t.id),r=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=KS.get(n);t&&(await t.endSelections(e),KS.clear(n),VS.get(t.id).emit("deactivated"))},o={begin:async function(e,o){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===KS.get(n))return;r(i),KS.set(n,e);const a=Array.isArray(o)?o:[o],l=async r=>{try{await e.beginSelections(a),KS.set(n,e)}catch(e){6003!==e.code||r?KS.clear(n):(await t.abortModal(i),l(!0))}};await l()},end:r};HS.set(n,o);const i={model:t,isInModal:()=>!!KS.get(n),isModal:e=>e?KS.get(n)===e:!!KS.get(n),forward:()=>o.end().then((()=>t.forward())),back:()=>o.end().then((()=>t.back())),clear:()=>o.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return o.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return i}({app:e}),t.set(n,r),t.dispatch(!0))}),[e]),[r]}const XS={active:!0,select:!0,passive:!0,edit:!1};function QS(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(XS).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=XS[e],n[e]=!XS[e])})),e.constraints=n,e.interactions=t}const JS=H.forwardRef(((e,t)=>{let{initialContext:n,app:r,renderCallback:o}=e;const[i]=ZS(r),[a,l]=H.useState(n),[s,c]=H.useState(),{theme:u}=H.useMemo((()=>({theme:AS(s)})),[s]),[d,p]=H.useState([]);return H.useEffect((()=>{o&&o()}),[]),H.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>i})),[]),U.createElement(Tg,{injectFirst:!0},U.createElement(Mb,{theme:u},U.createElement(jS.Provider,{value:a},d)))}));function YS(e){return wf("MuiSvgIcon",e)}Ef("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ew=Nb("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Up(n.color)}`],t[`fontSize${Up(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,c,u,d,p,f,h,m,g,v,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(l=a.pxToRem)?void 0:l.call(a,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=(e.vars||e).palette)||null==(g=m.action)?void 0:g.active,disabled:null==(v=(e.vars||e).palette)||null==(b=v.action)?void 0:b.disabled,inherit:void 0}[t.color]}})),tw=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24",...p}=n,f={...n,color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d},h={};c||(h.viewBox=d);const m=(e=>{const{color:t,fontSize:n,classes:r}=e;return bf({root:["root","inherit"!==t&&`color${Up(t)}`,`fontSize${Up(n)}`]},YS,r)})(f);return Og.jsxs(ew,{as:a,className:jv(m.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t,...h,...p,ownerState:f,children:[r,u?Og.jsx("title",{children:u}):null]})}));tw.muiName="SvgIcon";var nw=tw;function rw(e,t){function n(n,r){return Og.jsx(nw,{"data-testid":`${t}Icon`,ref:r,...n,children:e})}return n.muiName=nw.muiName,H.memo(H.forwardRef(n))}const ow={configure:e=>{xf.configure(e)}};var iw=Object.freeze({__proto__:null,capitalize:Up,createChainedFunction:Vp,createSvgIcon:rw,debounce:Gp,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Kp,ownerDocument:Zp,ownerWindow:Xp,requirePropFactory:function(e,t){return()=>null},setRef:Qp,unstable_ClassNameGenerator:ow,unstable_useEnhancedEffect:Jp,unstable_useId:tf,unsupportedProp:function(e,t,n,r,o){return null},useControlled:nf,useEventCallback:rf,useForkRef:of,useIsFocusVisible:hf});const aw=e=>e.scrollTop;function lw(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function sw(e){return wf("MuiPaper",e)}Ef("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 cw=Nb("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{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&&{boxShadow:(e.vars||e).shadows[t.elevation],...!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Xv("#fff",qb(t.elevation))}, ${Xv("#fff",qb(t.elevation))})`},...e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}}}})),uw=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation",...s}=n,c={...n,component:o,elevation:i,square:a,variant:l},u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return bf({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},sw,o)})(c);return Og.jsx(cw,{as:o,ownerState:c,className:jv(u.root,r),ref:t,...s})}));var dw=uw;function pw(e){return wf("MuiIconButton",e)}var fw=Ef("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const hw=Nb(vS,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Up(n.color)}`],n.edge&&t[`edge${Up(n.edge)}`],t[`size${Up(n.size)}`]]}})((({theme:e,ownerState:t})=>({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})`:Xv(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{..."inherit"===t.color&&{color:"inherit"},..."inherit"!==t.color&&"default"!==t.color&&{color:null==r?void 0:r.main,...!t.disableRipple&&{"&:hover":{...r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xv(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)},[`&.${fw.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}})),mw=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium",...u}=n,d={...n,edge:r,color:a,disabled:l,disableFocusRipple:s,size:c},p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return bf({root:["root",n&&"disabled","default"!==r&&`color${Up(r)}`,o&&`edge${Up(o)}`,`size${Up(i)}`]},pw,t)})(d);return Og.jsx(hw,{className:jv(p.root,i),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d,...u,children:o})}));var gw=mw;function vw(e){return wf("MuiTypography",e)}Ef("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bw=Nb("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${Up(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>({margin:0,...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}}))),yw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Sw=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiTypography"}),r=(e=>xw[e]||e)(n.color),o=Dv({...n,color:r}),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=yw,...f}=o,h={...o,align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p},m=l||(u?"p":p[d]||yw[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return bf({root:["root",i,"inherit"!==e.align&&`align${Up(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},vw,a)})(h);return Og.jsx(bw,{as:m,ref:t,ownerState:h,className:jv(g.root,a),...f})}));var ww=Sw;const Ew=Nb(bx,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Cw=H.forwardRef((function(e,t){var n;const r=Pv(),o=Tb({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,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,...x}=o,S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v,...x};return Og.jsx(Ew,{as:a,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s,...w,ref:t})}));var kw=Cw;function Lw({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var Rw=H.createContext(void 0);function Ow(){return H.useContext(Rw)}function Iw(e){return Og.jsx(qv,{...e,defaultTheme:Ob,themeId:Cf})}function Tw(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function _w(e){return wf("MuiInputBase",e)}var Pw=Ef("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Nw=(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${Up(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Mw=(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]},qw=Nb("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Nw})((({theme:e,ownerState:t})=>({...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",[`&.${Pw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},...t.multiline&&{padding:"4px 0 5px",..."small"===t.size&&{paddingTop:1}},...t.fullWidth&&{width:"100%"}}))),zw=Nb("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Mw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return{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] + .${Pw.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Pw.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"}}})),Dw=Og.jsx(Iw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Aw=H.forwardRef((function(e,t){var n;const r=Tb({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,color:s,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,error:m,fullWidth:g=!1,id:v,inputComponent:b="input",inputProps:y={},inputRef:x,margin:S,maxRows:w,minRows:E,multiline:C=!1,name:k,onBlur:L,onChange:R,onClick:O,onFocus:I,onKeyDown:T,onKeyUp:_,placeholder:P,readOnly:N,renderSuffix:M,rows:q,size:z,slotProps:D={},slots:A={},startAdornment:j,type:F="text",value:$,...B}=r,W=null!=y.value?y.value:$,{current:U}=H.useRef(null!=W),V=H.useRef(),G=H.useCallback((e=>{}),[]),K=of(V,x,y.ref,G),[Z,X]=H.useState(!1),Q=Ow(),J=Lw({props:r,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});J.focused=Q?Q.focused:Z,H.useEffect((()=>{!Q&&p&&Z&&(X(!1),L&&L())}),[Q,p,Z,L]);const Y=Q&&Q.onFilled,ee=Q&&Q.onEmpty,te=H.useCallback((e=>{!function(e,t=!1){return e&&(Tw(e.value)&&""!==e.value||t&&Tw(e.defaultValue)&&""!==e.defaultValue)}(e)?ee&&ee():Y&&Y()}),[Y,ee]);Jp((()=>{U&&te({value:W})}),[W,te,U]);H.useEffect((()=>{te(V.current)}),[]);let ne=b,re=y;C&&"input"===ne&&(re=q?{type:void 0,minRows:q,maxRows:q,...re}:{type:void 0,maxRows:w,minRows:E,...re},ne=Px);H.useEffect((()=>{Q&&Q.setAdornedStart(Boolean(j))}),[Q,j]);const oe={...r,color:J.color||"primary",disabled:J.disabled,endAdornment:h,error:J.error,focused:J.focused,formControl:Q,fullWidth:g,hiddenLabel:J.hiddenLabel,multiline:C,size:J.size,startAdornment:j,type:F},ie=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return bf({root:["root",`color${Up(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl","small"===p&&"sizeSmall",u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},_w,t)})(oe),ae=A.root||c.Root||qw,le=D.root||u.root||{},se=A.input||c.Input||zw;return re={...re,...null!=(n=D.input)?n:u.input},Og.jsxs(H.Fragment,{children:[!f&&Dw,Og.jsxs(ae,{...le,...!zb(ae)&&{ownerState:{...oe,...le.ownerState}},ref:t,onClick:e=>{V.current&&e.currentTarget===e.target&&V.current.focus(),O&&!J.disabled&&O(e)},...B,className:jv(ie.root,le.className,l,N&&"MuiInputBase-readOnly"),children:[j,Og.jsx(Rw.Provider,{value:null,children:Og.jsx(se,{ownerState:oe,"aria-invalid":J.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:J.disabled,id:v,onAnimationStart:e=>{te("mui-auto-fill-cancel"===e.animationName?V.current:{value:"x"})},name:k,placeholder:P,readOnly:N,required:J.required,rows:q,value:W,onKeyDown:T,onKeyUp:_,type:F,...re,...!zb(se)&&{as:ne,ownerState:{...oe,...re.ownerState}},ref:K,className:jv(ie.input,re.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{L&&L(e),y.onBlur&&y.onBlur(e),Q&&Q.onBlur?Q.onBlur(e):X(!1)},onChange:(e,...t)=>{if(!U){const t=e.target||V.current;if(null==t)throw new Error(kp(1));te({value:t.value})}y.onChange&&y.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{J.disabled?e.stopPropagation():(I&&I(e),y.onFocus&&y.onFocus(e),Q&&Q.onFocus?Q.onFocus(e):X(!0))}})}),h,M?M({...J,startAdornment:j}):null]})]})}));var jw=Aw;function Fw(e){return wf("MuiOutlinedInput",e)}var $w={...Pw,...Ef("MuiOutlinedInput",["root","notchedOutline","input"])};const Bw={entering:{opacity:1},entered:{opacity:1}},Ww=H.forwardRef((function(e,t){const n=Ib(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=Vx,...b}=e,y=H.useRef(null),x=of(y,a.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)=>{aw(e);const r=lw({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),L=S((e=>{const t=lw({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)})),R=S(f);return Og.jsx(v,{appear:i,in:s,nodeRef:y,onEnter:E,onEntered:C,onEntering:w,onExit:L,onExited:R,onExiting:k,addEndListener:e=>{o&&o(y.current,e)},timeout:g,...b,children:(e,t)=>H.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||s?void 0:"hidden",...Bw[e],...m,...a.props.style},ref:x,...t})})}));var Hw=Ww;function Uw(e){return wf("MuiBackdrop",e)}Ef("MuiBackdrop",["root","invisible"]);const Vw=Nb("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>({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"}}))),Gw=H.forwardRef((function(e,t){var n,r,o;const i=Tb({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Hw,transitionDuration:g,...v}=i,b={...i,component:s,invisible:d},y=(e=>{const{classes:t,invisible:n}=e;return bf({root:["root",n&&"invisible"]},Uw,t)})(b),x=null!=(n=f.root)?n:u.root;return Og.jsx(m,{in:p,timeout:g,...v,children:Og.jsx(Vw,{"aria-hidden":!0,...x,as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:jv(y.root,l,null==x?void 0:x.className),ownerState:{...b,...null==x?void 0:x.ownerState},classes:y,ref:t,children:a})})}));var Kw=Gw;function Zw(e){return wf("MuiBadge",e)}var Xw=Ef("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"]);const Qw=Nb("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Jw=Nb("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Up(n.anchorOrigin.vertical)}${Up(n.anchorOrigin.horizontal)}${Up(n.overlap)}`],"default"!==n.color&&t[`color${Up(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>({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}),..."default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},..."dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},..."top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Xw.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},..."bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Xw.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},..."top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Xw.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},..."bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Xw.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},..."top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Xw.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},..."bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Xw.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},..."top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Xw.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},..."bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Xw.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},...t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}))),Yw=H.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Tb({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,classes:d,component:p,components:f={},componentsProps:h={},children:m,overlap:g="rectangular",color:v="default",invisible:b=!1,max:y=99,badgeContent:x,slots:S,slotProps:w,showZero:E=!1,variant:C="standard",...k}=s,{badgeContent:L,invisible:R,max:O,displayValue:I}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=gf({badgeContent:t,max:r});let a=n;!1!==n||0!==t||o||(a=!0);const{badgeContent:l,max:s=r}=a?i:e;return{badgeContent:l,invisible:a,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:y,invisible:b,badgeContent:x,showZero:E}),T=gf({anchorOrigin:c,color:v,overlap:g,variant:C,badgeContent:x}),_=R||null==L&&"dot"!==C,{color:P=v,overlap:N=g,anchorOrigin:M=c,variant:q=C}=_?T:s,z="dot"!==q?I:void 0,D={...s,badgeContent:L,invisible:_,max:O,displayValue:z,showZero:E,anchorOrigin:M,color:P,overlap:N,variant:q},A=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return bf({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Up(n.vertical)}${Up(n.horizontal)}`,`anchorOrigin${Up(n.vertical)}${Up(n.horizontal)}${Up(o)}`,`overlap${Up(o)}`,"default"!==t&&`color${Up(t)}`]},Zw,a)})(D),j=null!=(n=null!=(r=null==S?void 0:S.root)?r:f.Root)?n:Qw,F=null!=(o=null!=(i=null==S?void 0:S.badge)?i:f.Badge)?o:Jw,$=null!=(a=null==w?void 0:w.root)?a:h.root,B=null!=(l=null==w?void 0:w.badge)?l:h.badge,W=Hb({elementType:j,externalSlotProps:$,externalForwardedProps:k,additionalProps:{ref:t,as:p},ownerState:D,className:jv(null==$?void 0:$.className,A.root,u)}),H=Hb({elementType:F,externalSlotProps:B,ownerState:D,className:jv(A.badge,null==B?void 0:B.className)});return Og.jsxs(j,{...W,children:[m,Og.jsx(F,{...H,children:z})]})}));var eE=Yw;const tE=Rb(),nE=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Pg("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Tv),a=H.forwardRef((function(e,a){const l=Mv(n),{className:s,component:c="div",...u}=Dv(e);return Og.jsx(i,{as:c,ref:a,className:jv(s,o?o(r):r),theme:t&&l[t]||l,...u})}));return a}({themeId:Cf,defaultTheme:tE,defaultClassName:"MuiBox-root",generateClassName:xf.generate});var rE=nE;function oE(e){return wf("PrivateSwitchBase",e)}Ef("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const iE=Nb(vS)((({ownerState:e})=>({padding:9,borderRadius:"50%",..."start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},..."end"===e.edge&&{marginRight:"small"===e.size?-3:-12}}))),aE=Nb("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),lE=H.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,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,[C,k]=nf({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),L=Ow();let R=l;L&&void 0===R&&(R=L.disabled);const O="checkbox"===S||"radio"===S,I={...e,checked:C,disabled:R,disableFocusRipple:s,edge:c},T=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return bf({root:["root",n&&"checked",r&&"disabled",o&&`edge${Up(o)}`],input:["input"]},oE,t)})(I);return Og.jsxs(iE,{component:"span",className:jv(T.root,i),centerRipple:!0,focusRipple:!s,disabled:R,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),L&&L.onFocus&&L.onFocus(e)},onBlur:e=>{m&&m(e),L&&L.onBlur&&L.onBlur(e)},ownerState:I,ref:t,...E,children:[Og.jsx(aE,{autoFocus:n,checked:r,defaultChecked:a,className:T.input,disabled:R,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:I,tabIndex:x,type:S,..."checkbox"===S&&void 0===w?{}:{value:w},...p}),C?o:u]})}));var sE=lE,cE=rw(Og.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"),uE=rw(Og.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"),dE=rw(Og.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 pE(e){return wf("MuiCheckbox",e)}var fE=Ef("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const hE=Nb(sE,{shouldForwardProp:e=>_b(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${Up(n.color)}`]]}})((({theme:e,ownerState:t})=>({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.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},..."default"!==t.color&&{[`&.${fE.checked}, &.${fE.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${fE.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}))),mE=Og.jsx(uE,{}),gE=Og.jsx(cE,{}),vE=Og.jsx(dE,{}),bE=H.forwardRef((function(e,t){var n,r;const o=Tb({props:e,name:"MuiCheckbox"}),{checkedIcon:i=mE,color:a="primary",icon:l=gE,indeterminate:s=!1,indeterminateIcon:c=vE,inputProps:u,size:d="medium",className:p,...f}=o,h=s?c:l,m=s?c:i,g={...o,color:a,indeterminate:s,size:d},v=(e=>{const{classes:t,indeterminate:n,color:r}=e,o=bf({root:["root",n&&"indeterminate",`color${Up(r)}`]},pE,t);return{...t,...o}})(g);return Og.jsx(hE,{type:"checkbox",inputProps:{"data-indeterminate":s,...u},icon:H.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:H.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:jv(v.root,p),...f,classes:v})}));var yE=bE;function xE(e){return wf("MuiCircularProgress",e)}Ef("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);let SE,wE,EE,CE,kE=e=>e;const LE=44,RE=lm(SE||(SE=kE`
|
|
106
|
+
`),Sx.rippleVisible,Ox,550,(({theme:e})=>e.transitions.easing.easeInOut),Sx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Sx.child,Sx.childLeaving,Ix,550,(({theme:e})=>e.transitions.easing.easeInOut),Sx.childPulsate,Tx,(({theme:e})=>e.transitions.easing.easeInOut)),Nx=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Lf(n,wx),[l,s]=H.useState([]),c=H.useRef(0),u=H.useRef(null);H.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=H.useRef(!1),p=H.useRef(null),f=H.useRef(null),h=H.useRef(null);H.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const m=H.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Rm.jsx(_x,{classes:{ripple:$g(o.ripple,Sx.ripple),rippleVisible:$g(o.rippleVisible,Sx.rippleVisible),ripplePulsate:$g(o.ripplePulsate,Sx.ripplePulsate),child:$g(o.child,Sx.child),childLeaving:$g(o.childLeaving,Sx.childLeaving),childPulsate:$g(o.childPulsate,Sx.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=H.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||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(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-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.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m]),v=H.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=H.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return H.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Rm.jsx(Px,kf({className:$g(Sx.root,o.root,i),ref:h},a,{children:Rm.jsx(xx,{component:null,exit:!0,children:l})}))}));var Mx=Nx;function qx(e){return wf("MuiButtonBase",e)}var zx=Ef("MuiButtonBase",["root","disabled","focusVisible"]);const Dx=["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"],Ax=Vv("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"},[`&.${zx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jx=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,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:L,tabIndex:R=0,TouchRippleProps:O,touchRippleRef:I,type:T}=n,P=Lf(n,Dx),_=H.useRef(null),N=H.useRef(null),M=of(N,I),{isFocusVisibleRef:q,onFocus:z,onBlur:D,ref:A}=hf(),[j,F]=H.useState(!1);s&&j&&F(!1),H.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),_.current.focus()}})),[]);const[B,W]=H.useState(!1);H.useEffect((()=>{W(!0)}),[]);const $=B&&!c&&!s;function U(e,t,n=u){return rf((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}H.useEffect((()=>{j&&d&&!c&&B&&N.current.pulsate()}),[c,d,j,B]);const V=U("start",S),G=U("stop",m),K=U("stop",g),Z=U("stop",E),X=U("stop",(e=>{j&&e.preventDefault(),w&&w(e)})),Q=U("start",L),J=U("stop",C),Y=U("stop",k),ee=U("stop",(e=>{D(e),!1===q.current&&F(!1),f&&f(e)}),!1),te=rf((e=>{_.current||(_.current=e.currentTarget),z(e),!0===q.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=_.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=H.useRef(!1),oe=rf((e=>{d&&!re.current&&j&&N.current&&" "===e.key&&(re.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=rf((e=>{d&&" "===e.key&&N.current&&j&&!e.defaultPrevented&&(re.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(P.href||P.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===T?"button":T,le.disabled=s):(P.href||P.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=of(t,A,_),ce=kf({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:R,focusVisible:j}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=bf({root:["root",t&&"disabled",n&&"focusVisible"]},qx,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Rm.jsxs(Ax,kf({as:ae,className:$g(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:J,onTouchMove:Y,onTouchStart:Q,ref:se,tabIndex:s?-1:R,type:T},le,P,{children:[i,$?Rm.jsx(Mx,kf({ref:M,center:o},O)):null]}))}));var Fx=jx;function Bx(e){return wf("MuiButton",e)}var Wx=Ef("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var $x=H.createContext({});const Hx=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ux=e=>kf({},"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}}),Vx=Vv(Fx,{shouldForwardProp:e=>Hv(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Up(n.color)}`],t[`size${Up(n.size)}`],t[`${n.variant}Size${Up(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return kf({},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":kf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:rv(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})`:rv(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})`:rv(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":kf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Wx.focusVisible}`]:kf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Wx.disabled}`]:kf({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 ${rv(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"},[`&.${Wx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Wx.disabled}`]:{boxShadow:"none"}})),Gx=Vv("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Up(n.size)}`]]}})((({ownerState:e})=>kf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ux(e)))),Kx=Vv("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Up(n.size)}`]]}})((({ownerState:e})=>kf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ux(e)))),Zx=H.forwardRef((function(e,t){const n=H.useContext($x),r=$v({props:vf(n,e),name:"MuiButton"}),{children:o,color:i="primary",component:a="button",className:l,disabled:s=!1,disableElevation:c=!1,disableFocusRipple:u=!1,endIcon:d,focusVisibleClassName:p,fullWidth:f=!1,size:h="medium",startIcon:m,type:g,variant:v="text"}=r,b=Lf(r,Hx),y=kf({},r,{color:i,component:a,disabled:s,disableElevation:c,disableFocusRipple:u,fullWidth:f,size:h,type:g,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return kf({},a,bf({root:["root",i,`${i}${Up(t)}`,`size${Up(o)}`,`${i}Size${Up(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Up(o)}`],endIcon:["endIcon",`iconSize${Up(o)}`]},Bx,a))})(y),S=m&&Rm.jsx(Gx,{className:x.startIcon,ownerState:y,children:m}),w=d&&Rm.jsx(Kx,{className:x.endIcon,ownerState:y,children:d});return Rm.jsxs(Vx,kf({ownerState:y,className:$g(n.className,x.root,l),component:a,disabled:s,focusRipple:!u,focusVisibleClassName:$g(x.focusVisible,p),ref:t,type:g},b,{classes:x,children:[S,o,w]}))}));var Xx=Zx,Qx={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 Jx="#009845",Yx="#3F8AB3",eS="#ffffff",tS="#404040",nS="#333333",rS="#1A1A1A",oS={mode:"light",palette:{primary:{main:tS,contrastText:eS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:tS,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},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:eS,default:eS,lightest:eS,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:Yx,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:Jx,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:eS,alternativeContrastText:tS,excludedContrastText:tS},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)"}}},iS={mode:"dark",palette:{primary:{main:nS,contrastText:eS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:eS,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:eS,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:tS,lighter:nS,darker:"#262626",darkest:rS},custom:{focusBorder:Yx,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:Jx,alternative:nS,excluded:rS,mainContrastText:eS,alternativeContrastText:eS,excludedContrastText:eS},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={},lS=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(Wx.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(Wx.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(Wx.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Wx.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function sS(e){let t=oS,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=iS));const r=JSON.stringify(t);if(aS[r])return aS[r];const o={palette:i(i({type:t.mode},Qx.palette),t.palette),typography:i({},Qx.typography),shadows:Qx.shadows,props:i({},Qx.props),shape:i({},Qx.shape)};return aS[r]=Fv(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,l=kf({},Lf(e,dv),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.defaultProps=i[e],l.components[e]=t})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=a[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=ig(e.spacing);const s=zm(e.breakpoints||{}),c=l.spacing;l.mixins=kf({gutters:(e={})=>kf({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:kf({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Lf(o,pv),f=d||u||"light";return l.palette=kf({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(i(i({},o),{},{overrides:lS(o)}))),aS[r].name=n,aS[r]}xf.configure((e=>"njs-".concat("65bf","-").concat(e.replace("Mui",""))));var cS=U.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),uS=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]=H.useState(t);return H.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[r]},r]};const[dS,pS]=uS({}),[fS,hS]=uS({}),[mS,gS]=uS({}),[vS,bS]=uS({});function yS(e){if(!e.session)return[];const[t]=dS(),n=e?e.id:null;let r=t.get(n);return H.useEffect((()=>{e&&!r&&(r=function(e){let{app:t}=e;const n="".concat(t.id),r=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=bS.get(n);t&&(await t.endSelections(e),bS.clear(n),gS.get(t.id).emit("deactivated"))},o={begin:async function(e,o){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===bS.get(n))return;r(i),bS.set(n,e);const a=Array.isArray(o)?o:[o],l=async r=>{try{await e.beginSelections(a),bS.set(n,e)}catch(e){6003!==e.code||r?bS.clear(n):(await t.abortModal(i),l(!0))}};await l()},end:r};hS.set(n,o);const i={model:t,isInModal:()=>!!bS.get(n),isModal:e=>e?bS.get(n)===e:!!bS.get(n),forward:()=>o.end().then((()=>t.forward())),back:()=>o.end().then((()=>t.back())),clear:()=>o.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return o.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return i}({app:e}),t.set(n,r),t.dispatch(!0))}),[e]),[r]}const xS={active:!0,select:!0,passive:!0,edit:!1};function SS(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(xS).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=xS[e],n[e]=!xS[e])})),e.constraints=n,e.interactions=t}const wS=H.forwardRef(((e,t)=>{let{initialContext:n,app:r,renderCallback:o}=e;const[i]=yS(r),[a,l]=H.useState(n),[s,c]=H.useState(),{theme:u}=H.useMemo((()=>({theme:sS(s)})),[s]),[d,p]=H.useState([]);return H.useEffect((()=>{o&&o()}),[]),H.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>i})),[]),U.createElement(Im,{injectFirst:!0},U.createElement(Kv,{theme:u},U.createElement(cS.Provider,{value:a},d)))}));function ES(e){return wf("MuiSvgIcon",e)}Ef("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const CS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],kS=Vv("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Up(n.color)}`],t[`fontSize${Up(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,c,u,d,p,f,h,m,g,v,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(l=a.pxToRem)?void 0:l.call(a,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=(e.vars||e).palette)||null==(g=m.action)?void 0:g.active,disabled:null==(v=(e.vars||e).palette)||null==(b=v.action)?void 0:b.disabled,inherit:void 0}[t.color]}})),LS=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Lf(n,CS),f=kf({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),h={};c||(h.viewBox=d);const m=(e=>{const{color:t,fontSize:n,classes:r}=e;return bf({root:["root","inherit"!==t&&`color${Up(t)}`,`fontSize${Up(n)}`]},ES,r)})(f);return Rm.jsxs(kS,kf({as:a,className:$g(m.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,p,{ownerState:f,children:[r,u?Rm.jsx("title",{children:u}):null]}))}));LS.muiName="SvgIcon";var RS=LS;function OS(e,t){function n(n,r){return Rm.jsx(RS,kf({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=RS.muiName,H.memo(H.forwardRef(n))}const IS={configure:e=>{xf.configure(e)}};var TS=Object.freeze({__proto__:null,capitalize:Up,createChainedFunction:Vp,createSvgIcon:OS,debounce:Gp,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Kp,ownerDocument:Zp,ownerWindow:Xp,requirePropFactory:function(e,t){return()=>null},setRef:Qp,unstable_ClassNameGenerator:IS,unstable_useEnhancedEffect:Jp,unstable_useId:tf,unsupportedProp:function(e,t,n,r,o){return null},useControlled:nf,useEventCallback:rf,useForkRef:of,useIsFocusVisible:hf});const PS=e=>e.scrollTop;function _S(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function NS(e){return wf("MuiPaper",e)}Ef("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 MS=["className","component","elevation","square","variant"],qS=Vv("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 kf({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&&kf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${rv("#fff",Zv(t.elevation))}, ${rv("#fff",Zv(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),zS=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Lf(n,MS),c=kf({},n,{component:o,elevation:i,square:a,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return bf({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},NS,o)})(c);return Rm.jsx(qS,kf({as:o,ownerState:c,className:$g(u.root,r),ref:t},s))}));var DS=zS;function AS(e){return wf("MuiIconButton",e)}var jS=Ef("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const FS=["edge","children","className","color","disabled","disableFocusRipple","size"],BS=Vv(Fx,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Up(n.color)}`],n.edge&&t[`edge${Up(n.edge)}`],t[`size${Up(n.size)}`]]}})((({theme:e,ownerState:t})=>kf({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})`:rv(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 kf({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&kf({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":kf({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rv(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)},{[`&.${jS.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),WS=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=Lf(n,FS),d=kf({},n,{edge:r,color:a,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return bf({root:["root",n&&"disabled","default"!==r&&`color${Up(r)}`,o&&`edge${Up(o)}`,`size${Up(i)}`]},AS,t)})(d);return Rm.jsx(BS,kf({className:$g(p.root,i),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},u,{children:o}))}));var $S=WS;function HS(e){return wf("MuiTypography",e)}Ef("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const US=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],VS=Vv("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${Up(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>kf({margin:0},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}))),GS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},KS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ZS=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiTypography"}),r=(e=>KS[e]||e)(n.color),o=Bg(kf({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=GS}=o,f=Lf(o,US),h=kf({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||GS[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return bf({root:["root",i,"inherit"!==e.align&&`align${Up(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},HS,a)})(h);return Rm.jsx(VS,kf({as:m,ref:t,ownerState:h,className:$g(g.root,a)},f))}));var XS=ZS;const QS=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],JS=Vv(Dy,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YS=H.forwardRef((function(e,t){var n;const r=qg(),o=$v({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,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=Lf(o,QS),S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w=kf({anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v},x);return Rm.jsx(JS,kf({as:a,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))}));var ew=YS;function tw({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var nw=H.createContext(void 0);function rw(){return H.useContext(nw)}function ow(e){return Rm.jsx(Ag,kf({},e,{defaultTheme:Bv,themeId:Cf}))}function iw(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function aw(e){return wf("MuiInputBase",e)}var lw=Ef("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const sw=["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"],cw=(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${Up(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},uw=(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]},dw=Vv("div",{name:"MuiInputBase",slot:"Root",overridesResolver:cw})((({theme:e,ownerState:t})=>kf({},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",[`&.${lw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&kf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),pw=Vv("input",{name:"MuiInputBase",slot:"Input",overridesResolver:uw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=kf({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return kf({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] + .${lw.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${lw.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"})})),fw=Rm.jsx(ow,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),hw=H.forwardRef((function(e,t){var n;const r=$v({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,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:L,onKeyDown:R,onKeyUp:O,placeholder:I,readOnly:T,renderSuffix:P,rows:_,slotProps:N={},slots:M={},startAdornment:q,type:z="text",value:D}=r,A=Lf(r,sw),j=null!=v.value?v.value:D,{current:F}=H.useRef(null!=j),B=H.useRef(),W=H.useCallback((e=>{}),[]),$=of(B,b,v.ref,W),[U,V]=H.useState(!1),G=rw(),K=tw({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,H.useEffect((()=>{!G&&d&&U&&(V(!1),E&&E())}),[G,d,U,E]);const Z=G&&G.onFilled,X=G&&G.onEmpty,Q=H.useCallback((e=>{!function(e,t=!1){return e&&(iw(e.value)&&""!==e.value||t&&iw(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);Jp((()=>{F&&Q({value:j})}),[j,Q,F]);H.useEffect((()=>{Q(B.current)}),[]);let J=g,Y=v;S&&"input"===J&&(Y=kf(_?{type:void 0,minRows:_,maxRows:_}:{type:void 0,maxRows:y,minRows:x},Y),J=Yy);H.useEffect((()=>{G&&G.setAdornedStart(Boolean(q))}),[G,q]);const ee=kf({},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:z}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return bf({root:["root",`color${Up(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl","small"===p&&"sizeSmall",u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},aw,t)})(ee),ne=M.root||s.Root||dw,re=N.root||c.root||{},oe=M.input||s.Input||pw;return Y=kf({},Y,null!=(n=N.input)?n:c.input),Rm.jsxs(H.Fragment,{children:[!p&&fw,Rm.jsxs(ne,kf({},re,!Qv(ne)&&{ownerState:kf({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),k&&!K.disabled&&k(e)}},A,{className:$g(te.root,re.className,l,T&&"MuiInputBase-readOnly"),children:[q,Rm.jsx(nw.Provider,{value:null,children:Rm.jsx(oe,kf({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:I,readOnly:T,required:K.required,rows:_,value:j,onKeyDown:R,onKeyUp:O,type:z},Y,!Qv(oe)&&{as:J,ownerState:kf({},ee,Y.ownerState)},{ref:$,className:$g(te.input,Y.className,T&&"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||B.current;if(null==t)throw new Error(kp(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),f,P?P(kf({},K,{startAdornment:q})):null]}))]})}));var mw=hw;function gw(e){return wf("MuiOutlinedInput",e)}var vw=kf({},lw,Ef("MuiOutlinedInput",["root","notchedOutline","input"]));const bw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],yw={entering:{opacity:1},entered:{opacity:1}},xw=H.forwardRef((function(e,t){const n=Wv(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=fx}=e,b=Lf(e,bw),y=H.useRef(null),x=of(y,a.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)=>{PS(e);const r=_S({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),L=S((e=>{const t=_S({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)})),R=S(f);return Rm.jsx(v,kf({appear:i,in:s,nodeRef:y,onEnter:E,onEntered:C,onEntering:w,onExit:L,onExited:R,onExiting:k,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>H.cloneElement(a,kf({style:kf({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},yw[e],m,a.props.style),ref:x},t))}))}));var Sw=xw;function ww(e){return wf("MuiBackdrop",e)}Ef("MuiBackdrop",["root","invisible"]);const Ew=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Cw=Vv("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>kf({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"}))),kw=H.forwardRef((function(e,t){var n,r,o;const i=$v({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Sw,transitionDuration:g}=i,v=Lf(i,Ew),b=kf({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return bf({root:["root",n&&"invisible"]},ww,t)})(b),x=null!=(n=f.root)?n:u.root;return Rm.jsx(m,kf({in:p,timeout:g},v,{children:Rm.jsx(Cw,kf({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:$g(y.root,l,null==x?void 0:x.className),ownerState:kf({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Lw=kw;function Rw(e){return wf("MuiBadge",e)}var Ow=Ef("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"]);const Iw=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Tw=Vv("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Pw=Vv("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Up(n.anchorOrigin.vertical)}${Up(n.anchorOrigin.horizontal)}${Up(n.overlap)}`],"default"!==n.color&&t[`color${Up(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>kf({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})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),_w=H.forwardRef((function(e,t){var n,r,o,i,a,l;const s=$v({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=Lf(s,Iw),{badgeContent:k,invisible:L,max:R,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=gf({badgeContent:t,max:r});let a=n;!1!==n||0!==t||o||(a=!0);const{badgeContent:l,max:s=r}=a?i:e;return{badgeContent:l,invisible:a,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:b,invisible:v,badgeContent:y,showZero:w}),I=gf({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),T=L||null==k&&"dot"!==E,{color:P=g,overlap:_=m,anchorOrigin:N=c,variant:M=E}=T?I:s,q="dot"!==M?O:void 0,z=kf({},s,{badgeContent:k,invisible:T,max:R,displayValue:q,showZero:w,anchorOrigin:N,color:P,overlap:_,variant:M}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return bf({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Up(n.vertical)}${Up(n.horizontal)}`,`anchorOrigin${Up(n.vertical)}${Up(n.horizontal)}${Up(o)}`,`overlap${Up(o)}`,"default"!==t&&`color${Up(t)}`]},Rw,a)})(z),A=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:Tw,j=null!=(o=null!=(i=null==x?void 0:x.badge)?i:p.Badge)?o:Pw,F=null!=(a=null==S?void 0:S.root)?a:f.root,B=null!=(l=null==S?void 0:S.badge)?l:f.badge,W=lb({elementType:A,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:z,className:$g(null==F?void 0:F.className,D.root,u)}),$=lb({elementType:j,externalSlotProps:B,ownerState:z,className:$g(D.badge,null==B?void 0:B.className)});return Rm.jsxs(A,kf({},W,{children:[h,Rm.jsx(j,kf({},$,{children:q}))]}))}));var Nw=_w;const Mw=Fv(),qw=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Pm("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(_g),a=H.forwardRef((function(e,a){const l=Dg(n),s=Bg(e),{className:c,component:u="div"}=s,d=Nm(s,Hg);return Rm.jsx(i,_m({as:u,ref:a,className:$g(c,o?o(r):r),theme:t&&l[t]||l},d))}));return a}({themeId:Cf,defaultTheme:Mw,defaultClassName:"MuiBox-root",generateClassName:xf.generate});var zw=qw;function Dw(e){return wf("PrivateSwitchBase",e)}Ef("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Aw=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],jw=Vv(Fx)((({ownerState:e})=>kf({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Fw=Vv("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Bw=H.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,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=Lf(e,Aw),[C,k]=nf({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),L=rw();let R=l;L&&void 0===R&&(R=L.disabled);const O="checkbox"===S||"radio"===S,I=kf({},e,{checked:C,disabled:R,disableFocusRipple:s,edge:c}),T=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return bf({root:["root",n&&"checked",r&&"disabled",o&&`edge${Up(o)}`],input:["input"]},Dw,t)})(I);return Rm.jsxs(jw,kf({component:"span",className:$g(T.root,i),centerRipple:!0,focusRipple:!s,disabled:R,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),L&&L.onFocus&&L.onFocus(e)},onBlur:e=>{m&&m(e),L&&L.onBlur&&L.onBlur(e)},ownerState:I,ref:t},E,{children:[Rm.jsx(Fw,kf({autoFocus:n,checked:r,defaultChecked:a,className:T.input,disabled:R,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:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var Ww=Bw,$w=OS(Rm.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"),Hw=OS(Rm.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"),Uw=OS(Rm.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 Vw(e){return wf("MuiCheckbox",e)}var Gw=Ef("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const Kw=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Zw=Vv(Ww,{shouldForwardProp:e=>Hv(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${Up(n.color)}`]]}})((({theme:e,ownerState:t})=>kf({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.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Gw.checked}, &.${Gw.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Gw.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Xw=Rm.jsx(Hw,{}),Qw=Rm.jsx($w,{}),Jw=Rm.jsx(Uw,{}),Yw=H.forwardRef((function(e,t){var n,r;const o=$v({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Xw,color:a="primary",icon:l=Qw,indeterminate:s=!1,indeterminateIcon:c=Jw,inputProps:u,size:d="medium",className:p}=o,f=Lf(o,Kw),h=s?c:l,m=s?c:i,g=kf({},o,{color:a,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r}=e;return kf({},t,bf({root:["root",n&&"indeterminate",`color${Up(r)}`]},Vw,t))})(g);return Rm.jsx(Zw,kf({type:"checkbox",inputProps:kf({"data-indeterminate":s},u),icon:H.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:H.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:$g(v.root,p)},f,{classes:v}))}));var eE=Yw;function tE(e){return wf("MuiCircularProgress",e)}Ef("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const nE=["className","color","disableShrink","size","style","thickness","value","variant"];let rE,oE,iE,aE,lE=e=>e;const sE=44,cE=um(rE||(rE=lE`
|
|
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
|
+
`)),uE=um(oE||(oE=lE`
|
|
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
|
+
`)),dE=Vv("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Up(n.color)}`]]}})((({ownerState:e,theme:t})=>kf({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&&cm(iE||(iE=lE`
|
|
130
130
|
animation: ${0} 1.4s linear infinite;
|
|
131
|
-
`),
|
|
131
|
+
`),cE))),pE=Vv("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),fE=Vv("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Up(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>kf({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&&cm(aE||(aE=lE`
|
|
132
132
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
133
|
-
`),OE))),PE=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,size:a=40,style:l,thickness:s=3.6,value:c=0,variant:u="indeterminate",...d}=n,p={...n,color:o,disableShrink:i,size:a,thickness:s,value:c,variant:u},f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return bf({root:["root",n,`color${Up(r)}`],svg:["svg"],circle:["circle",`circle${Up(n)}`,o&&"circleDisableShrink"]},xE,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((LE-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 Og.jsx(IE,{className:jv(f.root,r),style:{width:a,height:a,...m,...l},ownerState:p,ref:t,role:"progressbar",...g,...d,children:Og.jsx(TE,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Og.jsx(_E,{className:f.circle,style:h,ownerState:p,cx:LE,cy:LE,r:(LE-s)/2,fill:"none",strokeWidth:s})})})}));var NE=PE;const ME=Nb("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})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,...!t.open&&t.exited&&{visibility:"hidden"}}))),qE=Nb(Kw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),zE=H.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Tb({name:"MuiModal",props:e}),{BackdropComponent:c=qE,BackdropProps:u,classes:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:v={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:k=!1,keepMounted:L=!1,onBackdropClick:R,onClose:O,open:I,slotProps:T,slots:_,theme:P,...N}=s,[M,q]=H.useState(!0),z={container:m,closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:k,keepMounted:L,onBackdropClick:R,onClose:O,open:I},D={...s,...z,exited:M},A=null!=(n=null!=(r=null==_?void 0:_.root)?r:v.Root)?n:ME,j=null!=(o=null!=(i=null==_?void 0:_.backdrop)?i:v.Backdrop)?o:c,F=null!=(a=null==T?void 0:T.root)?a:b.root,$=null!=(l=null==T?void 0:T.backdrop)?l:b.backdrop;return Og.jsx(Rx,{slots:{root:A,backdrop:j},slotProps:{root:()=>({...$b(F,D),...!zb(A)&&{as:g,theme:P},className:jv(p,null==F?void 0:F.className,null==d?void 0:d.root,!D.open&&D.exited&&(null==d?void 0:d.hidden))}),backdrop:()=>({...u,...$b($,D),className:jv(null==$?void 0:$.className,null==d?void 0:d.backdrop)})},onTransitionEnter:()=>q(!1),onTransitionExited:()=>q(!0),ref:t,...N,...z,children:h})}));var DE=zE;function AE(e){return wf("MuiDivider",e)}var jE=Ef("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const FE=Nb("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})=>({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)`:Xv(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})=>({...e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}})),(({theme:e,ownerState:t})=>({...t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}})),(({theme:e,ownerState:t})=>({...t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}})),(({ownerState:e})=>({..."right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},..."left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}}))),$E=Nb("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>({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)`}}))),BE=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth",...f}=n,h={...n,absolute:r,component:a,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:p},m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return bf({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},AE,r)})(h);return Og.jsx(FE,{as:a,className:jv(m.root,i),role:u,ref:t,ownerState:h,...f,children:o?Og.jsx($E,{className:m.wrapper,ownerState:h,children:o}):null})}));var WE=BE;function HE(e){return wf("MuiFormControlLabel",e)}var UE=Ef("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const VE=Nb("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${UE.label}`]:t.label},t.root,t[`labelPlacement${Up(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${UE.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},[`& .${UE.label}`]:{[`&.${UE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),GE=Nb("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${UE.error}`]:{color:(e.vars||e).palette.error.main}}))),KE=H.forwardRef((function(e,t){var n,r;const o=Tb({props:e,name:"MuiFormControlLabel"}),{checked:i,className:a,componentsProps:l={},control:s,disabled:c,disableTypography:u,inputRef:d,label:p,labelPlacement:f="end",name:h,onChange:m,required:g,slotProps:v={},value:b,...y}=o,x=Ow(),S=null!=(n=null!=c?c:s.props.disabled)?n:null==x?void 0:x.disabled,w=null!=g?g:s.props.required,E={disabled:S,required:w};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===s.props[e]&&void 0!==o[e]&&(E[e]=o[e])}));const C=Lw({props:o,muiFormControl:x,states:["error"]}),k={...o,disabled:S,labelPlacement:f,required:w,error:C.error},L=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return bf({root:["root",n&&"disabled",`labelPlacement${Up(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},HE,t)})(k),R=null!=(r=v.typography)?r:l.typography;let O=p;return null==O||O.type===ww||u||(O=Og.jsx(ww,{component:"span",...R,className:jv(L.label,null==R?void 0:R.className),children:O})),Og.jsxs(VE,{className:jv(L.root,a),ownerState:k,ref:t,...y,children:[H.cloneElement(s,E),O,w&&Og.jsxs(GE,{ownerState:k,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]})}));var ZE=KE;var XE=H.createContext();function QE(e){return wf("MuiGrid",e)}const JE=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],YE=Ef("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}`)),...JE.map((e=>`grid-xs-${e}`)),...JE.map((e=>`grid-sm-${e}`)),...JE.map((e=>`grid-md-${e}`)),...JE.map((e=>`grid-lg-${e}`)),...JE.map((e=>`grid-xl-${e}`))]);function eC(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function tC({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 nC=Nb("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,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}(a,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,i&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((({ownerState:e})=>({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 jg({theme:e},Fg({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${YE.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Fg({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=tC({breakpoints:e.breakpoints.values,values:t})),o=jg({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:`-${eC(i)}`,[`& > .${YE.item}`]:{paddingTop:eC(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${YE.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Fg({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=tC({breakpoints:e.breakpoints.values,values:t})),o=jg({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${eC(i)})`,marginLeft:`-${eC(i)}`,[`& > .${YE.item}`]:{paddingLeft:eC(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${YE.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Fg({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof a?a[o]:a;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} + ${eC(n)})`;c={flexBasis:e,maxWidth:e}}}i={flexBasis:s,flexGrow:0,maxWidth:s,...c}}return 0===e.breakpoints.values[o]?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r}),{})}));const rC=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,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}(i,s));const u=[];s.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return bf({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]},QE,t)},oC=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiGrid"}),{breakpoints:r}=Ib(),o=Dv(n),{className:i,columns:a,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,...g}=o,v=p||f,b=l||f,y=H.useContext(XE),x=c?a||12:y,S={},w={...g};r.keys.forEach((e=>{null!=g[e]&&(S[e]=g[e],delete w[e])}));const E={...o,columns:x,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:f,...S,breakpoints:r.keys},C=rC(E);return Og.jsx(XE.Provider,{value:x,children:Og.jsx(nC,{ownerState:E,className:jv(C.root,i),as:s,ref:t,...w})})}));var iC=oC;function aC(e){return`scale(${e}, ${e**2})`}const lC={entering:{opacity:1,transform:aC(1)},entered:{opacity:1,transform:"none"}},sC="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),cC=H.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Vx,...g}=e,v=H.useRef(),b=H.useRef(),y=Ib(),x=H.useRef(null),S=of(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)=>{aw(e);const{duration:n,delay:r,easing:o}=lw({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:sC?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),k=w(s),L=w(p),R=w((e=>{const{duration:t,delay:n,easing:r}=lw({style:f,timeout:h,easing:i},{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:sC?o:.666*o,delay:sC?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=aC(.75),u&&u(e)})),O=w(d);return H.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Og.jsx(m,{appear:r,in:a,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:R,onExited:O,onExiting:L,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===h?null:h,...g,children:(e,t)=>H.cloneElement(o,{style:{opacity:0,transform:aC(.75),visibility:"exited"!==e||a?void 0:"hidden",...lC[e],...f,...o.props.style},ref:S,...t})})}));cC.muiSupportAuto=!0;var uC=cC;function dC(e){return wf("MuiIcon",e)}Ef("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const pC=Nb("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Up(n.color)}`],t[`fontSize${Up(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]}))),fC=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:i="inherit",component:a="span",fontSize:l="medium",...s}=n,c={...n,baseClassName:r,color:i,component:a,fontSize:l},u=(e=>{const{color:t,fontSize:n,classes:r}=e;return bf({root:["root","inherit"!==t&&`color${Up(t)}`,`fontSize${Up(n)}`]},dC,r)})(c);return Og.jsx(pC,{as:a,className:jv(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t,...s})}));fC.muiName="Icon";var hC=fC;function mC(e){return wf("MuiInputAdornment",e)}var gC,vC=Ef("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const bC=Nb("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Up(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,..."filled"===t.variant&&{[`&.${vC.positionStart}&:not(.${vC.hiddenLabel})`]:{marginTop:16}},..."start"===t.position&&{marginRight:8},..."end"===t.position&&{marginLeft:8},...!0===t.disablePointerEvents&&{pointerEvents:"none"}}))),yC=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c,...u}=n,d=Ow()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f={...n,hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:s,variant:p},h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return bf({root:["root",n&&"disablePointerEvents",o&&`position${Up(o)}`,a,r&&"hiddenLabel",i&&`size${Up(i)}`]},mC,t)})(f);return Og.jsx(Rw.Provider,{value:null,children:Og.jsx(bC,{as:i,ownerState:f,className:jv(h.root,o),ref:t,...u,children:"string"!=typeof r||l?Og.jsxs(H.Fragment,{children:["start"===s?gC||(gC=Og.jsx("span",{className:"notranslate",children:""})):null,r]}):Og.jsx(ww,{color:"text.secondary",children:r})})})}));var xC=yC;var SC=H.createContext({});function wC(e){return wf("MuiList",e)}Ef("MuiList",["root","padding","dense","subheader"]);const EC=Nb("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})=>({listStyle:"none",margin:0,padding:0,position:"relative",...!e.disablePadding&&{paddingTop:8,paddingBottom:8},...e.subheader&&{paddingTop:0}}))),CC=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s,...c}=n,u=H.useMemo((()=>({dense:a})),[a]),d={...n,component:i,dense:a,disablePadding:l},p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bf({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},wC,t)})(d);return Og.jsx(SC.Provider,{value:u,children:Og.jsxs(EC,{as:i,className:jv(p.root,o),ref:t,ownerState:d,...c,children:[s,r]})})}));var kC=CC;function LC(e){return wf("MuiListItem",e)}var RC=Ef("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var OC=Ef("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function IC(e){return wf("MuiListItemSecondaryAction",e)}Ef("MuiListItemSecondaryAction",["root","disableGutters"]);const TC=Nb("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",...e.disableGutters&&{right:0}}))),_C=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,i=H.useContext(SC),a={...n,disableGutters:i.disableGutters},l=(e=>{const{disableGutters:t,classes:n}=e;return bf({root:["root",t&&"disableGutters"]},IC,n)})(a);return Og.jsx(TC,{className:jv(l.root,r),ownerState:a,ref:t,...o})}));_C.muiName="ListItemSecondaryAction";var PC=_C;const NC=Nb("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})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",...!t.disablePadding&&{paddingTop:8,paddingBottom:8,...t.dense&&{paddingTop:4,paddingBottom:4},...!t.disableGutters&&{paddingLeft:16,paddingRight:16},...!!t.secondaryAction&&{paddingRight:48}},...!!t.secondaryAction&&{[`& > .${OC.root}`]:{paddingRight:48}},[`&.${RC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${RC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${RC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Xv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${RC.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"}},[`&.${RC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Xv(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})`:Xv(e.palette.primary.main,e.palette.action.selectedOpacity)}}},...t.hasSecondaryAction&&{paddingRight:48}}))),MC=Nb("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),qC=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p,...f}={},dense:h=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:v=!1,divider:b=!1,focusVisibleClassName:y,secondaryAction:x,selected:S=!1,slotProps:w={},slots:E={},...C}=n,k=H.useContext(SC),L=H.useMemo((()=>({dense:h||k.dense||!1,alignItems:r,disableGutters:g})),[r,k.dense,h,g]),R=H.useRef(null);Jp((()=>{o&&R.current&&R.current.focus()}),[o]);const O=H.Children.toArray(a),I=O.length&&Kp(O[O.length-1],["ListItemSecondaryAction"]),T={...n,alignItems:r,autoFocus:o,button:i,dense:L.dense,disabled:m,disableGutters:g,disablePadding:v,divider:b,hasSecondaryAction:I,selected:S},_=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return bf({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},LC,r)})(T),P=of(R,t),N=E.root||c.Root||NC,M=w.root||u.root||{},q={className:jv(_.root,M.className,l),disabled:m,...C};let z=s||"li";return i&&(q.component=s||"div",q.focusVisibleClassName=jv(RC.focusVisible,y),z=vS),I?(z=q.component||s?z:"div","li"===d&&("li"===z?z="div":"li"===q.component&&(q.component="div")),Og.jsx(SC.Provider,{value:L,children:Og.jsxs(MC,{as:d,className:jv(_.container,p),ref:P,ownerState:T,...f,children:[Og.jsx(N,{...M,...!zb(N)&&{as:z,ownerState:{...T,...M.ownerState}},...q,children:O}),O.pop()]})})):Og.jsx(SC.Provider,{value:L,children:Og.jsxs(N,{...M,as:z,ref:P,...!zb(N)&&{ownerState:{...T,...M.ownerState}},...q,children:[O,x&&Og.jsx(PC,{children:x})]})})}));var zC=qC;function DC(e){return wf("MuiListItemIcon",e)}var AC=Ef("MuiListItemIcon",["root","alignItemsFlexStart"]);const jC=Nb("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})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",..."flex-start"===t.alignItems&&{marginTop:8}}))),FC=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,i=H.useContext(SC),a={...n,alignItems:i.alignItems},l=(e=>{const{alignItems:t,classes:n}=e;return bf({root:["root","flex-start"===t&&"alignItemsFlexStart"]},DC,n)})(a);return Og.jsx(jC,{className:jv(l.root,r),ownerState:a,ref:t,...o})}));var $C=FC;var BC=Ef("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function WC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function HC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function UC(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 VC(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&UC(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const GC=H.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu",...d}=e,p=H.useRef(null),f=H.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jp((()=>{r&&p.current.focus()}),[r]),H.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${mf(Zp(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=of(p,t);let m=-1;H.Children.forEach(i,((e,t)=>{H.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>=i.length&&(m=-1)))}));const g=H.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),H.cloneElement(e,t)}return e}));return Og.jsx(kC,{role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Zp(t).activeElement;if("ArrowDown"===n)e.preventDefault(),VC(t,r,s,l,WC);else if("ArrowUp"===n)e.preventDefault(),VC(t,r,s,l,HC);else if("Home"===n)e.preventDefault(),VC(t,null,s,l,WC);else if("End"===n)e.preventDefault(),VC(t,null,s,l,HC);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&UC(r,o);o.previousKeyMatched&&(s||VC(t,r,!1,l,WC,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1,...d,children:g})}));var KC=GC;function ZC(e){return wf("MuiPopover",e)}function XC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function QC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function JC(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function YC(e){return"function"==typeof e?e():e}Ef("MuiPopover",["root","paper"]);const ek=Nb(DE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tk=Nb(dw,{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}),nk=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:s,className:c,container:u,elevation:d=8,marginThreshold:p=16,open:f,PaperProps:h={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:g=uC,transitionDuration:v="auto",TransitionProps:{onEntering:b,...y}={},...x}=n,S=H.useRef(),w=of(S,h.ref),E={...n,anchorOrigin:i,anchorReference:l,elevation:d,marginThreshold:p,PaperProps:h,transformOrigin:m,TransitionComponent:g,transitionDuration:v,TransitionProps:y},C=(e=>{const{classes:t}=e;return bf({root:["root"],paper:["paper"]},ZC,t)})(E),k=H.useCallback((()=>{if("anchorPosition"===l)return a;const e=YC(o),t=(e&&1===e.nodeType?e:Zp(S.current).body).getBoundingClientRect();return{top:t.top+XC(t,i.vertical),left:t.left+QC(t,i.horizontal)}}),[o,i.horizontal,i.vertical,a,l]),L=H.useCallback((e=>({vertical:XC(e,m.vertical),horizontal:QC(e,m.horizontal)})),[m.horizontal,m.vertical]),R=H.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=L(t);if("none"===l)return{top:null,left:null,transformOrigin:JC(n)};const r=k();let i=r.top-n.vertical,a=r.left-n.horizontal;const s=i+t.height,c=a+t.width,u=Xp(YC(o)),d=u.innerHeight-p,f=u.innerWidth-p;if(i<p){const e=i-p;i-=e,n.vertical+=e}else if(s>d){const e=s-d;i-=e,n.vertical+=e}if(a<p){const e=a-p;a-=e,n.horizontal+=e}else if(c>f){const e=c-f;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:JC(n)}}),[o,l,k,L,p]),[O,I]=H.useState(f),T=H.useCallback((()=>{const e=S.current;if(!e)return;const t=R(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[R]);H.useEffect((()=>{f&&T()})),H.useImperativeHandle(r,(()=>f?{updatePosition:()=>{T()}}:null),[f,T]),H.useEffect((()=>{if(!f)return;const e=Gp((()=>{T()})),t=Xp(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,f,T]);let _=v;"auto"!==v||g.muiSupportAuto||(_=void 0);const P=u||(o?Zp(YC(o)).body:void 0);return Og.jsx(ek,{BackdropProps:{invisible:!0},className:jv(C.root,c),container:P,open:f,ref:t,ownerState:E,...x,children:Og.jsx(g,{appear:!0,in:f,onEntering:(e,t)=>{b&&b(e,t),T()},onExited:()=>{I(!1)},timeout:_,...y,children:Og.jsx(tk,{elevation:d,...h,ref:w,className:jv(C.paper,h.className),...O?void 0:{style:{...h.style,opacity:0}},ownerState:E,children:s})})})}));var rk=nk;function ok(e){return wf("MuiMenuItem",e)}var ik=Ef("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const ak=Nb(vS,{shouldForwardProp:e=>_b(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})=>({...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"}},[`&.${ik.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ik.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Xv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ik.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Xv(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})`:Xv(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ik.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ik.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jE.inset}`]:{marginLeft:52},[`& .${BC.root}`]:{marginTop:0,marginBottom:0},[`& .${BC.inset}`]:{paddingLeft:36},[`& .${AC.root}`]:{minWidth:36},...!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},...t.dense&&{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${AC.root} svg`]:{fontSize:"1.25rem"}}}))),lk=H.forwardRef((function(e,t){const n=Tb({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:d,...p}=n,f=H.useContext(SC),h=H.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=H.useRef(null);Jp((()=>{r&&m.current&&m.current.focus()}),[r]);const g={...n,dense:h.dense,divider:a,disableGutters:l},v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=bf({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},ok,a);return{...a,...l}})(n),b=of(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),Og.jsx(SC.Provider,{value:h,children:Og.jsx(ak,{ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:jv(v.focusVisible,s),className:jv(v.root,d),...p,ownerState:g,classes:v})})}));var sk,ck=lk;const uk=Nb("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),dk=Nb("legend")((({ownerState:e,theme:t})=>({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&&{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 pk=Nb(qw,{shouldForwardProp:e=>_b(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Nw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$w.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$w.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${$w.focused} .${$w.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$w.error} .${$w.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$w.disabled} .${$w.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},...t.startAdornment&&{paddingLeft:14},...t.endAdornment&&{paddingRight:14},...t.multiline&&{padding:"16.5px 14px",..."small"===t.size&&{padding:"8.5px 14px"}}}})),fk=Nb((function(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,l=null!=o&&""!==o,s={...e,notched:i,withLabel:l};return Og.jsx(uk,{"aria-hidden":!0,className:r,ownerState:s,...a,children:Og.jsx(dk,{ownerState:s,children:l?Og.jsx("span",{children:o}):sk||(sk=Og.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}})),hk=Nb(zw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Mw})((({theme:e,ownerState:t})=>({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}}))),mk=H.forwardRef((function(e,t){var n,r,o,i,a;const l=Tb({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text",...g}=l,v=(e=>{const{classes:t}=e,n=bf({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Fw,t);return{...t,...n}})(l),b=Ow(),y=Lw({props:l,muiFormControl:b,states:["required"]}),x={...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:pk,w=null!=(o=null!=(i=h.input)?i:s.Input)?o:hk;return Og.jsx(jw,{slots:{root:S,input:w},renderSuffix:e=>Og.jsx(fk,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Og.jsxs(H.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:{...v,notchedOutline:null}})}));mk.muiName="Input";var gk=mk,vk=rw(Og.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"),bk=rw(Og.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 yk=Nb("span")({position:"relative",display:"flex"}),xk=Nb(vk)({transform:"scale(1)"}),Sk=Nb(bk)((({theme:e,ownerState:t})=>({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 wk(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return Og.jsxs(yk,{className:n.root,ownerState:o,children:[Og.jsx(xk,{fontSize:r,className:n.background,ownerState:o}),Og.jsx(Sk,{fontSize:r,className:n.dot,ownerState:o})]})}var Ek=H.createContext(void 0);function Ck(e){return wf("MuiRadio",e)}var kk=Ef("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const Lk=Nb(sE,{shouldForwardProp:e=>_b(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Up(n.color)}`]]}})((({theme:e,ownerState:t})=>({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})`:Xv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},..."default"!==t.color&&{[`&.${kk.checked}`]:{color:(e.vars||e).palette[t.color].main}},[`&.${kk.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Rk=Og.jsx(wk,{checked:!0}),Ok=Og.jsx(wk,{}),Ik=H.forwardRef((function(e,t){var n,r;const o=Tb({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:a=Rk,color:l="primary",icon:s=Ok,name:c,onChange:u,size:d="medium",className:p,...f}=o,h={...o,color:l,size:d},m=(e=>{const{classes:t,color:n}=e,r={root:["root",`color${Up(n)}`]};return{...t,...bf(r,Ck,t)}})(h),g=H.useContext(Ek);let v=i;const b=Vp(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)),Og.jsx(Lk,{type:"radio",icon:H.cloneElement(s,{fontSize:null!=(n=Ok.props.fontSize)?n:d}),checkedIcon:H.cloneElement(a,{fontSize:null!=(r=Rk.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:jv(m.root,p),...f})}));var Tk=Ik;function _k(e){return wf("MuiTooltip",e)}var Pk=Ef("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const Nk=Nb(kw,{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})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",...!t.disableInteractive&&{pointerEvents:"auto"},...!n&&{pointerEvents:"none"},...t.arrow&&{[`&[data-popper-placement*="bottom"] .${Pk.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Pk.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Pk.arrow}`]:{...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"] .${Pk.arrow}`]:{...t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}}))),Mk=Nb("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${Up(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Xv(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},[`.${Pk.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center",...t.isRtl?{marginLeft:"14px",...t.touch&&{marginLeft:"24px"}}:{marginRight:"14px",...t.touch&&{marginRight:"24px"}}},[`.${Pk.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center",...t.isRtl?{marginRight:"14px",...t.touch&&{marginRight:"24px"}}:{marginLeft:"14px",...t.touch&&{marginLeft:"24px"}}},[`.${Pk.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px",...t.touch&&{marginBottom:"24px"}},[`.${Pk.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px",...t.touch&&{marginTop:"24px"}}};var n})),qk=Nb("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:Xv(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let zk=!1,Dk=null,Ak={x:0,y:0};function jk(e,t){return n=>{t&&t(n),e(n)}}const Fk=H.forwardRef((function(e,t){var n,r,o,i,a,l,s,c,u,d,p,f,h,m,g,v,b,y,x;const S=Tb({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:E,classes:C,components:k={},componentsProps:L={},describeChild:R=!1,disableFocusListener:O=!1,disableHoverListener:I=!1,disableInteractive:T=!1,disableTouchListener:_=!1,enterDelay:P=100,enterNextDelay:N=0,enterTouchDelay:M=700,followCursor:q=!1,id:z,leaveDelay:D=0,leaveTouchDelay:A=1500,onClose:j,onOpen:F,open:$,placement:B="bottom",PopperComponent:W,PopperProps:U={},slotProps:V={},slots:G={},title:K,TransitionComponent:Z=uC,TransitionProps:X,...Q}=S,J=Ib(),Y="rtl"===J.direction,[ee,te]=H.useState(),[ne,re]=H.useState(null),oe=H.useRef(!1),ie=T||q,ae=H.useRef(),le=H.useRef(),se=H.useRef(),ce=H.useRef(),[ue,de]=nf({controlled:$,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=tf(z),he=H.useRef(),me=H.useCallback((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),clearTimeout(ce.current)}),[]);H.useEffect((()=>()=>{clearTimeout(ae.current),clearTimeout(le.current),clearTimeout(se.current),me()}),[me]);const ge=e=>{clearTimeout(Dk),zk=!0,de(!0),F&&!pe&&F(e)},ve=rf((e=>{clearTimeout(Dk),Dk=setTimeout((()=>{zk=!1}),800+D),de(!1),j&&pe&&j(e),clearTimeout(ae.current),ae.current=setTimeout((()=>{oe.current=!1}),J.transitions.duration.shortest)})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),clearTimeout(le.current),clearTimeout(se.current),P||zk&&N?le.current=setTimeout((()=>{ge(e)}),zk?N:P):ge(e))},ye=e=>{clearTimeout(le.current),clearTimeout(se.current),se.current=setTimeout((()=>{ve(e)}),D)},{isFocusVisibleRef:xe,onBlur:Se,onFocus:we,ref:Ee}=hf(),[,Ce]=H.useState(!1),ke=e=>{Se(e),!1===xe.current&&(Ce(!1),ye(e))},Le=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Ce(!0),be(e))},Re=e=>{oe.current=!0;const t=E.props;t.onTouchStart&&t.onTouchStart(e)},Oe=be,Ie=ye,Te=e=>{Re(e),clearTimeout(se.current),clearTimeout(ae.current),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.current=setTimeout((()=>{document.body.style.WebkitUserSelect=he.current,be(e)}),M)},_e=e=>{E.props.onTouchEnd&&E.props.onTouchEnd(e),me(),clearTimeout(se.current),se.current=setTimeout((()=>{ve(e)}),A)};H.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 Pe=of(E.ref,Ee,te,t);K||0===K||(pe=!1);const Ne=H.useRef(),Me={},qe="string"==typeof K;R?(Me.title=pe||!qe||I?null:K,Me["aria-describedby"]=pe?fe:null):(Me["aria-label"]=qe?K:null,Me["aria-labelledby"]=pe&&!qe?fe:null);const ze={...Me,...Q,...E.props,className:jv(Q.className,E.props.className),onTouchStart:Re,ref:Pe,...q?{onMouseMove:e=>{const t=E.props;t.onMouseMove&&t.onMouseMove(e),Ak={x:e.clientX,y:e.clientY},Ne.current&&Ne.current.update()}}:{}},De={};_||(ze.onTouchStart=Te,ze.onTouchEnd=_e),I||(ze.onMouseOver=jk(Oe,ze.onMouseOver),ze.onMouseLeave=jk(Ie,ze.onMouseLeave),ie||(De.onMouseOver=Oe,De.onMouseLeave=Ie)),O||(ze.onFocus=jk(Le,ze.onFocus),ze.onBlur=jk(ke,ze.onBlur),ie||(De.onFocus=Le,De.onBlur=ke));const Ae=H.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=U.popperOptions)&&e.modifiers&&(t=t.concat(U.popperOptions.modifiers)),{...U.popperOptions,modifiers:t}}),[ne,U]),je={...S,isRtl:Y,arrow:w,disableInteractive:ie,placement:B,PopperComponentProp:W,touch:oe.current},Fe=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return bf({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Up(i.split("-")[0])}`],arrow:["arrow"]},_k,t)})(je),$e=null!=(n=null!=(r=G.popper)?r:k.Popper)?n:Nk,Be=null!=(o=null!=(i=null!=(a=G.transition)?a:k.Transition)?i:Z)?o:uC,We=null!=(l=null!=(s=G.tooltip)?s:k.Tooltip)?l:Mk,He=null!=(c=null!=(u=G.arrow)?u:k.Arrow)?c:qk,Ue=Db($e,{...U,...null!=(d=V.popper)?d:L.popper,className:jv(Fe.popper,null==U?void 0:U.className,null==(p=null!=(f=V.popper)?f:L.popper)?void 0:p.className)},je),Ve=Db(Be,{...X,...null!=(h=V.transition)?h:L.transition},je),Ge=Db(We,{...null!=(m=V.tooltip)?m:L.tooltip,className:jv(Fe.tooltip,null==(g=null!=(v=V.tooltip)?v:L.tooltip)?void 0:g.className)},je),Ke=Db(He,{...null!=(b=V.arrow)?b:L.arrow,className:jv(Fe.arrow,null==(y=null!=(x=V.arrow)?x:L.arrow)?void 0:y.className)},je);return Og.jsxs(H.Fragment,{children:[H.cloneElement(E,ze),Og.jsx($e,{as:null!=W?W:kw,placement:B,anchorEl:q?{getBoundingClientRect:()=>({top:Ak.y,left:Ak.x,right:Ak.x,bottom:Ak.y,width:0,height:0})}:ee,popperRef:Ne,open:!!ee&&pe,id:fe,transition:!0,...De,...Ue,popperOptions:Ae,children:({TransitionProps:e})=>Og.jsx(Be,{timeout:J.transitions.duration.shorter,...e,...Ve,children:Og.jsxs(We,{...Ge,children:[K,w?Og.jsx(He,{...Ke,ref:re}):null]})})})]})}));var $k=Fk;const[Bk,Wk]=FS({}),[Hk,Uk]=FS({}),[Vk,Gk]=FS({}),[Kk,Zk]=FS({}),[Xk,Qk]=FS({}),[,Jk]=FS({}),Yk=e=>{let{type:t,value:n}=e;const r=Jk.get(n.id);Jk.set(n.id,{});const o=()=>{Uk.clear(n.id),Qk.set(n.id,{}),Qk.dispatch(!0)},i=()=>{n.removeListener("changed",o),Wk.clear(n.id),Uk.clear(n.id),Gk.clear(n.id),Zk.clear(n.id),Qk.clear(n.id),Jk.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[eL,tL]=FS({},Yk),nL=e=>{const t=Yk({type:"SET",value:e});return()=>{t(),tL.clear(e.id)}};function rL(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=eL(),[o]=Vk(),[i,a]=H.useState();let l;n&&(l=o.get(n));for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];return H.useEffect((()=>{if(!t)return;(async()=>{if(!l){const r=t.createSessionObject(e);l=r,o.set(n,l)}const i=await l;r.set(n,i),a(i)})()}),[t,...c]),[i]}const oL={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function iL(e){return rL(oL,e)}const aL=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=i(i({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:i({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=i(i({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let l=n.get(r);return l||(l={}),l[o]=a,n.set(r,l),a};function lL(e,t){const n=e?"".concat(e.id):null,[r]=Bk(),[o,i]=H.useReducer(aL,n?r.get(n):null),[a]=Xk(),[l]=Hk();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let a=s[t];if(!a||a&&a.rpcRetry){a={rpc:e[t](),rpcRetry:!1},s[t]=a,i({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{const o=await a.rpc;i({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(a.rpcRetry||(a.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),i({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return H.useEffect((()=>{e&&c()}),[e,a.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]=H.useState(),[n,r]=H.useState(),o=H.useCallback((e=>{e&&t(e)}),[]),i=()=>{const{left:t,top:n,width:o,height:i}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:i})};return H.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(i);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}}}),[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 a=i({fontSize:dL(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return U.createElement("i",{style:a},U.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 U.createElement(n,l({key:t},r))}))))}var fL=e=>pL((e=>i(i({},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=>i(i({},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));var mL=e=>pL((e=>i(i({},e),{},{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"}}]}))(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,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=vL(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),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,i=n.minimumBatchSize,a=void 0===i?10:i,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,i=e.stopIndex,a=[],l=null,s=null,c=o;c<=i;c++)t(c)?null!==s&&(a.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;a.push(l,s)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,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],i=e[r+1],a=n(o,i);null!=a&&a.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:i})){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}(H.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 i=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{i=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){i=!1}i||(o?t.cancel():t.clear())}return i}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),LL=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function RL(e){var t,n;let{selectionState:r,selections:o,checkboxes:i=!1,doc:a=document,loaderRef:l}=e;const s=H.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});H.useEffect((()=>{var e,t;if(null===(e=l.current)||void 0===e||null===(t=e._listRef)||void 0===t||!t._outerRef)return;const n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=e=>e.preventDefault(),i=l.current._listRef._outerRef;return i.addEventListener("gesturestart",n),i.addEventListener("gesturechange",r),i.addEventListener("gestureend",o),()=>{i.removeEventListener("gesturestart",n),i.removeEventListener("gesturechange",r),i.removeEventListener("gestureend",o)}}),[null===(t=l.current)||void 0===t||null===(n=t._listRef)||void 0===n?void 0:n._outerRef]);const c=()=>(r.setSelectableValuesUpdating(),wL({selections:o,elemNumbers:s.current.elemNumbers,isSingleSelect:r.isSingleSelect,toggle:s.current.toggle})),u=(e,t)=>{const n=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)}(r.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],n)},d=e=>{const{startElemNumber:t}=s.current;if(t===e)return;const n=u(s.current.startElemNumber,e);r.updateItems(n,!0,s.current.elemNumbers)},p=H.useCallback((e=>{if(r.selectDisabled())return;const t=+e.target.getAttribute("data-n"),n=!r.isSingleSelect&&LL(e.nativeEvent);s.current.elemNumbers=[t],s.current.toggle=n,n||r.clearItemStates(!0),r.updateItem(t),s.current.active=!1,c()}),[]),f=H.useCallback((e=>{if(0!==e.button||r.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),n=!r.isSingleSelect&&LL(e);s.current.isRange=!1,s.current.startElemNumber=t,s.current.elemNumbers=[t],s.current.toggle=n,s.current.active=!0,n||r.clearItemStates(!0),r.updateItem(t),r.isSingleSelect&&(s.current.active=!1,c()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),h=H.useCallback((e=>{if(0===e.button&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");d(t)}c()}}),[]),m=H.useCallback((e=>{0===e.button&&s.current.active&&(s.current.active=!1,c())}),[]),g=H.useCallback((e=>{if(!s.current.active)return;s.current.isRange||(s.current.isRange=!0,r.isSelected(s.current.startElemNumber)||(r.updateItem(s.current.startElemNumber,!0),s.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");d(t)}),[]),v=H.useCallback((e=>{var t,n,o,i;if(s.current.active||s.current.isRange||r.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void c();const a=Number(null===(t=e.touches[0].target)||void 0===t||null===(n=t.closest(kL))||void 0===n?void 0:n.getAttribute("data-n")),l=Number(null===(o=e.touches[1].target)||void 0===o||null===(i=o.closest(kL))||void 0===i?void 0:i.getAttribute("data-n"));if(Number.isNaN(a)||Number.isNaN(a))return void c();s.current.active=!0;u(a,l).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[a,l]}),[]),b=H.useCallback((()=>{if(2!==s.current.touchElemNumbers.length)return;if(s.current.touchRangeSmall)return s.current.touchRangeSmall=!1,s.current.touchElemNumbers=[],void(s.current.active=!1);const[e,t]=s.current.touchElemNumbers;s.current.startElemNumber=e,d(t),s.current.touchElemNumbers=[],s.current.active=!1,s.current.toggle=!0,c()}),[]);H.useEffect((()=>(a.addEventListener("mouseup",m),()=>{a.removeEventListener("mouseup",m)})),[m]),H.useEffect((()=>{const e=()=>{r.clearItemStates(!1)},t=()=>{r.clearItemStates(!0),r.triggerStateChanged()};return o.on("clearItemStates",e),o.on("deactivated",e),o.on("cleared",t),()=>{o.removeListener("clearItemStates",e),o.removeListener("deactivated",e),o.removeListener("cleared",t)}}),[o]);const y={};return i?Object.assign(y,{onChange:p}):Object.assign(y,{onMouseUp:h,onMouseDown:f,onMouseEnter:g,onTouchStart:v,onTouchEnd:b}),{interactionEvents:y,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=!r.isSingleSelect&&LL(null==n?void 0:n.nativeEvent);i||r.clearItemStates(!0);const a=[];return r.updateItems(e,t,a),r.setSelectableValuesUpdating(),wL({selections:o,elemNumbers:t?a:e,isSingleSelect:r.isSingleSelect,toggle:i})}}}const OL=e=>i(i({},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(OL(e));const TL=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,_L=e=>e?"A"===e.qState:null,PL=e=>{let{cell:t,checkboxes:n}=e;return(_L(t)||TL(t))&&n},NL=e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:i}=e;const a=[t?CL.column:CL.row];return n||a.push(CL.rowBorderBottom),o?(r||("XS"===o.qState?a.push(i?CL.XS:CL.S):"S"===o.qState||"L"===o.qState?a.push(CL.S):i&&_L(o)?a.push(CL.A):i&&TL(o)&&a.push(CL.X)),a):[]},ML=9,qL=80,zL=10,DL=150,AL=40,jL=56,FL=20,$L="-",BL=e=>e.filter((e=>!!e)).join(" ").trim(),WL=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),i=parseFloat(o?r:t);return"".concat(o?i:i/n*100,"%")},HL=e=>e||$L,UL=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0}}},VL={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},GL=Nb("div",{shouldForwardProp:e=>!["flexBasisProp","isGridMode","isGridCol","dense","frequencyWidth","direction"].includes(e)})((e=>{var t,n,r,o,a,l,s,c,u,d;let{theme:p,flexBasisProp:f,isGridMode:h,isGridCol:m,dense:g,frequencyWidth:v,direction:b}=e;return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(p.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(p.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(CL.row)]:{flexWrap:"nowrap",color:null!==(t=null===(n=p.listBox)||void 0===n||null===(r=n.content)||void 0===r?void 0:r.color)&&void 0!==t?t:p.palette.text.primary},["& .".concat(CL.rowBorderBottom)]:{borderBottom:m?"none":"1px solid ".concat(p.palette.divider),borderLeft:m?"1px solid ".concat(p.palette.divider):"none"},["& .".concat(CL.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(p.palette.divider),color:null!==(o=null===(a=p.listBox)||void 0===a||null===(l=a.content)||void 0===l?void 0:l.color)&&void 0!==o?o:p.palette.text.primary},["& .".concat(CL.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"".concat(ML,"px"),paddingRight:0},["& .".concat(CL.labelText)]:i(i({flexBasis:f,lineHeight:"16px",userSelect:"none",paddingRight:"1px"},VL),{},{fontSize:null===(s=p.listBox)||void 0===s||null===(c=s.content)||void 0===c?void 0:c.fontSize,fontFamily:null===(u=p.listBox)||void 0===u||null===(d=u.content)||void 0===d?void 0:d.fontFamily}),["& .".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)":i(i({},VL),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(CL.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},["& .".concat(CL.S)]:i(i({},UL({theme:p})),{},{border:h?"none":void 0}),["& .".concat(CL.XS)]:i(i({},UL({theme:p})),{},{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0}),["& .".concat(CL.A)]:{background:p.palette.selected.alternative,color:p.palette.selected.alternativeContrastText,border:h?"none":void 0},["& .".concat(CL.X)]:{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0},["& .".concat(CL.frequencyCount)]:i(i({justifyContent:"flex-end"},VL),{},{flex:"0 1 ".concat(v,"px"),textAlign:"rtl"===b?"left":"right",paddingLeft:"2px"}),["&.".concat(CL.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(CL.bar)]:{height:g?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat(CL.barSelected)]:{zIndex:"0","& .bar-filled":{opacity:"30%",background:p.palette.background.lighter}},["& .".concat(CL.barWithCheckbox)]:{left:"rtl"===b?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(CL.barSelectedWithCheckbox)]:{"& .bar-filled":{background:"#BFE5D0",borderColor:"#BFE5D0"}},["& .".concat(CL.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var KL=U.memo(GL);const ZL="ListBoxCheckbox",XL={cbIcon:"".concat(ZL,"-cbIcon"),cbIconChecked:"".concat(ZL,"-cbIconChecked"),cbIconExcluded:"".concat(ZL,"-cbIconExcluded"),cbIconAlternative:"".concat(ZL,"-cbIconAlternative"),checkbox:"".concat(ZL,"-checkbox"),dense:"".concat(ZL,"-dense")},QL=Nb(yE)((e=>{let{theme:t}=e;return{["& .".concat(XL.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(XL.cbIconChecked)]:{borderRadius:3,backgroundColor:t.palette.selected.main,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(XL.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(XL.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(XL.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(XL.dense)]:{padding:"4px 8px"}}})),JL=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return U.createElement("span",{className:e.cbIcon},n&&U.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function YL(e){let{onChange:t,checked:n,label:r,dense:o,excluded:i,showGray:a=!0,dataN:l}=e;return U.createElement(QL,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[XL.checkbox,o&&XL.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":l},name:r,icon:JL(XL,a,i),checkedIcon:U.createElement("span",{className:XL.cbIconChecked})})}const eR="ListBoxRadioButton",tR={denseRadioButton:"".concat(eR,"-denseRadioButton"),radioButton:"".concat(eR,"-radioButton")},nR=Nb(Tk)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(tR.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function rR(e){let{onChange:t,checked:n,label:r,dense:o,dataN:i}=e;return U.createElement(nR,{checked:n,onChange:t,value:r,name:r,className:tR.radioButton,inputProps:{"data-n":i},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}function oR(e){let{label:t,color:n,dense:r,showGray:o=!0,checkboxes:i,cell:a,valueTextAlign:l}=e;return U.createElement(ww,{component:"span",variant:"body2",className:BL([CL.labelText,r&&CL.labelDense,o&&PL({cell:a,checkboxes:i})&&CL.excludedTextWithCheckbox]),color:n,align:l,dir:"auto"},U.createElement("span",null,t))}function iR(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:l}=e;return"string"==typeof t?U.createElement(oR,{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:l}):t}function aR(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;const f=U.createElement(YL,{onChange:t,label:n,checked:i,dense:a,excluded:TL(l),isGridCol:s,showGray:c,dataN:o}),h=U.createElement(rR,{onChange:t,label:n,checked:i,dense:a,dataN:o});return U.createElement(ZE,{color:r,control:u?h:f,className:CL.checkboxLabel,label:U.createElement(iR,{label:n,color:r,dense:a,showGray:c,checkboxes:d,cell:l,valueTextAlign:p}),key:o})}function lR(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const i=t.map(((e,t)=>{let[n,r]=e;return U.createElement("span",{id:t,className:r?CL.highlighted:""},n)}));return U.createElement(oR,{label:i,dense:n,showGray:r,checkboxes:o})}function sR(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:i,color:a,qElemNumber:l,isSelected:s,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:p}=e;const f=U.createElement(lR,{labels:n,dense:o,showGray:i,checkboxes:r});return r?U.createElement(aR,{onChange:t,label:f,color:a,qElemNumber:l,isSelected:s,dense:o,cell:c,isGridCol:u,showGray:i,isSingleSelect:d,checkboxes:r,valueTextAlign:p}):f}var cR=U.memo((function(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;return d?U.createElement(aR,{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}):U.createElement(oR,{label:n,color:r,dense:a,showGray:!0,checkboxes:d,cell:l,valueTextAlign:p})}));function uR(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:i}=e;if(!(t&&n&&HL(t)!==$L))return;const a=WL({qFrequency:t,checkboxes:r,frequencyMax:i});return U.createElement(rE,{className:BL([CL.bar,r&&CL.barWithCheckbox,o&&(r?CL.barSelectedWithCheckbox:CL.barSelected)])},U.createElement(rE,{className:"bar-filled",width:a}))}function dR(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const i=HL(null==t?void 0:t.qFrequency);return U.createElement(iC,{item:!0,style:{display:"flex",alignItems:"center"},className:CL.frequencyCount,"aria-label":i,title:i},U.createElement(ww,{noWrap:!0,color:"inherit",variant:"body2",className:BL([r&&CL.labelDense,CL.labelText,o&&PL({cell:t,checkboxes:n})&&CL.excludedTextWithCheckbox])},i))}function pR(e){let{dataLayout:t,layoutOrder:n,itemPadding:r}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const fR=Nb(iC,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:a}=e;const l="padding".concat("rtl"===a?"Left":"Right");return{["&.".concat(CL.fieldRoot)]:i(i({},pR({dataLayout:t,layoutOrder:n,itemPadding:r})),{},{[l]:o?"8px":void 0})}}));const hR={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 mR(e){var t;let{layout:n}=e;const{translator:r}=H.useContext(jS),{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},i=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let a;switch(i){case 0:a="ScreenReader.ZeroSelected";break;case 1:a="ScreenReader.OneSelected";break;default:a="ScreenReader.ManySelected"}const l=r.get(a,[i]);return U.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},l)}const gR=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===gR.ARROW_UP||e===gR.ARROW_DOWN||e===gR.ARROW_LEFT||e===gR.ARROW_RIGHT}),vR=e=>+e.getAttribute("data-n"),bR=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},yR=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused, .value.selector, .value");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},xR=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:i,keyCode:a,numCells:l}=e;const s=e=>{let t;return"row"===i?(t=l%o,e<t?r:r-1):(t=l%r,e<o-1?r:t)};let c=t,u=n;if(a===gR.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"===i)return c*o+u;const d=l%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};function SR(e){var t,n,r;let{index:o,rowIndex:a,columnIndex:l,style:s,data:c}=e;const{onChange:u,onClick:d,onMouseDown:p,onMouseUp:f,onMouseEnter:h,onTouchStart:m,onTouchEnd:g,pages:v,isLocked:b,column:y=!1,checkboxes:x=!1,textAlign:S,direction:w,layoutOptions:E={},freqIsAllowed:C,isSingleSelect:k,actions:L,frequencyMax:R="",histogram:O=!1,keyboard:I,showGray:T=!0,showTick:_=!0,columnCount:P=1,rowCount:N=1,dataOffset:M,focusListItems:q,listCount:z,itemPadding:D,frequencyWidth:A,translator:j,showSearch:F,isModal:$}=c,{dense:B=!1,dataLayout:W="singleColumn",layoutOrder:V}=E;let G,K;const Z={max:null,currentIndex:null};if("number"==typeof a&&"number"==typeof l){"row"===V?(G=a*P+l,Z.max=N,Z.currentIndex=a):(G=l*N+a,Z.max=P,Z.currentIndex=l);const e=0;K=i(i({},s),{},{left:e+(0===l?s.left:Number(s.left)+l*e),top:0===a?s.top:Number(s.top)+a*e})}else G=o,Z.max=z,Z.currentIndex=o,K=i({},s);G+=M;const[X,Q]=H.useState(null);H.useEffect((()=>{null!==X&&(0===Z.currentIndex&&q.first&&(X.focus(),q.setFirst(!1)),Z.currentIndex===Z.max-1&&q.last&&(X.focus(),q.setLast(!1)))}),[X,q.first,q.last]);const J=H.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:i,setScrollPosition:a,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===gR.ARROW_LEFT||e===gR.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=xR({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 gR.TAB:{const e=d.closest(".listbox-container"),t=c();if(d.classList.add("last-focused"),h){bR(e)||(t?s.focusSelection():s.blur(!0));break}t?s.focusSelection():(d.blur(),s.blur());break}case gR.SHIFT:v(!0);break;case gR.SPACE:t([vR(d)],!1,e);break;case gR.ARROW_DOWN:case gR.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([vR(d)],!0),v(!1)),t([vR(u)],!0));break;case gR.ARROW_UP:case gR.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([vR(d)],!0),v(!1)),t([vR(u)],!0));break;case gR.ENTER:o();break;case gR.ESCAPE:if(!c())return;i();break;case gR.HOME:if(l.setFirst(!0),b){null==a||a("overflowStart");break}null==a||a("start");break;case gR.END:if(l.setLast(!0),b){null==a||a("overflowEnd");break}null==a||a("end");break;case gR.A:if(b||y){n();break}return;case gR.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(i(i({},L),{},{focusListItems:q,keyboard:I,isModal:$,rowCount:N,columnCount:P,rowIndex:a,columnIndex:l,layoutOrder:V})),[L,null==I?void 0:I.innerTabStops,N,P,a,l,V]),Y=H.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:v,cellIndex:G})),[v,G]),ee="S"===(null==Y?void 0:Y.qState)||"XS"===(null==Y?void 0:Y.qState)||"L"===(null==Y?void 0:Y.qState)||"XL"===(null==Y?void 0:Y.qState),te=H.useMemo((()=>NL({column:y,histogram:O,checkboxes:x,cell:Y,showGray:T})),[null==Y?void 0:Y.qState,O,B,x]),ne=H.useCallback((e=>{e.preventDefault()}),[x]);if(!Y)return null;const re=!["NaN",void 0].includes(null==Y?void 0:Y.qNum);let oe;oe=!S||S.auto?re?"rtl"===w?"left":"right":{rtl:"right",ltr:"left"}[w]:(null==S?void 0:S.align)||"left";const ie="grid"===W&&"column"===V,ae=null!==(t=null==Y?void 0:Y.qText)&&void 0!==t?t:"";let le;if(null!==(n=Y.qHighlightRanges)&&void 0!==n&&null!==(r=n.qRanges)&&void 0!==r&&r.length){const e=Y.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];le=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const i=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,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return a&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(ae,e)}const se={alignItems:"center",display:"flex",fontSize:"8px"},ce={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"rtl"===w?8:x?0:void 0,paddingRight:x?0:"rtl"===w?8:0,justifyContent:oe},ue=0===o,de=x?"auto":"max-content",pe=ee&&b,fe=!x&&ee&&!b,he=!x&&_,me=x||!_,ge=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:l}=e;const s=hR[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",[i+1,a+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:j,label:ae,qState:Y.qState,currentIndex:Z.currentIndex,maxIndex:Z.max,showSearch:F});return U.createElement(KL,{className:CL.barContainer,flexBasisProp:de,style:K,isGridCol:ie,isGridMode:"grid"===W,dense:B,frequencyWidth:A,direction:w,"data-testid":"listbox.item"},U.createElement(fR,{role:"row","aria-label":ge,"aria-selected":ee,"aria-setsize":Z.max,"aria-rowindex":Z.currentIndex,ref:Q,container:!0,dataLayout:W,cellPaddingRight:me,layoutOrder:V,itemPadding:D,gap:0,className:BL(["value",...te]),classes:{root:CL.fieldRoot},onClick:d,onMouseDown:p,onMouseUp:f,onMouseEnter:h,onKeyDown:J,onTouchStart:m,onTouchEnd:g,onContextMenu:ne,tabIndex:ue&&I.innerTabStops?0:-1,"data-n":null==Y?void 0:Y.qElemNumber,direction:w},(null==Y?void 0:Y.qFrequency)&&U.createElement(uR,{qFrequency:null==Y?void 0:Y.qFrequency,histogram:O,checkboxes:x,isSelected:ee,frequencyMax:R}),U.createElement(iC,{item:!0,style:ce,className:BL([CL.cell,CL.selectedCell]),title:"".concat(ae)},le?U.createElement(sR,{onChange:u,labels:le,checkboxes:x,dense:B,showGray:T,color:"inherit",qElemNumber:Y.qElemNumber,isSelected:ee,cell:Y,isGridCol:ie,isSingleSelect:k,valueTextAlign:oe}):U.createElement(cR,{onChange:u,label:ae,color:"inherit",qElemNumber:Y.qElemNumber,isSelected:ee,dense:B,cell:Y,isGridCol:ie,showGray:T,isSingleSelect:k,checkboxes:x,valueTextAlign:oe})),C&&U.createElement(dR,{cell:Y,checkboxes:x,dense:B,showGray:T}),he&&U.createElement(iC,{item:!0,className:CL.icon},pe&&U.createElement(hL,{style:se,size:"small"}),fe&&U.createElement(IL,{style:se,size:"small"}))))}var wR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ER(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||wR(r)&&wR(o)))return!1;var r,o;return!0}function CR(e,t){var n;void 0===t&&(t=ER);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var kR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function LR(e){cancelAnimationFrame(e.id)}function RR(e,t){var n=kR();var r={id:requestAnimationFrame((function o(){kR()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var OR=-1;function IR(e){if(void 0===e&&(e=!1),-1===OR||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),OR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return OR}var TR=null;function _R(e){if(void 0===e&&(e=!1),null===TR||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?TR="positive-descending":(t.scrollLeft=1,TR=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),TR}return TR}var PR=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function NR(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=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,Gx(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Gx(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=CR((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=CR((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,c=a.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:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=CR((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(_R()){case"negative":c=-i;break;case"positive-descending":c=s-o-i}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&LR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=RR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}zx(t,e),t.getDerivedStateFromProps=function(e,t){return MR(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=IR();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=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,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(_R()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&LR(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?PR: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],L=C[1],R=[];if(r>0&&g)for(var O=k;O<=L;O++)for(var I=w;I<=E;I++)R.push(H.createElement(t,{columnIndex:I,data:d,isScrolling:b?x:void 0,key:f({columnIndex:I,data:d,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,I)}));var T=a(this.props,this._instanceProps),_=l(this.props,this._instanceProps);return H.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Nx({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},H.createElement(c||u||"div",{children:R,ref:s,style:{height:T,pointerEvents:x?"none":void 0,width:_}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,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,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=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,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)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(i-1,h+g)),d,h]},t}(H.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var MR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},qR=function(e,t){return e};function zR(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=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,Gx(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Gx(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=CR((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=CR((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&a);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"===a||"horizontal"===s,h="rtl"===a,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=CR((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(_R()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&LR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=RR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}zx(t,e),t.getDerivedStateFromProps=function(e,t){return DR(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,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?IR():0:s.scrollHeight>s.clientHeight?IR():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(_R()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&LR(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?qR: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 L=E;L<=C;L++)k.push(H.createElement(t,{data:u,key:p(L,u),index:L,isScrolling:v?y:void 0,style:this._getItemStyle(L)}));var R=r(this.props,this._instanceProps);return H.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Nx({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},H.createElement(l||s||"div",{children:k,ref:a,style:{height:x?"100%":R,pointerEvents:y?"none":void 0,width:x?R:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(H.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var DR=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},AR=NR({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,i){var a=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,a*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+i+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,i){var a=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*a-l),u=Math.min(c,t*a),d=Math.max(0,t*a-l+i+a);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,i=e.width,a=t*r,l=Math.ceil((i+n-a)/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,i=e.height,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),jR=zR({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,i){var a=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"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+i);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,i=e.itemCount,a=e.itemSize,l=e.layout,s=e.width,c=t*a,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const FR="#BBB",$R="#f1f1f1",BR={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const WR=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,HR=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,UR=(e,t,n,r)=>e===t*n+r+n;function VR(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:i,overflowDisclaimer:a,qCardinal:l,dataOffset:s}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=WR(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,f=UR(l,u,c?i:o,s),h=!!s&&HR(t,c),m=p&&!f&&u>=d-1||h||a.state.show;a.set(m)}const{StyledFixedSizeList:GR,StyledFixedSizeGrid:KR}=function(){const e=e=>({scrollbarColor:"".concat(FR," ").concat($R),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:$R},"&::-webkit-scrollbar-thumb":{backgroundColor:FR,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:hm(jR,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(BR.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:hm(AR,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(BR.styledScrollbars)]:e(n)}}))}}();function ZR(e){let{layout:t,width:n,height:r,listCount:o,count:i,textWidth:a,freqIsAllowed:l,checkboxes:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,m=l?AL:0,g=s?FL:0;let v=jL+m+g;!s&&v>=qL&&(v+=FL);let b,y,x,S,w=a+18+m+g;!s&&w>=qL&&(w+=FL),w=Math.min(DL,Math.max(w,v));const E="grid"===h;let C=f?20:E?32:29;E&&(C+=4);const k=null!=r?r:8*C;if(u){let e=n;"row"===u?(b={overflowX:"hidden"},e+=8,({rowCount:S,columnWidth:x,columnCount:y}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:i}=e;const a=(null==t?void 0:t.maxColumns)||3,l=r-zL;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(i,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,a,c);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:w,itemMinWidth:v}))):(b={overflowY:"hidden"},({rowCount:S,columnWidth:x,columnCount:y}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:i,columnAutoWidth:a,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(i/r);t=!1!==n.auto?u:Math.min(o,c,u);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:C,listCount:o,listHeight:k,columnAutoWidth:w,containerWidth:e,itemMinWidth:v})))}y=("singleColumn"===h?1:y)||1,S=("singleColumn"===h?i:S)||o;const L=c.dense?838e3:577e3;S=Math.min(S,L);const R=Math.floor(3355e4/x);y=Math.min(y,R)||1;const O=S*y,I=Math.min(o,O);return{columnCount:y,columnWidth:x,rowCount:S,overflowStyling:b,itemHeight:C,listHeight:k,scrollBarWidth:zL,count:i,listCount:I,maxCount:{row:L,column:R},itemPadding:4,frequencyWidth:AL}}const XR=(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)));return n.measureText(e).width},QR=e=>{const t=H.useMemo((()=>"text"in e?e:{}),[e]);return H.useMemo((()=>XR(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])};function JR(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}const YR=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),i=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?i:r};const[eO,tO]=FS({});function nO(e){const t="".concat(e.id),[n]=eO();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const rO=Nb(ww,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return i({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function oO(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:i}=H.useContext(jS);return U.createElement($k,{title:o?i.get(n):""},U.createElement(rO,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},i.get(n)))}var iO={},aO={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(aO);var lO,sO=aO.exports,cO={},uO=r(iw);var dO=sO;Object.defineProperty(iO,"__esModule",{value:!0});var pO=iO.default=void 0,fO=dO((lO||(lO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=uO}(cO)),cO)),hO=Og,mO=(0,fO.default)((0,hO.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");pO=iO.default=mO;const gO=Nb(dw)((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}})),vO=Nb("div")((()=>({paddingLeft:"6px",flexGrow:1}))),bO=Nb("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),yO=Nb(pO)((()=>({fontSize:"14px"})));function xO(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const i="function"==typeof n,a=r?370:282,l=Math.max(o/2-a/2,0),s=Math.min(a,o)-42,c=r&&o<a;return U.createElement(gO,{left:l,style:{maxWidth:a}},U.createElement(vO,null,U.createElement(oO,{text:t,dense:r,width:s,tooltip:c})),U.createElement(bO,{dense:r},i&&U.createElement(gw,{"aria-label":"close",onClick:()=>n()},U.createElement(yO,null))))}const SO=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const wO=80;function EO(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>wO,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["none",void 0].includes(r);return!(!o||!a&&!i)}const CO=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,"))")},kO=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=H.useState(),[i,a]=H.useState(n);return H.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=CO(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),a(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:i}},LO=["isLoadingData"],RO=100,OO=Nb("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function IO(e){var t,n,r,o;let{model:a,app:c,constraints:u,layout:d,selections:p,selectionState:f,direction:h,checkboxes:m,height:g,width:v,frequencyMode:b,update:y,fetchStart:x,postProcessPages:S,calculatePagesHeight:w=!1,keyboard:E={},showGray:C=!0,scrollState:k,selectDisabled:L=(()=>!1),keyScroll:R={state:{},reset:()=>{}},currentScrollIndex:O={set:()=>{}},renderedCallback:I,onCtrlF:T,showSearch:_,isModal:P}=e;const{translator:N}=H.useContext(jS),[M,q]=H.useState(!1),z=!(!d||!d.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:D=m,histogram:A}=null!=d?d:{},j=H.useRef(null),F=H.useRef({queue:[],validPages:!1,dataOffset:0}),$=H.useRef({pages:[]}),{frequencyMax:B,awaitingFrequencyMax:W}=kO(c,d),V=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:i,postProcessPages:a,listData:l}=e;const[s,c]=H.useState(!1),[u,d]=H.useState([]);let[p]=H.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],i=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=a?a(n):n;t.current.validPages=!0,l.current.pages=r,d(r),c(!1),e()}));o&&o(i)}),f?i:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:u,isLoading:s}}({local:F,loaderRef:j,model:a,fetchStart:x,scrollTimeout:0,postProcessPages:S,listData:$}),G=s(V,LO),{setStoreValue:K}=nO(a),Z=H.useCallback(G.loadMoreItems,[d]),[X,Q]=H.useState({show:!1,dismissed:!1}),[J,Y]=H.useState([]);null!=G&&G.pages&&f.update({setPages:Y,pages:G.pages,isSingleSelect:z,selectDisabled:L,layout:d});const ee=null==d?void 0:d.qListObject.qDimensionInfo.qCardinal;(null!=G&&G.pages.length&&!W||0===ee)&&(null==I||I());const te=H.useCallback((e=>{if(null==J||!J.length||!F.current.validPages)return!1;F.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=J.filter((e=>t(e)))[0];return n&&t(n)}),[d,J]),{interactionEvents:ne,select:re}=RL({selectionState:f,selections:p,checkboxes:D,doc:document,loaderRef:j}),{layoutOptions:oe={}}=d||{};let ie=!0;oe.dataLayout&&(ie="singleColumn"===oe.dataLayout||"row"===(null==oe?void 0:oe.layoutOrder));const ae="grid"===(null==oe?void 0:oe.dataLayout),le=e=>{const t=i({},ie?{rowIndex:e}:{columnIndex:e}),n=ae?t:e;j.current._listRef.scrollToItem(n)},se=()=>{if(F.current.queue=[],F.current.validPages=!1,j.current){j.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===R.state.scrollPosition;if(d&&d.qSelectionInfo.qInSelections||e)return void(e&&R.reset());F.current.dataOffset=0,le(0)}};y&&y.call(null,se),H.useEffect((()=>{k&&!M&&j.current&&(j.current._listRef.scrollToItem(k.initScrollPos),q(!0))}),[j.current]),H.useEffect((()=>{se()}),[d,F.current.dataOffset]);const ce=QR({text:JR(d),font:"14px Source sans pro"});let ue=RO;const de="grid"!==oe.dataLayout,pe=null==d||null===(t=d.qListObject.qSize)||void 0===t?void 0:t.qcy,fe=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?YR({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:J,minimumBatchSize:ue,count:pe,calculatePagesHeight:w,layoutOptions:oe,model:a});let he=EO({itemWidth:v,layout:d,frequencyMode:b});const me=ZR({layout:d,width:v,height:g,listCount:fe,count:pe,textWidth:ce,freqIsAllowed:he,checkboxes:D});me.columnWidth&&(he=EO({itemWidth:me.columnWidth,layout:d,frequencyMode:b}));const{listCount:ge}=me;K("listCount",ge);const ve=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:i,offset:a}=e,l=!1,s=null!=a?a: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=SO(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:ie,sizes:me,layout:d,offset:F.current.dataOffset});F.current.dataOffset=n,r&&f.triggerStateChanged(),le(t)};H.useEffect((()=>{const e=R.state;e.up?le(O.state.start-e.up):e.down?le(O.state.stop+e.down):e.scrollPosition&&ve(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&R.reset()}),[R.state.up,R.state.down,R.state.scrollPosition]);const{textAlign:be}=(null==d?void 0:d.qListObject.qDimensionInfo)||{},[ye,xe]=H.useState({first:!1,last:!1}),{List:Se,Grid:we}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:a,pages:s,selectDisabled:c,interactionEvents:u,frequencyMode: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:L,focusListItems:R,setCurrentScrollIndex:O,constraints:I,frequencyMax:T,freqIsAllowed:_,translator:P,showSearch:N,isModal:M}=e;const{layoutOptions:q={}}=t||{},{columnWidth:z,itemPadding:D,listHeight:A,itemHeight:j,rowCount:F,columnCount:$,frequencyWidth:B}=E||{},W=("grid"===q.dataLayout?z:n)>qL,H={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:BR.styledScrollbars},V=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,G=i(i({isLocked:V,column:!a,pages:s},V||c()?{}:u),{},{checkboxes:r,layoutOptions:q,frequencyMode:d,freqIsAllowed:_,isSingleSelect:f,textAlign:v,itemPadding:D,frequencyWidth:B,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:L,selectAll:m,onCtrlF:g},frequencyMax:T,histogram:p,keyboard:y,showGray:x,showTick:W,dataOffset:o.current.dataOffset,focusListItems:R,direction:w,translator:P,showSearch:N,isModal:M});return{List:e=>{let{onItemsRendered:r,ref:a}=e;return o.current.listRef=a,U.createElement(GR,l({},H,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:A,width:n,itemCount:C,itemData:i(i({},G),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var n,a;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),VR({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:$,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(a=n.qDimensionInfo)||void 0===a?void 0:a.qCardinal,dataOffset:o.current.dataOffset}),r(i({},e))},ref:a}),SR)},Grid:e=>{let{onItemsRendered:r,ref:a}=e;const{overflowStyling:s,scrollBarWidth:c}=E,{layoutOrder:u}=q||{},d=Math.min(A,F*j+c);return o.current.listRef=a,U.createElement(KR,l({},H,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.active,height:d,width:n,columnCount:$,columnWidth:z,rowCount:F,rowHeight:j,style:i({},s),itemData:i(i({},G),{},{column:void 0,columnCount:$,rowCount:F}),onItemsRendered:e=>{var n,i;const a="row"===u;O({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const l=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,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=a,f=c*o,h=l):(d=s,p=a*i,f=c,h=l*i),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:F,columnCount:$});VR({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:$,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(i=n.qDimensionInfo)||void 0===i?void 0:i.qCardinal,dataOffset:o.current.dataOffset}),r(l)},ref:a}),SR)}}}({direction:h,layout:d,height:g,width:v,checkboxes:D,frequencyMode:b,histogram:A,keyboard:E,showGray:C,interactionEvents:ne,select:re,selectAll:()=>{f.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:T,textAlign:be,isVertical:de,pages:J,selectDisabled:L,isSingleSelect:z,selections:p,scrollState:k,local:F,sizes:me,listCount:ge,overflowDisclaimer:{state:X,set:e=>Q((t=>i(i({},t),{},{show:e})))},setScrollPosition:ve,focusListItems:{first:ye.first,setFirst:e=>xe((t=>i(i({},t),{},{first:e}))),last:ye.last,setLast:e=>xe((t=>i(i({},t),{},{last:e})))},setCurrentScrollIndex:O.set,constraints:u,frequencyMax:B,freqIsAllowed:he,translator:N,showSearch:_,isModal:P}),{columnWidth:Ee,listHeight:Ce,itemHeight:ke}=me||{};return de||(ue=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:v,columnWidth:Ee,listHeight:Ce,itemHeight:ke})),U.createElement(OO,null,U.createElement(mR,{className:"screenReaderOnly",layout:d}),!ge&&ee>0&&U.createElement(oO,{width:v,text:"Listbox.NoMatchesForYourTerms"}),U.createElement(bL,{isItemLoaded:te,itemCount:ge||1,loadMoreItems:Z.with({minimumBatchSize:ue}),threshold:0,minimumBatchSize:ue,ref:j,role:"grid"},de?Se:we),X.show&&!X.dismissed&&U.createElement(xO,{text:"Listbox.ItemsOverflow",dismiss:()=>Q((e=>i(i({},e),{},{dismissed:!0}))),parentWidth:null==j||null===(n=j.current)||void 0===n||null===(r=n._listRef)||void 0===r||null===(o=r.props)||void 0===o?void 0:o.width,dense:null==oe?void 0:oe.dense}))}const TO=e=>i(i({},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"}}]}),_O=e=>i(i({},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"}}]}),PO=e=>i(i({},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"}}]}),NO=e=>i(i({},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 MO=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:i=!1}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:TO,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:PO,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},!i&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:_O,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},!i&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:NO,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const qO=e=>i(i({},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 zO(e){const t=Ib(),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 DO={className:"njs-cell-action"},AO=U.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const i=Ib(),{hidden:a,disabled:l,style:s,hasSvgIconShape:c}=zO(r);if(a)return null;const u=Number.parseInt(i.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 U.createElement(gw,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[DO.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&pL(r.getSvgIconShape()),o&&U.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),jO=e=>i(i({},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"}}]}),FO=e=>i(i({},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 $O=e=>pL(FO(e));const BO="njs-action-toolbar-more",WO={icon:"".concat("More","-icon")},HO=Nb(rk)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(WO.icon)]:{color:t.palette.text.primary}}}));function UO(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=zO(t);return o?null:U.createElement(ck,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:i,tabindex:"0"},a&&U.createElement($C,{className:WO.icon},pL(t.getSvgIconShape())),U.createElement(ww,{noWrap:!0},t.label))}const VO=U.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:c=(()=>{})}=e;const u=n.length>0,d=n.findIndex((e=>!e.disabled));return u&&U.createElement(HO,l({},a,{onClose:c,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:BO}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:i({pointerEvents:"auto",maxWidth:"250px"},s)}}),U.createElement(KC,{id:"moreMenuList"},n.map(((e,t)=>U.createElement(UO,{key:t,item:e,autoFocus:t===d,onActionClick:c})))))})),GO=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},KO=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 ZO="ActionsToolbar",XO={item:"".concat(ZO,"-item"),itemSpacing:"".concat(ZO,"-itemSpacing"),firstItemSpacing:"".concat(ZO,"-firstItemSpacing"),lastItemSpacing:"".concat(ZO,"-lastItemSpacing")},QO=Nb(rk)((e=>{let{theme:t}=e;return{["& .".concat(XO.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(XO.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(XO.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),JO={className:"njs-action-toolbar-popover"},YO=U.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],first:i=!1,last:a=!1,addAnchor:l=!1,isRtl:s=!1}=e;return o.length>0?U.createElement(iC,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>{let s=[];const c=i&&0===n,u=a&&o.length-1===n;return c&&!u&&(s=[XO.firstItemSpacing,XO.item]),u&&!c&&(s=[...s,XO.lastItemSpacing,XO.item]),c||u||0!==s.length||(s=[XO.itemSpacing,XO.item]),U.createElement(iC,{item:!0,key:e.key,className:s.join(" ").trim()},U.createElement(AO,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:l}))}))):null})),eI={pointerEvents:"none"},tI={vertical:"bottom",horizontal:"right"};function nI(e){var t,n;let{show:r=!0,actions:o=[],maxItems:i=3,selections:a={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:l={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:s={show:!1,anchorEl:null},focusHandler:c=null,actionsRefMock:u=null,direction:d="ltr"}=e;const p=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=H.useContext(jS);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:FO},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:()=>{o(),r(),t.cancel()},getSvgIconShape:jO},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:()=>{o(),n(),t.confirm()},getSvgIconShape:OL}]}(a),{translator:f,keyboardNavigation:h}=H.useContext(jS),[m,g]=H.useState(!1),v={vertical:7,horizontal:(null!==(t=null===(n=s.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},b=H.useRef(),y=H.useRef(),x=Ib(),S=H.useMemo((()=>({margin:x.spacing(.5,0)}))),w=e=>{const t=b.current||u;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},E=H.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o}=e;return e=>{const{target:i,nativeEvent:a}=e,{keyCode:l}=a;switch(l){case gR.ARROW_LEFT:case gR.ARROW_DOWN:case gR.ARROW_RIGHT:case gR.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=GO(i),t=[gR.ARROW_LEFT,gR.ARROW_DOWN].includes(l);KO(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case gR.SPACE:e.preventDefault();break;case gR.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 gR.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:h,focusHandler:c,getEnabledButton:w,selections:a})),[h,c,w,a]);H.useEffect((()=>()=>{g(!1)}),[s.show,r,a.show]),H.useEffect((()=>{if(!c)return;c.on("focus_toolbar_first",(()=>{const e=w(!1);e&&e.focus()})),c.on("focus_toolbar_last",(()=>{const e=w(!0);e&&e.focus()}))}),[]);let C=l.enabled,k=l.actions;const L=l.alignTo||y,R=o.filter((e=>!e.hidden));if(R.length>i){const e=R.splice(-(R.length-i)-1);C=!0,k=[...e,...l.actions]}if(!a.show&&0===R.length)return null;const O={key:"more",label:f.get("Menu.More"),getSvgIconShape:qO,hidden:!1,active:m,enabled:()=>C,action:()=>g(!m)},I=R.length>0,T=k.length>0,_=I&&a.show||T&&a.show,P="rtl"===d,N=U.createElement(iC,{ref:b,onKeyDown:E,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:P?"row-reverse":"row"}},I&&U.createElement(YO,{actions:R,first:!0,last:!T&&!a.show}),T&&U.createElement(YO,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:y,ariaExpanded:m,actions:[O],first:!I,last:!a.show,addAnchor:!0}),_&&U.createElement(iC,{item:!0,className:XO.itemSpacing,style:S},U.createElement(WE,{orientation:"vertical"})),a.show&&U.createElement(YO,{className:"actions-toolbar-default-actions",actions:p,first:!I&&!T,last:!0,isRtl:P}),m&&U.createElement(VO,{show:m,actions:k,alignTo:L,popoverProps:l.popoverProps,popoverPaperStyle:l.popoverPaperStyle,onCloseOrActionClick:()=>{g(!1)}}));return s.show?U.createElement(QO,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:v,transformOrigin:tI,hideBackdrop:!0,style:eI,PaperProps:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:JO.className,style:{pointerEvents:"auto",padding:x.spacing(.8)}}},N):r&&N}var rI=e=>pL((e=>i(i({},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 oI="/qListObjectDef",iI="**",aI=Nb(xC)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color}})),lI=Nb(gk)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color,display:"flex"}}));function sI(e){let{selections:t,selectionState:n,model:r,keyboard:o,dense:i=!1,visible:a=!0,autoFocus:l=!0,wildCardSearch:s=!1,searchEnabled:c,direction:u,hide:d}=e;const{translator:p}=H.useContext(jS),[f,h]=H.useState(""),[m,g]=H.useState(!1),v=H.useRef(),b=Ib(),{getStoreValue:y}=nO(r),x="rtl"===u,S=x?"right":"left",w=async()=>{if(t.isModal())try{await r.abortListObjectSearch(oI)}finally{h("")}};H.useEffect((()=>{a||w()}),[a]),H.useEffect((()=>(t.on("deactivated",w),()=>{t.removeListener&&t.removeListener("deactivated",w)})),[]),H.useEffect((()=>{if(m&&v.current){const e=f.length-1;v.current.setSelectionRange(e,e),g(!1)}}),[m,v.current]);const E=async()=>{let e;return await r.searchListObjectFor(oI,f)&&f.length&&y("listCount")>0&&(e=r.acceptListObjectSearch(oI,!0),t.selectionsMade=!0,n.clearItemStates(!1),h("")),e};function C(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));t.setAttribute("tabIndex",0),null==t||t.focus()}return a&&!1!==c?U.createElement(lI,{startAdornment:U.createElement(aI,{position:"start"},U.createElement(rI,{size:i?"small":"normal"})),className:"search",sx:[{border:"none",fontSize:14,borderRadius:0,backgroundColor:"transparent","& fieldset":{border:"1px solid ".concat(b.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"},paddingLeft:"".concat(ML,"px")},i&&{fontSize:12,paddingLeft:b.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}},{flexDirection:x?"row-reverse":"row"}],inputRef:v,size:"small",fullWidth:!0,placeholder:p.get("Listbox.Search"),value:f,onFocus:()=>{s&&(h(iI),g(!0)),t.isModal()||t.begin(["/qListObjectDef"])},onChange:async e=>(h(e.target.value),e.target.value.length?r.searchListObjectFor(oI,e.target.value):w()),onKeyDown:async e=>{const{currentTarget:n}=e,r=n.closest(".listbox-container");switch(e.key){case"Enter":E();break;case"Escape":C(r),t.isActive()&&t.cancel();break;case"Tab":e.shiftKey?o.focusSelection():(C(r),null==r||r.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;d&&(d(),C(r));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,style:{textAlign:"".concat(S)},"data-testid":"search-input-field"}}):null}function cI(e){return Object.keys(Y.prototype).forEach((t=>{e[t]=Y.prototype[t]})),Y.init(e),e}const uI=e=>{let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!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():(i=!0,this.emit("activated"),r.begin(o,e,!0))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!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 a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>i,isModal:()=>n.isModal(o),goModal:e=>r.begin(o,e,!1),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return cI(l),l},dI=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 pI(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=ZS(e),[a]=sL(t),l=t?t.id:null,[s]=WS(),[c]=US(),u=s.get(e.id);let d=c.get(l);return H.useEffect((()=>{i&&t&&!d&&(d=uI({appSelections:i,appModal:u,model:t}),c.set(l,d),c.dispatch(!0))}),[i,t]),H.useEffect((()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=dI({elements:o,objectSelections:d,options:r});return d.addListener("activated",e),d.addListener("deactivated",t),()=>{d.isActive()&&d.confirm(),d.removeListener("activated",e),d.removeListener("deactivated",t)}}),[d]),H.useEffect((()=>{d&&d.setLayout(a)}),[d,a]),[d]}function fI(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update(t){var n,r,o;let{setPages:i,pages:a,isSingleSelect:l,selectDisabled:s,layout:c}=t;this.setPages=i;const u=this.lastRowCount===c.qListObject.qSize.qcy,d=this.lastApprMaxGlyphCount===c.qListObject.qDimensionInfo.qApprMaxGlyphCount;u&&d||(this.lastRowCount=c.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=c.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=l,e.selectDisabled=s,e.isDimCalculated=null!==(n=null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.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[i(i({},n),{},{qState:r}),...t.slice(1)]}));return i(i({},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 hI=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 mI(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:i,app:a,fieldName:l,stateName:s="$",autoFocus:c}=e;const u=Boolean(null==l?void 0:l.qLibraryId),d=o&&Boolean(t.current),[p,f]=H.useState(0),h=Ib(),m=H.useRef(),[g]=rL({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:u?void 0:[l]},qLibraryId:u?l.qLibraryId:void 0}},a,l,s),v=H.useCallback((()=>{g.lock("/qListObjectDef")}),[g]),b=H.useCallback((()=>{g.unlock("/qListObjectDef")}),[g]),{translator:y}=H.useContext(jS),x=H.useRef(),S=H.useRef(),[w]=pI(a,g,S),[E]=sL(g),[C]=H.useState((()=>fI()));if(H.useEffect((()=>{w&&d&&(w.isModal(g)||w.goModal("/qListObjectDef"))}),[w,d]),!g||!E||!y)return null;const k=!0===E.qListObject.qDimensionInfo.qLocked,L=(e,t)=>{const n="escapeKeyDown"!==t;w.noModal(n),i()},R=MO({layout:E,model:g,translator:y,selectionState:C}),O=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return hI(t,"qSelected",0)+hI(t,"qSelectedExcluded",0)+hI(t,"qLocked",0)+hI(t,"qLockedExcluded",0)>0}(E);return U.createElement(rk,{open:d,onClose:L,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,PaperProps:{style:{minWidth:"250px"}}},U.createElement(iC,{container:!0,direction:"column",gap:0,ref:S},U.createElement(iC,{item:!0,container:!0,style:{padding:h.spacing(1)}},U.createElement(iC,{item:!0},k?U.createElement(gw,{onClick:b,disabled:!k,size:"large"},U.createElement(hL,{title:y.get("Listbox.Unlock")})):U.createElement(gw,{onClick:v,disabled:!O,size:"large"},U.createElement(mL,{title:y.get("Listbox.Lock")}))),U.createElement(iC,{item:!0,xs:!0}),U.createElement(iC,{item:!0},U.createElement(nI,{more:{enabled:!k,actions:R,alignTo:x,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:w,onConfirm:L,onCancel:()=>L(0,"escapeKeyDown")}}))),U.createElement(iC,{item:!0,xs:!0},U.createElement("div",{ref:x}),U.createElement(iC,{item:!0,ref:m},U.createElement(sI,{visible:!0,model:g,listCount:p,selections:w,selectionState:C,keyboard:{enabled:!1},autoFocus:null==c||c})),U.createElement(IO,{model:g,app:a,layout:E,selections:w,selectionState:C,direction:"ltr",onSetListCount:e=>f(e),onCtrlF:()=>{const e=m.current.querySelector("input");null==e||e.focus()}}))))}function gI(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const{translator:l}=H.useContext(jS),s=i||H.useRef(),c=Ib(),[u,d]=H.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),a()},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,L=null;return i||(E=U.createElement(iC,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},U.createElement(ww,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},h.qField),U.createElement(ww,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},S)),h.qLocked?C=U.createElement(iC,{item:!0},U.createElement(gw,{size:"large"},U.createElement(hL,null))):h.qOneAndOnlyOne||(C=U.createElement(iC,{item:!0},U.createElement(gw,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},U.createElement(fL,null)))),k=U.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&w.map((e=>U.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,"%")}})))),L=U.createElement(iC,{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&&U.createElement(mI,{alignTo:s,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),i?U.createElement(mI,{alignTo:s,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):L}var vI=e=>pL((e=>i(i({},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 bI={item:"".concat("MultiState","-item")},yI=Nb(iC)((e=>{let{theme:t}=e;return{["&.".concat(bI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function xI(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[i,a]=H.useState(!!r),[l,s]=H.useState(-1),[c,u]=H.useState(r?r.current:null),d=r||H.useRef(),{translator:p}=H.useContext(jS),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=U.createElement(U.Fragment,null,U.createElement(iC,{item:!0,xs:!0,zeroMinWidth:!0},U.createElement(eE,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},U.createElement(ww,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),U.createElement(iC,{item:!0},U.createElement("div",{style:{width:"12px"}})),U.createElement(iC,{item:!0},U.createElement(gw,{size:"large"},U.createElement(vI,null)))));const g=U.createElement(kC,{dense:!0},U.createElement(zC,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},U.createElement(LS,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>U.createElement(zC,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),s(t)})(e,r)},U.createElement(rE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},U.createElement(gI,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=U.createElement(rk,{open:i,onClose:()=>{a(!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:U.createElement(yI,{container:!0,gap:0,className:bI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,a(!i))}},m,i&&v,l>-1&&U.createElement(mI,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?U.createElement(mI,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const SI="More",wI={item:"".concat(SI,"-item"),badge:"".concat(SI,"-badge")},EI=Nb(iC)((e=>{let{theme:t}=e;return{["&.".concat(wI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(wI.badge)]:{padding:t.spacing(0,1)}}}));function CI(e){let{items:t=[],api:n}=e;const r=Ib(),[o,i]=H.useState(!1),[a,l]=H.useState(-1),[s,c]=H.useState(null),u=H.useRef(),d=()=>{l(-1)};let p=null;return a>-1&&(p=t[a].states.length>1?U.createElement(xI,{field:t[a],api:n,moreAlignTo:u,onClose:d}):U.createElement(gI,{field:t[a],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),U.createElement(EI,{container:!0,gap:0,className:wI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,i(!o))}},U.createElement(iC,{item:!0},U.createElement(rE,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},U.createElement(ww,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),U.createElement(iC,{item:!0},U.createElement(gw,{size:"large"},U.createElement(vI,null))),o&&U.createElement(rk,{open:o,onClose:()=>{i(!1)},anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},U.createElement(kC,{dense:!0},t.map(((e,t)=>U.createElement(zC,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),l(t)})(e,t)},U.createElement(rE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?U.createElement(xI,{field:e,api:n}):U.createElement(gI,{field:e,api:n}))))))),p)}const kI=120,LI=72;function RI(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 OI(e){let{api:t,app:n}=e;const r=Ib(),[o]=iL(n),[i]=sL(o),[a,l]=H.useState({items:[],more:[]}),[s]=GS(),[c,u]=uL(),[d,p]=H.useState(0);return H.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-LI,n=Math.floor(t/kI);p(n)}),[u]),H.useEffect((()=>{if(!(n&&o&&i&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&RI(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>RI(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(i);l((t=>{const r=e;if((()=>{const e=s.get(n.id);return e&&"njsListbox"===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,i,t.isInModal(),d]),U.createElement(iC,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},a.items.map((e=>U.createElement(iC,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(kI,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?U.createElement(xI,{field:e,api:t}):U.createElement(gI,{field:e,api:t})))),a.more.length>0&&U.createElement(iC,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(LI,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},U.createElement(CI,{items:a.more,api:t})))}var II=e=>pL((e=>i(i({},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 TI=e=>pL((e=>i(i({},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 _I=(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 PI(e){let{api:t,app:n}=e;const{translator:r}=H.useContext(jS),[o]=function(e){const[t]=iL(e),[n]=sL(t),[r]=cL(e),[o,i]=H.useState(null);return H.useEffect((()=>{r&&t&&n&&_I(t,n,r)}),[r,t,n]),H.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})),i({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return U.createElement(iC,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},U.createElement(iC,{item:!0},U.createElement(gw,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},U.createElement(II,null))),U.createElement(iC,{item:!0},U.createElement(gw,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},U.createElement(TI,null))),U.createElement(iC,{item:!0},U.createElement(gw,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},U.createElement($O,null))))}const NI=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function MI(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function qI(){return NI.map(MI).join("")}function zI(e){let{app:t}=e;const n=Ib(),[r]=ZS(t);return r?U.createElement(iC,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},U.createElement(iC,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},U.createElement(PI,{api:r,app:t})),U.createElement(iC,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},U.createElement(OI,{api:r,app:t}))):null}var DI,AI="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};let jI;jI="undefined"!=typeof window?window:"undefined"!=typeof self?self:AI;let FI=null,$I=null;const BI=jI.clearTimeout,WI=jI.setTimeout,HI=jI.cancelAnimationFrame||jI.mozCancelAnimationFrame||jI.webkitCancelAnimationFrame,UI=jI.requestAnimationFrame||jI.mozRequestAnimationFrame||jI.webkitRequestAnimationFrame;function VI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}null==HI||null==UI?(FI=BI,$I=function(e){return WI(e,20)}):(FI=function([e,t]){HI(e),BI(t)},$I=function(e){const t=UI((function(){BI(n),e()})),n=WI((function(){HI(t),e()}),20);return[t,n]}),DI={createDetectElementResize:function(e){let t,n,r,o,i,a,l;const s="undefined"!=typeof document&&document.attachEvent;if(!s){a=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},i=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;a(this),this.__resizeRAF__&&FI(this.__resizeRAF__),this.__resizeRAF__=$I((function(){i(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(i,c){if(s)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const s=i.ownerDocument,c=jI.getComputedStyle(i);c&&"static"===c.position&&(i.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%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(s),i.__resizeLast__={},i.__resizeListeners__=[],(i.__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",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",l,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__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){}}}}}};class GI extends H.Component{constructor(...e){super(...e),VI(this,"state",{height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0}),VI(this,"_autoSizer",null),VI(this,"_detectElementResize",null),VI(this,"_parentNode",null),VI(this,"_resizeObserver",null),VI(this,"_onResize",(()=>{const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){var r,o,i,a;const l=window.getComputedStyle(this._parentNode)||{},s=parseFloat(null!==(r=l.paddingLeft)&&void 0!==r?r:"0"),c=parseFloat(null!==(o=l.paddingRight)&&void 0!==o?o:"0"),u=parseFloat(null!==(i=l.paddingTop)&&void 0!==i?i:"0"),d=parseFloat(null!==(a=l.paddingBottom)&&void 0!==a?a:"0"),p=this._parentNode.getBoundingClientRect(),f=p.height-u-d,h=p.width-s-c,m=this._parentNode.offsetHeight-u-d,g=this._parentNode.offsetWidth-s-c;(e||this.state.height===m&&this.state.scaledHeight===f)&&(t||this.state.width===g&&this.state.scaledWidth===h)||(this.setState({height:m,width:g,scaledHeight:f,scaledWidth:h}),"function"==typeof n&&n({height:m,scaledHeight:f,scaledWidth:h,width:g}))}})),VI(this,"_setRef",(e=>{this._autoSizer=e}))}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=(0,DI.createDetectElementResize)(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r,disableWidth:o,nonce:i,onResize:a,style:l,tagName:s="div",...c}=this.props,{height:u,scaledHeight:d,scaledWidth:p,width:f}=this.state,h={overflow:"visible"},m={};let g=!1;return r||(0===u&&(g=!0),h.height=0,m.height=u,m.scaledHeight=d),o||(0===f&&(g=!0),h.width=0,m.width=f,m.scaledWidth=p),H.createElement(s,{ref:this._setRef,style:{...h,...l},...c},!g&&e(m))}}VI(GI,"defaultProps",{onResize:()=>{},disableHeight:!1,disableWidth:!1,style:{}});var KI=GI;var ZI=e=>pL((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));function XI(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function QI(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}function JI(e){let{keyboard:t,hovering:n,updateKeyScroll:r,containerRef:o,currentScrollIndex:i,isModal:a,constraints:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,i=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const l=e.currentTarget.closest(".listbox-container"),s=a();switch(n){case gR.TAB:if(s)r?yR(l)||bR(l):bR(l)||yR(l);else{if(!r)break;t.blur(!0)}i();break;case gR.ENTER:case gR.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),i();break;case gR.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,i=r.classList.contains("listbox-container"),a=QI(n.closest(".listbox-container")),l=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(i||l)t.blur(!0);else{XI(o.current),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}})(e)}},handleOnMouseEnter:()=>{(()=>{const e=(null==l?void 0:l.select)||(null==l?void 0:l.active),t=a();return e||t})()||(n.current=!0)},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current)return;const{keyCode:t,ctrlKey:o=!1,shiftKey:a=!1}=e;switch(t){case gR.ARROW_UP:r({up:1});break;case gR.ARROW_DOWN:r({down:1});break;case gR.PAGE_UP:r({up:i.stop-i.start});break;case gR.PAGE_DOWN:r({down:i.stop-i.start});break;case gR.HOME:r({scrollPosition:o&&a?"overflowStart":"start"});break;case gR.END:r({scrollPosition:o&&a?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const YI=Nb("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function eT(e){let{text:t}=e;const{translator:n}=H.useContext(jS);return U.createElement(YI,null,n.get(t))}const tT="ListBoxInline",nT={listBoxHeader:"".concat(tT,"-listBoxHeader"),screenReaderOnly:"".concat(tT,"-screenReaderOnly"),listboxWrapper:"".concat(tT,"-listboxWrapper")},rT=Nb(iC,{shouldForwardProp:e=>!["containerPadding","isGridMode"].includes(e)})((e=>{var t,n;let{theme:r,containerPadding:o,isGridMode:i}=e;return{backgroundColor:null!==(t=null===(n=r.listBox)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:r.palette.background.default,["& .".concat(nT.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(nT.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(nT.listboxWrapper)]:{padding:o},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(r.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:i?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}}})),oT=Nb(ww)((e=>{var t,n,r,o,i,a,l,s,c,u,d,p;let{theme:f}=e;return{color:null===(t=f.listBox)||void 0===t||null===(n=t.title)||void 0===n||null===(r=n.main)||void 0===r?void 0:r.color,fontSize:null===(o=f.listBox)||void 0===o||null===(i=o.title)||void 0===i||null===(a=i.main)||void 0===a?void 0:a.fontSize,fontFamily:null===(l=f.listBox)||void 0===l||null===(s=l.title)||void 0===s||null===(c=s.main)||void 0===c?void 0:c.fontFamily,fontWeight:(null===(u=f.listBox)||void 0===u||null===(d=u.title)||void 0===d||null===(p=d.main)||void 0===p?void 0:p.fontWeight)||"bold"}}));const iT=U.memo((function(e){var t,n,r,o,a;let{options:s,layout:c}=e;const{app:u,direction:d,frequencyMode:p,checkboxes:f,search:h=!0,focusSearch:m=!1,rangeSelect:g=!0,model:v,selections:b,update:y,fetchStart:x,selectDisabled:S=(()=>!1),postProcessPages:w,calculatePagesHeight:E,showGray:C=!0,scrollState:k,renderedCallback:L,toolbar:R=!0,isPopover:O=!1}=s,I=Ib(),T=H.useCallback((()=>{v.unlock("/qListObjectDef")}),[v]),{translator:_,keyboardNavigation:P,themeApi:N,constraints:M}=H.useContext(jS);I.listBox=(e=>{const t=(t,n)=>e.getStyle("object.listBox",t,n);return{backgroundColor:t("","backgroundColor"),title:{main:{color:t("title.main","color"),fontSize:t("title.main","fontSize"),fontFamily:t("title.main","fontFamily"),fontWeight:t("title.main","fontWeight")}},content:{color:t("content","color"),fontSize:t("content","fontSize"),fontFamily:t("content","fontFamily")}}})(N);const q=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==u?void 0:u.layout}),z=H.useRef(),[D,A]=uL(),[j,F]=(()=>{const[e,t]=H.useState({}),n=H.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[$,B]=H.useState(!1),[W,V]=H.useState(!1),G=H.useRef(!1),[K,Z]=H.useState({down:0,up:0,scrollPosition:""}),X=e=>Z((t=>i(i({},t),e))),[Q,J]=H.useState({start:0,stop:0}),[Y]=ZS(u),ee=H.useRef(null),[te]=H.useState((()=>fI())),ne=function(e){let{containerRef:t,enabled:n}=e;const[r,o]=H.useState(!1),i={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const i=QI(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var a;null==(a=t.current)||a.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),XI(t.current),e&&i&&(i.setAttribute("tabIndex",0),i.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),i=null==e?void 0:e.querySelector(".value.last-focused"),a=null==e?void 0:e.querySelector(".value.selector, .value"),l=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=r||i||a||l;null==s||s.setAttribute("tabIndex",0),null==s||s.focus()},focusSelection(){const e=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm");null==e||e.setAttribute("tabIndex",0),null==e||e.focus()}};return i}({containerRef:z,enabled:P}),re=H.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:u,appSelections:Y})),[u,Y]),oe=null==c?void 0:c.qListObject.qDimensionInfo.qError,ie=oe&&M.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[ae,le]=H.useState(!1),{handleKeyDown:se,handleOnMouseEnter:ce,handleOnMouseLeave:ue,globalKeyDown:de}=H.useMemo((()=>JI({keyboard:ne,hovering:G,updateKeyScroll:X,containerRef:z,currentScrollIndex:Q,app:u,appSelections:Y,constraints:M,isModal:re})),[ne,G,X,z,Q,u,Y,M,re]),pe=R&&(""===(null==c?void 0:c.title)||!1===(null==c?void 0:c.showTitle))&&!O,fe=R&&""!==(null==c?void 0:c.title)&&!1!==(null==c?void 0:c.showTitle)||O;H.useEffect((()=>(document.addEventListener("keydown",de),()=>{document.removeEventListener("keydown",de)})),[de]),H.useEffect((()=>{const e=()=>{B(!0)},t=()=>{B(!1),"toggle"===h&&V(!1)};return O&&(b.isActive()||(b.begin("/qListObjectDef"),b.on("activated",e),b.on("deactivated",t)),B(O)),b&&(b.isModal()||(b.on("activated",e),b.on("deactivated",t)),B(b.isActive())),()=>{b&&b.removeListener&&(b.removeListener("activated",e),b.removeListener("deactivated",t))}}),[b,O]),H.useEffect((()=>{if(j&&j.current&&(h&&m||"toggle"===h&&W)){const e=j.current.querySelector("input");e&&e.focus()}}),[j&&j.current,W,h,m]);const{wildCardSearch:he,searchEnabled:me,layoutOptions:ge={}}=null!=c?c:{},ve=!1!==me&&"toggle"===h,be=!0===(null==c||null===(t=c.qListObject)||void 0===t||null===(n=t.qDimensionInfo)||void 0===n?void 0:n.qLocked),ye=be||ve,xe="H"===(null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.qGrouping),Se=ye||xe,we=(ye?28:0)+(xe?19:0);if(H.useEffect((()=>{if(!ee.current||!A)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:l}=e;const s=i.width<(null!==(t=null==a||null===(n=a.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+l+16+128,c=(null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)>(null==a||null===(o=a.current)||void 0===o?void 0:o.offsetWidth);return!(!s&&!c)}({containerRect:A,titleRef:ee,iconsWidth:we});le(e)}),[ee.current,A]),!v||!c||!_)return null;const Ee="rtl"===d,Ce=MO({layout:c,model:v,translator:_,selectionState:te,isDirectQuery:q}),ke=(!0===h||"toggle"===h&&W)&&!S()&&!1!==me,Le=null!==(a=ge.dense)&&void 0!==a&&a,Re=fe?49+(ke?Le?27:40:0)+(Le?39:49):0,Oe=()=>{V(!W)},Ie=()=>{if("toggle"===h)Oe();else{const e=j.current.querySelector("input");null==e||e.focus()}},Te=e=>function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,selections:a,keyboard:l}=e;return{show:n&&!t,popover:{show:n&&t,anchorEl:r.current},more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:a,onConfirm:()=>{null==l||l.focus()},onCancel:()=>{null==l||l.focus()}}}}({isDetached:!O&&e,showToolbar:$,containerRef:z,isLocked:be,listboxSelectionToolbarItems:Ce,selections:b,keyboard:ne}),_e=ke&&"toggle"===h,Pe=ML-(ye?7:0),Ne=Ee?ML-(Se?7:0):0,Me="grid"===(null==ge?void 0:ge.dataLayout);let qe;Me&&(qe="row"===ge.layoutOrder?"2px 4px":"2px 6px 2px 4px");const ze=null!=M&&M.active?U.createElement(rI,{title:_.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):U.createElement(gw,{onClick:Oe,tabIndex:-1,title:_.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},U.createElement(rI,{style:{fontSize:"12px"}})),De=S()?U.createElement(hL,{size:"large",style:{fontSize:"12px",padding:"7px"}}):U.createElement(gw,{title:_.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:T,size:"large"},U.createElement(hL,{disableRipple:!0,style:{fontSize:"12px"}}));return oe&&(null==L||L()),U.createElement(U.Fragment,null,pe&&U.createElement(nI,l({direction:d},Te(!0))),U.createElement(rT,{className:"listbox-container",container:!0,tabIndex:ne.enabled?-1:void 0,direction:"column",gap:0,containerPadding:qe,style:{height:"100%",minHeight:"".concat(Re,"px"),flexFlow:"column nowrap"},onKeyDown:se,onMouseEnter:ce,onMouseLeave:ue,ref:e=>{z.current=e,D(e)},isGridMode:Me},fe&&U.createElement(iC,{item:!0,container:!0,minHeight:32,flexDirection:Ee?"row-reverse":"row",marginY:1,paddingLeft:"".concat(Pe,"px"),paddingRight:"".concat(Ne,"px"),wrap:"nowrap"},Se&&U.createElement(iC,{item:!0,container:!0,alignItems:"center",width:we},be?De:ve&&ze,xe&&U.createElement(ZI,{tabIndex:-1,title:_.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),U.createElement(iC,{item:!0,xs:!0,minWidth:0,justifyContent:Ee?"flex-end":"flex-start",className:nT.listBoxHeader},U.createElement(oT,{variant:"h6",noWrap:!0,ref:ee,title:c.title},c.title)),U.createElement(iC,{item:!0},U.createElement(nI,l({direction:d},Te(ae))))),U.createElement(iC,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"50px"},role:"region","aria-label":_.get("Listbox.ResultFilterLabel")},U.createElement(iC,{item:!0,ref:F},U.createElement("div",{className:nT.screenReaderOnly},_.get("Listbox.Search.ScreenReaderInstructions")),U.createElement(sI,{selections:b,selectionState:te,model:v,dense:Le,keyboard:ne,visible:ke,search:h,autoFocus:_e,wildCardSearch:he,searchEnabled:me,direction:d,hide:ve&&Oe})),U.createElement(iC,{item:!0,xs:!0,className:nT.listboxWrapper},U.createElement("div",{className:nT.screenReaderOnly},_.get("Listbox.ScreenReaderInstructions")),oe?U.createElement(eT,{text:ie}):U.createElement(KI,null,(e=>{let{height:t,width:n}=e;return U.createElement(IO,{model:v,app:u,constraints:M,layout:c,selections:b,selectionState:te,direction:d,frequencyMode:p,rangeSelect:g,checkboxes:f,height:t,width:n,update:y,fetchStart:x,postProcessPages:w,calculatePagesHeight:E,selectDisabled:S,keyboard:ne,showGray:C,scrollState:k,keyScroll:{state:K,reset:()=>Z({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Q,set:J},renderedCallback:L,onCtrlF:Ie,isModal:re})}))))))}));function aT(e){let{options:t={}}=e;const{model:n}=t,[r]=sL(n);return U.createElement(iT,{options:t,layout:r})}const lT={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,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};const sT=["__DO_NOT_USE__"],cT=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 i(i(i({},s(e,sT)),n),t)};function uT(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:a,options:l,renderedCallback:s}=e;const{isExistingObject:c,hasExternalSelectionsApi:u}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:r,options:l}),[d,p]=H.useState(0);H.useEffect((()=>{if(d)throw new Error("Source or selection Api can not change after a listbox has been mounted");p(d+1)}),[c,u]);const f=c?function(e){let{app:t,qId:n,options:r={}}=e;const[o,i]=H.useState(),[a]=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 H.useEffect((()=>{l?i(l):async function(){const e=a.get(n);if(e)i(e);else{const e=await t.getObject(n);a.set(e.id,e),e.once("closed",(()=>{a.clear(e.id)})),i(e)}}()}),[]),o}({app:t,qId:r,options:l}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:i={}}=e;const[a,l]=H.useState(""),[s,c]=H.useState(!0),[u,d]=H.useState(),[p,f]=H.useState(),h=null!==(t=i.title)&&void 0!==t?t:p;H.useEffect((()=>{const e=i.histogram||"N"!==i.frequencyMode;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:m,checkboxes:g,listLayout:v,properties:b={}}=i;let{frequencyMode:y,histogram:x=!1}=i;switch(a&&a.failedToFetchFieldDef&&(x=!1,y="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(y):y="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(y):y="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(y):y="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(y):y="R";break;default:y="N"}const S={dense:m};"horizontal"===v&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const w=H.useRef();w.current||(w.current=qI());const E=We(!0,{},lT,{qInfo:{qId:w.current},qListObjectDef:{qStateName:o,qFrequencyMode:x&&"N"===y?"V":y},histogram:x,checkboxes:g,layoutOptions:S,title:h});let C;if(We(!0,E,b),r.qLibraryId?(E.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(E.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==y&&x)if(null!=a&&a.multiFieldDim)E.frequencyMax="fetch";else{const e=r.qLibraryId?a:C;E.frequencyMax={qValueExpression:CO(e)}}const[k]=rL(E,s?null:n,C,o);return H.useEffect((()=>{k&&d(k)}),[k]),u}({app:t,fieldIdentifier:n,stateName:o,options:l}),h=H.useRef(a),m=u?l.selectionsApi:pI(t,f,[h,".njs-action-toolbar-more",".njs-action-toolbar-popover"],l)[0],g=H.useMemo((()=>i(i({},l),{},{selections:m,model:f,app:t,renderedCallback:s})),[l,m,f,t]);return m&&f?U.createElement(aT,{options:g}):null}const dT={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function pT(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:i={}}=e;const[a,l]=H.useState(!!i.show);return U.createElement(mI,{show:a,app:t,alignTo:{current:o},anchorOrigin:i.anchorOrigin,transformOrigin:i.transformOrigin,close:()=>{l(!1),i.onPopoverClose&&i.onPopoverClose()},fieldName:n,stateName:r,autoFocus:i.autoFocus})}function fT(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function hT(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 mT=e=>({qDef:{qFieldDefs:[e]}}),gT=e=>({qDef:{qDef:e}});function vT(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?mT(e):i(i({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||qI(),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),fT(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 hT(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?gT(e):i(i({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||qI(),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),fT(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];hT(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 bT=e=>({qDef:{qFieldDefs:[e]}});function yT(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?bT(e):i(i({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||qI(),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 xT=e=>({qDef:{qFieldDefs:[e]}}),ST=e=>{let t;return t="string"==typeof e?We(!0,{},lT,{qListObjectDef:xT(e)}):e.qListObjectDef?We(!0,{},lT,e):We(!0,{},lT,{qListObjectDef:e}),t};function wT(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=ST(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||qI(),!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 i,a;r.title=o.qDef.title||(null===(i=o.qDef.qFieldLabels)||void 0===i?void 0:i[0])||(null===(a=o.qDef.qFieldDefs)||void 0===a?void 0:a[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}};return r}function ET(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 CT(e,t){let{sn:n,properties:r,fields:o,children:i}=e;if(!o.length)return;const a=n.qae.data.targets[0];if(!a)return;const{propertyPath:l}=a,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")?yT:e.match("/qChildListDef")?wT:vT}(l),d=u({dc:c,def:a,properties:r,children:i,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===ET(t)?await d.addMeasure(t):await d.addDimension(t)}}var kT={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 i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?i[o]=n:delete i[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var LT={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 RT=2**53-1;function OT(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function IT(e,t){const n=We(!0,{},t,e);return kT.getValue(n,"qOtherTotalSpec.qOtherCounted")||kT.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),kT.getValue(n,"qOtherTotalSpec.qOtherLimit")||kT.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function TT(e,t){return We(!0,{},t,e)}function _T(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var PT={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===kT.getValue(e,t)&&kT.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:OT,importCommonProperties:function(e,t,n){const r="masterobject"===kT.getValue(t,"properties.qInfo.qType")?"masterobject":kT.getValue(n,"qInfo.qType");kT.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:IT,createDefaultMeasure:TT,resolveValue:_T,getHypercubePath:function(e){const t=kT.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 i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(LT.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,LT.indexRemoved(n.qInterColumnSortOrder,i))},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=We(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?kT.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||OT(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=We(!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},i=n.measures||{max:0},a=_T(i.max,r.dimensions.length,RT),l=_T(i.min,r.dimensions.length,0);return{maxDimensions:_T(o.max,a,RT),minDimensions:_T(o.min,l,0),maxMeasures:a,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i}=e;const a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i,newHyperCubeDef:a}=e;const l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:i}=e;const a=t.data[0];let l;if(n>0)for(l=0;l<a.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(IT(a.dimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(IT(a.dimensions[l],i));else if(a.dimensions.length)for(l=0;l<a.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(IT(a.dimensions[l],i));if(a.excludedDimensions.length)for(l=0;l<a.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(IT(a.excludedDimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(IT(a.excludedDimensions[l],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let l;if(n>0)for(l=0;l<a.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(TT(a.measures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(TT(a.measures[l],i));else if(a.measures.length)for(l=0;l<a.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(TT(a.measures[l],i));if(a.excludedMeasures.length)for(l=0;l<a.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(TT(a.excludedMeasures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(TT(a.excludedMeasures[l],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=kT.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=kT.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var NT={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,i=kT.getValue(o,n||""),a=i.qHyperCubeDef,l=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),l.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();LT.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete a.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=i.qHyperCubeDef,delete i.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&&(PT.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!kT.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},l=PT.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),s=kT.getValue(n,i||"").qHyperCubeDef,c=kT.getValue(l,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=PT.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=PT.getDefaultDimension(),defaultMeasure:m=PT.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,PT.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&PT.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),PT.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),PT.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),PT.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),PT.copyPropertyIfExist("qMaxStackedCells",s,c),PT.copyPropertyIfExist("qNoOfLeftDims",s,c),PT.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),PT.copyPropertyOrSetDefault("qMode",s,c,"S"),PT.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),PT.copyPropertyOrSetDefault("qSortbyYValue",s,c),PT.copyPropertyOrSetDefault("qIndentMode",s,c),PT.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),PT.importCommonProperties(l,t,n),PT.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),PT.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),a.qProperty=l,a}(e)};const MT=e=>kT.getValue(e,"data.targets.0.propertyPath"),qT=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return NT.exportProperties})(MT(e))},zT=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return NT.importProperties})(MT(e))},DT=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const a=await n.getFullPropertyTree(),l=r.current.getQae(),s=qT(l),c=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}),u=c.qae;return zT(u)({exportFormat:s({propertyTree:a,hypercubePath:PT.getHypercubePath(l)}),initialProperties:i({qInfo:{qType:o},visualization:o},kT.getValue(u,"properties.initial",{})),dataDefinition:kT.getValue(u,"data.targets.0.",{}),hypercubePath:PT.getHypercubePath(u)})},AT={hypercube:NT};var jT=e=>pL((e=>i(i({},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 FT(e){let{d:t}=e;const n=Ib();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 i={color:o},a=U.createElement(ww,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},U.createElement(hC,null,t.missing||t.error?U.createElement(jT,{style:i}):U.createElement(IL,{style:i})));return U.createElement(iC,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},U.createElement(iC,{item:!0},a),U.createElement(iC,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},U.createElement(ww,{noWrap:!0,component:"p"},U.createElement(ww,{component:"span",variant:"subtitle2",color:r},t.description),U.createElement(ww,{component:"span"}," "),U.createElement(ww,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function $T(e){let{data:t}=e;const n=Ib();return U.createElement(iC,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>U.createElement(FT,{d:e,key:t})));return r.length>0&&U.createElement(iC,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},U.createElement(ww,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function BT(e){let{title:t="Error",message:n="",data:r=[]}=e;return U.createElement(iC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},U.createElement(iC,{item:!0},U.createElement(jT,{style:{fontSize:"38px"}})),U.createElement(iC,{item:!0},U.createElement(ww,{variant:"h6",align:"center","data-tid":"error-title"},t)),U.createElement(iC,{item:!0},U.createElement(ww,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),U.createElement($T,{data:r}))}const WT=["size"],HT="Progress",UT={root:"".concat(HT,"-root"),front:"".concat(HT,"-front"),back:"".concat(HT,"-back")},VT=Nb("div")((e=>{let{theme:t}=e;return{["&.".concat(UT.root)]:{position:"relative",display:"inline-block"},["& .".concat(UT.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(UT.back)]:{color:t.palette.divider}}})),GT={small:16,medium:32,large:64,xlarge:128};function KT(e){let{size:t="medium"}=e,n=s(e,WT);const r=GT[t];return U.createElement(VT,{className:UT.root},U.createElement(NE,l({variant:"determinate",value:100,className:UT.back,size:r,thickness:3},n)),U.createElement(NE,l({variant:"indeterminate",disableShrink:!0,className:UT.front,size:r,thickness:3},n)))}const ZT=["cancel","translator"],XT=["retry","translator"],QT={stripes:"".concat("LongRunningQuery","-stripes")},JT=Nb(iC)((()=>({["& .".concat(QT.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 YT(e){let{cancel:t,translator:n}=e,r=s(e,ZT);return U.createElement(U.Fragment,null,U.createElement(JT,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},U.createElement(iC,{item:!0},U.createElement(KT,null)),U.createElement(iC,{item:!0},U.createElement(ww,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),U.createElement(iC,l({item:!0},r),U.createElement(LS,{variant:"contained",onClick:t},n.get("Cancel"))))}function e_(e){let{retry:t,translator:n}=e,r=s(e,XT);return U.createElement(U.Fragment,null,U.createElement(iC,{item:!0},U.createElement(jT,{style:{fontSize:"38px"}})),U.createElement(iC,{item:!0},U.createElement(ww,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),U.createElement(iC,{item:!0},U.createElement(LS,l({variant:"contained",onClick:t},r),n.get("Retry"))))}function t_(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=H.useContext(jS);return U.createElement(iC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:QT.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&U.createElement(YT,{cancel:r.cancel,translator:o,className:QT.cancel}),n&&U.createElement(e_,{retry:r.retry,translator:o,className:QT.retry}))}function n_(){return U.createElement(iC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},U.createElement(KT,{size:"large"}))}const r_="Header",o_={containerStyle:"".concat(r_,"-containerStyle"),containerTitleStyle:"".concat(r_,"-containerTitleStyle")},i_=Nb(iC)((e=>{let{theme:t}=e;return{["&.".concat(o_.containerStyle)]:{flexGrow:0},["&.".concat(o_.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),a_="njs-cell-title",l_="njs-cell-sub-title";function s_(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:i,titleStyles:a={}}=e;const l=t.showTitles&&!!t.title,s=t.showTitles&&!!t.subtitle,c=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,d]=H.useState([]),[p,f]=uL(),[h,m]=H.useState(!1);H.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{d([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),H.useEffect((()=>{if(!f)return;const{width:e}=f;m(e<221)}),[f]);const g=l||s,v=[o_.containerStyle,...g?[o_.containerTitleStyle]:[]],b=(o||c)&&(h||!g),y=g&&!b&&!h,x=U.createElement(nI,{show:y,selections:{show:c,api:n.component.selections,onKeyDeactivate:i.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:i});return U.createElement(i_,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},U.createElement(iC,{item:!0,zeroMinWidth:!0,xs:!0},U.createElement(iC,{container:!0,wrap:"nowrap",direction:"column"},l&&U.createElement(ww,{variant:"h6",noWrap:!0,className:a_,style:a.main},t.title),s&&U.createElement(ww,{variant:"body2",noWrap:!0,className:l_,style:a.subTitle},t.subtitle))),U.createElement(iC,{item:!0},x))}const c_={itemStyle:"".concat("Footer","-itemStyle")},u_=Nb(iC)((e=>{let{theme:t}=e;return{["& .".concat(c_.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),d_="njs-cell-footer";function p_(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?U.createElement(u_,{container:!0},U.createElement(iC,{item:!0,className:c_.itemStyle},U.createElement(ww,{noWrap:!0,variant:"body2",className:d_,style:n.footer},t.footnote))):null}class f_{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 h_="njs-viz";function m_(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:l}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=H.useContext(jS),[h]=H.useState((()=>new f_)),[m,g]=H.useState(!1),[v,b]=H.useState(0),[y,x,S]=uL(),[w,E]=H.useState(null),C=H.useCallback((e=>{e&&E(e)}),[]);return H.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),H.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"),l.app&&l.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:l.public.nebbie,context:i({constraints:d,interactions:p,theme:l.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]),U.createElement("div",{ref:y,"data-render-count":v,style:{position:"relative",height:"100%"},className:h_},U.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const g_={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},v_={"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 b_(e,t){return t?function(e){var t;let n,r,o,i;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host):""}(e)+t:void 0}function y_(e,t){const n=null==e?void 0:e.bgImage;if(n){let i="";var r,o;if("media"===n.mode||"media"===e.useImage)i=null!=n&&null!==(r=n.mediaUrl)&&void 0!==r&&null!==(o=r.qStaticContentUrl)&&void 0!==o&&o.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=b_(t,i);"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const a=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=v_[e.bgImage.position]),n}(e),l=function(e){var t;let n=g_.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=g_[e.bgImage.sizing]),n}(e);return i?{url:i,pos:a,size:l}:void 0}}function x_(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t?r.useExpression?t.validateColor(r.colorExpression):r.color&&"none"!==r.color.color?t.getColorPickerColor(r.color,!0):void 0:t&&n?t.getStyle("object.".concat(n),"","backgroundColor"):t?t.getStyle("","","backgroundColor"):void 0}function S_(e,t,n,r){var o;const i=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},a=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(i.fontStyle,t);return{fontFamily:i.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),color:i.color&&"none"!==i.color.color?n.getColorPickerColor(i.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:a.includes("bold")?"bold":"normal",fontStyle:a.includes("italic")?"italic":"normal",textDecoration:a.includes("underline")?"underline":"initial"}}const w_="njs-cell",E_=(e,t)=>{switch(t.type){case"LOADING":return i(i({},e),{},{loading:!0});case"LOADED":return i(i({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return i(i({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return i(i({},e),{},{longRunningQuery:!0});case"ERROR":return i(i({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function C_(e){let{delay:t=750}=e;const[n,r]=H.useState(!1);return H.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?U.createElement(n_,null):null}const k_=e=>!e.qError||7005===e.qError.qErrorCode,L_=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,l=i&&!a&&t[e].qError,s=a&&t[e].qCalcCondMsg,c="".concat(l?r:a?s||o:i&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!i&&!l&&e>=t.length||a,error:l}})),R_=e=>e&&(Array.isArray(e)?e:[e])||[],O_=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:L_(o,R_(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:L_(i,R_(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},I_=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:l,hasLayoutErrors:s,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,i=0,a=!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=R_(f.qDimensionInfo||f.qItems).filter(k_),m=R_(f.qMeasureInfo).filter(k_);if(o+=d,i+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){a=!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:i,hasLayoutErrors:a,layoutErrors:s}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const a=o[n];if(!s&&i){const n=p||await r.getProperties();p=n;const o=O_(e,t,n,a);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,a]),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||i,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},T_=H.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:s,currentId:c,emitter:u}=e;const{app:d,types:p}=n,{nebbie:f}=n.public,{theme:h,translator:m,language:g,keyboardNavigation:v,disableCellPadding:b=!1}=H.useContext(jS),y=Ib(),[x,S,w]=uL(),[E,C]=H.useReducer(E_,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=l)?{title:k.message}:null,sn:null,visualization:null});var k;const[L,{validating:R,canCancel:O,canRetry:I},T]=sL(r),[_]=cL(d),[P,N,M]=uL(),[q,z]=H.useState(o),[D,A]=H.useState(a),j="njs-cell-".concat(c),[F]=pI(d,r,["#".concat(j),".njs-action-toolbar-popover"]),[$,B]=H.useState(!1),W=H.useRef({enter:null,leave:null}),[V,G]=H.useState(void 0),[K,Z]=H.useState(void 0),[X,Q]=H.useState(void 0),J=H.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});H.useEffect((()=>{cI(J.current)}),[]),H.useEffect((()=>{if(L&&n.public.theme){const e=L.components?L.components.find((e=>"general"===e.key)):null;Q({main:S_(e,"main",n.public.theme,L.visualization),footer:S_(e,"footer",n.public.theme,L.visualization),subTitle:S_(e,"subTitle",n.public.theme,L.visualization)}),G(x_(e,n.public.theme,L.visualization)),Z(y_(e,n.app))}}),[L,n.public.theme,n.app,h]),J.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&M&&M.focus()},J.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()};H.useEffect((()=>{if(l||!_||!L)return;if(E.visualization===L.visualization&&E.sn)return void(async e=>{const[t,n]=await I_(m,L,e.generator.qae.data,r);C(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:E.sn,layout:L,model:r})})(E.sn);const e=p.getSupportedVersion(L.visualization,L.version);return(async(e,t)=>{C({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:l,nebbie:s,focusHandler:c,emitter:u}=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});return e.create({model:i,app:a,selections:l,nebbie:s,focusHandler:c,emitter:u})}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,"?")}})}})({dispatch:C,types:p,visualization:e,version:t,model:r,app:d,selections:F,nebbie:f,focusHandler:J.current,emitter:u});n&&(C({type:"LOADED",sn:n,visualization:e}),s())})(L.visualization,e),()=>{}}),[p,E.sn,r,F,L,_,g]),H.useEffect((()=>{if(!R)return;const e=setTimeout((()=>C({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[R]),H.useImperativeHandle(t,(()=>({getQae:()=>E.sn.generator.qae,toggleFocus(e){"function"==typeof E.sn.component.focus&&(e?E.sn.component.focus():E.sn.component.blur())},setSnOptions:z,setSnPlugins:A,getImperativeHandle(){var e;return null!==(e=E.sn)&&void 0!==e&&e.component&&"function"==typeof E.sn.component.getImperativeHandle?E.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=S;let n=JSON.parse(JSON.stringify(L));return"function"==typeof E.sn.component.setSnapshotData&&(n=await E.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:m.language(),theme:y.name,appLayout:_,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)}})),[E.sn,N,S,L,y.name,_]);let Y=null;return E.loading&&!E.longRunningQuery?Y=U.createElement(C_,null):E.error?Y=U.createElement(BT,E.error):E.loaded&&(Y=U.createElement(m_,{key:L.visualization,sn:E.sn,halo:n,snOptions:q,snPlugins:D,layout:L,appLayout:_})),U.createElement(dw,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:V||"unset",backgroundImage:K&&K.url?"url(".concat(K.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:K&&K.size,backgroundPosition:K&&K.pos},elevation:0,square:!0,className:w_,ref:x,id:j,onMouseEnter:()=>{W.current.leave&&clearTimeout(W.current.leave),W.enter||(W.current.enter=setTimeout((()=>{B(!0),W.current.enter=null}),250))},onMouseLeave:()=>{W.current.enter&&clearTimeout(W.current.enter),W.current.leave||(W.current.leave=setTimeout((()=>{B(!1),W.current.leave=null}),750))}},U.createElement(iC,{container:!0,direction:"column",gap:0,style:i(i({position:"relative",width:"100%",height:"100%"},b?{}:{padding:y.spacing(1)}),E.longRunningQuery?{opacity:"0.3"}:{})},w&&L&&E.sn&&U.createElement(s_,{layout:L,sn:E.sn,anchorEl:w,hovering:$,focusHandler:J.current,titleStyles:X}," "),U.createElement(iC,{tabIndex:v?0:-1,onKeyDown:v?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:P},Y),w&&L&&E.sn&&U.createElement(p_,{layout:L,titleStyles:X})),E.longRunningQuery&&U.createElement(t_,{canCancel:O,canRetry:I,api:T}))}));function __(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function P_(){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 i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?function(e,t){return __(e)&&__(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...P_("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function N_(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 M_=()=>{};function q_(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=M_,a=null,l=null,s=null,c=null;const u=new Promise((e=>{s=e})),d=new Promise((e=>{c=e})),p=e=>()=>{e&&e(),c()};let f={},h=[];const m=new Y,g={id:e.id,model:e,async destroy(){await r(),o(),o=M_},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await DT({halo:t,model:e,cellRef:a,newType:n});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},addListener(e,t){m.addListener(e,t)},removeListener(e,t){m.removeListener(e,t)},getImperativeHandle:async()=>(await d,a.current.getImperativeHandle()),__DO_NOT_USE__:{mount(r){if(l)throw new Error("Already mounted");return l=r,[o,a]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,emitter:l,initialError:s}=e;const{root:c}=t,u=U.createRef(),d=qI(),p=xp.createPortal(U.createElement(T_,{ref:u,halo:t,model:r,currentId:d,initialSnOptions:o,initialSnPlugins:i,initialError:s,onMount:a,emitter:l}),n,d),f=()=>{c.remove(p),r.removeListener("closed",f)};return r.on("closed",f),c.add(p),c.addCell(d,u),[f,u]}({halo:t,element:r,model:e,initialSnOptions:f,initialSnPlugins:h,initialError:n,onMount:s,emitter:m}),u},async applyProperties(t){const n=P_("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;l?(async()=>{await u,a.current.setSnOptions(i(i(i({},f),e),{onInitialRender:p(t)}))})():f=i(i(i({},f),e),{onInitialRender:p(t)})})(e)},plugins(e){(async e=>{N_(e),l?(async()=>{await u,a.current.setSnPlugins(e)})():h=e})(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot(),getModel:()=>e}};return g}async function z_(e,t,n,r){const o=q_({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}async function D_(e,t,n){let{type:r,version:o,fields:i,properties:a,extendProperties:l}=e,s={};const c=[];try{const e=t.types.get({name:r,version:o});s=await e.initialProperties(a,l);const n=await e.supernova();i&&await CT({sn:n,properties:s,fields:i,children:c},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},s)}catch(e){s=n?null:{qInfo:{qType:r},visualization:r}}if(!n){const e=await t.app.createObject(s);return c.length>0&&await e.setFullPropertyTree({qProperty:s,qChildren:c}),tL.set(e.id,e),e}return s}const A_={className:"njs-sheet"};function j_(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:i,onMount:a}=e;const{root:l}=n,[s]=sL(t),{theme:c}=H.useContext(jS),[u,d]=H.useState([]),[p,f]=H.useState(void 0),[h,m]=H.useState(void 0),[g,v]=H.useState("");H.useEffect((()=>{if(s){const e=JSON.stringify(s.cells);if(e===g)return;v(e);const t=async()=>{u.forEach((e=>{l.removeCell(e.currentId)}));const e=s.cells,t=await Promise.all(e.map((async e=>{let t;const r=new Promise((e=>{t=e})),o=u.find((t=>t.id===e.name));if(o)return o.bounds=e.bounds,delete o.mountedPromise,o;const i=await async function(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let l=Zk.get(a);l||(l=t.app.getObject(n),Zk.set(a,l));const s=await l;return tL.set(a,s),z_(s,{options:r,plugins:o,element:i},t)}({id:e.name},n);return{model:i.model,id:e.name,bounds:e.bounds,cellRef:U.createRef(),currentId:qI(),mounted:t,mountedPromise:r}})));t.forEach((e=>l.addCell(e.currentId,e.cellRef))),d(t)};t()}}),[s]);const b=H.useMemo((()=>u?u.map((e=>function(e,t,n,r,o,i){const{x:a,y:l,width:s,height:c}=e.bounds;return U.createElement("div",{style:{left:"".concat(a,"%"),top:"".concat(l,"%"),width:"".concat(s,"%"),height:"".concat(c,"%"),position:"absolute"}},U.createElement(T_,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i}))}(e,n,r,o,i,e.mounted))):[]),[u]);H.useEffect((()=>{const e=null!=s&&s.components?s.components.find((e=>"general"===e.key)):null;f(x_(e,n.public.theme)),m(y_(e,n.app))}),[s,n.public.theme,n.app,c]);const y=!s||Number.isNaN(s.height)?"100%":"".concat(Number(s.height),"%"),x=u.map((e=>e.mountedPromise)),S=x.filter((e=>!!e));return S.length&&Promise.all(x).then((()=>{a()})),U.createElement("div",{className:A_.className,style:{width:"100%",height:y,position:"relative",backgroundColor:p,backgroundImage:h&&h.url?"url(".concat(h.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:h&&h.size,backgroundPosition:h&&h.pos}},b)}const F_=()=>{};function $_(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=F_,a=null,l=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p={id:e.id,model:e,async destroy(){await r(),o(),o=F_},__DO_NOT_USE__:{mount(r){if(l)throw new Error("Already mounted");return l=r,[o,a]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,initialError:l}=e;const{root:s}=t,c=U.createRef(),u=xp.createPortal(U.createElement(j_,{ref:c,halo:t,model:r,initialSnOptions:o,initialSnPlugins:i,initialError:l,onMount:a}),n,r.id),d=()=>{s.remove(u),r.removeListener("closed",d)};return r.on("closed",d),s.add(u),[d,c]}({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=P_("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{l?(async()=>{await c,a.current.setSnOptions(i(i({},u),e))})():u=i(i({},u),e)})(e)},plugins(e){(async e=>{N_(e),l?(async()=>{await c,a.current.setSnPlugins(e)})():d=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return p}async function B_(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let l=Zk.get(a);l||(l=t.app.getObject(n),Zk.set(a,l));const s=await l;return tL.set(a,s),"sheet"===s.genericType?async function(e,t,n,r){const o=$_({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}(s,{options:r,plugins:o,element:i},t):z_(s,{options:r,plugins:o,element:i},t)}function W_(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const H_=We.bind(null,!0),U_={},{isArray:V_}=Array;function G_(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function K_(e){return void 0===e}function Z_(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function X_(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 i=isNaN(r)?{}:[];e[r||t]=K_(e[r||t])?i:e[t],e=e[r||t]})),e}function Q_(e,t){let n=!0;if(G_(e)&&G_(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Q_(e[r],t[r])||(n=!1)})),n);if(V_(e)&&V_(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Q_(e[n],t[n]))return!1;return!0}return e===t}U_.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?H_({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);Q_(i,a)||Z_(t,o)||(K_(a)?r.push({op:"add",path:l,value:i}):G_(i)&&G_(a)?r=r.concat(U_.generate(a,i,l)):V_(i)&&V_(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&K_(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(Q_(t,o))return r;if(!K_(t[0])&&K_(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(U_.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(i)}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((o=>{K_(t[o])&&!Z_(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},U_.apply=function(e,t){t.forEach((t=>{let n=X_(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(V_(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(V_(o)&&V_(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(G_(o)&&G_(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Z_(a,e)&&delete a[e]})),H_(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=X_(e,t.from);V_(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(V_(n)?n.splice(+r,1):delete n[r]);var a}))},U_.clone=function(e){return H_({},e)},U_.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},U_.updateObject=function(e,t){Object.keys(e).length?U_.apply(e,U_.generate(e,t)):H_(e,t)};const J_=e=>t=>{const n=(r=i(i({},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(Y.prototype).forEach((e=>{r[e]=Y.prototype[e]})),Y.init(r),r);var r;return n};let Y_,eP;function tP(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 nP(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}}}function rP(e){iP(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 oP(e){if(e.__hooks.obsolete)return Promise.resolve();eP=-1,Y_=e,Y_.__hooks.initiated&&Y_.__hooks.list.length;try{Y_.fn.call(null)}catch(e){console.error(e)}Y_.__hooks.initiated=!0;const t=Y_.__hooks;return cP(Y_),eP=void 0,Y_=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){iP(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){iP(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 iP(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 aP(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 lP(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function sP(e){return e.__hooks.imperativeHandle}function cP(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function uP(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,cP(e))}function dP(e){if(void 0===Y_)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Y_.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function pP(e){dP(++eP);return Y_.context[e]}function fP(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function hP(e){return{__hooked:!0,fn:e,initiate:nP,run:oP,teardown:rP,runSnaps:aP,runMenu:lP,focus:xP,blur:SP,observeActions:uP,getImperativeHandle:sP,updateRectOnNextRun:fP}}function mP(e){const t=dP(++eP);if(!t.value){t.component=Y_;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,oP(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function gP(e,t){const n=dP(++eP);tP(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Y_.__hooks.pendingEffects.indexOf(n)&&Y_.__hooks.pendingEffects.push(n))}function vP(e,t){const n=dP(++eP);tP(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Y_.__hooks.pendingLayoutEffects.push(n))}function bP(e,t){const n=dP(++eP);return tP(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function yP(){return pP("element")}function xP(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 SP(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 wP={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},EP=Object.keys(wP),CP=e=>(Object.keys(Y.prototype).forEach((t=>{e[t]=Y.prototype[t]})),Y.init(e),e);function kP(e,t){const n=i({},wP);CP(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==EP.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=[],i=J_(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=i(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=i(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 LP(e,t,n){"function"==typeof e.component&&(e.component=hP(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={},l=["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,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)}l.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(i(i({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(i(i({},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){return e.component.runMenu(this,t,n)},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 l.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):kP(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];return e.qae.properties.onChange.call({model:t.model},...r),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 i=U_.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));U_.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const l=U_.generate(i,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.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 RP=()=>{};function OP(e,t){return void 0===e?()=>t:()=>e}function IP(e){const t=e||{};return{min:"function"==typeof t.min?t.min:OP(t.min,0),max:"function"==typeof t.max?t.max:OP(t.max,1e3),added:t.added||t.add||RP,description:t.description||RP,moved:t.moved||t.move||RP,removed:t.removed||t.remove||RP,replaced:t.replaced||t.replace||RP,isDefined:()=>!!e}}const TP=(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 _P(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=>TP(e,n,{}),dimensions:IP(e.dimensions),measures:IP(e.measures)}}function PP(){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(_P)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function NP(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:PP(n.qae),component:n.component||{},create:e=>LP(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var MP={exports:{}};!function(e,t){var n;t=e.exports=p,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],a=t.src=[],l=t.tokens={},s=0;function c(e){l[e]=s++}c("NUMERICIDENTIFIER"),a[l.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),a[l.NUMERICIDENTIFIERLOOSE]="[0-9]+",c("NONNUMERICIDENTIFIER"),a[l.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",c("MAINVERSION"),a[l.MAINVERSION]="("+a[l.NUMERICIDENTIFIER]+")\\.("+a[l.NUMERICIDENTIFIER]+")\\.("+a[l.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),a[l.MAINVERSIONLOOSE]="("+a[l.NUMERICIDENTIFIERLOOSE]+")\\.("+a[l.NUMERICIDENTIFIERLOOSE]+")\\.("+a[l.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),a[l.PRERELEASEIDENTIFIER]="(?:"+a[l.NUMERICIDENTIFIER]+"|"+a[l.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),a[l.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[l.NUMERICIDENTIFIERLOOSE]+"|"+a[l.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),a[l.PRERELEASE]="(?:-("+a[l.PRERELEASEIDENTIFIER]+"(?:\\."+a[l.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),a[l.PRERELEASELOOSE]="(?:-?("+a[l.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[l.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),a[l.BUILDIDENTIFIER]="[0-9A-Za-z-]+",c("BUILD"),a[l.BUILD]="(?:\\+("+a[l.BUILDIDENTIFIER]+"(?:\\."+a[l.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),a[l.FULLPLAIN]="v?"+a[l.MAINVERSION]+a[l.PRERELEASE]+"?"+a[l.BUILD]+"?",a[l.FULL]="^"+a[l.FULLPLAIN]+"$",c("LOOSEPLAIN"),a[l.LOOSEPLAIN]="[v=\\s]*"+a[l.MAINVERSIONLOOSE]+a[l.PRERELEASELOOSE]+"?"+a[l.BUILD]+"?",c("LOOSE"),a[l.LOOSE]="^"+a[l.LOOSEPLAIN]+"$",c("GTLT"),a[l.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),a[l.XRANGEIDENTIFIERLOOSE]=a[l.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),a[l.XRANGEIDENTIFIER]=a[l.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),a[l.XRANGEPLAIN]="[v=\\s]*("+a[l.XRANGEIDENTIFIER]+")(?:\\.("+a[l.XRANGEIDENTIFIER]+")(?:\\.("+a[l.XRANGEIDENTIFIER]+")(?:"+a[l.PRERELEASE]+")?"+a[l.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),a[l.XRANGEPLAINLOOSE]="[v=\\s]*("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:"+a[l.PRERELEASELOOSE]+")?"+a[l.BUILD]+"?)?)?",c("XRANGE"),a[l.XRANGE]="^"+a[l.GTLT]+"\\s*"+a[l.XRANGEPLAIN]+"$",c("XRANGELOOSE"),a[l.XRANGELOOSE]="^"+a[l.GTLT]+"\\s*"+a[l.XRANGEPLAINLOOSE]+"$",c("COERCE"),a[l.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),i[l.COERCERTL]=new RegExp(a[l.COERCE],"g"),c("LONETILDE"),a[l.LONETILDE]="(?:~>?)",c("TILDETRIM"),a[l.TILDETRIM]="(\\s*)"+a[l.LONETILDE]+"\\s+",i[l.TILDETRIM]=new RegExp(a[l.TILDETRIM],"g");c("TILDE"),a[l.TILDE]="^"+a[l.LONETILDE]+a[l.XRANGEPLAIN]+"$",c("TILDELOOSE"),a[l.TILDELOOSE]="^"+a[l.LONETILDE]+a[l.XRANGEPLAINLOOSE]+"$",c("LONECARET"),a[l.LONECARET]="(?:\\^)",c("CARETTRIM"),a[l.CARETTRIM]="(\\s*)"+a[l.LONECARET]+"\\s+",i[l.CARETTRIM]=new RegExp(a[l.CARETTRIM],"g");c("CARET"),a[l.CARET]="^"+a[l.LONECARET]+a[l.XRANGEPLAIN]+"$",c("CARETLOOSE"),a[l.CARETLOOSE]="^"+a[l.LONECARET]+a[l.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),a[l.COMPARATORLOOSE]="^"+a[l.GTLT]+"\\s*("+a[l.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),a[l.COMPARATOR]="^"+a[l.GTLT]+"\\s*("+a[l.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),a[l.COMPARATORTRIM]="(\\s*)"+a[l.GTLT]+"\\s*("+a[l.LOOSEPLAIN]+"|"+a[l.XRANGEPLAIN]+")",i[l.COMPARATORTRIM]=new RegExp(a[l.COMPARATORTRIM],"g");c("HYPHENRANGE"),a[l.HYPHENRANGE]="^\\s*("+a[l.XRANGEPLAIN]+")\\s+-\\s+("+a[l.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),a[l.HYPHENRANGELOOSE]="^\\s*("+a[l.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[l.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),a[l.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u<s;u++)n(u,a[u]),i[u]||(i[u]=new RegExp(a[u]));function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?i[l.LOOSE]:i[l.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof p))return new p(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?i[l.LOOSE]:i[l.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=d,t.valid=function(e,t){var n=d(e,t);return n?n.version:null},t.clean=function(e,t){var n=d(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),h(this.major,e.major)||h(this.minor,e.minor)||h(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);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":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new p(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(b(e,t))return null;var n=d(e),r=d(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},t.compareIdentifiers=h;var f=/^[0-9]+$/;function h(e,t){var n=f.test(e),r=f.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function m(e,t,n){return new p(e,n).compare(new p(t,n))}function g(e,t,n){return m(e,t,n)>0}function v(e,t,n){return m(e,t,n)<0}function b(e,t,n){return 0===m(e,t,n)}function y(e,t,n){return 0!==m(e,t,n)}function x(e,t,n){return m(e,t,n)>=0}function S(e,t,n){return m(e,t,n)<=0}function w(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 b(e,n,r);case"!=":return y(e,n,r);case">":return g(e,n,r);case">=":return x(e,n,r);case"<":return v(e,n,r);case"<=":return S(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function E(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof E){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof E))return new E(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===C?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return h(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=m,t.compareLoose=function(e,t){return m(e,t,!0)},t.compareBuild=function(e,t,n){var r=new p(e,n),o=new p(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return m(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=g,t.lt=v,t.eq=b,t.neq=y,t.gte=x,t.lte=S,t.cmp=w,t.Comparator=E;var C={};function k(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof k)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new k(e.raw,t);if(e instanceof E)return new k(e.value,t);if(!(this instanceof k))return new k(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function L(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function R(e){return!e||"x"===e.toLowerCase()||"*"===e}function O(e,t,n,r,o,i,a,l,s,c,u,d,p){return((t=R(n)?"":R(r)?">="+n+".0.0":R(o)?">="+n+"."+r+".0":">="+t)+" "+(l=R(s)?"":R(c)?"<"+(+s+1)+".0.0":R(u)?"<"+s+"."+(+c+1)+".0":d?"<="+s+"."+c+"."+u+"-"+d:"<="+l)).trim()}function I(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==C&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function T(e,t,n){try{t=new k(t,n)}catch(e){return!1}return t.test(e)}function _(e,t,n,r){var o,i,a,l,s;switch(e=new p(e,r),t=new k(t,r),n){case">":o=g,i=S,a=v,l=">",s=">=";break;case"<":o=v,i=x,a=g,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(T(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],d=null,f=null;if(u.forEach((function(e){e.semver===C&&(e=new E(">=0.0.0")),d=d||e,f=f||e,o(e.semver,d.semver,r)?d=e:a(e.semver,f.semver,r)&&(f=e)})),d.operator===l||d.operator===s)return!1;if((!f.operator||f.operator===l)&&i(e,f.semver))return!1;if(f.operator===s&&a(e,f.semver))return!1}return!0}E.prototype.parse=function(e){var t=this.options.loose?i[l.COMPARATORLOOSE]:i[l.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new p(n[2],this.options.loose):this.semver=C},E.prototype.toString=function(){return this.value},E.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return w(e,this.operator,this.semver,this.options)},E.prototype.intersects=function(e,t){if(!(e instanceof E))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new k(e.value,t),T(this.value,n,t));if(""===e.operator)return""===e.value||(n=new k(this.value,t),T(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),l=w(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=w(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||l||s},t.Range=k,k.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},k.prototype.toString=function(){return this.range},k.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[l.HYPHENRANGELOOSE]:i[l.HYPHENRANGE];e=e.replace(r,O),n("hyphen replace",e),e=e.replace(i[l.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[l.COMPARATORTRIM]),e=(e=(e=e.replace(i[l.TILDETRIM],"$1~")).replace(i[l.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[l.COMPARATORLOOSE]:i[l.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[l.CARETLOOSE]:i[l.CARET];return e.replace(r,(function(t,r,o,i,a){var l;return n("caret",e,t,r,o,i,a),R(r)?l="":R(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":R(i)?l="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),l="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),l="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",l),l}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[l.TILDELOOSE]:i[l.TILDE];return e.replace(r,(function(t,r,o,i,a){var l;return n("tilde",e,t,r,o,i,a),R(r)?l="":R(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":R(i)?l=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),l=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):l=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",l),l}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[l.XRANGELOOSE]:i[l.XRANGE];return e.replace(r,(function(r,o,i,a,l,s){n("xRange",e,r,o,i,a,l,s);var c=R(i),u=c||R(a),d=u||R(l),p=d;return"="===o&&p&&(o=""),s=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(u&&(a=0),l=0,">"===o?(o=">=",u?(i=+i+1,a=0,l=0):(a=+a+1,l=0)):"<="===o&&(o="<",u?i=+i+1:a=+a+1),r=o+i+"."+a+"."+l+s):u?r=">="+i+".0.0"+s+" <"+(+i+1)+".0.0"+s:d&&(r=">="+i+"."+a+".0"+s+" <"+i+"."+(+a+1)+".0"+s),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[l.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new E(e,this.options)}),this)},k.prototype.intersects=function(e,t){if(!(e instanceof k))throw new TypeError("a Range is required");return this.set.some((function(n){return L(n,t)&&e.set.some((function(e){return L(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new k(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},k.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(I(this.set[t],e,this.options))return!0;return!1},t.satisfies=T,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new k(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new k(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minVersion=function(e,t){e=new k(e,t);var n=new p("0.0.0");if(e.test(n))return n;if(n=new p("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!g(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new k(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return _(e,t,"<",n)},t.gtr=function(e,t,n){return _(e,t,">",n)},t.outside=_,t.prerelease=function(e,t){var n=d(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new k(e,n),t=new k(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[l.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[l.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[l.COERCERTL].lastIndex=-1}else n=e.match(i[l.COERCE]);if(null===n)return null;return d(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(MP,MP.exports);var qP=MP.exports;const zP={};function DP(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=o,l={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||qP.satisfies(e,a.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!zP[i]){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 a=(r||o.load)({name:e,version:t}),l=Promise.resolve(a);zP[i]=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 zP[i]}(l.name,l.version,t,o.load).then((e=>(n=n||NP(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=i({qInfo:{qType:l.name},visualization:l.name,version:l.version,showTitles:!0},JSON.parse(r));return t?(We(!0,n,e),n):i(i({},n),e)}))}};return l}function AP(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=DP({name:e,version:o},t,i),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 jP(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=AP(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(zP).forEach((t=>{t.split("__")[0]===e&&(zP[t]=void 0)}))}(e)}}}const FP={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()))},$P={context:{},load:()=>{},types:[],themes:[],anything:{},snapshot:FP};$P.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1};const BP=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(i({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},WP=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 HP=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Z(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let a=i(i({},t.context),{},{translator:n.translator});const[l]=function(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),i=U.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","4.1.0"),a.setAttribute("data-app-id",n.id),document.body.appendChild(a),r&&QS(r),dt.createRoot(a).render(U.createElement(JS,{ref:i,app:n,initialContext:r,renderCallback:t}));const l={},s=[];return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},removeCell(e){delete l[e]},add(e){(async()=>{await o,s.push(e),i.current.setComps(s)})()},remove(e){(async()=>{await o;const t=s.indexOf(e);-1!==t&&s.splice(t,1),i.current.setComps(s)})()},setMuiThemeName(e){(async()=>{await o,i.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&QS(e),i.current.setContext(e)})()},getAppSelections:async()=>(await o,i.current.getAppSelections())},i,o]}({app:e,context:a}),s=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=lt();return{setTheme:async o=>{let i=e.filter((e=>e.id===o))[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),st(ct,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:l});a.themeApi=s.externalAPI;const c={galaxy:{translator:n.translator,flags:W_(t.flags),deviceType:ut(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:l,config:t,public:c,context:a,types:null},d=jP({halo:u});t.types.forEach((e=>d.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=s.setTheme(t.context.theme),f=null,h=null;const m={render:async e=>(await p,e.id?B_(e,u):async function(e,t){let{type:n,version:r,fields:o,properties:i,options:a,plugins:l,element:s,extendProperties:c}=e,u={};const d=[];let p;try{const e=t.types.get({name:n,version:r});u=await e.initialProperties(i,c);const a=await e.supernova();o&&await CT({sn:a,properties:u,fields:o,children:d},t),i&&a&&a.qae.properties.onChange&&a.qae.properties.onChange.call({},u)}catch(e){p=e,u={qInfo:{qType:n},visualization:n}}const f=await t.app.createSessionObject(u);d.length>0&&await f.setFullPropertyTree({qProperty:u,qChildren:d}),tL.set(f.id,f);const h=nL(f);return z_(f,{options:a,plugins:l,element:s},t,p,(async()=>{await t.app.destroySessionObject(f.id),h()}))}(e,u)),create:async e=>D_(e,u,!1),generateProperties:async e=>D_(e,u,!0),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=i(i(i({},a),t),{},{translator:n.translator}),t.theme&&(p=s.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),l.context(a))},selections:async()=>(f||(f={mount(t){h||(h=function(e){let{element:t,app:n}=e;return xp.createPortal(U.createElement(zI,{app:n}),t,qI())}({element:t,app:e}),l.add(h))},unmount(){h&&(l.remove(h),h=null)}}),f),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:i="$",options:a={},renderedCallback:l}=e;return xp.createPortal(U.createElement(uT,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:i,options:a,renderedCallback:l}),t,qI())}({element:a,app:e,fieldIdentifier:t,qId:n,options:cT(i({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r}),l.add(this._instance)}))},unmount(){this._instance&&(l.remove(this._instance),this._instance=null)}};return cI(o),o},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d,popover(t,n,r){m._popoverInstance&&(l.remove(m._popoverInstance),m._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=i({},dT);return We(!0,t,e),t}(i({onPopoverClose:()=>m.emit("fieldPopoverClose")},r));m._popoverInstance=U.createElement(pT,{element:t,key:qI(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),l.add(m._popoverInstance)}}};return u.public.nebbie=m,u.types=d,cI(m),m}return r.createConfiguration=n=>e(((e,t)=>({context:BP(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:i({},t.snapshot||e.snapshot),types:WP(e.types,t.types),themes:WP(e.themes,t.themes),flags:BP(e.flags,t.flags),anything:BP(e.anything,t.anything)}))(t,n)),r.config=t,r}($P);function UP(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const VP=globalThis.crypto||{getRandomValues:()=>123456};function GP(){return e=>{const t=We({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^VP.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const n=t._mock;let r=t;return n&&(delete t._mock,r=We({},t,n)),Promise.resolve(i({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(r),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const KP=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},ZP=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,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];const l=KP(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},XP=["id","session"],QP=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function JP(e){return!QP.includes(e)}function YP(e){const t=KP(e.getLayout);return t.qInfo&&t.qInfo.qId}function eN(e,t){return e.reduce(((e,n)=>i(i({},e),function(e,t){let n=YP(e);const{delay:r}=t,{id:o,session:a}=e,l=s(e,XP);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]:i(i({id:n,session:KP(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(l).reduce(((e,t)=>{let[n,o]=t;return i(i({},e),{},{[n]:ZP(o,{async:JP(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function tN(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!YP(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function nN(){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(tN);const n=eN(e,t);return async e=>Promise.resolve(n[e])}function rN(){return()=>Promise.resolve({id:"app-layout"})}const oN={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new UP,r=new GP,o=new nN(e,t),i=new rN,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,getObject:o,getAppLayout:i};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},iN={generator:NP,hook:hP,theme:lt,locale:G};e.EnigmaMocker=oN,e.__DO_NOT_USE__=iN,e.conversion=AT,e.embed=HP,e.onContextMenu=function(e){const t=dP(++eP);t.value||(t.value=1,Y_.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=dP(++eP);t.value||(t.value=1,Y_.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=mP({action(){n._config.action.call(null)}});return n.component||(n.component=Y_,Y_.__hooks.actions.list.push(n)),bP((()=>{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=pP("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return pP("appLayout")},e.useConstraints=function(){return pP("constraints")},e.useDeviceType=function(){return pP("deviceType")},e.useEffect=gP,e.useElement=yP,e.useEmbed=function(){return pP("nebbie")},e.useEmitter=function(){return pP("emitter")},e.useGlobal=function(){const e=pP("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=dP(++eP);if(n.imperative||(n.imperative=!0),tP(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Y_.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return pP("interactions")},e.useKeyboard=function(){const e=pP("keyboardNavigation"),t=pP("focusHandler");if(!Y_.__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&&(SP(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Y_);Y_.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),xP(this))}.bind(Y_);Y_.__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(Y_);Y_.__hooks.accessibility.focusSelectionFunction=r}const n=Y_.__hooks.accessibility.focusFunction,r=Y_.__hooks.accessibility.exitFunction,o=Y_.__hooks.accessibility.focusSelectionFunction,[i,a]=mP({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Y_.__hooks.accessibility.setter=a,Y_.__hooks.accessibility.enabled=e,gP((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i},e.useLayout=function(){return pP("layout")},e.useMemo=bP,e.useModel=function(){const e=pP("model");return e&&e.session?e:void 0},e.useOptions=function(){return pP("options")},e.usePlugins=function(){return pP("plugins")},e.usePromise=function(e,t){const[n,r]=mP((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=dP(++eP);return o.component||(o.component=Y_),vP((()=>{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=yP(),t=Y_.__hooks.resizer,[n,r]=mP((()=>{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()),vP((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:i})))};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(){dP(++eP);const e=Y_.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return pP("selections")},e.useStaleLayout=function(){const e=pP("layout"),[t]=mP({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=mP,e.useTheme=function(){return pP("theme")},e.useTranslator=function(){return pP("translator")}}));
|
|
133
|
+
`),uE))),hE=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,size:a=40,style:l,thickness:s=3.6,value:c=0,variant:u="indeterminate"}=n,d=Lf(n,nE),p=kf({},n,{color:o,disableShrink:i,size:a,thickness:s,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return bf({root:["root",n,`color${Up(r)}`],svg:["svg"],circle:["circle",`circle${Up(n)}`,o&&"circleDisableShrink"]},tE,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((sE-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 Rm.jsx(dE,kf({className:$g(f.root,r),style:kf({width:a,height:a},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Rm.jsx(pE,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Rm.jsx(fE,{className:f.circle,style:h,ownerState:p,cx:sE,cy:sE,r:(sE-s)/2,fill:"none",strokeWidth:s})})}))}));var mE=hE;const gE=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],vE=Vv("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})=>kf({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),bE=Vv(Lw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),yE=H.forwardRef((function(e,t){var n,r,o,i,a,l;const s=$v({name:"MuiModal",props:e}),{BackdropComponent:c=bE,BackdropProps:u,classes:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:v={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:k=!1,keepMounted:L=!1,onBackdropClick:R,onClose:O,open:I,slotProps:T,slots:P,theme:_}=s,N=Lf(s,gE),[M,q]=H.useState(!0),z={container:m,closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:k,keepMounted:L,onBackdropClick:R,onClose:O,open:I},D=kf({},s,z,{exited:M}),A=null!=(n=null!=(r=null==P?void 0:P.root)?r:v.Root)?n:vE,j=null!=(o=null!=(i=null==P?void 0:P.backdrop)?i:v.Backdrop)?o:c,F=null!=(a=null==T?void 0:T.root)?a:b.root,B=null!=(l=null==T?void 0:T.backdrop)?l:b.backdrop;return Rm.jsx(Gy,kf({slots:{root:A,backdrop:j},slotProps:{root:()=>kf({},nb(F,D),!Qv(A)&&{as:g,theme:_},{className:$g(p,null==F?void 0:F.className,null==d?void 0:d.root,!D.open&&D.exited&&(null==d?void 0:d.hidden))}),backdrop:()=>kf({},u,nb(B,D),{className:$g(null==B?void 0:B.className,null==u?void 0:u.className,null==d?void 0:d.backdrop)})},onTransitionEnter:()=>q(!1),onTransitionExited:()=>q(!0),ref:t},N,z,{children:h}))}));var xE=yE;function SE(e){return wf("MuiDivider",e)}var wE=Ef("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const EE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],CE=Vv("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})=>kf({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)`:rv(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})=>kf({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>kf({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>kf({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>kf({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),kE=Vv("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>kf({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)`}))),LE=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Lf(n,EE),h=kf({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return bf({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},SE,r)})(h);return Rm.jsx(CE,kf({as:a,className:$g(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?Rm.jsx(kE,{className:m.wrapper,ownerState:h,children:o}):null}))}));var RE=LE;function OE(e){return wf("MuiFormControlLabel",e)}var IE=Ef("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const TE=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],PE=Vv("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${IE.label}`]:t.label},t.root,t[`labelPlacement${Up(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>kf({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${IE.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},{[`& .${IE.label}`]:{[`&.${IE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),_E=Vv("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${IE.error}`]:{color:(e.vars||e).palette.error.main}}))),NE=H.forwardRef((function(e,t){var n,r;const o=$v({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:a={},control:l,disabled:s,disableTypography:c,label:u,labelPlacement:d="end",required:p,slotProps:f={}}=o,h=Lf(o,TE),m=rw(),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=tw({props:o,muiFormControl:m,states:["error"]}),x=kf({},o,{disabled:g,labelPlacement:d,required:v,error:y.error}),S=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return bf({root:["root",n&&"disabled",`labelPlacement${Up(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},OE,t)})(x),w=null!=(r=f.typography)?r:a.typography;let E=u;return null==E||E.type===XS||c||(E=Rm.jsx(XS,kf({component:"span"},w,{className:$g(S.label,null==w?void 0:w.className),children:E}))),Rm.jsxs(PE,kf({className:$g(S.root,i),ownerState:x,ref:t},h,{children:[H.cloneElement(l,b),E,v&&Rm.jsxs(_E,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}))}));var ME=NE;var qE=H.createContext();function zE(e){return wf("MuiGrid",e)}const DE=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],AE=Ef("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}`)),...DE.map((e=>`grid-xs-${e}`)),...DE.map((e=>`grid-sm-${e}`)),...DE.map((e=>`grid-md-${e}`)),...DE.map((e=>`grid-lg-${e}`)),...DE.map((e=>`grid-xl-${e}`))]),jE=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function FE(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function BE({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 WE=Vv("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,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}(a,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,i&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((({ownerState:e})=>kf({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 Bm({theme:e},Wm({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${AE.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=BE({breakpoints:e.breakpoints.values,values:t})),o=Bm({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:`-${FE(i)}`,[`& > .${AE.item}`]:{paddingTop:FE(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${AE.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=BE({breakpoints:e.breakpoints.values,values:t})),o=Bm({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${FE(i)})`,marginLeft:`-${FE(i)}`,[`& > .${AE.item}`]:{paddingLeft:FE(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${AE.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Wm({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof a?a[o]:a;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} + ${FE(n)})`;c={flexBasis:e,maxWidth:e}}}i=kf({flexBasis:s,flexGrow:0,maxWidth:s},c)}return 0===e.breakpoints.values[o]?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r}),{})}));const $E=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,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}(i,s));const u=[];s.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return bf({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]},zE,t)},HE=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiGrid"}),{breakpoints:r}=Wv(),o=Bg(n),{className:i,columns:a,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=Lf(o,jE),v=p||f,b=l||f,y=H.useContext(qE),x=c?a||12:y,S={},w=kf({},g);r.keys.forEach((e=>{null!=g[e]&&(S[e]=g[e],delete w[e])}));const E=kf({},o,{columns:x,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:f},S,{breakpoints:r.keys}),C=$E(E);return Rm.jsx(qE.Provider,{value:x,children:Rm.jsx(WE,kf({ownerState:E,className:$g(C.root,i),as:s,ref:t},w))})}));var UE=HE;const VE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function GE(e){return`scale(${e}, ${e**2})`}const KE={entering:{opacity:1,transform:GE(1)},entered:{opacity:1,transform:"none"}},ZE="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),XE=H.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=fx}=e,g=Lf(e,VE),v=H.useRef(),b=H.useRef(),y=Wv(),x=H.useRef(null),S=of(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)=>{PS(e);const{duration:n,delay:r,easing:o}=_S({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:ZE?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),k=w(s),L=w(p),R=w((e=>{const{duration:t,delay:n,easing:r}=_S({style:f,timeout:h,easing:i},{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:ZE?o:.666*o,delay:ZE?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=GE(.75),u&&u(e)})),O=w(d);return H.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Rm.jsx(m,kf({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:R,onExited:O,onExiting:L,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>H.cloneElement(o,kf({style:kf({opacity:0,transform:GE(.75),visibility:"exited"!==e||a?void 0:"hidden"},KE[e],f,o.props.style),ref:S},t))}))}));XE.muiSupportAuto=!0;var QE=XE;function JE(e){return wf("MuiIcon",e)}Ef("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const YE=["baseClassName","className","color","component","fontSize"],eC=Vv("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Up(n.color)}`],t[`fontSize${Up(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]}))),tC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:i="inherit",component:a="span",fontSize:l="medium"}=n,s=Lf(n,YE),c=kf({},n,{baseClassName:r,color:i,component:a,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return bf({root:["root","inherit"!==t&&`color${Up(t)}`,`fontSize${Up(n)}`]},JE,r)})(c);return Rm.jsx(eC,kf({as:a,className:$g(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));tC.muiName="Icon";var nC=tC;function rC(e){return wf("MuiInputAdornment",e)}var oC,iC=Ef("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const aC=["children","className","component","disablePointerEvents","disableTypography","position","variant"],lC=Vv("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Up(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>kf({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${iC.positionStart}&:not(.${iC.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),sC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Lf(n,aC),d=rw()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=kf({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:s,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return bf({root:["root",n&&"disablePointerEvents",o&&`position${Up(o)}`,a,r&&"hiddenLabel",i&&`size${Up(i)}`]},rC,t)})(f);return Rm.jsx(nw.Provider,{value:null,children:Rm.jsx(lC,kf({as:i,ownerState:f,className:$g(h.root,o),ref:t},u,{children:"string"!=typeof r||l?Rm.jsxs(H.Fragment,{children:["start"===s?oC||(oC=Rm.jsx("span",{className:"notranslate",children:""})):null,r]}):Rm.jsx(XS,{color:"text.secondary",children:r})}))})}));var cC=sC;var uC=H.createContext({});function dC(e){return wf("MuiList",e)}Ef("MuiList",["root","padding","dense","subheader"]);const pC=["children","className","component","dense","disablePadding","subheader"],fC=Vv("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})=>kf({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),hC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,c=Lf(n,pC),u=H.useMemo((()=>({dense:a})),[a]),d=kf({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bf({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},dC,t)})(d);return Rm.jsx(uC.Provider,{value:u,children:Rm.jsxs(fC,kf({as:i,className:$g(p.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));var mC=hC;function gC(e){return wf("MuiListItem",e)}var vC=Ef("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var bC=Ef("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function yC(e){return wf("MuiListItemSecondaryAction",e)}Ef("MuiListItemSecondaryAction",["root","disableGutters"]);const xC=["className"],SC=Vv("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>kf({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),wC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Lf(n,xC),i=kf({},n,{disableGutters:H.useContext(uC).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return bf({root:["root",t&&"disableGutters"]},yC,n)})(i);return Rm.jsx(SC,kf({className:$g(a.root,r),ownerState:i,ref:t},o))}));wC.muiName="ListItemSecondaryAction";var EC=wC;const CC=["className"],kC=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],LC=Vv("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})=>kf({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&kf({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${bC.root}`]:{paddingRight:48}},{[`&.${vC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vC.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"}},[`&.${vC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rv(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})`:rv(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),RC=Vv("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),OC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,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=Lf(n.ContainerProps,CC),C=Lf(n,kC),k=H.useContext(uC),L=H.useMemo((()=>({dense:f||k.dense||!1,alignItems:r,disableGutters:m})),[r,k.dense,f,m]),R=H.useRef(null);Jp((()=>{o&&R.current&&R.current.focus()}),[o]);const O=H.Children.toArray(a),I=O.length&&Kp(O[O.length-1],["ListItemSecondaryAction"]),T=kf({},n,{alignItems:r,autoFocus:o,button:i,dense:L.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:I,selected:x}),P=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return bf({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},gC,r)})(T),_=of(R,t),N=w.root||c.Root||LC,M=S.root||u.root||{},q=kf({className:$g(P.root,M.className,l),disabled:h},C);let z=s||"li";return i&&(q.component=s||"div",q.focusVisibleClassName=$g(vC.focusVisible,b),z=Fx),I?(z=q.component||s?z:"div","li"===d&&("li"===z?z="div":"li"===q.component&&(q.component="div")),Rm.jsx(uC.Provider,{value:L,children:Rm.jsxs(RC,kf({as:d,className:$g(P.container,p),ref:_,ownerState:T},E,{children:[Rm.jsx(N,kf({},M,!Qv(N)&&{as:z,ownerState:kf({},T,M.ownerState)},q,{children:O})),O.pop()]}))})):Rm.jsx(uC.Provider,{value:L,children:Rm.jsxs(N,kf({},M,{as:z,ref:_},!Qv(N)&&{ownerState:kf({},T,M.ownerState)},q,{children:[O,y&&Rm.jsx(EC,{children:y})]}))})}));var IC=OC;function TC(e){return wf("MuiListItemIcon",e)}var PC=Ef("MuiListItemIcon",["root","alignItemsFlexStart"]);const _C=["className"],NC=Vv("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})=>kf({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),MC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Lf(n,_C),i=kf({},n,{alignItems:H.useContext(uC).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return bf({root:["root","flex-start"===t&&"alignItemsFlexStart"]},TC,n)})(i);return Rm.jsx(NC,kf({className:$g(a.root,r),ownerState:i,ref:t},o))}));var qC=MC;var zC=Ef("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const DC=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function AC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function jC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function FC(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function BC(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&FC(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const WC=H.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Lf(e,DC),p=H.useRef(null),f=H.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jp((()=>{r&&p.current.focus()}),[r]),H.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${mf(Zp(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=of(p,t);let m=-1;H.Children.forEach(i,((e,t)=>{H.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>=i.length&&(m=-1)))}));const g=H.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),H.cloneElement(e,t)}return e}));return Rm.jsx(mC,kf({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Zp(t).activeElement;if("ArrowDown"===n)e.preventDefault(),BC(t,r,s,l,AC);else if("ArrowUp"===n)e.preventDefault(),BC(t,r,s,l,jC);else if("Home"===n)e.preventDefault(),BC(t,null,s,l,AC);else if("End"===n)e.preventDefault(),BC(t,null,s,l,jC);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&FC(r,o);o.previousKeyMatched&&(s||BC(t,r,!1,l,AC,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));var $C=WC;function HC(e){return wf("MuiPopover",e)}Ef("MuiPopover",["root","paper"]);const UC=["onEntering"],VC=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function GC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function KC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ZC(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function XC(e){return"function"==typeof e?e():e}const QC=Vv(xE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JC=Vv(DS,{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}),YC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:s,className:c,container:u,elevation:d=8,marginThreshold:p=16,open:f,PaperProps:h={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:g=QE,transitionDuration:v="auto",TransitionProps:{onEntering:b}={}}=n,y=Lf(n.TransitionProps,UC),x=Lf(n,VC),S=H.useRef(),w=of(S,h.ref),E=kf({},n,{anchorOrigin:i,anchorReference:l,elevation:d,marginThreshold:p,PaperProps:h,transformOrigin:m,TransitionComponent:g,transitionDuration:v,TransitionProps:y}),C=(e=>{const{classes:t}=e;return bf({root:["root"],paper:["paper"]},HC,t)})(E),k=H.useCallback((()=>{if("anchorPosition"===l)return a;const e=XC(o),t=(e&&1===e.nodeType?e:Zp(S.current).body).getBoundingClientRect();return{top:t.top+GC(t,i.vertical),left:t.left+KC(t,i.horizontal)}}),[o,i.horizontal,i.vertical,a,l]),L=H.useCallback((e=>({vertical:GC(e,m.vertical),horizontal:KC(e,m.horizontal)})),[m.horizontal,m.vertical]),R=H.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=L(t);if("none"===l)return{top:null,left:null,transformOrigin:ZC(n)};const r=k();let i=r.top-n.vertical,a=r.left-n.horizontal;const s=i+t.height,c=a+t.width,u=Xp(XC(o)),d=u.innerHeight-p,f=u.innerWidth-p;if(i<p){const e=i-p;i-=e,n.vertical+=e}else if(s>d){const e=s-d;i-=e,n.vertical+=e}if(a<p){const e=a-p;a-=e,n.horizontal+=e}else if(c>f){const e=c-f;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:ZC(n)}}),[o,l,k,L,p]),[O,I]=H.useState(f),T=H.useCallback((()=>{const e=S.current;if(!e)return;const t=R(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[R]);H.useEffect((()=>{f&&T()})),H.useImperativeHandle(r,(()=>f?{updatePosition:()=>{T()}}:null),[f,T]),H.useEffect((()=>{if(!f)return;const e=Gp((()=>{T()})),t=Xp(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,f,T]);let P=v;"auto"!==v||g.muiSupportAuto||(P=void 0);const _=u||(o?Zp(XC(o)).body:void 0);return Rm.jsx(QC,kf({BackdropProps:{invisible:!0},className:$g(C.root,c),container:_,open:f,ref:t,ownerState:E},x,{children:Rm.jsx(g,kf({appear:!0,in:f,onEntering:(e,t)=>{b&&b(e,t),T()},onExited:()=>{I(!1)},timeout:P},y,{children:Rm.jsx(JC,kf({elevation:d},h,{ref:w,className:$g(C.paper,h.className)},O?void 0:{style:kf({},h.style,{opacity:0})},{ownerState:E,children:s}))}))}))}));var ek=YC;function tk(e){return wf("MuiMenuItem",e)}var nk=Ef("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const rk=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ok=Vv(Fx,{shouldForwardProp:e=>Hv(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})=>kf({},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"}},[`&.${nk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${nk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rv(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})`:rv(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${nk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${wE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${wE.inset}`]:{marginLeft:52},[`& .${zC.root}`]:{marginTop:0,marginBottom:0},[`& .${zC.inset}`]:{paddingLeft:36},[`& .${PC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&kf({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${PC.root} svg`]:{fontSize:"1.25rem"}})))),ik=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:d}=n,p=Lf(n,rk),f=H.useContext(uC),h=H.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=H.useRef(null);Jp((()=>{r&&m.current&&m.current.focus()}),[r]);const g=kf({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return kf({},a,bf({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},tk,a))})(n),b=of(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),Rm.jsx(uC.Provider,{value:h,children:Rm.jsx(ok,kf({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:$g(v.focusVisible,s),className:$g(v.root,d)},p,{ownerState:g,classes:v}))})}));var ak,lk=ik;const sk=["children","classes","className","label","notched"],ck=Vv("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),uk=Vv("legend")((({ownerState:e,theme:t})=>kf({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&&kf({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 dk=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],pk=Vv(dw,{shouldForwardProp:e=>Hv(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:cw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return kf({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vw.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vw.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${vw.focused} .${vw.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${vw.error} .${vw.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${vw.disabled} .${vw.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&kf({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),fk=Vv((function(e){const{className:t,label:n,notched:r}=e,o=Lf(e,sk),i=null!=n&&""!==n,a=kf({},e,{notched:r,withLabel:i});return Rm.jsx(ck,kf({"aria-hidden":!0,className:t,ownerState:a},o,{children:Rm.jsx(uk,{ownerState:a,children:i?Rm.jsx("span",{children:n}):ak||(ak=Rm.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}})),hk=Vv(pw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:uw})((({theme:e,ownerState:t})=>kf({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}))),mk=H.forwardRef((function(e,t){var n,r,o,i,a;const l=$v({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=Lf(l,dk),v=(e=>{const{classes:t}=e;return kf({},t,bf({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gw,t))})(l),b=rw(),y=tw({props:l,muiFormControl:b,states:["required"]}),x=kf({},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:pk,w=null!=(o=null!=(i=h.input)?i:s.Input)?o:hk;return Rm.jsx(mw,kf({slots:{root:S,input:w},renderSuffix:e=>Rm.jsx(fk,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Rm.jsxs(H.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:kf({},v,{notchedOutline:null})}))}));mk.muiName="Input";var gk=mk,vk=OS(Rm.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"),bk=OS(Rm.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 yk=Vv("span")({position:"relative",display:"flex"}),xk=Vv(vk)({transform:"scale(1)"}),Sk=Vv(bk)((({theme:e,ownerState:t})=>kf({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 wk(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=kf({},e,{checked:t});return Rm.jsxs(yk,{className:n.root,ownerState:o,children:[Rm.jsx(xk,{fontSize:r,className:n.background,ownerState:o}),Rm.jsx(Sk,{fontSize:r,className:n.dot,ownerState:o})]})}var Ek=H.createContext(void 0);function Ck(e){return wf("MuiRadio",e)}var kk=Ef("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const Lk=["checked","checkedIcon","color","icon","name","onChange","size","className"],Rk=Vv(Ww,{shouldForwardProp:e=>Hv(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Up(n.color)}`]]}})((({theme:e,ownerState:t})=>kf({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})`:rv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${kk.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${kk.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Ok=Rm.jsx(wk,{checked:!0}),Ik=Rm.jsx(wk,{}),Tk=H.forwardRef((function(e,t){var n,r;const o=$v({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:a=Ok,color:l="primary",icon:s=Ik,name:c,onChange:u,size:d="medium",className:p}=o,f=Lf(o,Lk),h=kf({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n}=e;return kf({},t,bf({root:["root",`color${Up(n)}`]},Ck,t))})(h),g=H.useContext(Ek);let v=i;const b=Vp(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)),Rm.jsx(Rk,kf({type:"radio",icon:H.cloneElement(s,{fontSize:null!=(n=Ik.props.fontSize)?n:d}),checkedIcon:H.cloneElement(a,{fontSize:null!=(r=Ok.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:$g(m.root,p)},f))}));var Pk=Tk;function _k(e){return wf("MuiTooltip",e)}var Nk=Ef("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const Mk=["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 qk=Vv(ew,{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})=>kf({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Nk.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Nk.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Nk.arrow}`]:kf({},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"] .${Nk.arrow}`]:kf({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),zk=Vv("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${Up(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return kf({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:rv(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},{[`.${Nk.popper}[data-popper-placement*="left"] &`]:kf({transformOrigin:"right center"},t.isRtl?kf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):kf({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Nk.popper}[data-popper-placement*="right"] &`]:kf({transformOrigin:"left center"},t.isRtl?kf({marginRight:"14px"},t.touch&&{marginRight:"24px"}):kf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Nk.popper}[data-popper-placement*="top"] &`]:kf({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Nk.popper}[data-popper-placement*="bottom"] &`]:kf({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),Dk=Vv("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:rv(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ak=!1,jk=null,Fk={x:0,y:0};function Bk(e,t){return n=>{t&&t(n),e(n)}}const Wk=H.forwardRef((function(e,t){var n,r,o,i,a,l,s,c,u,d,p,f,h,m,g,v,b,y,x;const S=$v({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:C={},componentsProps:k={},describeChild:L=!1,disableFocusListener:R=!1,disableHoverListener:O=!1,disableInteractive:I=!1,disableTouchListener:T=!1,enterDelay:P=100,enterNextDelay:_=0,enterTouchDelay:N=700,followCursor:M=!1,id:q,leaveDelay:z=0,leaveTouchDelay:D=1500,onClose:A,onOpen:j,open:F,placement:B="bottom",PopperComponent:W,PopperProps:$={},slotProps:U={},slots:V={},title:G,TransitionComponent:K=QE,TransitionProps:Z}=S,X=Lf(S,Mk),Q=Wv(),J="rtl"===Q.direction,[Y,ee]=H.useState(),[te,ne]=H.useState(null),re=H.useRef(!1),oe=I||M,ie=H.useRef(),ae=H.useRef(),le=H.useRef(),se=H.useRef(),[ce,ue]=nf({controlled:F,default:!1,name:"Tooltip",state:"open"});let de=ce;const pe=tf(q),fe=H.useRef(),he=H.useCallback((()=>{void 0!==fe.current&&(document.body.style.WebkitUserSelect=fe.current,fe.current=void 0),clearTimeout(se.current)}),[]);H.useEffect((()=>()=>{clearTimeout(ie.current),clearTimeout(ae.current),clearTimeout(le.current),he()}),[he]);const me=e=>{clearTimeout(jk),Ak=!0,ue(!0),j&&!de&&j(e)},ge=rf((e=>{clearTimeout(jk),jk=setTimeout((()=>{Ak=!1}),800+z),ue(!1),A&&de&&A(e),clearTimeout(ie.current),ie.current=setTimeout((()=>{re.current=!1}),Q.transitions.duration.shortest)})),ve=e=>{re.current&&"touchstart"!==e.type||(Y&&Y.removeAttribute("title"),clearTimeout(ae.current),clearTimeout(le.current),P||Ak&&_?ae.current=setTimeout((()=>{me(e)}),Ak?_:P):me(e))},be=e=>{clearTimeout(ae.current),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),z)},{isFocusVisibleRef:ye,onBlur:xe,onFocus:Se,ref:we}=hf(),[,Ee]=H.useState(!1),Ce=e=>{xe(e),!1===ye.current&&(Ee(!1),be(e))},ke=e=>{Y||ee(e.currentTarget),Se(e),!0===ye.current&&(Ee(!0),ve(e))},Le=e=>{re.current=!0;const t=E.props;t.onTouchStart&&t.onTouchStart(e)},Re=ve,Oe=be,Ie=e=>{Le(e),clearTimeout(le.current),clearTimeout(ie.current),he(),fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.current=setTimeout((()=>{document.body.style.WebkitUserSelect=fe.current,ve(e)}),N)},Te=e=>{E.props.onTouchEnd&&E.props.onTouchEnd(e),he(),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),D)};H.useEffect((()=>{if(de)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ge(e)}}),[ge,de]);const Pe=of(E.ref,we,ee,t);G||0===G||(de=!1);const _e=H.useRef(),Ne={},Me="string"==typeof G;L?(Ne.title=de||!Me||O?null:G,Ne["aria-describedby"]=de?pe:null):(Ne["aria-label"]=Me?G:null,Ne["aria-labelledby"]=de&&!Me?pe:null);const qe=kf({},Ne,X,E.props,{className:$g(X.className,E.props.className),onTouchStart:Le,ref:Pe},M?{onMouseMove:e=>{const t=E.props;t.onMouseMove&&t.onMouseMove(e),Fk={x:e.clientX,y:e.clientY},_e.current&&_e.current.update()}}:{}),ze={};T||(qe.onTouchStart=Ie,qe.onTouchEnd=Te),O||(qe.onMouseOver=Bk(Re,qe.onMouseOver),qe.onMouseLeave=Bk(Oe,qe.onMouseLeave),oe||(ze.onMouseOver=Re,ze.onMouseLeave=Oe)),R||(qe.onFocus=Bk(ke,qe.onFocus),qe.onBlur=Bk(Ce,qe.onBlur),oe||(ze.onFocus=ke,ze.onBlur=Ce));const De=H.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=$.popperOptions)&&e.modifiers&&(t=t.concat($.popperOptions.modifiers)),kf({},$.popperOptions,{modifiers:t})}),[te,$]),Ae=kf({},S,{isRtl:J,arrow:w,disableInteractive:oe,placement:B,PopperComponentProp:W,touch:re.current}),je=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return bf({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Up(i.split("-")[0])}`],arrow:["arrow"]},_k,t)})(Ae),Fe=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:qk,Be=null!=(o=null!=(i=null!=(a=V.transition)?a:C.Transition)?i:K)?o:QE,We=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:zk,$e=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:Dk,He=Jv(Fe,kf({},$,null!=(d=U.popper)?d:k.popper,{className:$g(je.popper,null==$?void 0:$.className,null==(p=null!=(f=U.popper)?f:k.popper)?void 0:p.className)}),Ae),Ue=Jv(Be,kf({},Z,null!=(h=U.transition)?h:k.transition),Ae),Ve=Jv(We,kf({},null!=(m=U.tooltip)?m:k.tooltip,{className:$g(je.tooltip,null==(g=null!=(v=U.tooltip)?v:k.tooltip)?void 0:g.className)}),Ae),Ge=Jv($e,kf({},null!=(b=U.arrow)?b:k.arrow,{className:$g(je.arrow,null==(y=null!=(x=U.arrow)?x:k.arrow)?void 0:y.className)}),Ae);return Rm.jsxs(H.Fragment,{children:[H.cloneElement(E,qe),Rm.jsx(Fe,kf({as:null!=W?W:ew,placement:B,anchorEl:M?{getBoundingClientRect:()=>({top:Fk.y,left:Fk.x,right:Fk.x,bottom:Fk.y,width:0,height:0})}:Y,popperRef:_e,open:!!Y&&de,id:pe,transition:!0},ze,He,{popperOptions:De,children:({TransitionProps:e})=>Rm.jsx(Be,kf({timeout:Q.transitions.duration.shorter},e,Ue,{children:Rm.jsxs(We,kf({},Ve,{children:[G,w?Rm.jsx($e,kf({},Ge,{ref:ne})):null]}))}))}))]})}));var $k=Wk;const[Hk,Uk]=uS({}),[Vk,Gk]=uS({}),[Kk,Zk]=uS({}),[Xk,Qk]=uS({}),[Jk,Yk]=uS({}),[,eL]=uS({}),tL=e=>{let{type:t,value:n}=e;const r=eL.get(n.id);eL.set(n.id,{});const o=()=>{Gk.clear(n.id),Yk.set(n.id,{}),Yk.dispatch(!0)},i=()=>{n.removeListener("changed",o),Uk.clear(n.id),Gk.clear(n.id),Zk.clear(n.id),Qk.clear(n.id),Yk.clear(n.id),eL.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[nL,rL]=uS({},tL),oL=e=>{const t=tL({type:"SET",value:e});return()=>{t(),rL.clear(e.id)}};function iL(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=nL(),[o]=Kk(),[i,a]=H.useState();let l;n&&(l=o.get(n));for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];return H.useEffect((()=>{if(!t)return;(async()=>{if(!l){const r=t.createSessionObject(e);l=r,o.set(n,l)}const i=await l;r.set(n,i),a(i)})()}),[t,...c]),[i]}const aL={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function lL(e){return iL(aL,e)}const sL=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=i(i({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:i({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=i(i({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let l=n.get(r);return l||(l={}),l[o]=a,n.set(r,l),a};function cL(e,t){const n=e?"".concat(e.id):null,[r]=Hk(),[o,i]=H.useReducer(sL,n?r.get(n):null),[a]=Jk(),[l]=Vk();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let a=s[t];if(!a||a&&a.rpcRetry){a={rpc:e[t](),rpcRetry:!1},s[t]=a,i({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{const o=await a.rpc;i({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(a.rpcRetry||(a.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),i({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return H.useEffect((()=>{e&&c()}),[e,a.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function uL(e){return cL(e,"getLayout")}function dL(e){return cL(e,"getAppLayout")}function pL(){const[e,t]=H.useState(),[n,r]=H.useState(),o=H.useCallback((e=>{e&&t(e)}),[]),i=()=>{const{left:t,top:n,width:o,height:i}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:i})};return H.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(i);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}}}),[e]),[o,n,e]}function fL(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function hL(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const a=i({fontSize:fL(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return U.createElement("i",{style:a},U.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 U.createElement(n,l({key:t},r))}))))}var mL=e=>hL((e=>i(i({},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 gL=e=>hL((e=>i(i({},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));var vL=e=>hL((e=>i(i({},e),{},{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"}}]}))(e));var bL=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}}(),yL=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},xL=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,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=yL(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),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},yL(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),bL(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,i=n.minimumBatchSize,a=void 0===i?10:i,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,i=e.stopIndex,a=[],l=null,s=null,c=o;c<=i;c++)t(c)?null!==s&&(a.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;a.push(l,s)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,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],i=e[r+1],a=n(o,i);null!=a&&a.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:i})){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}(H.PureComponent);const SL=["S","XS"],wL=e=>e.reduce(((e,t)=>e.concat(t)));function EL(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!SL.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return wL(t)}async function CL(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let i=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{i=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){i=!1}i||(o?t.cancel():t.clear())}return i}const kL="RowColumn",LL={row:"".concat(kL,"-row"),rowBorderBottom:"".concat(kL,"-rowBorderBottom"),column:"".concat(kL,"-column"),fieldRoot:"".concat(kL,"-fieldRoot"),cell:"".concat(kL,"-cell"),labelText:"".concat(kL,"-labelText"),labelDense:"".concat(kL,"-labelDense"),highlighted:"".concat(kL,"-highlighted"),checkboxLabel:"".concat(kL,"-checkboxLabel"),icon:"".concat(kL,"-icon"),S:"".concat(kL,"-S"),XS:"".concat(kL,"-XS"),A:"".concat(kL,"-A"),X:"".concat(kL,"-X"),frequencyCount:"".concat(kL,"-frequencyCount"),barContainer:"".concat(kL,"-barContainer"),bar:"".concat(kL,"-bar"),barSelected:"".concat(kL,"-barSelected"),barWithCheckbox:"".concat(kL,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(kL,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(kL,"-excludedTextWithCheckbox")},RL=".".concat(LL.fieldRoot),OL=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function IL(e){var t,n;let{selectionState:r,selections:o,checkboxes:i=!1,doc:a=document,loaderRef:l}=e;const s=H.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});H.useEffect((()=>{var e,t;if(null===(e=l.current)||void 0===e||null===(t=e._listRef)||void 0===t||!t._outerRef)return;const n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=e=>e.preventDefault(),i=l.current._listRef._outerRef;return i.addEventListener("gesturestart",n),i.addEventListener("gesturechange",r),i.addEventListener("gestureend",o),()=>{i.removeEventListener("gesturestart",n),i.removeEventListener("gesturechange",r),i.removeEventListener("gestureend",o)}}),[null===(t=l.current)||void 0===t||null===(n=t._listRef)||void 0===n?void 0:n._outerRef]);const c=()=>(r.setSelectableValuesUpdating(),CL({selections:o,elemNumbers:s.current.elemNumbers,isSingleSelect:r.isSingleSelect,toggle:s.current.toggle})),u=(e,t)=>{const n=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 wL(t)}(r.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],n)},d=e=>{const{startElemNumber:t}=s.current;if(t===e)return;const n=u(s.current.startElemNumber,e);r.updateItems(n,!0,s.current.elemNumbers)},p=H.useCallback((e=>{if(r.selectDisabled())return;const t=+e.target.getAttribute("data-n"),n=!r.isSingleSelect&&OL(e.nativeEvent);s.current.elemNumbers=[t],s.current.toggle=n,n||r.clearItemStates(!0),r.updateItem(t),s.current.active=!1,c()}),[]),f=H.useCallback((e=>{if(0!==e.button||r.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),n=!r.isSingleSelect&&OL(e);s.current.isRange=!1,s.current.startElemNumber=t,s.current.elemNumbers=[t],s.current.toggle=n,s.current.active=!0,n||r.clearItemStates(!0),r.updateItem(t),r.isSingleSelect&&(s.current.active=!1,c()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),h=H.useCallback((e=>{if(0===e.button&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");d(t)}c()}}),[]),m=H.useCallback((e=>{0===e.button&&s.current.active&&(s.current.active=!1,c())}),[]),g=H.useCallback((e=>{if(!s.current.active)return;s.current.isRange||(s.current.isRange=!0,r.isSelected(s.current.startElemNumber)||(r.updateItem(s.current.startElemNumber,!0),s.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");d(t)}),[]),v=H.useCallback((e=>{var t,n,o,i;if(s.current.active||s.current.isRange||r.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void c();const a=Number(null===(t=e.touches[0].target)||void 0===t||null===(n=t.closest(RL))||void 0===n?void 0:n.getAttribute("data-n")),l=Number(null===(o=e.touches[1].target)||void 0===o||null===(i=o.closest(RL))||void 0===i?void 0:i.getAttribute("data-n"));if(Number.isNaN(a)||Number.isNaN(a))return void c();s.current.active=!0;u(a,l).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[a,l]}),[]),b=H.useCallback((()=>{if(2!==s.current.touchElemNumbers.length)return;if(s.current.touchRangeSmall)return s.current.touchRangeSmall=!1,s.current.touchElemNumbers=[],void(s.current.active=!1);const[e,t]=s.current.touchElemNumbers;s.current.startElemNumber=e,d(t),s.current.touchElemNumbers=[],s.current.active=!1,s.current.toggle=!0,c()}),[]);H.useEffect((()=>(a.addEventListener("mouseup",m),()=>{a.removeEventListener("mouseup",m)})),[m]),H.useEffect((()=>{const e=()=>{r.clearItemStates(!1)},t=()=>{r.clearItemStates(!0),r.triggerStateChanged()};return o.on("clearItemStates",e),o.on("deactivated",e),o.on("cleared",t),()=>{o.removeListener("clearItemStates",e),o.removeListener("deactivated",e),o.removeListener("cleared",t)}}),[o]);const y={};return i?Object.assign(y,{onChange:p}):Object.assign(y,{onMouseUp:h,onMouseDown:f,onMouseEnter:g,onTouchStart:v,onTouchEnd:b}),{interactionEvents:y,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=!r.isSingleSelect&&OL(null==n?void 0:n.nativeEvent);i||r.clearItemStates(!0);const a=[];return r.updateItems(e,t,a),r.setSelectableValuesUpdating(),CL({selections:o,elemNumbers:t?a:e,isSingleSelect:r.isSingleSelect,toggle:i})}}}const TL=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var PL=e=>hL(TL(e));const _L=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,NL=e=>e?"A"===e.qState:null,ML=e=>{let{cell:t,checkboxes:n}=e;return(NL(t)||_L(t))&&n},qL=e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:i}=e;const a=[t?LL.column:LL.row];return n||a.push(LL.rowBorderBottom),o?(r||("XS"===o.qState?a.push(i?LL.XS:LL.S):"S"===o.qState||"L"===o.qState?a.push(LL.S):i&&NL(o)?a.push(LL.A):i&&_L(o)&&a.push(LL.X)),a):[]},zL=9,DL=80,AL=10,jL=150,FL=56,BL=20,WL="-",$L=e=>e.filter((e=>!!e)).join(" ").trim(),HL=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),i=parseFloat(o?r:t);return"".concat(o?i:i/n*100,"%")},UL=e=>e||WL,VL=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%"},GL=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},KL=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0}}},ZL={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},XL=Vv("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue"].includes(e)})((e=>{var t,n,r,o,a,l,s,c,u,d;let{theme:p,checkboxes:f,isGridMode:h,isGridCol:m,dense:g,direction:v,sizes:b,frequencyMode:y,freqHitsValue:x}=e;return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(p.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(p.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(LL.row)]:{flexWrap:"nowrap",color:null!==(t=null===(n=p.listBox)||void 0===n||null===(r=n.content)||void 0===r?void 0:r.color)&&void 0!==t?t:p.palette.text.primary},["& .".concat(LL.rowBorderBottom)]:{borderBottom:m?"none":"1px solid ".concat(p.palette.divider),borderLeft:m?"1px solid ".concat(p.palette.divider):"none"},["& .".concat(LL.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(p.palette.divider),color:null!==(o=null===(a=p.listBox)||void 0===a||null===(l=a.content)||void 0===l?void 0:l.color)&&void 0!==o?o:p.palette.text.primary},["& .".concat(LL.cell)]:{display:"flex",alignItems:"center",flexGrow:1,minWidth:f?"52px":"26px",flexBasis:f?"auto":"max-content",paddingLeft:"".concat(zL,"px"),paddingRight:0},["& .".concat(LL.labelText)]:i(i({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},ZL),{},{fontSize:null===(s=p.listBox)||void 0===s||null===(c=s.content)||void 0===c?void 0:c.fontSize,fontFamily:null===(u=p.listBox)||void 0===u||null===(d=u.content)||void 0===d?void 0:d.fontFamily}),["& .".concat(LL.labelDense)]:{fontSize:12},["& .".concat(LL.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(LL.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":i(i({},ZL),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(LL.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},["& .".concat(LL.S)]:i(i({},KL({theme:p})),{},{border:h?"none":void 0}),["& .".concat(LL.XS)]:i(i({},KL({theme:p})),{},{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0}),["& .".concat(LL.A)]:{background:p.palette.selected.alternative,color:p.palette.selected.alternativeContrastText,border:h?"none":void 0},["& .".concat(LL.X)]:{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0},["& .".concat(LL.frequencyCount)]:i(i({justifyContent:"flex-end"},ZL),{},{flex:"0 0 ".concat(VL({sizes:b,frequencyMode:y,isGridMode:h,freqHitsValue:x})),minWidth:!h&&"P"!==y&&x?b.freqMinWidth:"max-content",maxWidth:GL({sizes:b,frequencyMode:y,isGridMode:h}),textAlign:"rtl"===v?"left":"right",paddingLeft:"rtl"!==v?"8px":0}),["&.".concat(LL.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(LL.bar)]:{height:g?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat(LL.barSelected)]:{zIndex:"0","& .bar-filled":{opacity:"30%",background:p.palette.background.lighter}},["& .".concat(LL.barWithCheckbox)]:{left:"rtl"===v?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(LL.barSelectedWithCheckbox)]:{"& .bar-filled":{background:"#BFE5D0",borderColor:"#BFE5D0"}},["& .".concat(LL.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var QL=U.memo(XL);const JL="ListBoxCheckbox",YL={cbIcon:"".concat(JL,"-cbIcon"),cbIconChecked:"".concat(JL,"-cbIconChecked"),cbIconExcluded:"".concat(JL,"-cbIconExcluded"),cbIconAlternative:"".concat(JL,"-cbIconAlternative"),checkbox:"".concat(JL,"-checkbox"),dense:"".concat(JL,"-dense")},eR=Vv(eE)((e=>{let{theme:t}=e;return{["& .".concat(YL.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(YL.cbIconChecked)]:{borderRadius:3,backgroundColor:t.palette.selected.main,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(YL.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(YL.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(YL.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(YL.dense)]:{padding:"4px 8px"}}})),tR=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return U.createElement("span",{className:e.cbIcon},n&&U.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function nR(e){let{onChange:t,checked:n,label:r,dense:o,excluded:i,showGray:a=!0,dataN:l}=e;return U.createElement(eR,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[YL.checkbox,o&&YL.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":l},name:r,icon:tR(YL,a,i),checkedIcon:U.createElement("span",{className:YL.cbIconChecked})})}const rR="ListBoxRadioButton",oR={denseRadioButton:"".concat(rR,"-denseRadioButton"),radioButton:"".concat(rR,"-radioButton")},iR=Vv(Pk)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(oR.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function aR(e){let{onChange:t,checked:n,label:r,dense:o,dataN:i}=e;return U.createElement(iR,{checked:n,onChange:t,value:r,name:r,className:oR.radioButton,inputProps:{"data-n":i},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}function lR(e){let{label:t,color:n,dense:r,showGray:o=!0,checkboxes:i,cell:a,valueTextAlign:l}=e;return U.createElement(XS,{component:"span",variant:"body2",className:$L([LL.labelText,r&&LL.labelDense,o&&ML({cell:a,checkboxes:i})&&LL.excludedTextWithCheckbox]),color:n,align:l,dir:"auto"},U.createElement("span",null,t))}function sR(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:l}=e;return"string"==typeof t?U.createElement(lR,{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:l}):t}function cR(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;const f=U.createElement(nR,{onChange:t,label:n,checked:i,dense:a,excluded:_L(l),isGridCol:s,showGray:c,dataN:o}),h=U.createElement(aR,{onChange:t,label:n,checked:i,dense:a,dataN:o});return U.createElement(ME,{color:r,control:u?h:f,className:LL.checkboxLabel,label:U.createElement(sR,{label:n,color:r,dense:a,showGray:c,checkboxes:d,cell:l,valueTextAlign:p}),key:o})}function uR(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const i=t.map(((e,t)=>{let[n,r]=e;return U.createElement("span",{id:t,className:r?LL.highlighted:""},n)}));return U.createElement(lR,{label:i,dense:n,showGray:r,checkboxes:o})}function dR(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:i,color:a,qElemNumber:l,isSelected:s,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:p}=e;const f=U.createElement(uR,{labels:n,dense:o,showGray:i,checkboxes:r});return r?U.createElement(cR,{onChange:t,label:f,color:a,qElemNumber:l,isSelected:s,dense:o,cell:c,isGridCol:u,showGray:i,isSingleSelect:d,checkboxes:r,valueTextAlign:p}):f}var pR=U.memo((function(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;return d?U.createElement(cR,{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}):U.createElement(lR,{label:n,color:r,dense:a,showGray:!0,checkboxes:d,cell:l,valueTextAlign:p})}));function fR(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:i}=e;if(!(t&&n&&UL(t)!==WL))return;const a=HL({qFrequency:t,checkboxes:r,frequencyMax:i});return U.createElement(zw,{className:$L([LL.bar,r&&LL.barWithCheckbox,o&&(r?LL.barSelectedWithCheckbox:LL.barSelected)])},U.createElement(zw,{className:"bar-filled",width:a}))}function hR(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const i=UL(null==t?void 0:t.qFrequency);return U.createElement(UE,{item:!0,style:{display:"flex",alignItems:"center"},className:LL.frequencyCount,"aria-label":i,title:i},U.createElement(XS,{noWrap:!0,color:"inherit",variant:"body2",className:$L([r&&LL.labelDense,LL.labelText,o&&ML({cell:t,checkboxes:n})&&LL.excludedTextWithCheckbox])},i))}function mR(e){let{dataLayout:t,layoutOrder:n,itemPadding:r}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const gR=Vv(UE,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:a}=e;const l="padding".concat("rtl"===a?"Left":"Right");return{["&.".concat(LL.fieldRoot)]:i(i({},mR({dataLayout:t,layoutOrder:n,itemPadding:r})),{},{[l]:o?"8px":void 0})}}));const vR={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 bR(e){var t;let{layout:n}=e;const{translator:r}=H.useContext(cS),{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},i=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let a;switch(i){case 0:a="ScreenReader.ZeroSelected";break;case 1:a="ScreenReader.OneSelected";break;default:a="ScreenReader.ManySelected"}const l=r.get(a,[i]);return U.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},l)}const yR=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===yR.ARROW_UP||e===yR.ARROW_DOWN||e===yR.ARROW_LEFT||e===yR.ARROW_RIGHT}),xR=e=>+e.getAttribute("data-n"),SR=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},wR=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused, .value.selector, .value");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},ER=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:i,keyCode:a,numCells:l}=e;const s=e=>{let t;return"row"===i?(t=l%o,e<t?r:r-1):(t=l%r,e<o-1?r:t)};let c=t,u=n;if(a===yR.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"===i)return c*o+u;const d=l%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};function CR(e){var t,n,r;let{index:o,rowIndex:a,columnIndex:l,style:s,data:c}=e;const{onChange:u,onClick:d,onMouseDown:p,onMouseUp:f,onMouseEnter:h,onTouchStart:m,onTouchEnd:g,pages:v,isLocked:b,column:y=!1,checkboxes:x=!1,textAlign:S,direction:w,layoutOptions:E={},freqIsAllowed:C,isSingleSelect:k,actions:L,frequencyMax:R="",histogram:O=!1,keyboard:I,showGray:T=!0,showTick:P=!0,columnCount:_=1,rowCount:N=1,dataOffset:M,deducedFrequencyMode:q,focusListItems:z,listCount:D,sizes:A,translator:j,showSearch:F,isModal:B}=c,{dense:W=!1,dataLayout:$="singleColumn",layoutOrder:V}=E,{itemPadding:G}=A;let K,Z;const X={max:null,currentIndex:null};if("number"==typeof a&&"number"==typeof l){"row"===V?(K=a*_+l,X.max=N,X.currentIndex=a):(K=l*N+a,X.max=_,X.currentIndex=l);const e=0;Z=i(i({},s),{},{left:e+(0===l?s.left:Number(s.left)+l*e),top:0===a?s.top:Number(s.top)+a*e})}else K=o,X.max=D,X.currentIndex=o,Z=i({},s);K+=M;const[Q,J]=H.useState(null);H.useEffect((()=>{null!==Q&&(0===X.currentIndex&&z.first&&(Q.focus(),z.setFirst(!1)),X.currentIndex===X.max-1&&z.last&&(Q.focus(),z.setLast(!1)))}),[Q,z.first,z.last]);const Y=H.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:i,setScrollPosition:a,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===yR.ARROW_LEFT||e===yR.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=ER({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 yR.TAB:{const e=d.closest(".listbox-container"),t=c();if(d.classList.add("last-focused"),h){SR(e)||(t?s.focusSelection():s.blur(!0));break}t?s.focusSelection():(d.blur(),s.blur());break}case yR.SHIFT:v(!0);break;case yR.SPACE:t([xR(d)],!1,e);break;case yR.ARROW_DOWN:case yR.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([xR(d)],!0),v(!1)),t([xR(u)],!0));break;case yR.ARROW_UP:case yR.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([xR(d)],!0),v(!1)),t([xR(u)],!0));break;case yR.ENTER:o();break;case yR.ESCAPE:if(!c())return;i();break;case yR.HOME:if(l.setFirst(!0),b){null==a||a("overflowStart");break}null==a||a("start");break;case yR.END:if(l.setLast(!0),b){null==a||a("overflowEnd");break}null==a||a("end");break;case yR.A:if(b||y){n();break}return;case yR.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(i(i({},L),{},{focusListItems:z,keyboard:I,isModal:B,rowCount:N,columnCount:_,rowIndex:a,columnIndex:l,layoutOrder:V})),[L,null==I?void 0:I.innerTabStops,N,_,a,l,V]),ee=H.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:v,cellIndex:K})),[v,K]),te="S"===(null==ee?void 0:ee.qState)||"XS"===(null==ee?void 0:ee.qState)||"L"===(null==ee?void 0:ee.qState)||"XL"===(null==ee?void 0:ee.qState),ne=H.useMemo((()=>qL({column:y,histogram:O,checkboxes:x,cell:ee,showGray:T})),[null==ee?void 0:ee.qState,O,W,x]),re=H.useCallback((e=>{e.preventDefault()}),[x]),oe=H.useMemo((()=>ee&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let i;return i=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(i)?i:"left"}({direction:w,cell:ee,textAlign:S})),[w,ee,S]);if(!ee)return null;const ie="grid"===$&&"column"===V,ae=null!==(t=null==ee?void 0:ee.qText)&&void 0!==t?t:"";let le;if(null!==(n=ee.qHighlightRanges)&&void 0!==n&&null!==(r=n.qRanges)&&void 0!==r&&r.length){const e=ee.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];le=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const i=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,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return a&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(ae,e)}const se={alignItems:"center",display:"flex",fontSize:"8px"},ce="rtl"===w,ue={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:ce?8:x?0:void 0,paddingRight:x?0:ce?8:0,justifyContent:oe},de=0===o,pe=te&&b,fe=!x&&te&&!b,he=!x&&P,me=x||!P,ge=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:l}=e;const s=vR[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",[i+1,a+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:j,label:ae,qState:ee.qState,currentIndex:X.currentIndex,maxIndex:X.max,showSearch:F}),ve=!ce&&"right"===oe||ce&&"left"===oe;return U.createElement(QL,{className:LL.barContainer,checkboxes:x,style:Z,isGridCol:ie,isGridMode:"grid"===$,dense:W,direction:w,sizes:A,frequencyMode:q,freqHitsValue:ve,"data-testid":"listbox.item"},U.createElement(gR,{role:"row","aria-label":ge,"aria-selected":te,"aria-setsize":X.max,"aria-rowindex":X.currentIndex,ref:J,container:!0,dataLayout:$,cellPaddingRight:me,layoutOrder:V,itemPadding:G,gap:0,className:$L(["value",...ne]),classes:{root:LL.fieldRoot},onClick:d,onMouseDown:p,onMouseUp:f,onMouseEnter:h,onKeyDown:Y,onTouchStart:m,onTouchEnd:g,onContextMenu:re,tabIndex:de&&I.innerTabStops?0:-1,"data-n":null==ee?void 0:ee.qElemNumber,direction:w},(null==ee?void 0:ee.qFrequency)&&U.createElement(fR,{qFrequency:null==ee?void 0:ee.qFrequency,histogram:O,checkboxes:x,isSelected:te,frequencyMax:R}),U.createElement(UE,{item:!0,style:ue,className:$L([LL.cell,LL.selectedCell]),title:"".concat(ae)},le?U.createElement(dR,{onChange:u,labels:le,checkboxes:x,dense:W,showGray:T,color:"inherit",qElemNumber:ee.qElemNumber,isSelected:te,cell:ee,isGridCol:ie,isSingleSelect:k,valueTextAlign:oe}):U.createElement(pR,{onChange:u,label:ae,color:"inherit",qElemNumber:ee.qElemNumber,isSelected:te,dense:W,cell:ee,isGridCol:ie,showGray:T,isSingleSelect:k,checkboxes:x,valueTextAlign:oe})),C&&U.createElement(hR,{cell:ee,checkboxes:x,dense:W,showGray:T}),he&&U.createElement(UE,{item:!0,className:LL.icon},pe&&U.createElement(gL,{style:se,size:"small"}),fe&&U.createElement(PL,{style:se,size:"small"}))))}var kR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function LR(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||kR(r)&&kR(o)))return!1;var r,o;return!0}function RR(e,t){var n;void 0===t&&(t=LR);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var OR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function IR(e){cancelAnimationFrame(e.id)}function TR(e,t){var n=OR();var r={id:requestAnimationFrame((function o(){OR()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var PR=-1;function _R(e){if(void 0===e&&(e=!1),-1===PR||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),PR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return PR}var NR=null;function MR(e){if(void 0===e&&(e=!1),null===NR||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?NR="positive-descending":(t.scrollLeft=1,NR=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),NR}return NR}var qR=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function zR(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=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,hx(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:hx(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=RR((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=RR((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,c=a.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:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=RR((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(MR()){case"negative":c=-i;break;case"positive-descending":c=s-o-i}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&IR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=TR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}rx(t,e),t.getDerivedStateFromProps=function(e,t){return DR(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=_R();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=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,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(MR()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&IR(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?qR: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],L=C[1],R=[];if(r>0&&g)for(var O=k;O<=L;O++)for(var I=w;I<=E;I++)R.push(H.createElement(t,{columnIndex:I,data:d,isScrolling:b?x:void 0,key:f({columnIndex:I,data:d,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,I)}));var T=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return H.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ex({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},H.createElement(c||u||"div",{children:R,ref:s,style:{height:T,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 i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,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,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=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,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)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(i-1,h+g)),d,h]},t}(H.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var DR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},AR=function(e,t){return e};function jR(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=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,hx(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:hx(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=RR((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=RR((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&a);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"===a||"horizontal"===s,h="rtl"===a,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=RR((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(MR()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&IR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=TR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}rx(t,e),t.getDerivedStateFromProps=function(e,t){return FR(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,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?_R():0:s.scrollHeight>s.clientHeight?_R():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(MR()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&IR(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?AR: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 L=E;L<=C;L++)k.push(H.createElement(t,{data:u,key:p(L,u),index:L,isScrolling:v?y:void 0,style:this._getItemStyle(L)}));var R=r(this.props,this._instanceProps);return H.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:ex({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},H.createElement(l||s||"div",{children:k,ref:a,style:{height:x?"100%":R,pointerEvents:y?"none":void 0,width:x?R:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(H.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var FR=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},BR=zR({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,i){var a=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,a*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+i+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,i){var a=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*a-l),u=Math.min(c,t*a),d=Math.max(0,t*a-l+i+a);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,i=e.width,a=t*r,l=Math.ceil((i+n-a)/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,i=e.height,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),WR=jR({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,i){var a=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"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+i);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,i=e.itemCount,a=e.itemSize,l=e.layout,s=e.width,c=t*a,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const $R="#BBB",HR="#f1f1f1",UR={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const VR=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,GR=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,KR=(e,t,n,r)=>e===t*n+r+n;function ZR(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:i,overflowDisclaimer:a,qCardinal:l,dataOffset:s}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=VR(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,f=KR(l,u,c?i:o,s),h=!!s&&GR(t,c),m=p&&!f&&u>=d-1||h||a.state.show;a.set(m)}const{StyledFixedSizeList:XR,StyledFixedSizeGrid:QR}=function(){const e=e=>({scrollbarColor:"".concat($R," ").concat(HR),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:HR},"&::-webkit-scrollbar-thumb":{backgroundColor:$R,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:vm(WR,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(UR.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:vm(BR,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(UR.styledScrollbars)]:e(n)}}))}}();const JR=(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)},YR=e=>{const t=H.useMemo((()=>"text"in e?e:{}),[e]);return H.useMemo((()=>JR(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function eO(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function tO(e){var t;let{layout:n,width:r,height:o,listCount:i,count:a,freqIsAllowed:l,checkboxes:s,theme:c}=e;const{layoutOptions:u={}}=n||{},{layoutOrder:d,maxVisibleRows:p={},maxVisibleColumns:f,dense:h,dataLayout:m}=u,{fontSize:g="12px",fontFamily:v="Source sans pro"}=(null===(t=c.listBox)||void 0===t?void 0:t.content)||{},b="".concat(g," ").concat(v),y=YR({text:eO(n),font:b}),x=YR({text:eO(5),font:b}),S=YR({text:eO(8),font:b}),w=l?x:0,E=s?BL:0;let C=FL+w+E;!s&&C>=DL&&(C+=BL);let k,L,R,O,I=y+18+w+E;!s&&I>=DL&&(I+=BL),I=Math.min(jL,Math.max(I,C));const T="grid"===m;let P=h?20:T?32:29;T&&(P+=4);const _=null!=o?o:8*P;if(d){let e=r;"row"===d?(k={overflowX:"hidden"},e+=8,({rowCount:O,columnWidth:R,columnCount:L}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:i}=e;const a=(null==t?void 0:t.maxColumns)||3,l=r-AL;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(i,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,a,c);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:f,listCount:i,containerWidth:e,columnAutoWidth:I,itemMinWidth:C}))):(k={overflowY:"hidden"},({rowCount:O,columnWidth:R,columnCount:L}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:i,columnAutoWidth:a,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(i/r);t=!1!==n.auto?u:Math.min(o,c,u);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:p,itemHeight:P,listCount:i,listHeight:_,columnAutoWidth:I,containerWidth:e,itemMinWidth:C})))}L=("singleColumn"===m?1:L)||1,O=("singleColumn"===m?a:O)||i;const N=u.dense?838e3:577e3;O=Math.min(O,N);const M=Math.floor(3355e4/R);L=Math.min(L,M)||1;const q=O*L,z=Math.min(i,q);return{columnCount:L,columnWidth:R,rowCount:O,overflowStyling:k,itemHeight:P,listHeight:_,listWidth:r,scrollBarWidth:AL,count:a,listCount:z,maxCount:{row:N,column:M},itemPadding:4,textWidth:y,freqMinWidth:x,freqMaxWidth:S}}const nO=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),i=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?i:r};const[rO,oO]=uS({});function iO(e){const t="".concat(e.id),[n]=rO();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const aO=Vv(XS,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return i({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function lO(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:i}=H.useContext(cS);return U.createElement($k,{title:o?i.get(n):""},U.createElement(aO,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},i.get(n)))}var sO={},cO={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(cO);var uO,dO=cO.exports,pO={},fO=r(TS);var hO=dO;Object.defineProperty(sO,"__esModule",{value:!0});var mO=sO.default=void 0,gO=hO((uO||(uO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=fO}(pO)),pO)),vO=Rm,bO=(0,gO.default)((0,vO.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");mO=sO.default=bO;const yO=Vv(DS)((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}})),xO=Vv("div")((()=>({paddingLeft:"6px",flexGrow:1}))),SO=Vv("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),wO=Vv(mO)((()=>({fontSize:"14px"})));function EO(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const i="function"==typeof n,a=r?370:282,l=Math.max(o/2-a/2,0),s=Math.min(a,o)-42,c=r&&o<a;return U.createElement(yO,{left:l,style:{maxWidth:a}},U.createElement(xO,null,U.createElement(lO,{text:t,dense:r,width:s,tooltip:c})),U.createElement(SO,{dense:r},i&&U.createElement($S,{"aria-label":"close",onClick:()=>n()},U.createElement(wO,null))))}const CO=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const kO=80;function LO(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>kO,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const RO=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,"))")},OO=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=H.useState(),[i,a]=H.useState(n);return H.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=RO(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),a(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:i}};const IO=["isLoadingData"],TO=100,PO=Vv("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function _O(e){var t,n,r,o;let{model:a,app:c,constraints:u,theme:d,layout:p,selections:f,selectionState:h,direction:m,checkboxes:g,height:v,width:b,frequencyMode:y,update:x,fetchStart:S,postProcessPages:w,calculatePagesHeight:E=!1,keyboard:C={},showGray:k=!0,scrollState:L,selectDisabled:R=(()=>!1),keyScroll:O={state:{},reset:()=>{}},currentScrollIndex:I={set:()=>{}},renderedCallback:T,onCtrlF:P,showSearch:_,isModal:N}=e;const{translator:M}=H.useContext(cS),[q,z]=H.useState(!1),D=!(!p||!p.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:A=g,histogram:j}=null!=p?p:{},F=H.useRef(null),B=H.useRef({queue:[],validPages:!1,dataOffset:0}),W=H.useRef({pages:[]}),{frequencyMax:$,awaitingFrequencyMax:V}=OO(c,p),G=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:i,postProcessPages:a,listData:l}=e;const[s,c]=H.useState(!1),[u,d]=H.useState([]);let[p]=H.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],i=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=a?a(n):n;t.current.validPages=!0,l.current.pages=r,d(r),c(!1),e()}));o&&o(i)}),f?i:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:u,isLoading:s}}({local:B,loaderRef:F,model:a,fetchStart:S,scrollTimeout:0,postProcessPages:w,listData:W}),K=s(G,IO),{setStoreValue:Z}=iO(a),X=H.useCallback(K.loadMoreItems,[p]),[Q,J]=H.useState({show:!1,dismissed:!1}),[Y,ee]=H.useState([]);null!=K&&K.pages&&h.update({setPages:ee,pages:K.pages,isSingleSelect:D,selectDisabled:R,layout:p});const te=null==p?void 0:p.qListObject.qDimensionInfo.qCardinal;(null!=K&&K.pages.length&&!V||0===te)&&(null==T||T());const ne=H.useCallback((e=>{if(null==Y||!Y.length||!B.current.validPages)return!1;B.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Y.filter((e=>t(e)))[0];return n&&t(n)}),[p,Y]),{interactionEvents:re,select:oe}=IL({selectionState:h,selections:f,checkboxes:A,doc:document,loaderRef:F}),{layoutOptions:ie={}}=p||{};let ae=!0;ie.dataLayout&&(ae="singleColumn"===ie.dataLayout||"row"===(null==ie?void 0:ie.layoutOrder));const le="grid"===(null==ie?void 0:ie.dataLayout),se=e=>{const t=i({},ae?{rowIndex:e}:{columnIndex:e}),n=le?t:e;F.current._listRef.scrollToItem(n)},ce=()=>{if(B.current.queue=[],B.current.validPages=!1,F.current){F.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===O.state.scrollPosition;if(p&&p.qSelectionInfo.qInSelections||e)return void(e&&O.reset());B.current.dataOffset=0,se(0)}};x&&x.call(null,ce),H.useEffect((()=>{L&&!q&&F.current&&(F.current._listRef.scrollToItem(L.initScrollPos),z(!0))}),[F.current]),H.useEffect((()=>{ce()}),[p,B.current.dataOffset]);let ue=TO;const de="grid"!==ie.dataLayout,pe=null==p||null===(t=p.qListObject.qSize)||void 0===t?void 0:t.qcy,fe=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?nO({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:Y,minimumBatchSize:ue,count:pe,calculatePagesHeight:E,layoutOptions:ie,model:a});let he=LO({itemWidth:b,layout:p,frequencyMode:y});const me=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":"-"}(Y),ge=tO({layout:p,width:b,height:v,listCount:fe,count:pe,freqIsAllowed:he,checkboxes:A,theme:d});ge.columnWidth&&(he=LO({itemWidth:ge.columnWidth,layout:p,frequencyMode:y}));const{listCount:ve}=ge;Z("listCount",ve);const be=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:i,offset:a}=e,l=!1,s=null!=a?a: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=CO(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:ae,sizes:ge,layout:p,offset:B.current.dataOffset});B.current.dataOffset=n,r&&h.triggerStateChanged(),se(t)};H.useEffect((()=>{const e=O.state;e.up?se(I.state.start-e.up):e.down?se(I.state.stop+e.down):e.scrollPosition&&be(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&O.reset()}),[O.state.up,O.state.down,O.state.scrollPosition]);const{textAlign:ye}=(null==p?void 0:p.qListObject.qDimensionInfo)||{},[xe,Se]=H.useState({first:!1,last:!1}),{List:we,Grid:Ee}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:a,pages:s,selectDisabled: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:L,focusListItems:R,setCurrentScrollIndex:O,constraints:I,frequencyMax:T,freqIsAllowed:P,translator:_,showSearch:N,isModal:M}=e;const{layoutOptions:q={}}=t||{},{columnWidth:z,listHeight:D,itemHeight:A,rowCount:j,columnCount:F}=E||{},B=("grid"===q.dataLayout?z:n)>DL,W={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:UR.styledScrollbars},$=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,H=i(i({isLocked:$,column:!a,pages:s},$||c()?{}:u),{},{checkboxes:r,layoutOptions:q,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:L,selectAll:m,onCtrlF:g},frequencyMax:T,histogram:p,keyboard:y,showGray:x,showTick:B,dataOffset:o.current.dataOffset,focusListItems:R,direction:w,translator:_,showSearch:N,isModal:M});return{List:e=>{let{onItemsRendered:r,ref:a}=e;return o.current.listRef=a,U.createElement(XR,l({},W,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:D,width:n,itemCount:C,itemData:i(i({},H),{},{listCount:C}),itemSize:A,onItemsRendered:e=>{var n,a;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),ZR({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:F,rowCount:j,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(a=n.qDimensionInfo)||void 0===a?void 0:a.qCardinal,dataOffset:o.current.dataOffset}),r(i({},e))},ref:a}),CR)},Grid:e=>{let{onItemsRendered:r,ref:a}=e;const{overflowStyling:s,scrollBarWidth:c}=E,{layoutOrder:u}=q||{},d=Math.min(D,j*A+c);return o.current.listRef=a,U.createElement(QR,l({},W,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.active,height:d,width:n,columnCount:F,columnWidth:z,rowCount:j,rowHeight:A,style:i({},s),itemData:i(i({},H),{},{column:void 0,columnCount:F,rowCount:j}),onItemsRendered:e=>{var n,i;const a="row"===u;O({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const l=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,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=a,f=c*o,h=l):(d=s,p=a*i,f=c,h=l*i),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:j,columnCount:F});ZR({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:F,rowCount:j,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(i=n.qDimensionInfo)||void 0===i?void 0:i.qCardinal,dataOffset:o.current.dataOffset}),r(l)},ref:a}),CR)}}}({direction:m,layout:p,height:v,width:b,checkboxes:A,deducedFrequencyMode:me,histogram:j,keyboard:C,showGray:k,interactionEvents:re,select:oe,selectAll:()=>{h.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:P,textAlign:ye,isVertical:de,pages:Y,selectDisabled:R,isSingleSelect:D,selections:f,scrollState:L,local:B,sizes:ge,listCount:ve,overflowDisclaimer:{state:Q,set:e=>J((t=>i(i({},t),{},{show:e})))},setScrollPosition:be,focusListItems:{first:xe.first,setFirst:e=>Se((t=>i(i({},t),{},{first:e}))),last:xe.last,setLast:e=>Se((t=>i(i({},t),{},{last:e})))},setCurrentScrollIndex:I.set,constraints:u,frequencyMax:$,freqIsAllowed:he,translator:M,showSearch:_,isModal:N}),{columnWidth:Ce,listHeight:ke,itemHeight:Le}=ge||{};return de||(ue=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:b,columnWidth:Ce,listHeight:ke,itemHeight:Le})),U.createElement(PO,null,U.createElement(bR,{className:"screenReaderOnly",layout:p}),!ve&&te>0&&U.createElement(lO,{width:b,text:"Listbox.NoMatchesForYourTerms"}),U.createElement(xL,{isItemLoaded:ne,itemCount:ve||1,loadMoreItems:X.with({minimumBatchSize:ue}),threshold:0,minimumBatchSize:ue,ref:F,role:"grid"},de?we:Ee),Q.show&&!Q.dismissed&&U.createElement(EO,{text:"Listbox.ItemsOverflow",dismiss:()=>J((e=>i(i({},e),{},{dismissed:!0}))),parentWidth:null==F||null===(n=F.current)||void 0===n||null===(r=n._listRef)||void 0===r||null===(o=r.props)||void 0===o?void 0:o.width,dense:null==ie?void 0:ie.dense}))}const NO=e=>i(i({},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"}}]}),MO=e=>i(i({},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"}}]}),qO=e=>i(i({},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"}}]}),zO=e=>i(i({},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 DO=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:i=!1}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:NO,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:qO,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},!i&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:MO,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},!i&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:zO,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const AO=e=>i(i({},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 jO(e){const t=Wv(),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 FO={className:"njs-cell-action"},BO=U.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const i=Wv(),{hidden:a,disabled:l,style:s,hasSvgIconShape:c}=jO(r);if(a)return null;const u=Number.parseInt(i.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 U.createElement($S,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[FO.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&hL(r.getSvgIconShape()),o&&U.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),WO=e=>i(i({},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"}}]}),$O=e=>i(i({},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 HO=e=>hL($O(e));const UO="njs-action-toolbar-more",VO={icon:"".concat("More","-icon")},GO=Vv(ek)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(VO.icon)]:{color:t.palette.text.primary}}}));function KO(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=jO(t);return o?null:U.createElement(lk,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:i,tabindex:"0"},a&&U.createElement(qC,{className:VO.icon},hL(t.getSvgIconShape())),U.createElement(XS,{noWrap:!0},t.label))}const ZO=U.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:c=(()=>{})}=e;const u=n.length>0,d=n.findIndex((e=>!e.disabled));return u&&U.createElement(GO,l({},a,{onClose:c,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:UO}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:i({pointerEvents:"auto",maxWidth:"250px"},s)}}),U.createElement($C,{id:"moreMenuList"},n.map(((e,t)=>U.createElement(KO,{key:t,item:e,autoFocus:t===d,onActionClick:c})))))})),XO=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},QO=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 JO="ActionsToolbar",YO={item:"".concat(JO,"-item"),itemSpacing:"".concat(JO,"-itemSpacing")},eI=Vv(ek)((e=>{let{theme:t}=e;return{["& .".concat(YO.itemSpacing)]:{padding:t.spacing(0,.25)}}})),tI={className:"njs-action-toolbar-popover"},nI=U.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],addAnchor:i=!1,isRtl:a=!1}=e;return o.length>0?U.createElement(UE,{item:!0,container:!0,gap:0,flexDirection:a?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>U.createElement(UE,{item:!0,key:e.key,className:"".concat(YO.itemSpacing," ").concat(YO.item)},U.createElement(BO,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:i}))))):null})),rI={pointerEvents:"none"},oI={vertical:"bottom",horizontal:"right"};function iI(e){var t,n;let{show:r=!0,actions:o=[],maxItems:i=3,selections:a={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:l={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:s={show:!1,anchorEl:null},focusHandler:c=null,actionsRefMock:u=null,direction:d="ltr"}=e;const p=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=H.useContext(cS);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:$O},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:()=>{o(),r(),t.cancel()},getSvgIconShape:WO},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:()=>{o(),n(),t.confirm()},getSvgIconShape:TL}]}(a),{translator:f,keyboardNavigation:h}=H.useContext(cS),[m,g]=H.useState(!1),v={vertical:12,horizontal:(null!==(t=null===(n=s.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},b=H.useRef(),y=H.useRef(),x=Wv(),S=H.useMemo((()=>({margin:x.spacing(.5,0)}))),w=e=>{const t=b.current||u;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},E=H.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o}=e;return e=>{const{target:i,nativeEvent:a}=e,{keyCode:l}=a;switch(l){case yR.ARROW_LEFT:case yR.ARROW_DOWN:case yR.ARROW_RIGHT:case yR.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=XO(i),t=[yR.ARROW_LEFT,yR.ARROW_DOWN].includes(l);QO(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case yR.SPACE:e.preventDefault();break;case yR.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 yR.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:h,focusHandler:c,getEnabledButton:w,selections:a})),[h,c,w,a]);H.useEffect((()=>()=>{g(!1)}),[s.show,r,a.show]),H.useEffect((()=>{if(!c)return;c.on("focus_toolbar_first",(()=>{const e=w(!1);e&&e.focus()})),c.on("focus_toolbar_last",(()=>{const e=w(!0);e&&e.focus()}))}),[]);let C=l.enabled,k=l.actions;const L=l.alignTo||y,R=o.filter((e=>!e.hidden));if(R.length>i){const e=R.splice(-(R.length-i)-1);C=!0,k=[...e,...l.actions]}if(!a.show&&0===R.length)return null;const O={key:"more",label:f.get("Menu.More"),getSvgIconShape:AO,hidden:!1,active:m,enabled:()=>C,action:()=>g(!m)},I=R.length>0,T=k.length>0,P=I&&a.show||T&&a.show,_="rtl"===d,N=U.createElement(UE,{ref:b,onKeyDown:E,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:_?"row-reverse":"row"}},I&&U.createElement(nI,{actions:R}),T&&U.createElement(nI,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:y,ariaExpanded:m,actions:[O],addAnchor:!0}),P&&U.createElement(UE,{item:!0,className:YO.itemSpacing,style:S},U.createElement(RE,{orientation:"vertical"})),a.show&&U.createElement(nI,{className:"actions-toolbar-default-actions",actions:p,isRtl:_}),m&&U.createElement(ZO,{show:m,actions:k,alignTo:L,popoverProps:l.popoverProps,popoverPaperStyle:l.popoverPaperStyle,onCloseOrActionClick:()=>{g(!1)}}));return s.show?U.createElement(eI,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:v,transformOrigin:oI,hideBackdrop:!0,style:rI,PaperProps:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:tI.className,style:{pointerEvents:"auto",padding:x.spacing(.5,.25)}}},N):r&&N}var aI=e=>hL((e=>i(i({},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 lI="/qListObjectDef",sI="**",cI=Vv(cC)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color}})),uI=Vv(gk)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color,display:"flex"}}));function dI(e){let{selections:t,selectionState:n,model:r,keyboard:o,dense:i=!1,visible:a=!0,autoFocus:l=!0,wildCardSearch:s=!1,searchEnabled:c,direction:u,hide:d}=e;const{translator:p}=H.useContext(cS),[f,h]=H.useState(""),[m,g]=H.useState(!1),v=H.useRef(),b=Wv(),{getStoreValue:y}=iO(r),x="rtl"===u,S=x?"right":"left",w=async()=>{if(t.isModal())try{await r.abortListObjectSearch(lI)}finally{h("")}};H.useEffect((()=>{a||w()}),[a]),H.useEffect((()=>(t.on("deactivated",w),()=>{t.removeListener&&t.removeListener("deactivated",w)})),[]),H.useEffect((()=>{if(m&&v.current){const e=f.length-1;v.current.setSelectionRange(e,e),g(!1)}}),[m,v.current]);const E=async()=>{let e;return await r.searchListObjectFor(lI,f)&&f.length&&y("listCount")>0&&(e=r.acceptListObjectSearch(lI,!0),t.selectionsMade=!0,n.clearItemStates(!1),h("")),e};function C(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));t.setAttribute("tabIndex",0),null==t||t.focus()}return a&&!1!==c?U.createElement(uI,{startAdornment:U.createElement(cI,{position:"start"},U.createElement(aI,{size:i?"small":"normal"})),className:"search",sx:[{border:"none",fontSize:14,borderRadius:0,backgroundColor:"transparent","& fieldset":{border:"1px solid ".concat(b.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"},paddingLeft:"".concat(zL,"px")},i&&{fontSize:12,paddingLeft:b.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}},{flexDirection:x?"row-reverse":"row"}],inputRef:v,size:"small",fullWidth:!0,placeholder:p.get("Listbox.Search"),value:f,onFocus:()=>{s&&(h(sI),g(!0)),t.isModal()||t.begin(["/qListObjectDef"])},onChange:async e=>(h(e.target.value),e.target.value.length?r.searchListObjectFor(lI,e.target.value):w()),onKeyDown:async e=>{const{currentTarget:n}=e,r=n.closest(".listbox-container");switch(e.key){case"Enter":E();break;case"Escape":C(r),t.isActive()&&t.cancel();break;case"Tab":e.shiftKey?o.focusSelection():(C(r),null==r||r.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;d&&(d(),C(r));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,style:{textAlign:"".concat(S)},"data-testid":"search-input-field"}}):null}function pI(e){return Object.keys(Y.prototype).forEach((t=>{e[t]=Y.prototype[t]})),Y.init(e),e}const fI=e=>{let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!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():(i=!0,this.emit("activated"),r.begin(o,e,!0))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!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 a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>i,isModal:()=>n.isModal(o),goModal:e=>r.begin(o,e,!1),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return pI(l),l},hI=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 mI(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=yS(e),[a]=uL(t),l=t?t.id:null,[s]=fS(),[c]=mS(),u=s.get(e.id);let d=c.get(l);return H.useEffect((()=>{i&&t&&!d&&(d=fI({appSelections:i,appModal:u,model:t}),c.set(l,d),c.dispatch(!0))}),[i,t]),H.useEffect((()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=hI({elements:o,objectSelections:d,options:r});return d.addListener("activated",e),d.addListener("deactivated",t),()=>{d.isActive()&&d.confirm(),d.removeListener("activated",e),d.removeListener("deactivated",t)}}),[d]),H.useEffect((()=>{d&&d.setLayout(a)}),[d,a]),[d]}function gI(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update(t){var n,r,o;let{setPages:i,pages:a,isSingleSelect:l,selectDisabled:s,layout:c}=t;this.setPages=i;const u=this.lastRowCount===c.qListObject.qSize.qcy,d=this.lastApprMaxGlyphCount===c.qListObject.qDimensionInfo.qApprMaxGlyphCount;u&&d||(this.lastRowCount=c.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=c.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=EL(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=l,e.selectDisabled=s,e.isDimCalculated=null!==(n=null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.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[i(i({},n),{},{qState:r}),...t.slice(1)]}));return i(i({},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 vI=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 bI(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:i,app:a,fieldName:l,stateName:s="$",autoFocus:c}=e;const u=Boolean(null==l?void 0:l.qLibraryId),d=o&&Boolean(t.current),[p,f]=H.useState(0),h=Wv(),m=H.useRef(),[g]=iL({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:u?void 0:[l]},qLibraryId:u?l.qLibraryId:void 0}},a,l,s),v=H.useCallback((()=>{g.lock("/qListObjectDef")}),[g]),b=H.useCallback((()=>{g.unlock("/qListObjectDef")}),[g]),{translator:y}=H.useContext(cS),x=H.useRef(),S=H.useRef(),[w]=mI(a,g,S),[E]=uL(g),[C]=H.useState((()=>gI()));if(H.useEffect((()=>{w&&d&&(w.isModal(g)||w.goModal("/qListObjectDef"))}),[w,d]),!g||!E||!y)return null;const k=!0===E.qListObject.qDimensionInfo.qLocked,L=(e,t)=>{const n="escapeKeyDown"!==t;w.noModal(n),i()},R=DO({layout:E,model:g,translator:y,selectionState:C}),O=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return vI(t,"qSelected",0)+vI(t,"qSelectedExcluded",0)+vI(t,"qLocked",0)+vI(t,"qLockedExcluded",0)>0}(E);return U.createElement(ek,{open:d,onClose:L,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,PaperProps:{style:{minWidth:"250px"}}},U.createElement(UE,{container:!0,direction:"column",gap:0,ref:S},U.createElement(UE,{item:!0,container:!0,style:{padding:h.spacing(1)}},U.createElement(UE,{item:!0},k?U.createElement($S,{onClick:b,disabled:!k,size:"large"},U.createElement(gL,{title:y.get("Listbox.Unlock")})):U.createElement($S,{onClick:v,disabled:!O,size:"large"},U.createElement(vL,{title:y.get("Listbox.Lock")}))),U.createElement(UE,{item:!0,xs:!0}),U.createElement(UE,{item:!0},U.createElement(iI,{more:{enabled:!k,actions:R,alignTo:x,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:w,onConfirm:L,onCancel:()=>L(0,"escapeKeyDown")}}))),U.createElement(UE,{item:!0,xs:!0},U.createElement("div",{ref:x}),U.createElement(UE,{item:!0,ref:m},U.createElement(dI,{visible:!0,model:g,listCount:p,selections:w,selectionState:C,keyboard:{enabled:!1},autoFocus:null==c||c})),U.createElement(_O,{model:g,app:a,layout:E,selections:w,selectionState:C,direction:"ltr",onSetListCount:e=>f(e),onCtrlF:()=>{const e=m.current.querySelector("input");null==e||e.focus()}}))))}function yI(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const{translator:l}=H.useContext(cS),s=i||H.useRef(),c=Wv(),[u,d]=H.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),a()},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,L=null;return i||(E=U.createElement(UE,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},U.createElement(XS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},h.qField),U.createElement(XS,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},S)),h.qLocked?C=U.createElement(UE,{item:!0},U.createElement($S,{size:"large"},U.createElement(gL,null))):h.qOneAndOnlyOne||(C=U.createElement(UE,{item:!0},U.createElement($S,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},U.createElement(mL,null)))),k=U.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&w.map((e=>U.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,"%")}})))),L=U.createElement(UE,{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&&U.createElement(bI,{alignTo:s,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),i?U.createElement(bI,{alignTo:s,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):L}var xI=e=>hL((e=>i(i({},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 SI={item:"".concat("MultiState","-item")},wI=Vv(UE)((e=>{let{theme:t}=e;return{["&.".concat(SI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function EI(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[i,a]=H.useState(!!r),[l,s]=H.useState(-1),[c,u]=H.useState(r?r.current:null),d=r||H.useRef(),{translator:p}=H.useContext(cS),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=U.createElement(U.Fragment,null,U.createElement(UE,{item:!0,xs:!0,zeroMinWidth:!0},U.createElement(Nw,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},U.createElement(XS,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),U.createElement(UE,{item:!0},U.createElement("div",{style:{width:"12px"}})),U.createElement(UE,{item:!0},U.createElement($S,{size:"large"},U.createElement(xI,null)))));const g=U.createElement(mC,{dense:!0},U.createElement(IC,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},U.createElement(Xx,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>U.createElement(IC,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),s(t)})(e,r)},U.createElement(zw,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},U.createElement(yI,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=U.createElement(ek,{open:i,onClose:()=>{a(!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:U.createElement(wI,{container:!0,gap:0,className:SI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,a(!i))}},m,i&&v,l>-1&&U.createElement(bI,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?U.createElement(bI,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const CI="More",kI={item:"".concat(CI,"-item"),badge:"".concat(CI,"-badge")},LI=Vv(UE)((e=>{let{theme:t}=e;return{["&.".concat(kI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(kI.badge)]:{padding:t.spacing(0,1)}}}));function RI(e){let{items:t=[],api:n}=e;const r=Wv(),[o,i]=H.useState(!1),[a,l]=H.useState(-1),[s,c]=H.useState(null),u=H.useRef(),d=()=>{l(-1)};let p=null;return a>-1&&(p=t[a].states.length>1?U.createElement(EI,{field:t[a],api:n,moreAlignTo:u,onClose:d}):U.createElement(yI,{field:t[a],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),U.createElement(LI,{container:!0,gap:0,className:kI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,i(!o))}},U.createElement(UE,{item:!0},U.createElement(zw,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},U.createElement(XS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),U.createElement(UE,{item:!0},U.createElement($S,{size:"large"},U.createElement(xI,null))),o&&U.createElement(ek,{open:o,onClose:()=>{i(!1)},anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},U.createElement(mC,{dense:!0},t.map(((e,t)=>U.createElement(IC,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),l(t)})(e,t)},U.createElement(zw,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?U.createElement(EI,{field:e,api:n}):U.createElement(yI,{field:e,api:n}))))))),p)}const OI=120,II=72;function TI(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 PI(e){let{api:t,app:n}=e;const r=Wv(),[o]=lL(n),[i]=uL(o),[a,l]=H.useState({items:[],more:[]}),[s]=vS(),[c,u]=pL(),[d,p]=H.useState(0);return H.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-II,n=Math.floor(t/OI);p(n)}),[u]),H.useEffect((()=>{if(!(n&&o&&i&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&TI(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>TI(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(i);l((t=>{const r=e;if((()=>{const e=s.get(n.id);return e&&"njsListbox"===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,i,t.isInModal(),d]),U.createElement(UE,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},a.items.map((e=>U.createElement(UE,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(OI,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?U.createElement(EI,{field:e,api:t}):U.createElement(yI,{field:e,api:t})))),a.more.length>0&&U.createElement(UE,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(II,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},U.createElement(RI,{items:a.more,api:t})))}var _I=e=>hL((e=>i(i({},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 NI=e=>hL((e=>i(i({},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 MI=(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 qI(e){let{api:t,app:n}=e;const{translator:r}=H.useContext(cS),[o]=function(e){const[t]=lL(e),[n]=uL(t),[r]=dL(e),[o,i]=H.useState(null);return H.useEffect((()=>{r&&t&&n&&MI(t,n,r)}),[r,t,n]),H.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})),i({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return U.createElement(UE,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},U.createElement(UE,{item:!0},U.createElement($S,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},U.createElement(_I,null))),U.createElement(UE,{item:!0},U.createElement($S,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},U.createElement(NI,null))),U.createElement(UE,{item:!0},U.createElement($S,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},U.createElement(HO,null))))}const zI=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function DI(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function AI(){return zI.map(DI).join("")}function jI(e){let{app:t}=e;const n=Wv(),[r]=yS(t);return r?U.createElement(UE,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},U.createElement(UE,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},U.createElement(qI,{api:r,app:t})),U.createElement(UE,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},U.createElement(PI,{api:r,app:t}))):null}let FI;FI="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let BI=null,WI=null;const $I=FI.clearTimeout,HI=FI.setTimeout,UI=FI.cancelAnimationFrame||FI.mozCancelAnimationFrame||FI.webkitCancelAnimationFrame,VI=FI.requestAnimationFrame||FI.mozRequestAnimationFrame||FI.webkitRequestAnimationFrame;function GI(e){let t,n,r,o,i,a,l;const s="undefined"!=typeof document&&document.attachEvent;if(!s){a=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},i=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;a(this),this.__resizeRAF__&&BI(this.__resizeRAF__),this.__resizeRAF__=WI((function(){i(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(i,c){if(s)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const s=i.ownerDocument,c=FI.getComputedStyle(i);c&&"static"===c.position&&(i.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%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(s),i.__resizeLast__={},i.__resizeListeners__=[],(i.__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",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",l,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__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==UI||null==VI?(BI=$I,WI=function(e){return HI(e,20)}):(BI=function([e,t]){UI(e),$I(t)},WI=function(e){const t=VI((function(){$I(n),e()})),n=HI((function(){UI(t),e()}),20);return[t,n]});class KI extends H.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){var r,o,i,a;const l=window.getComputedStyle(this._parentNode)||{},s=parseFloat(null!==(r=l.paddingLeft)&&void 0!==r?r:"0"),c=parseFloat(null!==(o=l.paddingRight)&&void 0!==o?o:"0"),u=parseFloat(null!==(i=l.paddingTop)&&void 0!==i?i:"0"),d=parseFloat(null!==(a=l.paddingBottom)&&void 0!==a?a:"0"),p=this._parentNode.getBoundingClientRect(),f=p.height-u-d,h=p.width-s-c,m=this._parentNode.offsetHeight-u-d,g=this._parentNode.offsetWidth-s-c;(e||this.state.height===m&&this.state.scaledHeight===f)&&(t||this.state.width===g&&this.state.scaledWidth===h)||(this.setState({height:m,width:g,scaledHeight:f,scaledWidth:h}),"function"==typeof n&&n({height:m,scaledHeight:f,scaledWidth:h,width:g}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=GI(e),this._detectElementResize.addResizeListener(this._parentNode,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.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,nonce:i,onResize:a,style:l={},tagName:s="div",...c}=this.props,{height:u,scaledHeight:d,scaledWidth:p,width:f}=this.state,h={overflow:"visible"},m={};let g=!1;return r||(0===u&&(g=!0),h.height=0,m.height=u,m.scaledHeight=d),o||(0===f&&(g=!0),h.width=0,m.width=f,m.scaledWidth=p),H.createElement(s,{ref:this._setRef,style:{...h,...l},...c},!g&&e(m))}}var ZI=e=>hL((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));function XI(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function QI(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}function JI(e){let{keyboard:t,hovering:n,updateKeyScroll:r,containerRef:o,currentScrollIndex:i,isModal:a,constraints:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,i=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const l=e.currentTarget.closest(".listbox-container"),s=a();switch(n){case yR.TAB:if(s)r?wR(l)||SR(l):SR(l)||wR(l);else{if(!r)break;t.blur(!0)}i();break;case yR.ENTER:case yR.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),i();break;case yR.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,i=r.classList.contains("listbox-container"),a=QI(n.closest(".listbox-container")),l=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(i||l)t.blur(!0);else{XI(o.current),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}})(e)}},handleOnMouseEnter:()=>{(()=>{const e=(null==l?void 0:l.select)||(null==l?void 0:l.active),t=a();return e||t})()||(n.current=!0)},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current)return;const{keyCode:t,ctrlKey:o=!1,shiftKey:a=!1}=e;switch(t){case yR.ARROW_UP:r({up:1});break;case yR.ARROW_DOWN:r({down:1});break;case yR.PAGE_UP:r({up:i.stop-i.start});break;case yR.PAGE_DOWN:r({down:i.stop-i.start});break;case yR.HOME:r({scrollPosition:o&&a?"overflowStart":"start"});break;case yR.END:r({scrollPosition:o&&a?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const YI=Vv("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function eT(e){let{text:t}=e;const{translator:n}=H.useContext(cS);return U.createElement(YI,null,n.get(t))}const tT="ListBoxInline",nT={listBoxHeader:"".concat(tT,"-listBoxHeader"),screenReaderOnly:"".concat(tT,"-screenReaderOnly"),listboxWrapper:"".concat(tT,"-listboxWrapper")},rT=Vv(UE,{shouldForwardProp:e=>!["containerPadding","isGridMode"].includes(e)})((e=>{var t,n;let{theme:r,containerPadding:o,isGridMode:i}=e;return{backgroundColor:null!==(t=null===(n=r.listBox)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:r.palette.background.default,["& .".concat(nT.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(nT.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(nT.listboxWrapper)]:{padding:o},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(r.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:i?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}}})),oT=Vv(XS)((e=>{var t,n,r,o,i,a,l,s,c,u,d,p;let{theme:f}=e;return{color:null===(t=f.listBox)||void 0===t||null===(n=t.title)||void 0===n||null===(r=n.main)||void 0===r?void 0:r.color,fontSize:null===(o=f.listBox)||void 0===o||null===(i=o.title)||void 0===i||null===(a=i.main)||void 0===a?void 0:a.fontSize,fontFamily:null===(l=f.listBox)||void 0===l||null===(s=l.title)||void 0===s||null===(c=s.main)||void 0===c?void 0:c.fontFamily,fontWeight:(null===(u=f.listBox)||void 0===u||null===(d=u.title)||void 0===d||null===(p=d.main)||void 0===p?void 0:p.fontWeight)||"bold"}}));const iT=U.memo((function(e){var t,n,r,o,a;let{options:s,layout:c}=e;const{app:u,direction:d,frequencyMode:p,checkboxes:f,search:h=!0,focusSearch:m=!1,rangeSelect:g=!0,model:v,selections:b,update:y,fetchStart:x,selectDisabled:S=(()=>!1),postProcessPages:w,calculatePagesHeight:E,showGray:C=!0,scrollState:k,renderedCallback:L,toolbar:R=!0,isPopover:O=!1}=s,I=Wv(),T=H.useCallback((()=>{v.unlock("/qListObjectDef")}),[v]),{translator:P,keyboardNavigation:_,themeApi:N,constraints:M}=H.useContext(cS);I.listBox=(e=>{const t=(t,n)=>e.getStyle("object.listBox",t,n);return{backgroundColor:t("","backgroundColor"),title:{main:{color:t("title.main","color"),fontSize:t("title.main","fontSize"),fontFamily:t("title.main","fontFamily"),fontWeight:t("title.main","fontWeight")}},content:{color:t("content","color"),fontSize:t("content","fontSize"),fontFamily:t("content","fontFamily")}}})(N);const q=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==u?void 0:u.layout}),z=H.useRef(),[D,A]=pL(),[j,F]=(()=>{const[e,t]=H.useState({}),n=H.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[B,W]=H.useState(!1),[$,V]=H.useState(!1),G=H.useRef(!1),[K,Z]=H.useState({down:0,up:0,scrollPosition:""}),X=e=>Z((t=>i(i({},t),e))),[Q,J]=H.useState({start:0,stop:0}),[Y]=yS(u),ee=H.useRef(null),[te]=H.useState((()=>gI())),ne=function(e){let{containerRef:t,enabled:n}=e;const[r,o]=H.useState(!1),i={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const i=QI(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var a;null==(a=t.current)||a.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),XI(t.current),e&&i&&(i.setAttribute("tabIndex",0),i.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),i=null==e?void 0:e.querySelector(".value.last-focused"),a=null==e?void 0:e.querySelector(".value.selector, .value"),l=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=r||i||a||l;null==s||s.setAttribute("tabIndex",0),null==s||s.focus()},focusSelection(){const e=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm");null==e||e.setAttribute("tabIndex",0),null==e||e.focus()}};return i}({containerRef:z,enabled:_}),re=H.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:u,appSelections:Y})),[u,Y]),oe=null==c?void 0:c.qListObject.qDimensionInfo.qError,ie=oe&&M.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[ae,le]=H.useState(!1),{handleKeyDown:se,handleOnMouseEnter:ce,handleOnMouseLeave:ue,globalKeyDown:de}=H.useMemo((()=>JI({keyboard:ne,hovering:G,updateKeyScroll:X,containerRef:z,currentScrollIndex:Q,app:u,appSelections:Y,constraints:M,isModal:re})),[ne,G,X,z,Q,u,Y,M,re]),pe=R&&(""===(null==c?void 0:c.title)||!1===(null==c?void 0:c.showTitle))&&!O,fe=R&&""!==(null==c?void 0:c.title)&&!1!==(null==c?void 0:c.showTitle)||O;H.useEffect((()=>(document.addEventListener("keydown",de),()=>{document.removeEventListener("keydown",de)})),[de]),H.useEffect((()=>{const e=()=>{W(!0)},t=()=>{W(!1),"toggle"===h&&V(!1)};return O&&(b.isActive()||(b.begin("/qListObjectDef"),b.on("activated",e),b.on("deactivated",t)),W(O)),b&&(b.isModal()||(b.on("activated",e),b.on("deactivated",t)),W(b.isActive())),()=>{b&&b.removeListener&&(b.removeListener("activated",e),b.removeListener("deactivated",t))}}),[b,O]),H.useEffect((()=>{if(j&&j.current&&(h&&m||"toggle"===h&&$)){const e=j.current.querySelector("input");e&&e.focus()}}),[j&&j.current,$,h,m]);const{wildCardSearch:he,searchEnabled:me,layoutOptions:ge={}}=null!=c?c:{},ve=!1!==me&&"toggle"===h,be=!0===(null==c||null===(t=c.qListObject)||void 0===t||null===(n=t.qDimensionInfo)||void 0===n?void 0:n.qLocked),ye=be||ve,xe="H"===(null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.qGrouping),Se=ye||xe,we=(ye?28:0)+(xe?19:0),Ee="rtl"===d,Ce=zL-(ye?7:0),ke=Ee?zL-(Se?7:0):4;if(H.useEffect((()=>{if(!ee.current||!A)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:l,headerPaddingLeft:s,headerPaddingRight:c}=e;const u=s+c,d=i.width<(null!==(t=null==a||null===(n=a.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+l+u+2+128,p=(null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)>(null==a||null===(o=a.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!p)}({containerRect:A,titleRef:ee,iconsWidth:we,headerPaddingLeft:Ce,headerPaddingRight:ke});le(e)}),[ee.current,A]),!v||!c||!P)return null;const Le=DO({layout:c,model:v,translator:P,selectionState:te,isDirectQuery:q}),Re=(!0===h||"toggle"===h&&$)&&!S()&&!1!==me,Oe=null!==(a=ge.dense)&&void 0!==a&&a,Ie=fe?49+(Re?Oe?27:40:0)+(Oe?39:49):0,Te=()=>{V(!$)},Pe=()=>{if("toggle"===h)Te();else{const e=j.current.querySelector("input");null==e||e.focus()}},_e=e=>function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,selections:a,keyboard:l}=e;return{show:n&&!t,popover:{show:n&&t,anchorEl:r.current},more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:a,onConfirm:()=>{null==l||l.focus()},onCancel:()=>{null==l||l.focus()}}}}({isDetached:!O&&e,showToolbar:B,containerRef:z,isLocked:be,listboxSelectionToolbarItems:Le,selections:b,keyboard:ne}),Ne=Re&&"toggle"===h,Me="grid"===(null==ge?void 0:ge.dataLayout);let qe;Me&&(qe="row"===ge.layoutOrder?"2px 4px":"2px 6px 2px 4px");const ze=null!=M&&M.active?U.createElement(aI,{title:P.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):U.createElement($S,{onClick:Te,tabIndex:-1,title:P.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},U.createElement(aI,{style:{fontSize:"12px"}})),De=S()?U.createElement(gL,{size:"large",style:{fontSize:"12px",padding:"7px"}}):U.createElement($S,{title:P.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:T,size:"large"},U.createElement(gL,{disableRipple:!0,style:{fontSize:"12px"}}));return oe&&(null==L||L()),U.createElement(U.Fragment,null,pe&&U.createElement(iI,l({direction:d},_e(!0))),U.createElement(rT,{className:"listbox-container",container:!0,tabIndex:ne.enabled?-1:void 0,direction:"column",gap:0,containerPadding:qe,style:{height:"100%",minHeight:"".concat(Ie,"px"),flexFlow:"column nowrap"},onKeyDown:se,onMouseEnter:ce,onMouseLeave:ue,ref:e=>{z.current=e,D(e)},isGridMode:Me},fe&&U.createElement(UE,{item:!0,container:!0,minHeight:32,flexDirection:Ee?"row-reverse":"row",marginY:1,paddingLeft:"".concat(Ce,"px"),paddingRight:"".concat(ke,"px"),wrap:"nowrap"},Se&&U.createElement(UE,{item:!0,container:!0,alignItems:"center",width:we},be?De:ve&&ze,xe&&U.createElement(ZI,{tabIndex:-1,title:P.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),U.createElement(UE,{item:!0,xs:!0,minWidth:0,justifyContent:Ee?"flex-end":"flex-start",className:nT.listBoxHeader},U.createElement(oT,{variant:"h6",noWrap:!0,ref:ee,title:c.title},c.title)),U.createElement(UE,{item:!0},U.createElement(iI,l({direction:d},_e(ae))))),U.createElement(UE,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"50px"},role:"region","aria-label":P.get("Listbox.ResultFilterLabel")},U.createElement(UE,{item:!0,ref:F},U.createElement("div",{className:nT.screenReaderOnly},P.get("Listbox.Search.ScreenReaderInstructions")),U.createElement(dI,{selections:b,selectionState:te,model:v,dense:Oe,keyboard:ne,visible:Re,search:h,autoFocus:Ne,wildCardSearch:he,searchEnabled:me,direction:d,hide:ve&&Te})),U.createElement(UE,{item:!0,xs:!0,className:nT.listboxWrapper},U.createElement("div",{className:nT.screenReaderOnly},P.get("Listbox.ScreenReaderInstructions")),oe?U.createElement(eT,{text:ie}):U.createElement(KI,null,(e=>{let{height:t,width:n}=e;return U.createElement(_O,{model:v,app:u,theme:I,constraints:M,layout:c,selections:b,selectionState:te,direction:d,frequencyMode:p,rangeSelect:g,checkboxes:f,height:t,width:n,update:y,fetchStart:x,postProcessPages:w,calculatePagesHeight:E,selectDisabled:S,keyboard:ne,showGray:C,scrollState:k,keyScroll:{state:K,reset:()=>Z({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Q,set:J},renderedCallback:L,onCtrlF:Pe,isModal:re})}))))))}));function aT(e){let{options:t={}}=e;const{model:n}=t,[r]=uL(n);return U.createElement(iT,{options:t,layout:r})}const lT={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,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function sT(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 cT=["__DO_NOT_USE__"],uT=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 i(i(i({},s(e,cT)),n),t)};function dT(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:a,options:l,renderedCallback:s}=e;const{isExistingObject:c,hasExternalSelectionsApi:u}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:r,options:l});c||Object.assign(l,{frequencyMode:sT(l.frequencyMode)});const[d,p]=H.useState(0);H.useEffect((()=>{if(d)throw new Error("Source or selection Api can not change after a listbox has been mounted");p(d+1)}),[c,u]);const f=c?function(e){let{app:t,qId:n,options:r={}}=e;const[o,i]=H.useState(),[a]=nL(),{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 H.useEffect((()=>{l?i(l):async function(){const e=a.get(n);if(e)i(e);else{const e=await t.getObject(n);a.set(e.id,e),e.once("closed",(()=>{a.clear(e.id)})),i(e)}}()}),[]),o}({app:t,qId:r,options:l}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:i={}}=e;const[a,l]=H.useState(""),[s,c]=H.useState(!0),[u,d]=H.useState(),[p,f]=H.useState(),h=null!==(t=i.title)&&void 0!==t?t:p;let{histogram:m=!1,frequencyMode:g="N"}=i;a&&a.failedToFetchFieldDef&&(m=!1,g="N"),H.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={}}=i,S={dense:v};"horizontal"===y&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const w=H.useRef();w.current||(w.current=AI());const E=$e(!0,{},lT,{qInfo:{qId:w.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:b,layoutOptions:S,title:h});let C;if($e(!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!=a&&a.multiFieldDim)E.frequencyMax="fetch";else{const e=r.qLibraryId?a:C;E.frequencyMax={qValueExpression:RO(e)}}const[k]=iL(E,s?null:n,C,o);return H.useEffect((()=>{k&&d(k)}),[k]),u}({app:t,fieldIdentifier:n,stateName:o,options:l}),h=H.useRef(a),m=u?l.selectionsApi:mI(t,f,[h,".njs-action-toolbar-more",".njs-action-toolbar-popover"],l)[0],g=H.useMemo((()=>i(i({},l),{},{selections:m,model:f,app:t,renderedCallback:s})),[l,m,f,t]);return m&&f?U.createElement(aT,{options:g}):null}const pT={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function fT(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:i={}}=e;const[a,l]=H.useState(!!i.show);return U.createElement(bI,{show:a,app:t,alignTo:{current:o},anchorOrigin:i.anchorOrigin,transformOrigin:i.transformOrigin,close:()=>{l(!1),i.onPopoverClose&&i.onPopoverClose()},fieldName:n,stateName:r,autoFocus:i.autoFocus})}function hT(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function mT(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 gT=e=>({qDef:{qFieldDefs:[e]}}),vT=e=>({qDef:{qDef:e}});function bT(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?gT(e):i(i({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||AI(),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),hT(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 mT(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?vT(e):i(i({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||AI(),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),hT(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];mT(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 yT=e=>({qDef:{qFieldDefs:[e]}});function xT(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?yT(e):i(i({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||AI(),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 ST=e=>({qDef:{qFieldDefs:[e]}}),wT=e=>{let t;return t="string"==typeof e?$e(!0,{},lT,{qListObjectDef:ST(e)}):e.qListObjectDef?$e(!0,{},lT,e):$e(!0,{},lT,{qListObjectDef:e}),t};function ET(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=wT(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||AI(),!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 i,a;r.title=o.qDef.title||(null===(i=o.qDef.qFieldLabels)||void 0===i?void 0:i[0])||(null===(a=o.qDef.qFieldDefs)||void 0===a?void 0:a[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}};return r}function CT(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 kT(e,t){let{sn:n,properties:r,fields:o,children:i}=e;if(!o.length)return;const a=n.qae.data.targets[0];if(!a)return;const{propertyPath:l}=a,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")?xT:e.match("/qChildListDef")?ET:bT}(l),d=u({dc:c,def:a,properties:r,children:i,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===CT(t)?await d.addMeasure(t):await d.addDimension(t)}}var LT={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 i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?i[o]=n:delete i[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var RT={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 OT=2**53-1;function IT(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function TT(e,t){const n=$e(!0,{},t,e);return LT.getValue(n,"qOtherTotalSpec.qOtherCounted")||LT.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),LT.getValue(n,"qOtherTotalSpec.qOtherLimit")||LT.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function PT(e,t){return $e(!0,{},t,e)}function _T(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var NT={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===LT.getValue(e,t)&<.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:IT,importCommonProperties:function(e,t,n){const r="masterobject"===LT.getValue(t,"properties.qInfo.qType")?"masterobject":LT.getValue(n,"qInfo.qType");LT.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:TT,createDefaultMeasure:PT,resolveValue:_T,getHypercubePath:function(e){const t=LT.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 i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(RT.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,RT.indexRemoved(n.qInterColumnSortOrder,i))},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=$e(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?LT.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||IT(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=$e(!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},i=n.measures||{max:0},a=_T(i.max,r.dimensions.length,OT),l=_T(i.min,r.dimensions.length,0);return{maxDimensions:_T(o.max,a,OT),minDimensions:_T(o.min,l,0),maxMeasures:a,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i}=e;const a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i,newHyperCubeDef:a}=e;const l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:i}=e;const a=t.data[0];let l;if(n>0)for(l=0;l<a.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(TT(a.dimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TT(a.dimensions[l],i));else if(a.dimensions.length)for(l=0;l<a.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TT(a.dimensions[l],i));if(a.excludedDimensions.length)for(l=0;l<a.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(TT(a.excludedDimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TT(a.excludedDimensions[l],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let l;if(n>0)for(l=0;l<a.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(PT(a.measures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(PT(a.measures[l],i));else if(a.measures.length)for(l=0;l<a.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(PT(a.measures[l],i));if(a.excludedMeasures.length)for(l=0;l<a.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(PT(a.excludedMeasures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(PT(a.excludedMeasures[l],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=LT.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=LT.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var MT={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,i=LT.getValue(o,n||""),a=i.qHyperCubeDef,l=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),l.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();RT.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete a.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=i.qHyperCubeDef,delete i.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&&(NT.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!LT.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},l=NT.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),s=LT.getValue(n,i||"").qHyperCubeDef,c=LT.getValue(l,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=NT.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=NT.getDefaultDimension(),defaultMeasure:m=NT.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,NT.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&NT.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),NT.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),NT.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),NT.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),NT.copyPropertyIfExist("qMaxStackedCells",s,c),NT.copyPropertyIfExist("qNoOfLeftDims",s,c),NT.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),NT.copyPropertyOrSetDefault("qMode",s,c,"S"),NT.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),NT.copyPropertyOrSetDefault("qSortbyYValue",s,c),NT.copyPropertyOrSetDefault("qIndentMode",s,c),NT.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),NT.importCommonProperties(l,t,n),NT.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),NT.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),a.qProperty=l,a}(e)};const qT=e=>LT.getValue(e,"data.targets.0.propertyPath"),zT=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return MT.exportProperties})(qT(e))},DT=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return MT.importProperties})(qT(e))},AT=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const a=await n.getFullPropertyTree(),l=r.current.getQae(),s=zT(l),c=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}),u=c.qae;return DT(u)({exportFormat:s({propertyTree:a,hypercubePath:NT.getHypercubePath(l)}),initialProperties:i({qInfo:{qType:o},visualization:o},LT.getValue(u,"properties.initial",{})),dataDefinition:LT.getValue(u,"data.targets.0.",{}),hypercubePath:NT.getHypercubePath(u)})},jT={hypercube:MT};var FT=e=>hL((e=>i(i({},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 BT(e){let{d:t}=e;const n=Wv();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 i={color:o},a=U.createElement(XS,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},U.createElement(nC,null,t.missing||t.error?U.createElement(FT,{style:i}):U.createElement(PL,{style:i})));return U.createElement(UE,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},U.createElement(UE,{item:!0},a),U.createElement(UE,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},U.createElement(XS,{noWrap:!0,component:"p"},U.createElement(XS,{component:"span",variant:"subtitle2",color:r},t.description),U.createElement(XS,{component:"span"}," "),U.createElement(XS,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function WT(e){let{data:t}=e;const n=Wv();return U.createElement(UE,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>U.createElement(BT,{d:e,key:t})));return r.length>0&&U.createElement(UE,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},U.createElement(XS,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function $T(e){let{title:t="Error",message:n="",data:r=[]}=e;return U.createElement(UE,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},U.createElement(UE,{item:!0},U.createElement(FT,{style:{fontSize:"38px"}})),U.createElement(UE,{item:!0},U.createElement(XS,{variant:"h6",align:"center","data-tid":"error-title"},t)),U.createElement(UE,{item:!0},U.createElement(XS,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),U.createElement(WT,{data:r}))}const HT=["size"],UT="Progress",VT={root:"".concat(UT,"-root"),front:"".concat(UT,"-front"),back:"".concat(UT,"-back")},GT=Vv("div")((e=>{let{theme:t}=e;return{["&.".concat(VT.root)]:{position:"relative",display:"inline-block"},["& .".concat(VT.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(VT.back)]:{color:t.palette.divider}}})),KT={small:16,medium:32,large:64,xlarge:128};function ZT(e){let{size:t="medium"}=e,n=s(e,HT);const r=KT[t];return U.createElement(GT,{className:VT.root},U.createElement(mE,l({variant:"determinate",value:100,className:VT.back,size:r,thickness:3},n)),U.createElement(mE,l({variant:"indeterminate",disableShrink:!0,className:VT.front,size:r,thickness:3},n)))}const XT=["cancel","translator"],QT=["retry","translator"],JT={stripes:"".concat("LongRunningQuery","-stripes")},YT=Vv(UE)((()=>({["& .".concat(JT.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 eP(e){let{cancel:t,translator:n}=e,r=s(e,XT);return U.createElement(U.Fragment,null,U.createElement(YT,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},U.createElement(UE,{item:!0},U.createElement(ZT,null)),U.createElement(UE,{item:!0},U.createElement(XS,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),U.createElement(UE,l({item:!0},r),U.createElement(Xx,{variant:"contained",onClick:t},n.get("Cancel"))))}function tP(e){let{retry:t,translator:n}=e,r=s(e,QT);return U.createElement(U.Fragment,null,U.createElement(UE,{item:!0},U.createElement(FT,{style:{fontSize:"38px"}})),U.createElement(UE,{item:!0},U.createElement(XS,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),U.createElement(UE,{item:!0},U.createElement(Xx,l({variant:"contained",onClick:t},r),n.get("Retry"))))}function nP(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=H.useContext(cS);return U.createElement(UE,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:JT.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&U.createElement(eP,{cancel:r.cancel,translator:o,className:JT.cancel}),n&&U.createElement(tP,{retry:r.retry,translator:o,className:JT.retry}))}function rP(){return U.createElement(UE,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},U.createElement(ZT,{size:"large"}))}const oP="Header",iP={containerStyle:"".concat(oP,"-containerStyle"),containerTitleStyle:"".concat(oP,"-containerTitleStyle")},aP=Vv(UE)((e=>{let{theme:t}=e;return{["&.".concat(iP.containerStyle)]:{flexGrow:0},["&.".concat(iP.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),lP="njs-cell-title",sP="njs-cell-sub-title";function cP(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:i,titleStyles:a={}}=e;const l=t.showTitles&&!!t.title,s=t.showTitles&&!!t.subtitle,c=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,d]=H.useState([]),[p,f]=pL(),[h,m]=H.useState(!1);H.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{d([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),H.useEffect((()=>{if(!f)return;const{width:e}=f;m(e<221)}),[f]);const g=l||s,v=[iP.containerStyle,...g?[iP.containerTitleStyle]:[]],b=(o||c)&&(h||!g),y=g&&!b&&!h,x=U.createElement(iI,{show:y,selections:{show:c,api:n.component.selections,onKeyDeactivate:i.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:i});return U.createElement(aP,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},U.createElement(UE,{item:!0,zeroMinWidth:!0,xs:!0},U.createElement(UE,{container:!0,wrap:"nowrap",direction:"column"},l&&U.createElement(XS,{variant:"h6",noWrap:!0,className:lP,style:a.main},t.title),s&&U.createElement(XS,{variant:"body2",noWrap:!0,className:sP,style:a.subTitle},t.subtitle))),U.createElement(UE,{item:!0},x))}const uP={itemStyle:"".concat("Footer","-itemStyle")},dP=Vv(UE)((e=>{let{theme:t}=e;return{["& .".concat(uP.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),pP="njs-cell-footer";function fP(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?U.createElement(dP,{container:!0},U.createElement(UE,{item:!0,className:uP.itemStyle},U.createElement(XS,{noWrap:!0,variant:"body2",className:pP,style:n.footer},t.footnote))):null}class hP{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 mP="njs-viz";function gP(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:l}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=H.useContext(cS),[h]=H.useState((()=>new hP)),[m,g]=H.useState(!1),[v,b]=H.useState(0),[y,x,S]=pL(),[w,E]=H.useState(null),C=H.useCallback((e=>{e&&E(e)}),[]);return H.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),H.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"),l.app&&l.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:l.public.nebbie,context:i({constraints:d,interactions:p,theme:l.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]),U.createElement("div",{ref:y,"data-render-count":v,style:{position:"relative",height:"100%"},className:mP},U.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const vP={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},bP={"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 yP(e,t){return t?function(e){var t;let n,r,o,i;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host):""}(e)+t:void 0}function xP(e,t){const n=null==e?void 0:e.bgImage;if(n){let i="";var r,o;if("media"===n.mode||"media"===e.useImage)i=null!=n&&null!==(r=n.mediaUrl)&&void 0!==r&&null!==(o=r.qStaticContentUrl)&&void 0!==o&&o.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=yP(t,i);"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const a=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=bP[e.bgImage.position]),n}(e),l=function(e){var t;let n=vP.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=vP[e.bgImage.sizing]),n}(e);return i?{url:i,pos:a,size:l}:void 0}}function SP(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t?r.useExpression?t.validateColor(r.colorExpression):r.color&&"none"!==r.color.color?t.getColorPickerColor(r.color,!0):void 0:t&&n?t.getStyle("object.".concat(n),"","backgroundColor"):t?t.getStyle("","","backgroundColor"):void 0}function wP(e,t,n,r){var o;const i=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},a=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(i.fontStyle,t);return{fontFamily:i.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),color:i.color&&"none"!==i.color.color?n.getColorPickerColor(i.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:a.includes("bold")?"bold":"normal",fontStyle:a.includes("italic")?"italic":"normal",textDecoration:a.includes("underline")?"underline":"initial"}}const EP="njs-cell",CP=(e,t)=>{switch(t.type){case"LOADING":return i(i({},e),{},{loading:!0});case"LOADED":return i(i({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return i(i({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return i(i({},e),{},{longRunningQuery:!0});case"ERROR":return i(i({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function kP(e){let{delay:t=750}=e;const[n,r]=H.useState(!1);return H.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?U.createElement(rP,null):null}const LP=e=>!e.qError||7005===e.qError.qErrorCode,RP=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,l=i&&!a&&t[e].qError,s=a&&t[e].qCalcCondMsg,c="".concat(l?r:a?s||o:i&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!i&&!l&&e>=t.length||a,error:l}})),OP=e=>e&&(Array.isArray(e)?e:[e])||[],IP=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:RP(o,OP(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:RP(i,OP(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},TP=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:l,hasLayoutErrors:s,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,i=0,a=!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=OP(f.qDimensionInfo||f.qItems).filter(LP),m=OP(f.qMeasureInfo).filter(LP);if(o+=d,i+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){a=!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:i,hasLayoutErrors:a,layoutErrors:s}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const a=o[n];if(!s&&i){const n=p||await r.getProperties();p=n;const o=IP(e,t,n,a);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,a]),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||i,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},PP=H.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:s,currentId:c,emitter:u}=e;const{app:d,types:p}=n,{nebbie:f}=n.public,{theme:h,translator:m,language:g,keyboardNavigation:v,disableCellPadding:b=!1}=H.useContext(cS),y=Wv(),[x,S,w]=pL(),[E,C]=H.useReducer(CP,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=l)?{title:k.message}:null,sn:null,visualization:null});var k;const[L,{validating:R,canCancel:O,canRetry:I},T]=uL(r),[P]=dL(d),[_,N,M]=pL(),[q,z]=H.useState(o),[D,A]=H.useState(a),j="njs-cell-".concat(c),[F]=mI(d,r,["#".concat(j),".njs-action-toolbar-popover"]),[B,W]=H.useState(!1),$=H.useRef({enter:null,leave:null}),[V,G]=H.useState(void 0),[K,Z]=H.useState(void 0),[X,Q]=H.useState(void 0),J=H.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});H.useEffect((()=>{pI(J.current)}),[]),H.useEffect((()=>{if(L&&n.public.theme){const e=L.components?L.components.find((e=>"general"===e.key)):null;Q({main:wP(e,"main",n.public.theme,L.visualization),footer:wP(e,"footer",n.public.theme,L.visualization),subTitle:wP(e,"subTitle",n.public.theme,L.visualization)}),G(SP(e,n.public.theme,L.visualization)),Z(xP(e,n.app))}}),[L,n.public.theme,n.app,h]),J.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&M&&M.focus()},J.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()};H.useEffect((()=>{if(l||!P||!L)return;if(E.visualization===L.visualization&&E.sn)return void(async e=>{const[t,n]=await TP(m,L,e.generator.qae.data,r);C(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:E.sn,layout:L,model:r})})(E.sn);const e=p.getSupportedVersion(L.visualization,L.version);return(async(e,t)=>{C({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:l,nebbie:s,focusHandler:c,emitter:u}=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});return e.create({model:i,app:a,selections:l,nebbie:s,focusHandler:c,emitter:u})}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,"?")}})}})({dispatch:C,types:p,visualization:e,version:t,model:r,app:d,selections:F,nebbie:f,focusHandler:J.current,emitter:u});n&&(C({type:"LOADED",sn:n,visualization:e}),s())})(L.visualization,e),()=>{}}),[p,E.sn,r,F,L,P,g]),H.useEffect((()=>{if(!R)return;const e=setTimeout((()=>C({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[R]),H.useImperativeHandle(t,(()=>({getQae:()=>E.sn.generator.qae,toggleFocus(e){"function"==typeof E.sn.component.focus&&(e?E.sn.component.focus():E.sn.component.blur())},setSnOptions:z,setSnPlugins:A,getImperativeHandle(){var e;return null!==(e=E.sn)&&void 0!==e&&e.component&&"function"==typeof E.sn.component.getImperativeHandle?E.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=S;let n=JSON.parse(JSON.stringify(L));return"function"==typeof E.sn.component.setSnapshotData&&(n=await E.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:m.language(),theme:y.name,appLayout:P,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)}})),[E.sn,N,S,L,y.name,P]);let Y=null;return E.loading&&!E.longRunningQuery?Y=U.createElement(kP,null):E.error?Y=U.createElement($T,E.error):E.loaded&&(Y=U.createElement(gP,{key:L.visualization,sn:E.sn,halo:n,snOptions:q,snPlugins:D,layout:L,appLayout:P})),U.createElement(DS,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:V||"unset",backgroundImage:K&&K.url?"url(".concat(K.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:K&&K.size,backgroundPosition:K&&K.pos},elevation:0,square:!0,className:EP,ref:x,id:j,onMouseEnter:()=>{$.current.leave&&clearTimeout($.current.leave),$.enter||($.current.enter=setTimeout((()=>{W(!0),$.current.enter=null}),250))},onMouseLeave:()=>{$.current.enter&&clearTimeout($.current.enter),$.current.leave||($.current.leave=setTimeout((()=>{W(!1),$.current.leave=null}),750))}},U.createElement(UE,{container:!0,direction:"column",gap:0,style:i(i({position:"relative",width:"100%",height:"100%"},b?{}:{padding:y.spacing(1)}),E.longRunningQuery?{opacity:"0.3"}:{})},w&&L&&E.sn&&U.createElement(cP,{layout:L,sn:E.sn,anchorEl:w,hovering:B,focusHandler:J.current,titleStyles:X}," "),U.createElement(UE,{tabIndex:v?0:-1,onKeyDown:v?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:_},Y),w&&L&&E.sn&&U.createElement(fP,{layout:L,titleStyles:X})),E.longRunningQuery&&U.createElement(nP,{canCancel:O,canRetry:I,api:T}))}));function _P(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function NP(){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 i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?function(e,t){return _P(e)&&_P(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...NP("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function MP(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 qP=()=>{};function zP(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=qP,a=null,l=null,s=null,c=null;const u=new Promise((e=>{s=e})),d=new Promise((e=>{c=e})),p=e=>()=>{e&&e(),c()};let f={},h=[];const m=new Y,g={id:e.id,model:e,async destroy(){await r(),o(),o=qP},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await AT({halo:t,model:e,cellRef:a,newType:n});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},addListener(e,t){m.addListener(e,t)},removeListener(e,t){m.removeListener(e,t)},getImperativeHandle:async()=>(await d,a.current.getImperativeHandle()),__DO_NOT_USE__:{mount(r){if(l)throw new Error("Already mounted");return l=r,[o,a]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,emitter:l,initialError:s}=e;const{root:c}=t,u=U.createRef(),d=AI(),p=xp.createPortal(U.createElement(PP,{ref:u,halo:t,model:r,currentId:d,initialSnOptions:o,initialSnPlugins:i,initialError:s,onMount:a,emitter:l}),n,d),f=()=>{c.remove(p),r.removeListener("closed",f)};return r.on("closed",f),c.add(p),c.addCell(d,u),[f,u]}({halo:t,element:r,model:e,initialSnOptions:f,initialSnPlugins:h,initialError:n,onMount:s,emitter:m}),u},async applyProperties(t){const n=NP("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;l?(async()=>{await u,a.current.setSnOptions(i(i(i({},f),e),{onInitialRender:p(t)}))})():f=i(i(i({},f),e),{onInitialRender:p(t)})})(e)},plugins(e){(async e=>{MP(e),l?(async()=>{await u,a.current.setSnPlugins(e)})():h=e})(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot(),getModel:()=>e}};return g}async function DP(e,t,n,r){const o=zP({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}async function AP(e,t,n){let{type:r,version:o,fields:i,properties:a,extendProperties:l}=e,s={};const c=[];try{const e=t.types.get({name:r,version:o});s=await e.initialProperties(a,l);const n=await e.supernova();i&&await kT({sn:n,properties:s,fields:i,children:c},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},s)}catch(e){s=n?null:{qInfo:{qType:r},visualization:r}}if(!n){const e=await t.app.createObject(s);return c.length>0&&await e.setFullPropertyTree({qProperty:s,qChildren:c}),rL.set(e.id,e),e}return s}const jP={className:"njs-sheet"};function FP(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:i,onMount:a}=e;const{root:l}=n,[s]=uL(t),{theme:c}=H.useContext(cS),[u,d]=H.useState([]),[p,f]=H.useState(void 0),[h,m]=H.useState(void 0),[g,v]=H.useState("");H.useEffect((()=>{if(s){const e=JSON.stringify(s.cells);if(e===g)return;v(e);const t=async()=>{u.forEach((e=>{l.removeCell(e.currentId)}));const e=s.cells,t=await Promise.all(e.map((async e=>{let t;const r=new Promise((e=>{t=e})),o=u.find((t=>t.id===e.name));if(o)return o.bounds=e.bounds,delete o.mountedPromise,o;const i=await async function(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let l=Qk.get(a);l||(l=t.app.getObject(n),Qk.set(a,l));const s=await l;return rL.set(a,s),DP(s,{options:r,plugins:o,element:i},t)}({id:e.name},n);return{model:i.model,id:e.name,bounds:e.bounds,cellRef:U.createRef(),currentId:AI(),mounted:t,mountedPromise:r}})));t.forEach((e=>l.addCell(e.currentId,e.cellRef))),d(t)};t()}}),[s]);const b=H.useMemo((()=>u?u.map((e=>function(e,t,n,r,o,i){const{x:a,y:l,width:s,height:c}=e.bounds;return U.createElement("div",{style:{left:"".concat(a,"%"),top:"".concat(l,"%"),width:"".concat(s,"%"),height:"".concat(c,"%"),position:"absolute"}},U.createElement(PP,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i}))}(e,n,r,o,i,e.mounted))):[]),[u]);H.useEffect((()=>{const e=null!=s&&s.components?s.components.find((e=>"general"===e.key)):null;f(SP(e,n.public.theme)),m(xP(e,n.app))}),[s,n.public.theme,n.app,c]);const y=!s||Number.isNaN(s.height)?"100%":"".concat(Number(s.height),"%"),x=u.map((e=>e.mountedPromise)),S=x.filter((e=>!!e));return S.length&&Promise.all(x).then((()=>{a()})),U.createElement("div",{className:jP.className,style:{width:"100%",height:y,position:"relative",backgroundColor:p,backgroundImage:h&&h.url?"url(".concat(h.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:h&&h.size,backgroundPosition:h&&h.pos}},b)}const BP=()=>{};function WP(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=BP,a=null,l=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p={id:e.id,model:e,async destroy(){await r(),o(),o=BP},__DO_NOT_USE__:{mount(r){if(l)throw new Error("Already mounted");return l=r,[o,a]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,initialError:l}=e;const{root:s}=t,c=U.createRef(),u=xp.createPortal(U.createElement(FP,{ref:c,halo:t,model:r,initialSnOptions:o,initialSnPlugins:i,initialError:l,onMount:a}),n,r.id),d=()=>{s.remove(u),r.removeListener("closed",d)};return r.on("closed",d),s.add(u),[d,c]}({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=NP("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{l?(async()=>{await c,a.current.setSnOptions(i(i({},u),e))})():u=i(i({},u),e)})(e)},plugins(e){(async e=>{MP(e),l?(async()=>{await c,a.current.setSnPlugins(e)})():d=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return p}async function $P(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let l=Qk.get(a);l||(l=t.app.getObject(n),Qk.set(a,l));const s=await l;return rL.set(a,s),"sheet"===s.genericType?async function(e,t,n,r){const o=WP({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}(s,{options:r,plugins:o,element:i},t):DP(s,{options:r,plugins:o,element:i},t)}function HP(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const UP=$e.bind(null,!0),VP={},{isArray:GP}=Array;function KP(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ZP(e){return void 0===e}function XP(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function QP(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 i=isNaN(r)?{}:[];e[r||t]=ZP(e[r||t])?i:e[t],e=e[r||t]})),e}function JP(e,t){let n=!0;if(KP(e)&&KP(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{JP(e[r],t[r])||(n=!1)})),n);if(GP(e)&&GP(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!JP(e[n],t[n]))return!1;return!0}return e===t}VP.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?UP({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);JP(i,a)||XP(t,o)||(ZP(a)?r.push({op:"add",path:l,value:i}):KP(i)&&KP(a)?r=r.concat(VP.generate(a,i,l)):GP(i)&&GP(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&ZP(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(JP(t,o))return r;if(!ZP(t[0])&&ZP(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(VP.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(i)}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((o=>{ZP(t[o])&&!XP(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},VP.apply=function(e,t){t.forEach((t=>{let n=QP(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(GP(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(GP(o)&&GP(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(KP(o)&&KP(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!XP(a,e)&&delete a[e]})),UP(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=QP(e,t.from);GP(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(GP(n)?n.splice(+r,1):delete n[r]);var a}))},VP.clone=function(e){return UP({},e)},VP.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},VP.updateObject=function(e,t){Object.keys(e).length?VP.apply(e,VP.generate(e,t)):UP(e,t)};const YP=e=>t=>{const n=(r=i(i({},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(Y.prototype).forEach((e=>{r[e]=Y.prototype[e]})),Y.init(r),r);var r;return n};let e_,t_;function n_(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 r_(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}}}function o_(e){a_(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 i_(e){if(e.__hooks.obsolete)return Promise.resolve();t_=-1,e_=e,e_.__hooks.initiated&&e_.__hooks.list.length;try{e_.fn.call(null)}catch(e){console.error(e)}e_.__hooks.initiated=!0;const t=e_.__hooks;return u_(e_),t_=void 0,e_=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){a_(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){a_(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 a_(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 l_(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 s_(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function c_(e){return e.__hooks.imperativeHandle}function u_(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function d_(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,u_(e))}function p_(e){if(void 0===e_)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=e_.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function f_(e){p_(++t_);return e_.context[e]}function h_(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function m_(e){return{__hooked:!0,fn:e,initiate:r_,run:i_,teardown:o_,runSnaps:l_,runMenu:s_,focus:S_,blur:w_,observeActions:d_,getImperativeHandle:c_,updateRectOnNextRun:h_}}function g_(e){const t=p_(++t_);if(!t.value){t.component=e_;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,i_(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function v_(e,t){const n=p_(++t_);n_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===e_.__hooks.pendingEffects.indexOf(n)&&e_.__hooks.pendingEffects.push(n))}function b_(e,t){const n=p_(++t_);n_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],e_.__hooks.pendingLayoutEffects.push(n))}function y_(e,t){const n=p_(++t_);return n_(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function x_(){return f_("element")}function S_(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 w_(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 E_={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},C_=Object.keys(E_),k_=e=>(Object.keys(Y.prototype).forEach((t=>{e[t]=Y.prototype[t]})),Y.init(e),e);function L_(e,t){const n=i({},E_);k_(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==C_.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=[],i=YP(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=i(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=i(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 R_(e,t,n){"function"==typeof e.component&&(e.component=m_(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={},l=["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,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)}l.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(i(i({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(i(i({},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){return e.component.runMenu(this,t,n)},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 l.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):L_(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];return e.qae.properties.onChange.call({model:t.model},...r),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 i=VP.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));VP.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const l=VP.generate(i,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.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 O_=()=>{};function I_(e,t){return void 0===e?()=>t:()=>e}function T_(e){const t=e||{};return{min:"function"==typeof t.min?t.min:I_(t.min,0),max:"function"==typeof t.max?t.max:I_(t.max,1e3),added:t.added||t.add||O_,description:t.description||O_,moved:t.moved||t.move||O_,removed:t.removed||t.remove||O_,replaced:t.replaced||t.replace||O_,isDefined:()=>!!e}}const P_=(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 __(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=>P_(e,n,{}),dimensions:T_(e.dimensions),measures:T_(e.measures)}}function N_(){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(__)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function M_(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:N_(n.qae),component:n.component||{},create:e=>R_(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var q_={exports:{}};!function(e,t){var n;t=e.exports=p,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],a=t.src=[],l=t.tokens={},s=0;function c(e){l[e]=s++}c("NUMERICIDENTIFIER"),a[l.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),a[l.NUMERICIDENTIFIERLOOSE]="[0-9]+",c("NONNUMERICIDENTIFIER"),a[l.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",c("MAINVERSION"),a[l.MAINVERSION]="("+a[l.NUMERICIDENTIFIER]+")\\.("+a[l.NUMERICIDENTIFIER]+")\\.("+a[l.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),a[l.MAINVERSIONLOOSE]="("+a[l.NUMERICIDENTIFIERLOOSE]+")\\.("+a[l.NUMERICIDENTIFIERLOOSE]+")\\.("+a[l.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),a[l.PRERELEASEIDENTIFIER]="(?:"+a[l.NUMERICIDENTIFIER]+"|"+a[l.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),a[l.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[l.NUMERICIDENTIFIERLOOSE]+"|"+a[l.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),a[l.PRERELEASE]="(?:-("+a[l.PRERELEASEIDENTIFIER]+"(?:\\."+a[l.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),a[l.PRERELEASELOOSE]="(?:-?("+a[l.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[l.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),a[l.BUILDIDENTIFIER]="[0-9A-Za-z-]+",c("BUILD"),a[l.BUILD]="(?:\\+("+a[l.BUILDIDENTIFIER]+"(?:\\."+a[l.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),a[l.FULLPLAIN]="v?"+a[l.MAINVERSION]+a[l.PRERELEASE]+"?"+a[l.BUILD]+"?",a[l.FULL]="^"+a[l.FULLPLAIN]+"$",c("LOOSEPLAIN"),a[l.LOOSEPLAIN]="[v=\\s]*"+a[l.MAINVERSIONLOOSE]+a[l.PRERELEASELOOSE]+"?"+a[l.BUILD]+"?",c("LOOSE"),a[l.LOOSE]="^"+a[l.LOOSEPLAIN]+"$",c("GTLT"),a[l.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),a[l.XRANGEIDENTIFIERLOOSE]=a[l.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),a[l.XRANGEIDENTIFIER]=a[l.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),a[l.XRANGEPLAIN]="[v=\\s]*("+a[l.XRANGEIDENTIFIER]+")(?:\\.("+a[l.XRANGEIDENTIFIER]+")(?:\\.("+a[l.XRANGEIDENTIFIER]+")(?:"+a[l.PRERELEASE]+")?"+a[l.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),a[l.XRANGEPLAINLOOSE]="[v=\\s]*("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:"+a[l.PRERELEASELOOSE]+")?"+a[l.BUILD]+"?)?)?",c("XRANGE"),a[l.XRANGE]="^"+a[l.GTLT]+"\\s*"+a[l.XRANGEPLAIN]+"$",c("XRANGELOOSE"),a[l.XRANGELOOSE]="^"+a[l.GTLT]+"\\s*"+a[l.XRANGEPLAINLOOSE]+"$",c("COERCE"),a[l.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),i[l.COERCERTL]=new RegExp(a[l.COERCE],"g"),c("LONETILDE"),a[l.LONETILDE]="(?:~>?)",c("TILDETRIM"),a[l.TILDETRIM]="(\\s*)"+a[l.LONETILDE]+"\\s+",i[l.TILDETRIM]=new RegExp(a[l.TILDETRIM],"g");c("TILDE"),a[l.TILDE]="^"+a[l.LONETILDE]+a[l.XRANGEPLAIN]+"$",c("TILDELOOSE"),a[l.TILDELOOSE]="^"+a[l.LONETILDE]+a[l.XRANGEPLAINLOOSE]+"$",c("LONECARET"),a[l.LONECARET]="(?:\\^)",c("CARETTRIM"),a[l.CARETTRIM]="(\\s*)"+a[l.LONECARET]+"\\s+",i[l.CARETTRIM]=new RegExp(a[l.CARETTRIM],"g");c("CARET"),a[l.CARET]="^"+a[l.LONECARET]+a[l.XRANGEPLAIN]+"$",c("CARETLOOSE"),a[l.CARETLOOSE]="^"+a[l.LONECARET]+a[l.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),a[l.COMPARATORLOOSE]="^"+a[l.GTLT]+"\\s*("+a[l.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),a[l.COMPARATOR]="^"+a[l.GTLT]+"\\s*("+a[l.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),a[l.COMPARATORTRIM]="(\\s*)"+a[l.GTLT]+"\\s*("+a[l.LOOSEPLAIN]+"|"+a[l.XRANGEPLAIN]+")",i[l.COMPARATORTRIM]=new RegExp(a[l.COMPARATORTRIM],"g");c("HYPHENRANGE"),a[l.HYPHENRANGE]="^\\s*("+a[l.XRANGEPLAIN]+")\\s+-\\s+("+a[l.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),a[l.HYPHENRANGELOOSE]="^\\s*("+a[l.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[l.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),a[l.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u<s;u++)n(u,a[u]),i[u]||(i[u]=new RegExp(a[u]));function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?i[l.LOOSE]:i[l.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof p))return new p(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?i[l.LOOSE]:i[l.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=d,t.valid=function(e,t){var n=d(e,t);return n?n.version:null},t.clean=function(e,t){var n=d(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),h(this.major,e.major)||h(this.minor,e.minor)||h(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);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":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new p(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(b(e,t))return null;var n=d(e),r=d(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},t.compareIdentifiers=h;var f=/^[0-9]+$/;function h(e,t){var n=f.test(e),r=f.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function m(e,t,n){return new p(e,n).compare(new p(t,n))}function g(e,t,n){return m(e,t,n)>0}function v(e,t,n){return m(e,t,n)<0}function b(e,t,n){return 0===m(e,t,n)}function y(e,t,n){return 0!==m(e,t,n)}function x(e,t,n){return m(e,t,n)>=0}function S(e,t,n){return m(e,t,n)<=0}function w(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 b(e,n,r);case"!=":return y(e,n,r);case">":return g(e,n,r);case">=":return x(e,n,r);case"<":return v(e,n,r);case"<=":return S(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function E(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof E){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof E))return new E(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===C?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return h(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=m,t.compareLoose=function(e,t){return m(e,t,!0)},t.compareBuild=function(e,t,n){var r=new p(e,n),o=new p(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return m(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=g,t.lt=v,t.eq=b,t.neq=y,t.gte=x,t.lte=S,t.cmp=w,t.Comparator=E;var C={};function k(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof k)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new k(e.raw,t);if(e instanceof E)return new k(e.value,t);if(!(this instanceof k))return new k(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function L(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function R(e){return!e||"x"===e.toLowerCase()||"*"===e}function O(e,t,n,r,o,i,a,l,s,c,u,d,p){return((t=R(n)?"":R(r)?">="+n+".0.0":R(o)?">="+n+"."+r+".0":">="+t)+" "+(l=R(s)?"":R(c)?"<"+(+s+1)+".0.0":R(u)?"<"+s+"."+(+c+1)+".0":d?"<="+s+"."+c+"."+u+"-"+d:"<="+l)).trim()}function I(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==C&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function T(e,t,n){try{t=new k(t,n)}catch(e){return!1}return t.test(e)}function P(e,t,n,r){var o,i,a,l,s;switch(e=new p(e,r),t=new k(t,r),n){case">":o=g,i=S,a=v,l=">",s=">=";break;case"<":o=v,i=x,a=g,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(T(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],d=null,f=null;if(u.forEach((function(e){e.semver===C&&(e=new E(">=0.0.0")),d=d||e,f=f||e,o(e.semver,d.semver,r)?d=e:a(e.semver,f.semver,r)&&(f=e)})),d.operator===l||d.operator===s)return!1;if((!f.operator||f.operator===l)&&i(e,f.semver))return!1;if(f.operator===s&&a(e,f.semver))return!1}return!0}E.prototype.parse=function(e){var t=this.options.loose?i[l.COMPARATORLOOSE]:i[l.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new p(n[2],this.options.loose):this.semver=C},E.prototype.toString=function(){return this.value},E.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return w(e,this.operator,this.semver,this.options)},E.prototype.intersects=function(e,t){if(!(e instanceof E))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new k(e.value,t),T(this.value,n,t));if(""===e.operator)return""===e.value||(n=new k(this.value,t),T(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),l=w(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=w(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||l||s},t.Range=k,k.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},k.prototype.toString=function(){return this.range},k.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[l.HYPHENRANGELOOSE]:i[l.HYPHENRANGE];e=e.replace(r,O),n("hyphen replace",e),e=e.replace(i[l.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[l.COMPARATORTRIM]),e=(e=(e=e.replace(i[l.TILDETRIM],"$1~")).replace(i[l.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[l.COMPARATORLOOSE]:i[l.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[l.CARETLOOSE]:i[l.CARET];return e.replace(r,(function(t,r,o,i,a){var l;return n("caret",e,t,r,o,i,a),R(r)?l="":R(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":R(i)?l="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),l="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),l="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",l),l}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[l.TILDELOOSE]:i[l.TILDE];return e.replace(r,(function(t,r,o,i,a){var l;return n("tilde",e,t,r,o,i,a),R(r)?l="":R(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":R(i)?l=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),l=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):l=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",l),l}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[l.XRANGELOOSE]:i[l.XRANGE];return e.replace(r,(function(r,o,i,a,l,s){n("xRange",e,r,o,i,a,l,s);var c=R(i),u=c||R(a),d=u||R(l),p=d;return"="===o&&p&&(o=""),s=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(u&&(a=0),l=0,">"===o?(o=">=",u?(i=+i+1,a=0,l=0):(a=+a+1,l=0)):"<="===o&&(o="<",u?i=+i+1:a=+a+1),r=o+i+"."+a+"."+l+s):u?r=">="+i+".0.0"+s+" <"+(+i+1)+".0.0"+s:d&&(r=">="+i+"."+a+".0"+s+" <"+i+"."+(+a+1)+".0"+s),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[l.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new E(e,this.options)}),this)},k.prototype.intersects=function(e,t){if(!(e instanceof k))throw new TypeError("a Range is required");return this.set.some((function(n){return L(n,t)&&e.set.some((function(e){return L(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new k(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},k.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(I(this.set[t],e,this.options))return!0;return!1},t.satisfies=T,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new k(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new k(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minVersion=function(e,t){e=new k(e,t);var n=new p("0.0.0");if(e.test(n))return n;if(n=new p("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!g(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new k(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return P(e,t,"<",n)},t.gtr=function(e,t,n){return P(e,t,">",n)},t.outside=P,t.prerelease=function(e,t){var n=d(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new k(e,n),t=new k(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[l.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[l.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[l.COERCERTL].lastIndex=-1}else n=e.match(i[l.COERCE]);if(null===n)return null;return d(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(q_,q_.exports);var z_=q_.exports;const D_={};function A_(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=o,l={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||z_.satisfies(e,a.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!D_[i]){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 a=(r||o.load)({name:e,version:t}),l=Promise.resolve(a);D_[i]=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 D_[i]}(l.name,l.version,t,o.load).then((e=>(n=n||M_(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=i({qInfo:{qType:l.name},visualization:l.name,version:l.version,showTitles:!0},JSON.parse(r));return t?($e(!0,n,e),n):i(i({},n),e)}))}};return l}function j_(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=A_({name:e,version:o},t,i),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 F_(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=j_(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(D_).forEach((t=>{t.split("__")[0]===e&&(D_[t]=void 0)}))}(e)}}}const B_={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()))},W_={context:{},load:()=>{},types:[],themes:[],anything:{},snapshot:B_};W_.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1};const $_=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(i({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},H_=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 U_=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Z(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let a=i(i({},t.context),{},{translator:n.translator});const[l]=function(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),i=U.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","4.2.1"),a.setAttribute("data-app-id",n.id),document.body.appendChild(a),r&&SS(r),dt.createRoot(a).render(U.createElement(wS,{ref:i,app:n,initialContext:r,renderCallback:t}));const l={},s=[];return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},removeCell(e){delete l[e]},add(e){(async()=>{await o,s.push(e),i.current.setComps(s)})()},remove(e){(async()=>{await o;const t=s.indexOf(e);-1!==t&&s.splice(t,1),i.current.setComps(s)})()},setMuiThemeName(e){(async()=>{await o,i.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&SS(e),i.current.setContext(e)})()},getAppSelections:async()=>(await o,i.current.getAppSelections())},i,o]}({app:e,context:a}),s=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=lt();return{setTheme:async o=>{let i=e.filter((e=>e.id===o))[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),st(ct,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:l});a.themeApi=s.externalAPI;const c={galaxy:{translator:n.translator,flags:HP(t.flags),deviceType:ut(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:l,config:t,public:c,context:a,types:null},d=F_({halo:u});t.types.forEach((e=>d.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=s.setTheme(t.context.theme),f=null,h=null;const m={render:async e=>(await p,e.id?$P(e,u):async function(e,t){let{type:n,version:r,fields:o,properties:i,options:a,plugins:l,element:s,extendProperties:c}=e,u={};const d=[];let p;try{const e=t.types.get({name:n,version:r});u=await e.initialProperties(i,c);const a=await e.supernova();o&&await kT({sn:a,properties:u,fields:o,children:d},t),i&&a&&a.qae.properties.onChange&&a.qae.properties.onChange.call({},u)}catch(e){p=e,u={qInfo:{qType:n},visualization:n}}const f=await t.app.createSessionObject(u);d.length>0&&await f.setFullPropertyTree({qProperty:u,qChildren:d}),rL.set(f.id,f);const h=oL(f);return DP(f,{options:a,plugins:l,element:s},t,p,(async()=>{await t.app.destroySessionObject(f.id),h()}))}(e,u)),create:async e=>AP(e,u,!1),generateProperties:async e=>AP(e,u,!0),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=i(i(i({},a),t),{},{translator:n.translator}),t.theme&&(p=s.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),l.context(a))},selections:async()=>(f||(f={mount(t){h||(h=function(e){let{element:t,app:n}=e;return xp.createPortal(U.createElement(jI,{app:n}),t,AI())}({element:t,app:e}),l.add(h))},unmount(){h&&(l.remove(h),h=null)}}),f),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:i="$",options:a={},renderedCallback:l}=e;return xp.createPortal(U.createElement(dT,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:i,options:a,renderedCallback:l}),t,AI())}({element:a,app:e,fieldIdentifier:t,qId:n,options:uT(i({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r}),l.add(this._instance)}))},unmount(){this._instance&&(l.remove(this._instance),this._instance=null)}};return pI(o),o},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d,popover(t,n,r){m._popoverInstance&&(l.remove(m._popoverInstance),m._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=i({},pT);return $e(!0,t,e),t}(i({onPopoverClose:()=>m.emit("fieldPopoverClose")},r));m._popoverInstance=U.createElement(fT,{element:t,key:AI(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),l.add(m._popoverInstance)}}};return u.public.nebbie=m,u.types=d,pI(m),m}return r.createConfiguration=n=>e(((e,t)=>({context:$_(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:i({},t.snapshot||e.snapshot),types:H_(e.types,t.types),themes:H_(e.themes,t.themes),flags:$_(e.flags,t.flags),anything:$_(e.anything,t.anything)}))(t,n)),r.config=t,r}(W_);function V_(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const G_=globalThis.crypto||{getRandomValues:()=>123456};function K_(){return e=>{const t=$e({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^G_.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const n=t._mock;let r=t;return n&&(delete t._mock,r=$e({},t,n)),Promise.resolve(i({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(r),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const Z_=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},X_=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,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];const l=Z_(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},Q_=["id","session"],J_=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Y_(e){return!J_.includes(e)}function eN(e){const t=Z_(e.getLayout);return t.qInfo&&t.qInfo.qId}function tN(e,t){return e.reduce(((e,n)=>i(i({},e),function(e,t){let n=eN(e);const{delay:r}=t,{id:o,session:a}=e,l=s(e,Q_);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]:i(i({id:n,session:Z_(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(l).reduce(((e,t)=>{let[n,o]=t;return i(i({},e),{},{[n]:X_(o,{async:Y_(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function nN(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!eN(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function rN(){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(nN);const n=tN(e,t);return async e=>Promise.resolve(n[e])}function oN(){return()=>Promise.resolve({id:"app-layout"})}const iN={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new V_,r=new K_,o=new rN(e,t),i=new oN,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,getObject:o,getAppLayout:i};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},aN={generator:M_,hook:m_,theme:lt,locale:G};e.EnigmaMocker=iN,e.__DO_NOT_USE__=aN,e.conversion=jT,e.embed=U_,e.onContextMenu=function(e){const t=p_(++t_);t.value||(t.value=1,e_.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=p_(++t_);t.value||(t.value=1,e_.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=g_({action(){n._config.action.call(null)}});return n.component||(n.component=e_,e_.__hooks.actions.list.push(n)),y_((()=>{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=f_("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return f_("appLayout")},e.useConstraints=function(){return f_("constraints")},e.useDeviceType=function(){return f_("deviceType")},e.useEffect=v_,e.useElement=x_,e.useEmbed=function(){return f_("nebbie")},e.useEmitter=function(){return f_("emitter")},e.useGlobal=function(){const e=f_("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=p_(++t_);if(n.imperative||(n.imperative=!0),n_(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],e_.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return f_("interactions")},e.useKeyboard=function(){const e=f_("keyboardNavigation"),t=f_("focusHandler");if(!e_.__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&&(w_(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(e_);e_.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),S_(this))}.bind(e_);e_.__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(e_);e_.__hooks.accessibility.focusSelectionFunction=r}const n=e_.__hooks.accessibility.focusFunction,r=e_.__hooks.accessibility.exitFunction,o=e_.__hooks.accessibility.focusSelectionFunction,[i,a]=g_({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return e_.__hooks.accessibility.setter=a,e_.__hooks.accessibility.enabled=e,v_((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i},e.useLayout=function(){return f_("layout")},e.useMemo=y_,e.useModel=function(){const e=f_("model");return e&&e.session?e:void 0},e.useOptions=function(){return f_("options")},e.usePlugins=function(){return f_("plugins")},e.usePromise=function(e,t){const[n,r]=g_((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=p_(++t_);return o.component||(o.component=e_),b_((()=>{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=x_(),t=e_.__hooks.resizer,[n,r]=g_((()=>{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()),b_((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:i})))};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(){p_(++t_);const e=e_.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return f_("selections")},e.useStaleLayout=function(){const e=f_("layout"),[t]=g_({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=g_,e.useTheme=function(){return f_("theme")},e.useTranslator=function(){return f_("translator")}}));
|
|
134
134
|
//# sourceMappingURL=stardust.js.map
|